# Google Ads Transparency API (`structlabs/google-ads-transparency-api`) Actor

Competitor ad-creative monitoring from Google's public Ads Transparency Center. Resolve a brand, domain or advertiser ID and return every creative with format, first/last seen dates, landing domain and preview image. Anonymous public RPC, no proxy, no browser.

- **URL**: https://apify.com/structlabs/google-ads-transparency-api.md
- **Developed by:** [Mohit Tripathi](https://apify.com/structlabs) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.19 / 1,000 ad creative scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Ads Transparency API

Competitor ad-creative monitoring from Google's **Ads Transparency Center**. Resolve a brand name, domain or advertiser ID, then return every creative that advertiser runs with format, first and last shown dates, landing domain and a preview image.

- **Anonymous public RPC** — no cookies, login, API key or browser. Datacenter first; residential fallback only when Google blocks that IP.
- **One row per creative**, with cursor pagination and per-query dedupe.
- **Pay per event:** `ad-scraped` **$1.40 / 1,000** creatives + `apify-actor-start` $0.05 / 1,000 starts.
- **Measured payload:** 605 B per creative → 0.61 MB / 1,000, well inside the 25 MB gate.

### Input

| Field | Type | Default | Notes |
|---|---|---|---|
| `queries` | array | `["nike.com"]` | Domains (`nike.com`), brand names (`nike`) or `AR…` advertiser IDs. Max 50. |
| `region` | string | `"US"` | ISO-2 country such as `US`, `GB`, `DE`, `FR`, `AU`, `CA`. Empty string = all regions. |
| `formats` | array | `[]` | `image`, `text`, `video`. Empty = all formats. |
| `startDate` | string | `""` | `YYYY-MM-DD`. Keeps creatives whose shown window overlaps the date. |
| `endDate` | string | `""` | `YYYY-MM-DD`. Inclusive. |
| `maxAdsPerQuery` | integer | `200` | Hard stop per query. Each pushed row is one billed event. |
| `pageSize` | integer | `40` | Keep 40; larger values were not verified. |
| `requestDelayMs` | integer | `350` | Pause between cursor pages; keeps the per-IP burst quota calm. |
| `maxRetries` | integer | `3` | Backoff 2 s / 6 s / 15 s on quota redirects and 429s. |

Prefill (`nike.com`, US, 40 creatives) makes one RPC, returns 40 rows and finishes in about 0.2 s.

### Output

| Field | Type | Notes |
|---|---|---|
| `query` | string | Input query that produced the row. |
| `advertiser_id` | string | Google advertiser ID (`AR…`). |
| `advertiser_name` | string or null | Advertiser display name. |
| `advertiser_total_ads` | integer or null | Total creatives published by the advertiser. |
| `creative_id` | string | Creative ID (`CR…`). |
| `format` | string or null | `image`, `text` or `video`. |
| `first_shown_at` | string or null | ISO-8601 UTC first-shown timestamp. |
| `last_shown_at` | string or null | ISO-8601 UTC last-shown timestamp. |
| `landing_domain` | string or null | Landing domain. |
| `preview_image_url` | string or null | Preview image when the creative exposes one. |
| `ad_url` | string or null | Ads Transparency Center creative URL. |
| `region` | string or null | Region filter used for the query. |
| `scraped_at` | string | ISO timestamp of this run. |

```json
{
  "query": "adidas.com",
  "advertiser_id": "AR14017378248766259201",
  "advertiser_name": "Adidas America, Inc",
  "advertiser_total_ads": 1544,
  "creative_id": "CR12794593569172094977",
  "format": "image",
  "first_shown_at": "2022-08-29T23:38:45+00:00",
  "last_shown_at": "2026-11-23T09:55:16+00:00",
  "landing_domain": "adidas.com",
  "preview_image_url": "https://tpc.googlesyndication.com/archive/simgad/6975943840668000448",
  "ad_url": "https://adstransparency.google.com/advertiser/AR14017378248766259201/creative/CR12794593569172094977",
  "region": "DE",
  "scraped_at": "2026-11-23T10:48:17.095285+00:00"
}
```

`preview_image_url` is normally present for image creatives. Video creatives may expose a `content.js` preview instead of a static image; the row still carries the creative ID and ad URL. Ad text is not available from this endpoint and is not invented.

### Region codes

The endpoint expects `2000 + ISO-3166-1 numeric`. Supported in this build: US 2840, GB 2826, DE 2276, FR 2250, AU 2036, CA 2124, NZ 2554, IN 2356, JP 2392, BR 2076, IT 2380, ES 2724, NL 2528, SE 2752, SG 2702, AE 2784, ZA 2710, MX 2484, IE 2372, PL 2616, PT 2620, CH 2756, AT 2040, BE 2056, DK 2208, NO 2578, FI 2246, KR 2410, HK 2344, TW 2158. Unknown regions fall back to all regions with a warning.

### Pricing

| Event | Price | Charged when |
|---|---:|---|
| `apify-actor-start` | $0.05 / 1,000 runs | Synthetic start, automatic |
| `ad-scraped` | **$1.40 / 1,000 creatives** | Per unique creative written to the dataset |
| `ad-scraped` Gold tier | $1.19 / 1,000 creatives | 15% Store discount |

No charge for empty pages, retries, quota backoff or duplicate creative IDs. Net margin is about 79.9% at list price and 79.9% at the Gold tier after Apify's 20% share, bandwidth and compute.

### MCP / AI-agent use

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "structlabs/google-ads-transparency-api"
      ],
      "env": {
        "APIFY_TOKEN": "<your token>"
      }
    }
  }
}
```

Or use the hosted endpoint: `https://mcp.apify.com/?actors=structlabs/google-ads-transparency-api`.

