# Google Ad Transparency Scraper (`seemuapps/google-ads-transparency-scraper`) Actor

Scrape every Google ad creative for any advertiser or domain — image, text, and video ads with run dates, regions, and asset URLs.

- **URL**: https://apify.com/seemuapps/google-ads-transparency-scraper.md
- **Developed by:** [Andrew](https://apify.com/seemuapps) (community)
- **Categories:** SEO tools, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Google Ad Transparency Scraper

Pull every ad creative an advertiser is running on Google — Search, YouTube, Display, Shopping, Maps, and Play — with run dates, regions, and direct asset URLs. Search by **keyword**, **domain**, or **advertiser ID**, and export the entire ad library to JSON, CSV, or Excel.

### What you get

For every ad, the dataset returns:

- **advertiserId** — Google's stable advertiser ID (e.g. `AR07816964328396947457`)
- **advertiserName** — verified legal name (e.g. `Roadget Business Pte. Ltd.`)
- **advertiserDomain** — verified domain (e.g. `shein.com`)
- **creativeId** — stable ID for the specific ad
- **format** — `text`, `image`, or `video`
- **formatCode** — raw numeric format code (1, 2, 3)
- **firstShown** / **lastShown** — ISO date range the ad was active
- **approxDaysShown** — approximate days the ad has been in rotation
- **adUrl** — direct link to the creative on the Ads Transparency Center
- **imageUrl** — full image asset URL when available
- **videoUrl** — direct video asset URL for video ads
- **iframeUrl** — rich-media iframe source for HTML5 banners
- **previewUrl** / **contentJsUrl** — Google's preview content endpoint
- **regionsServed** — list of country codes the ad ran in (when "Fetch detailed info" is on)
- **lastShownPerRegion** — last-seen date per country (when "Fetch detailed info" is on)
- **searchQuery**, **searchRegion**, **scrapedAt** — provenance metadata

### Use cases

- **Competitor ad intelligence** — monitor every Google ad your competitors run, including dates, formats, and regions
- **Ad creative research** — pull a brand's full ad library to study messaging, hooks, and visual direction
- **Affiliate and partner compliance** — audit affiliates running paid Google traffic against your brand
- **Influencer and merchant vetting** — verify advertiser identity, domain ownership, and ad volume before deals
- **Market and trend research** — track creative volume and regional rollout for any advertiser over time
- **SEO and PPC analysis** — see which domains are bidding alongside specific keywords or in specific countries
- **Brand safety monitoring** — surface unauthorized advertisers using your brand name or domain

### How to use

1. Enter a **Search query** — a keyword (`shein`), a domain (`shein.com`), or an advertiser ID (`AR07816964328396947457`)
2. Optionally force the **Search type** if auto-detect picks the wrong path
3. Pick a **Region** — 2-letter ISO country code (`US`, `GB`, `DE`, `IN`, …) or `anywhere` for worldwide. 237 countries supported.
4. Filter by **Ad format** if you only want text, image, or video creatives
5. Set **Max results** — default 100, or `0` for unlimited (auto-paginates until exhausted or the run times out)
6. Optional: set **Date from / Date to** to keep only ads last shown in a date window
7. Optional: enable **Fetch detailed info per ad** to enrich every record with the per-region service map
8. Run the actor — results stream into the **Dataset** tab. Download as JSON, CSV, or Excel.

### Search types

- **Keyword** — finds the closest matching brand using Ads Transparency Center suggestions, then returns its full creative library. Smart resolution prefers domain matches (e.g. `temu` → `temu.com`) over low-volume name matches.
- **Domain** — returns ads from every advertiser whose verified domain matches. Often returns multiple legal entities under one brand (e.g. `nike.com` → `Nike, Inc.` plus `Nike Retail BV`).
- **Advertiser ID** — exact lookup when you already have an `AR…` ID and want only that advertiser's ads.

### Pagination across runs

A single run pulls up to your **Max results** in one go. For very large advertisers, set `maxResults` to `0` and let the actor auto-paginate until it times out — the cursor is saved automatically.

After the run finishes, open the **Key-value store** tab → copy the `NEXT_PAGE_ID` value → paste it into **Page ID** on the next run to resume. If `NEXT_PAGE_ID` is `null`, you've fetched everything.

### Notes on regions

Region filtering is applied at the API level when you specify a country code. Picking `anywhere` returns ads from every country. Enabling **Fetch detailed info per ad** populates `regionsServed` and `lastShownPerRegion` so you can see the global rollout of every individual creative.

### Sample output

```json
{
  "advertiserId": "AR07816964328396947457",
  "advertiserName": "Roadget Business Pte. Ltd.",
  "advertiserDomain": "shein.com",
  "creativeId": "CR…",
  "format": "image",
  "firstShown": "2024-03-12",
  "lastShown": "2026-05-06",
  "approxDaysShown": 786,
  "adUrl": "https://adstransparency.google.com/advertiser/AR…/creative/CR…?region=US",
  "imageUrl": "https://tpc.googlesyndication.com/archive/simgad/…",
  "regionsServed": ["US", "GB", "DE", "FR", "AU"],
  "lastShownPerRegion": { "US": "2026-05-06", "GB": "2026-05-04" }
}
````

# Actor input Schema

## `searchQuery` (type: `string`):

Keyword, domain (e.g. 'shein.com'), or advertiser ID (e.g. 'AR07816964328396947457'). Type is auto-detected unless overridden below.

## `searchType` (type: `string`):

Force a specific interpretation of the search query. 'auto' detects from the input shape.

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

ISO 2-letter country code (e.g. 'US', 'GB', 'DE') or 'anywhere' for worldwide. 237 countries supported.

## `format` (type: `string`):

Filter by creative format.

## `maxResults` (type: `integer`):

Maximum ads to return in this run. Set to 0 for unlimited (auto-paginates until exhausted or actor times out).

## `dateFrom` (type: `string`):

Only keep ads last shown on or after this date (YYYY-MM-DD). Optional.

## `dateTo` (type: `string`):

Only keep ads last shown on or before this date (YYYY-MM-DD). Optional.

## `fetchDetailedInfo` (type: `boolean`):

If enabled, makes an additional request per ad to fetch the full list of regions where it ran and the per-region last-shown date. Slower and uses more proxy bandwidth, but enriches every record with regionsServed and lastShownPerRegion.

## `pageId` (type: `string`):

Paste NEXT\_PAGE\_ID from the previous run's Key-value store to fetch the next page.

## `proxyConfiguration` (type: `object`):

Apify Proxy. Leave default for automatic datacenter → residential fallback. If you select a specific group, that group is used and no fallback is attempted.

## Actor input object example

```json
{
  "searchQuery": "shein.com",
  "searchType": "auto",
  "region": "anywhere",
  "format": "all",
  "maxResults": 100,
  "fetchDetailedInfo": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One ad creative per record. Fields: advertiserId, advertiserName, advertiserDomain, creativeId, format, formatCode, firstShown, lastShown, approxDaysShown, adUrl, imageUrl, videoUrl, iframeUrl, previewUrl, contentJsUrl, regionsServed, lastShownPerRegion, searchQuery, searchRegion, scrapedAt.

## `nextPageId` (type: `string`):

NEXT\_PAGE\_ID record in the default key-value store. Paste into Page ID on the next run to resume; null when the list is exhausted.

# 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 = {
    "searchQuery": "shein.com",
    "region": "anywhere",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("seemuapps/google-ads-transparency-scraper").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 = {
    "searchQuery": "shein.com",
    "region": "anywhere",
    "proxyConfiguration": { "useApifyProxy": True },
}

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

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

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

```

## CLI example

```bash
echo '{
  "searchQuery": "shein.com",
  "region": "anywhere",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call seemuapps/google-ads-transparency-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=seemuapps/google-ads-transparency-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Ad Transparency Scraper",
        "description": "Scrape every Google ad creative for any advertiser or domain — image, text, and video ads with run dates, regions, and asset URLs.",
        "version": "1.0",
        "x-build-id": "lJaKTSNIpvqmFI6gL"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/seemuapps~google-ads-transparency-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-seemuapps-google-ads-transparency-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/seemuapps~google-ads-transparency-scraper/runs": {
            "post": {
                "operationId": "runs-sync-seemuapps-google-ads-transparency-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/seemuapps~google-ads-transparency-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-seemuapps-google-ads-transparency-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "searchQuery"
                ],
                "properties": {
                    "searchQuery": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Keyword, domain (e.g. 'shein.com'), or advertiser ID (e.g. 'AR07816964328396947457'). Type is auto-detected unless overridden below."
                    },
                    "searchType": {
                        "title": "Search type",
                        "enum": [
                            "auto",
                            "keyword",
                            "domain",
                            "advertiserId"
                        ],
                        "type": "string",
                        "description": "Force a specific interpretation of the search query. 'auto' detects from the input shape.",
                        "default": "auto"
                    },
                    "region": {
                        "title": "Region",
                        "type": "string",
                        "description": "ISO 2-letter country code (e.g. 'US', 'GB', 'DE') or 'anywhere' for worldwide. 237 countries supported.",
                        "default": "anywhere"
                    },
                    "format": {
                        "title": "Ad format",
                        "enum": [
                            "all",
                            "text",
                            "image",
                            "video"
                        ],
                        "type": "string",
                        "description": "Filter by creative format.",
                        "default": "all"
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum ads to return in this run. Set to 0 for unlimited (auto-paginates until exhausted or actor times out).",
                        "default": 100
                    },
                    "dateFrom": {
                        "title": "Date from",
                        "type": "string",
                        "description": "Only keep ads last shown on or after this date (YYYY-MM-DD). Optional."
                    },
                    "dateTo": {
                        "title": "Date to",
                        "type": "string",
                        "description": "Only keep ads last shown on or before this date (YYYY-MM-DD). Optional."
                    },
                    "fetchDetailedInfo": {
                        "title": "Fetch detailed info per ad",
                        "type": "boolean",
                        "description": "If enabled, makes an additional request per ad to fetch the full list of regions where it ran and the per-region last-shown date. Slower and uses more proxy bandwidth, but enriches every record with regionsServed and lastShownPerRegion.",
                        "default": false
                    },
                    "pageId": {
                        "title": "Page ID (pagination)",
                        "type": "string",
                        "description": "Paste NEXT_PAGE_ID from the previous run's Key-value store to fetch the next page."
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Apify Proxy. Leave default for automatic datacenter → residential fallback. If you select a specific group, that group is used and no fallback is attempted.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
