# Google Ads Transparency Scraper & Winning-Ad Monitor (`storepulselabs/google-ads-transparency-scraper`) Actor

Scrape or watch ad creatives from the public Google Ads Transparency Center — by domain, advertiser name, or AR ID. Winning-Ad days-running filter, strict domain match, watch mode with new/scaled/stopped diff and zero-charge quiet runs. No login.

- **URL**: https://apify.com/storepulselabs/google-ads-transparency-scraper.md
- **Developed by:** [Sigit JinLang](https://apify.com/storepulselabs) (community)
- **Categories:** Lead generation, E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.20 / 1,000 creative exporteds

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/actors/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 Scraper & Winning-Ad Monitor

Scrape or watch ad creatives from the public **Google Ads Transparency Center** — the ad library Google publishes for every verified advertiser. Search by **domain** (`nike.com`), **advertiser name** (`Gymshark`), **advertiser ID** (`AR...`), or a pasted **Transparency Center URL**. Filter by region, creative format, minimum days running (**Winning Ads Filter**), and recency. Turn on **watch mode** to receive only what changed since your last run: newly launched ads, ads that crossed your winning threshold, and ads that stopped — optionally pushed straight to Slack / n8n / Make via webhook.

**No login. No cookies. No browser. No CAPTCHA solving.** This Actor reads only Google's public anonymous endpoints (`SearchService/SearchSuggestions` and `SearchService/SearchCreatives` on `adstransparency.google.com`). If Google rate-limits a request, the Actor either retries politely through a rotating residential proxy or marks the page as blocked and moves on — it never attempts to bypass a block.

> ⚠️ Independent tool. Not affiliated with, endorsed by, or sponsored by Google LLC. All trademarks are the property of their respective owners.

### Why this Actor

- **Winning-Ad longevity filter** — `minDaysRunning` exports only ads that have been running for N+ days. The Transparency Center list itself carries the first-shown / last-shown timestamps, so `days_running` is computed without any extra request.
- **Real watch mode, 3 event types** — `new_ad`, `newly_scaled_winner` (crossed `minDaysRunning` since last run), and `stopped_ad`. Memory lives in the Apify Named Key-Value Store, so a quiet watch run exports zero rows and **charges nothing**.
- **Strict domain match** — domain searches often surface reseller/agency accounts whose ads point at the domain (e.g. an agency running `gymshark.com` ads). `strictDomainMatch: true` keeps only advertiser accounts whose name actually matches the domain.
- **Flat, transparent price** — **$1.20 per 1,000 exported creatives** on every plan. Runs that export nothing (empty results, blocked pages, errors) are never charged. No per-run start fee, no per-detail upsell.
- **Pure HTTP, tiny footprint** — runs in 256 MB, ~10 requests per 1,000 creatives at page size 100, well under Google's per-IP throttle.

### Input

#### What to search (at least one)

| Input | Example | What it does |
|---|---|---|
| `domains` | `["nike.com"]` | Ads whose display domain matches, across advertiser accounts |
| `queries` | `["Gymshark"]` | Resolves the largest matching advertisers via Google's own search, then collects their ads |
| `advertiserIds` | `["AR16735076323512287233"]` | Every ad from that advertiser account |
| `startUrls` | `["https://adstransparency.google.com/advertiser/AR...?region=US"]` | Paste advertiser, creative, or domain-search URLs from the site |

#### Filters

| Input | Default | What it does |
|---|---|---|
| `region` | `GLOBAL` | Only ads shown in that country (US, GB, DE, AU, CA, ID, ... 67 codes) |
| `format` | `ALL` | `ALL`, `IMAGE`, `VIDEO`, `TEXT` |
| `minDaysRunning` | `0` | **Winning Ads Filter** — only ads running ≥ N days |
| `activeWithinDays` | `0` | Only ads last shown within N days (0 = off) |
| `strictDomainMatch` | `true` | For domain targets: only advertiser accounts matching the domain name |

#### Limits & politeness

| Input | Default | What it does |
|---|---|---|
| `pageSize` | `100` | Creatives per request (10–100) |
| `maxCreativesPerTarget` | `100` | Scrape-mode cap per target — counts **exported** ads after filters (minDaysRunning, activeWithinDays, strictDomainMatch), so pagination continues until the cap of matching ads is reached or `maxPagesPerTarget` is hit (0 = unlimited) |
| `maxPagesPerTarget` | `5` | Scrape-mode pagination safety cap |
| `maxWatchPagesPerTarget` | `25` | Watch-mode scan depth for stopped-ad detection |
| `proxyFallback` | `true` | One polite retry through a rotating residential proxy on 429 / sorry page |
| `jitterMs` | `[800, 1600]` | Random delay between requests, milliseconds |

#### Watch mode

| Input | Default | What it does |
|---|---|---|
| `stateKey` | `ads-watch-state` | Name of the Apify **Named Key-Value Store** that holds the watch memory per target (shared across runs of this Actor) |
| `seedFirstRun` | `true` | First run per target exports everything as `new_ad` and records the baseline |
| `webhookUrl` | — | Optional public HTTPS endpoint (Slack/n8n/Make) that receives a POST summary when a watch run exports changes. Private/loopback addresses are rejected. |

### Output

One dataset row per exported creative. Scrape mode:

```json
{
  "advertiserId": "AR16735076323512287233",
  "advertiserName": "Nike, Inc.",
  "creativeId": "CR04447775403393679361",
  "domain": "nike.com",
  "format": "IMAGE",
  "formatCode": 1,
  "firstShownAt": "2026-11-22T14:22:47.496Z",
  "lastShownAt": "2026-11-28T18:48:36.535Z",
  "daysRunning": 6,
  "imageUrl": "https://tpc.googlesyndication.com/archive/simgad/1963782422616733719",
  "imageWidth": 348,
  "imageHeight": 425,
  "previewUrl": null,
  "transparencyUrl": "https://adstransparency.google.com/advertiser/AR16735076323512287233/creative/CR04447775403393679361",
  "target": "domain:nike.com",
  "targetType": "domain",
  "status": "active",
  "seenAt": "2026-11-28T19:02:11.000Z"
}
```

| Field | Description |
|---|---|
| `advertiserId` / `creativeId` | Google's `AR...` / `CR...` identifiers |
| `advertiserName` | Name of the advertiser account (written by the advertiser — treat as untrusted text) |
| `domain` | Display domain of the ad |
| `format` / `formatCode` | `IMAGE` (1), `TEXT` (2), `VIDEO` (3) — Google's own labels |
| `firstShownAt` / `lastShownAt` | ISO timestamps straight from the public list endpoint |
| `daysRunning` | Whole days between first and last shown — the winning-ad longevity metric |
| `imageUrl` + `imageWidth`/`imageHeight` | Direct creative image (image ads). Google URLs expire — copy them out for long-term keeping |
| `previewUrl` | Renderer URL for HTML5/text/video creatives |
| `transparencyUrl` | Deep link to the ad on Google's Transparency Center |
| `status` | `active` (scrape) or `new_ad` / `newly_scaled_winner` / `stopped_ad` (watch) |

Watch mode exports only diff rows. `strictDomainMatch` applies in watch mode too (reseller/agency noise never enters the watch memory), while ads below `minDaysRunning` stay in the memory so `newly_scaled_winner` transitions keep working. The watch memory is keyed by target **plus every filter that changes the result set** — region, format, strict-domain-match, and a pasted creative-id filter — so changing any of them starts a separate baseline instead of faking `stopped_ad`/`new_ad` transitions. Partial or failed scans never replace the baseline, pages whose rows cannot be parsed are treated as failed (not empty), and events that could not be exported (charge budget) are re-detected on the next run. A run summary (`batch_summary.json`) is stored in the Key-Value Store with per-target request counts, blocked pages, fallback usage and exported totals.

### Pricing

**$1.20 per 1,000 exported creatives** (`$0.0012` per `creative-exported` event), flat on every plan — undercutting the leading $2.00/1K and $1.50/1K scrapers while including the watch engine they charge extra for. Exporting a row is the only thing that charges: empty results, blocked pages, invalid input and errors cost nothing.

### Legal & ethical use

This Actor reads publicly available data from Google's Ads Transparency Center, the transparency tool Google publishes for public accountability. It does not bypass access controls, CAPTCHAs, or login walls. Users are responsible for complying with applicable laws and Google's Terms of Service.

# Actor input Schema

## `mode` (type: `string`):

scrape = export matching creatives (default). watch = diff against your previous runs and export ONLY new ads, newly scaled winners and stopped ads.

## `domains` (type: `array`):

Exact advertiser domains, e.g. nike.com. Returns ads whose display domain matches.

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

Brand or advertiser names, e.g. Gymshark. Resolved to the largest matching verified advertisers via the public search box, like Google's own Transparency Center.

## `advertiserIds` (type: `array`):

Google advertiser IDs starting with AR, e.g. AR16735076323512287233.

## `startUrls` (type: `array`):

Paste advertiser, creative, or domain-search URLs from adstransparency.google.com. Region inside the URL overrides the Region filter for that target.

## `maxAdvertisersPerQuery` (type: `integer`):

How many matching advertiser accounts each name query resolves to (largest first).

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

Only ads shown in this country. GLOBAL = everywhere.

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

Only export this creative format.

## `minDaysRunning` (type: `integer`):

Only export ads that have been running at least this many days (first-shown to last-shown). 0 = off. Example: 30 = only long-running winners.

## `activeWithinDays` (type: `integer`):

Only export ads last shown within this many days. 0 = off.

## `strictDomainMatch` (type: `boolean`):

For domain targets: keep only ads from advertiser accounts whose name matches the domain (nike.com -> Nike, Inc.). Removes reseller/agency noise (e.g. third-party accounts whose ads also point at the domain). Turn off to include every advertiser pointing at the domain.

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

Creatives fetched per request (Google accepts up to 100).

## `maxCreativesPerTarget` (type: `integer`):

0 = keep paginating until maxPagesPerTarget or the catalogue ends.

## `maxPagesPerTarget` (type: `integer`):

Safety cap for pagination depth.

## `maxWatchPagesPerTarget` (type: `integer`):

Watch mode scans backwards from the newest ads to detect stopped ads. If this cap is hit the scan is marked incomplete and stopped-ad detection is skipped for that target.

## `proxyFallback` (type: `boolean`):

If a request is rate-limited (429 / sorry page), retry it once through a rotating residential proxy session. Blocks are never solved or bypassed by any other means.

## `jitterMs` (type: `array`):

Random delay range between requests to Google, in milliseconds.

## `stateKey` (type: `string`):

Name of the Apify Named Key-Value Store that holds the per-target watch memory (shared across runs of this Actor). Change it to run separate watches.

## `seedFirstRun` (type: `boolean`):

First watch run per target exports everything as new_ad and records the baseline. Later runs export only changes.

## `webhookUrl` (type: `string`):

Optional public HTTPS URL (Slack, n8n, Make...) that receives a POST summary when a watch run exports changes. Private/loopback addresses are rejected.

## Actor input object example

```json
{
  "mode": "scrape",
  "domains": [
    "nike.com"
  ],
  "queries": [],
  "advertiserIds": [],
  "startUrls": [],
  "maxAdvertisersPerQuery": 3,
  "region": "GLOBAL",
  "format": "ALL",
  "minDaysRunning": 0,
  "activeWithinDays": 0,
  "strictDomainMatch": true,
  "pageSize": 100,
  "maxCreativesPerTarget": 100,
  "maxPagesPerTarget": 5,
  "maxWatchPagesPerTarget": 25,
  "proxyFallback": true,
  "jitterMs": [
    800,
    1600
  ],
  "stateKey": "ads-watch-state",
  "seedFirstRun": true,
  "webhookUrl": ""
}
```

# Actor output Schema

## `overview` (type: `string`):

Clean table view of exported creatives with advertiser, domain, format, days running and status.

## `datasetItems` (type: `string`):

Complete JSON records including IDs, first/last shown timestamps, days running, image/preview URLs and diff status.

## `batchSummary` (type: `string`):

Per-target request counts, blocked pages, proxy fallback usage, exported totals and watch-mode event counts.

# 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 = {
    "domains": [
        "nike.com"
    ],
    "webhookUrl": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("storepulselabs/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 = {
    "domains": ["nike.com"],
    "webhookUrl": "",
}

# Run the Actor and wait for it to finish
run = client.actor("storepulselabs/google-ads-transparency-scraper").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 '{
  "domains": [
    "nike.com"
  ],
  "webhookUrl": ""
}' |
apify call storepulselabs/google-ads-transparency-scraper --silent --output-dataset

```

## MCP server setup

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

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/qA62KUKF8dAbADiJS/builds/BjUpOnAKqOCk6iJVF/openapi.json