- n8n workflow, MCP config and quickstarts: https://github.com/structlabs-hq/google-ads-transparency-api-n8n-mcp

### Local test

```bash
apify run -i '{"queries":["nike.com"],"region":"US","maxAdsPerQuery":40}'
ACTOR_TEST_PAY_PER_EVENT=true apify run -i '{"queries":["adidas.com"],"region":"DE","maxAdsPerQuery":10}'
```

### Limits and honest notes

- The list endpoint returns creative metadata, not ad copy. Per-creative OCR is out of scope for v1.
- Pagination uses the cursor returned in response field `2`; large advertisers can take several pages.
- Google occasionally redirects bursts to `google.com/sorry`. The Actor backs off 1 s / 3 s / 9 s and retries through Apify Residential proxy after the datacenter request is blocked. A blocked query is skipped with a warning after the retries; other queries still run. Residential traffic for the default run stays well under $0.01.
- Regions outside the supported map are searched without a region filter.
- Respect Google's terms and applicable advertising-data rules.

# Actor input Schema

## `queries` (type: `array`):

Domains (nike.com), brand names (nike) or AR advertiser IDs. Max 50.

## `region` (type: `string`):

ISO-2 country such as US, GB, DE, FR, AU, CA. Empty string searches all regions.

## `formats` (type: `array`):

image, text, video. Empty means all formats.

## `startDate` (type: `string`):

YYYY-MM-DD. Creatives last shown before this date are skipped.

## `endDate` (type: `string`):

YYYY-MM-DD. Creatives first shown after this date are skipped.

## `maxAdsPerQuery` (type: `integer`):

Hard stop per query. Each pushed creative is one ad-scraped event.

## `pageSize` (type: `integer`):

Creatives per request. Keep 40; larger values were not verified.

## `requestDelayMs` (type: `integer`):

Pause between cursor pages. 350 ms keeps the per-IP burst quota happy.

## `maxRetries` (type: `integer`):

Exponential backoff (2 s / 6 s / 15 s) on quota redirects.

## Actor input object example

```json
{
  "queries": [
    "nike.com"
  ],
  "region": "US",
  "maxAdsPerQuery": 40,
  "pageSize": 40,
  "requestDelayMs": 350,
  "maxRetries": 3
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `table` (type: `string`):

No description

## `advertisers` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "nike.com"
    ],
    "region": "US",
    "maxAdsPerQuery": 40,
    "pageSize": 40,
    "requestDelayMs": 350,
    "maxRetries": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("structlabs/google-ads-transparency-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "queries": ["nike.com"],
    "region": "US",
    "maxAdsPerQuery": 40,
    "pageSize": 40,
    "requestDelayMs": 350,
    "maxRetries": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("structlabs/google-ads-transparency-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "nike.com"
  ],
  "region": "US",
  "maxAdsPerQuery": 40,
  "pageSize": 40,
  "requestDelayMs": 350,
  "maxRetries": 3
}' |
apify call structlabs/google-ads-transparency-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,structlabs/google-ads-transparency-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/krRjzXCioGwf0OUR5/builds/hJpAheiP3O7T5KWZN/openapi.json
