# Google Ads Transparency Tracker: New & Stopped Ads (`ultramarine_freezer/google-ads-transparency-scraper`) Actor

Track competitors' Google ads: each run tells which ads are new and which stopped, alerts Slack, Discord or your webhook, and writes a report per advertiser. Scrapes Google Ads Transparency Center by domain, advertiser or brand, with ad text (OCR included). No login.

- **URL**: https://apify.com/ultramarine_freezer/google-ads-transparency-scraper.md
- **Developed by:** [JIGSAW](https://apify.com/ultramarine_freezer) (community)
- **Categories:** Marketing, SEO tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 ads

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/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 Tracker: new and stopped ads

Watch what your competitors advertise on Google. Give a domain, an advertiser or a brand name, run it on a
schedule, and each run tells you **which ads are new and which stopped**, sends the summary to Slack, Discord or
your own webhook, and writes one report per advertiser. The data is what
[Google Ads Transparency Center](https://adstransparency.google.com) shows publicly, with the text of each ad
read for you.

This is an independent tool. It is not affiliated with, endorsed by or sponsored by Google.

### What you can do with it

- **Track changes between runs**: with a `trackingName`, every ad comes marked `new`, `still_running` or `stopped`
  against what the earlier runs saw. An ad is only called new when the tool can tell it is: nothing is announced
  from a listing that was cut short (see [Change tracking](#change-tracking)).
- **Get alerted**: a run with changes sends its summary to Slack, Discord or any https webhook
  (see [Notifications](#notifications)).
- **Get one summary per advertiser**: how many ads, in which formats, on which Google platforms, and the longest
  running ones (see [Advertiser report](#advertiser-report)).
- **Read the ads, not only list them**: the headline, description and display URL of each ad come in the row, at
  no extra price. Most search ads are served by Google as an image; they are read with OCR inside the run
  (see [Ad text](#ad-text)).
- **Or just scrape**: every ad of a domain or an advertiser, with its format, the dates it was shown, its link in
  the Transparency Center and its preview or image; and a cheap check of whether a domain or a name advertises at
  all (`mode: "advertiser-check"`).

No Google account, cookie or API key is needed.

Track a competitor (schedule it, for example daily):

```json
{ "domains": ["nike.com"], "trackingName": "nike-watch", "maxAdsPerTarget": 5000, "onlyChanges": true }
```

Or list ads once:

```json
{ "domains": ["nike.com"], "maxAdsPerTarget": 50 }
```

### What it costs

You pay per delivered row (pay per event); there is no separate charge for platform usage:

| Event | When | Price (USD) |
|---|---|---|
| `ad` | each ad row delivered, its text included | $0.002 ($2.00 per 1,000 ads) |
| `ad-detail` | each detail row, only with `includeDetails` | $0.002 |
| `asset-download` | each file stored, only with `downloadAssets` | $0.003 |
| `advertiser-check` | each row in `advertiser-check` mode | $0.002 |
| `advertiser-report` | each advertiser report, with `advertiserReport` or a `trackingName` | $0.01 |
| Actor start | once per run | $0.00005 |

Ad text, OCR, change tracking and notifications have no price of their own. A row that was not delivered is never
charged, and the run stops at the maximum charge you set for it. The details are in [Charging](#charging).

### How it works

- It reads the same public data the Transparency Center website shows, over plain HTTP requests.
- It stores and sends no cookies, uses no account or login, and never solves CAPTCHAs or challenge pages.
  When Google answers an IP with its challenge page, that IP is dropped and the request is sent again a few
  times through a new proxy IP.
- **Results can be partial.** When Google limits the requests and the retries run out, the run delivers what
  it already has. The run's status message then names each target that stopped early and why
  (for example `nike.com stopped after 400 ads (blocked)`).
- Values Google does not send are left empty (`null` or an empty list); nothing is guessed.
- **A restarted run does not deliver or charge a row twice.** Apify can restart a run from the beginning on
  the same dataset (for example when it moves the run to another server). The new start first reads the
  run's dataset: the rows already there are kept and are not delivered or charged again, and the status
  message starts with `Resumed: N rows from before the restart were kept.` The rest of the status message
  (`Delivered N ads`, ...) counts only what was delivered after the restart. An ad whose `ad` row was
  delivered before the restart, but not yet its `ad-detail` or `asset` row, gets neither after it. Advertiser
  reports a restarted run finds in its reports dataset are not delivered or charged again either.
- **A run near its time limit stops by itself.** A minute before the run's timeout, or as soon as Apify announces
  that the run is being aborted, the actor stops like at your charge limit: no new request, the rows already
  delivered stay delivered, and the run finishes its own end (saving the change-tracking memory, among others) with
  `Stopped early: the run's time limit was near.` or `Stopped early: the run was aborted.` in its status message.
  A run stopped before its time limit this way ends `SUCCEEDED`, not `TIMED-OUT` (unless it delivered nothing and a
  target failed). Give long runs a long enough timeout.
- The actor needs at least 1024 MB of memory: OCR runs inside the run (test runs with ad text peaked at about
  270–350 MB).

### Input

Give at least one target: `domains`, `searchTerms`, `advertiserIds` or `startUrls`.

| Field | Meaning | Default |
|---|---|---|
| `domains` | Advertiser website domains, e.g. `nike.com` | – |
| `searchTerms` | Advertiser or brand names; each one is resolved from Google's suggestions (see below) | – |
| `advertiserIds` | IDs such as `AR18378488041124659201` | – |
| `startUrls` | Transparency Center links: an advertiser page, a single ad page or a `?domain=` page | – |
| `mode` | `ads` (list ads) or `advertiser-check` (one row per advertiser found for each query) | `ads` |
| `maxAdsPerTarget` | Stop each listing after this many ads (1–50,000); for a search term, per domain or advertiser it is resolved to | 200 |
| `maxAdvertisersPerSearchTerm` | Domains and advertisers used per search term, the matching domain included (1–10; Google suggests at most 10 advertisers) | 3 |
| `region` | `anywhere`, a two-letter country code or an English country name | `anywhere` |
| `format` | `all`, `text`, `image` or `video` | `all` |
| `dateFrom`, `dateTo` | Only ads shown in this date range (`YYYY-MM-DD`) | – |
| `platforms` | Any of `play`, `maps`, `search`, `shopping`, `youtube` | all |
| `politicalOnly` | Only political ads | `false` |
| `includeDetails` | Also deliver an `ad-detail` row per ad (one extra request per ad) | `false` |
| `downloadAssets` | Store each ad's image or preview file and deliver an `asset` row per stored file | `false` |
| `proxyType` | `residential` (a new IP per request), `datacenter` (in the last test, on 2026-11-11, Google answered 96% of its attempts with the challenge page) or `none` | `residential` |
| `concurrency` | Targets processed at the same time (1–20) | 5 |
| `extractText` | Add each ad's text to its row (see [Ad text](#ad-text)) | `true` |
| `ocr` | Read text ads that Google serves as an image with OCR; no effect when `extractText` is off | `true` |
| `trackingName` | Turn on change tracking under this name (see [Change tracking](#change-tracking)); ads mode only; left empty, no tracking | – |
| `onlyChanges` | With a tracking name, deliver only the `new`, `first_seen` and `stopped` ads | `false` |
| `trackingWindowDays` | With a tracking name, the ads shown in the last this many days are the ones tracked (1–90) | 7 |
| `advertiserReport` | Deliver one report per advertiser (see [Advertiser report](#advertiser-report)); ads mode only; always on with a tracking name | `false` |
| `reportTopAds` | How many ads each report lists in `longestRunningAds` (1–50) | 10 |
| `slackWebhookUrl`, `discordWebhookUrl`, `webhookUrl` | Where a tracked run sends its summary of changes (see [Notifications](#notifications)) | – |

- How a search term is resolved: the actor asks Google for its suggestions once. In ads mode, if Google
  suggests a domain whose name equals the term (`nike.com` for "nike"; for a term that is itself a domain, such
  as "nike.com", that domain), it is listed first and counts as one of the `maxAdvertisersPerSearchTerm`. Then come the
  suggested advertisers whose name contains the term as a whole word, verified ones with the most ads first:
  for "nike", "Nike, Inc." and "NIKE SRL" match, "Nikena" and "Jan Nikel" do not. Words are compared without
  case, accents or punctuation, and consecutive words may join ("MercadoLibre S.R.L." and "Mercado Libre SRL"
  both match "mercado libre"; "H & M" matches "h\&m"). A term that is a domain with a short ending (every part
  after the first dot has at most 3 letters, such as `.com`, `.fr`, `.com.br` or `.co.uk`) and a name part of at
  least 3 letters or digits is also matched by that name part: for "nike.com", advertisers named "Nike" match.
  Any other term with dots is matched only as a whole: "dr.oetker" matches "Dr. Oetker GmbH", not "Dr Pepper";
  "shop.nike.com" does not match "Shop Direct".
- **Matches are by name only.** A matching advertiser can be another company, or a person, with the same name
  (for "nike", an advertiser called "Nike Klara" matches), and the ads of every domain and advertiser listed
  are delivered and charged like any other ad. Very short terms and initials match broadly: "h\&m" also
  matches a name written "H. M. …", such as a person's initials.
- In ads mode, if Google suggests neither such a domain nor an advertiser with the term as a word, the term
  falls back to the closest names Google suggested (verified, most ads first), and the status message says so:
  `"zzz": no exact name match, listed the closest 3 advertisers.` (In advertiser-check mode the fallback
  happens whenever no name matches; see below.) A term with fewer than 2 letters or digits (one letter, or a
  term written only in a non-Latin script) always falls back this way. A search term can have at most 100
  characters.
- In ads mode, the status message says what each term was searched as (for example
  `"nike" searched as nike.com + 2 advertisers.`), and the run log names each domain and advertiser at the
  moment the actor starts listing it (`Search term "nike": listing Nike, Inc. (AR16735076323512287233)`), so
  even a run that fails later shows what it listed. In advertiser-check mode nothing is listed: the rows
  themselves show which advertisers were used, and the status message only says when a term had no matching
  name. Google's suggestions can also miss the advertiser you mean: for exact control, give a domain or an
  advertiser ID instead.
- For a search term, `maxAdsPerTarget` applies to each domain or advertiser separately. With the defaults
  (3 of them × 200 ads) one search term can deliver up to 600 ads.
- A domain or advertiser that another target of the same run already lists (an explicit domain or advertiser
  ID, or another search term) is not listed again, but it still uses one of the term's
  `maxAdvertisersPerSearchTerm` places: the next suggestion does not move up to replace it.
- From a pasted Transparency Center URL only the advertiser, the ad or the `domain` parameter is read. Its
  other parameters, such as `region`, are ignored: the `region` input is used instead. A single-ad URL
  fetches that one ad, without filters.

Example:

```json
{ "domains": ["nike.com"], "maxAdsPerTarget": 50 }
```

### Output

All rows go to the run's dataset, but for the advertiser reports, which have their own dataset (see
[Advertiser report](#advertiser-report)). Every row has a `rowType` field, so you can keep one kind of row:

#### `ad`

`trackingStatus` (`new`, `first_seen`, `still_running` or `stopped` with change tracking, else `null`), `advertiserId`,
`advertiserName`, `advertiserVerified`, `advertiserCountry`, `advertiserLegalName`, `creativeId`, `format`
(`text`, `image`, `video`), `firstShown`, `lastShown` (dates), `daysActive` (days between first and last shown),
`daysShown` (days Google reports the ad was shown), `domain`, `previewUrl`, `imageUrl`, `adUrl` (the ad's
Transparency Center page), the text fields `adHeadline`, `adDescription`, `adDisplayUrl`, `adText`,
`adTextSource`, `youtubeVideoId`, `youtubeUrl` (see [Ad text](#ad-text)), `isPolitical`, `impressionsMin`,
`impressionsMax`, `spendCurrency`, `spendMin`, `spendMax`, `shownRegions` (these last six only for political ads),
`target` (the input that found the ad), `scrapedAt`.

- An ad reached by two targets is delivered once.
- `domain` is filled on ads found by listing a domain (a `domains` target, or the domain a search term was
  resolved to); Google leaves it empty on ads found through an advertiser, so it is `null` there. In a search
  term's rows it tells which ads came from the domain listing.
- `advertiserVerified` is inferred from the absence of Google's "unverified" marker on the ad. It is
  authoritative only when the advertiser lookup succeeded (the lookup's answer then replaces the ad's own
  marker); the status message says for how many advertisers the lookup failed
  (`Advertiser data missing for N advertisers`).
- For a single-ad URL target, `firstShown`, `daysActive`, `daysShown`, `domain` and `isPolitical` are `null`:
  Google's answer for one ad does not carry them. `advertiserVerified` is then `null` too if the advertiser
  lookup failed.

#### `ad-detail` (with `includeDetails`)

`creativeId`, `advertiserId`, `variants` (`previewUrl`, `imageUrl` of each variant), `regions` (for each
country: `countryCode`, `firstShown`, `lastShown`, `impressionsMin`, `impressionsMax` and `platforms` with
impressions per platform), `euImpressionsMin`, `euImpressionsMax`, `topic`, `audienceTargeting`, `scrapedAt`.

#### `asset` (with `downloadAssets`)

`creativeId`, `advertiserId`, `assetKey` (the file's key in the run's key-value store), `contentType`, `bytes`,
`sourceUrl`, `scrapedAt`.

- The file is the ad's image, or its preview when Google gives no image. It is downloaded directly, without the
  proxy, with a size limit of 20 MB.
- A download that fails for a reason that may pass (a busy server, a network error, a timeout) is tried twice
  more. A file that still could not be downloaded, or that the key-value store refused, gives no row and no
  charge: the status message counts them (`3 assets could not be downloaded.`) and the run log says why, by reason
  code, for example `Asset downloads that failed: http_404 x2, timeout x1.` (`store` is a file the key-value store
  refused).

#### `advertiser-check` (in `advertiser-check` mode)

`query`, `queryType` (`search_term`, `domain` or `advertiser`), `advertises`, `advertiserId`,
`advertiserName`, `advertiserCountry`, `advertiserLegalName`, `advertiserVerified`, `adsCountMin`,
`adsCountMax`, `partial`, `filtersApplied`, `scrapedAt`.

- One row per advertiser found for the query, or one row with `advertises: false` when Google answered with
  none.
- On a search-term query the rows are the suggested advertisers whose name contains the term as a whole word,
  as in ads mode, verified ones with the most ads first, up to `maxAdvertisersPerSearchTerm`. A suggested
  domain gives no row in this mode, so when no name matches the rows are the closest names Google suggested,
  and the status message says so (`"zzz": no exact name match, listed the closest 3 advertisers.`).
- `partial: true` on a domain query means the domain has more ads than the first page that was read, so other
  advertisers may exist.
- On a domain query, `adsCountMin` and `adsCountMax` are the domain's total, repeated on each advertiser row
  of that domain; they are not that advertiser's own count.
- `advertiserVerified` is inferred from Google's "unverified" marker for search terms and domains, and comes
  from the advertiser lookup for advertiser IDs.
- `filtersApplied: true` means the answer used your region, format, date, platform or political filters:
  `advertises: false` then only means "no ads matching those filters". Search-term answers never use filters.
- A query whose request failed gives no row; the status message names it.

#### `advertiser-report` (with `advertiserReport` or `trackingName`)

One row per advertiser, in the run's reports dataset: see [Advertiser report](#advertiser-report).

### Ad text

With `extractText` on (the default), every `ad` row carries `adHeadline`, `adDescription`, `adDisplayUrl`,
`adText` (all the text read, one line per line of the ad), `adTextSource`, `youtubeVideoId` and `youtubeUrl`.
`adTextSource` says where the text came from:

| `adTextSource` | Meaning |
|---|---|
| `preview` | The ad's preview carries its text, which is read as it is. |
| `ocr` | A text ad that Google serves as an image (most search ads are) was read with OCR: Tesseract, inside the run, no outside service. |
| `youtube` | A video ad: its YouTube video ID and link, and the video's public title as `adHeadline` (when YouTube gives one; else `null`). |
| `none` | No readable text. All the text fields are `null`. |
| `null` | Text extraction was off (`extractText: false`). All the text fields are `null`. |

- **OCR reads only the Latin alphabet, and only text ads.** An image read with low confidence (as text in another
  script usually is) gives `none` rather than garbled text. Image and video ads are never read with OCR: unless
  their preview carries text (or, for a video, a YouTube video), they come with `adTextSource: "none"`. So does a
  text ad served as an image when `ocr` is off, and an ad whose preview Google could not render.
- From an image, the display URL is a line near the top that looks like a web address, the headline is the run
  of largest lines after it, and the rest is the description. OCR can misread characters.
- An ad whose text could not be read (a download or OCR failed) is still delivered, with `adTextSource: "none"`.
  A preview, image or YouTube title request that fails for a reason that may pass (a busy server, a network error,
  a timeout) is tried twice more first (each attempt waits at most 12 seconds). After the request statistics, the
  run log counts the reasons of the requests that still failed, a title's marked `title:`, for example
  `Ad text downloads that failed: http_429 x2, title:http_429 x1.` A video whose title could not be had is still a
  `youtube` row, with `adHeadline: null`.
- A server whose downloads keep failing that way (eight in a row) is left alone for a minute: meanwhile the ads
  that need it are delivered without text at once, counted as `circuit_open` in that log line, instead of each
  waiting for its retries. Then one download tries the server again, and the rest follow once it works.
- The status message counts the delivered ads by source, for example
  `Ad text: 31 from preview, 120 by OCR, 12 from YouTube, 40 without text.` The ads whose text could not be read
  are among those without text, and are also named apart: `Text could not be read for 3 ads.`
- The text is downloaded from Google's preview and image servers and from YouTube directly, without the proxy, with
  size and time limits.
- Turn `extractText` off for faster runs.

### Change tracking

Give a `trackingName` (for example `nike-watch`) and run the same input again later, for example on a schedule.
Each run compares the ads it lists with what the earlier runs of the same name saw, and every `ad` row carries a
`trackingStatus`:

- `new`: not in the memory, and the memory can tell it is new: its domain or advertiser was listed completely
  by an earlier run (or was never listed before, as in the first run).
- `first_seen`: not in the memory, but its domain or advertiser was only ever listed in part, so the ad may have
  been running all along. It is delivered and charged like any ad, and never announced as new.
- `still_running`: seen by an earlier run and listed again.
- `stopped`: seen by an earlier run, and a complete listing of its domain or advertiser no longer shows it. The row
  repeats the fields remembered from the last time the ad was seen (its `lastShown` included) with a new
  `scrapedAt`. It gets no `ad-detail` or `asset` row.

```json
{ "domains": ["nike.com"], "trackingName": "nike-watch", "maxAdsPerTarget": 5000, "onlyChanges": true }
```

How it works:

- **A tracked run only looks at the ads shown in the last `trackingWindowDays` days** (7 by default), with Google's
  date filter, so `dateFrom` and `dateTo` cannot be set. Google keeps listing ads that stopped showing long ago,
  so "running" here means "shown in the window": an ad is reported `stopped` about `trackingWindowDays` days after
  it was last shown.
- The first run under a name records every ad as `new`. Its status message says
  `Tracking "nike-watch" started: 255 ads recorded.`; later runs say
  `Tracking "nike-watch": 12 new, 3 stopped, 240 still running.`
- **Keep the same `region`, `format`, `platforms`, `politicalOnly` and `trackingWindowDays` on every run of a
  name.** When one of them changes, the memory starts over: every ad is `new` again (and charged as any delivered
  row), nothing is `stopped`, the run log says `Tracking "nike-watch": the filters changed since the last run, so
  the memory starts over and every ad is new.` and the status message
  `Tracking "nike-watch" restarted (filters changed): 255 ads recorded.` The same happens, with
  `restarted (stored memory could not be read)`, if the stored memory is damaged. Keep the same targets too: the ads
  of a target you remove are not listed any more, so they are never marked `stopped`.
- **Nothing is marked stopped from an incomplete listing.** When `maxAdsPerTarget` (or a failure) cuts the listing
  of a domain or advertiser, none of its remembered ads is marked `stopped`, and the status message says so:
  `No ad of nike.com was marked stopped: not all its ads were listed.` Set `maxAdsPerTarget` above the number of
  ads a target shows in the window. When Google answers an empty listing for a domain or advertiser that had ads,
  the listing is asked once more before its ads can be marked stopped.
- **An ad is `new` only once its target has been listed completely.** Google does not return a target's ads in a
  fixed order: two runs cut at 60 ads by `maxAdsPerTarget` can get two entirely different sets of 60 from a target
  with thousands. So until a run lists a domain or advertiser to its end, the ads of later runs that the memory does
  not have are `first_seen`, not `new`, and the status message says so:
  `60 ads were seen for the first time: not counted as new, because nike.com has never been listed completely.`
  They are delivered and charged like any ad, but they do not count as new in the reports (`adsFirstSeen`) and
  trigger no notification. For a target with more ads than `maxAdsPerTarget`, narrow the listing with filters
  (region, format, platform) until it fits, or raise the limit: from the first complete run on, `new` means new.
  A memory saved before this rule existed has no complete listing on record yet.
- Each domain or advertiser listed is tracked on its own, including each domain and advertiser a search term is
  resolved to. A single-ad URL is not tracked (`trackingStatus: null`).
- **`onlyChanges: true` delivers only the `new`, `first_seen` and `stopped` rows.** The ads still running are checked and
  remembered, but not delivered and not charged.
- An ad still running keeps the text read for it by an earlier run instead of being read again (a remembered
  `none`, or a video without its title, is read again).
- The memory follows what was delivered: an ad enters it once its row is in the dataset, and leaves it once its
  `stopped` row is. When a run stops early (at your charge limit, a minute before its time limit, or when it is
  aborted), it still saves the memory with what it delivered, marks nothing more `stopped` and delivers no report;
  what it did not deliver is reported by the next run. When such a stop comes before the run checks for stopped ads,
  the status message says `Stopped ads were not checked (charge limit).` or
  `Stopped ads were not checked (the run stopped early).`
- **A run killed without warning keeps most of its memory.** While it goes on, a tracked run saves its memory
  every 30 seconds. If the run runs out of memory or is ended at once (a forced abort), the memory holds what was
  delivered up to the last save: the next run reports, and charges, again only the changes delivered after it
  (at most about half a minute of them).
- A run that Apify restarts (a migration) after such a save reads its own half-saved memory: the ads it delivered
  before the restart are not delivered or charged again, but its status message and reports count them as
  `still running` instead of `new`. The ads it lists after the restart get the status they would have had without
  it (`new` in a name's first run).
- **The memory lives in your Apify account**, in the named key-value store `gads-transparency-tracking`, as the
  records `<trackingName>.manifest` and `<trackingName>.<generation>.<part>`. Named stores are kept until you
  delete them. Each tracking name has its own memory; to start a name over, delete its records or use a new name.
- Do not start two runs with the same tracking name at the same time: each one saves its own memory, while it
  goes on and when it ends.
- Every tracked run also delivers the advertiser reports (below).

### Advertiser report

With `advertiserReport: true` (always on with a `trackingName`), the run ends with one `advertiser-report` row per
advertiser whose ads it listed, the advertisers with the most ads first:

| Field | Meaning |
|---|---|
| `advertiserId`, `advertiserName`, `advertiserCountry`, `advertiserLegalName`, `advertiserVerified` | The advertiser, as in the `ad` rows |
| `adsSeen` | The advertiser's ads that the run's listings showed, delivered or not (an ad listed twice counts once; with `onlyChanges` the ads still running count too) |
| `adsRunning` | Of those, the ads last shown in the last `trackingWindowDays` days (7 by default, also without tracking) |
| `adsNew`, `adsStillRunning`, `adsFirstSeen`, `adsStopped` | With a tracking name, the advertiser's ads by `trackingStatus`; `null` without |
| `formats` | Counts of the ads seen by format: `text`, `image`, `video`, `other` |
| `platforms` | Google's ad totals for the advertiser per platform, as ranges: `[{"platform": "youtube", "adsCountMin": 3000, "adsCountMax": 4000}, ...]` (see below) |
| `countries` | The countries in the advertiser's ad details, only with `includeDetails` (else `null`) |
| `oldestRunningFirstShown` | The earliest `firstShown` among the running ads |
| `longestRunningAds` | Up to `reportTopAds` running ads (10 by default), the longest running (`daysActive`) first: `creativeId`, `adUrl`, `format`, `firstShown`, `lastShown`, `daysActive`, `adHeadline` |
| `complete` | `true` when every listing that showed ads of this advertiser was complete (not cut by `maxAdsPerTarget` or a failure) |
| `targets` | The inputs whose listings showed the advertiser |
| `trackingName`, `scrapedAt` | The tracking name (`null` without), and when the report was written |

- **What the platform ranges are.** For each platform (those of your `platforms` filter, or all five) the actor
  asks Google for one page of the advertiser's ads with the run's filters and that platform as the platform filter,
  and reports the total Google declares. These are Google's ranges, for all of the advertiser's ads on all its
  domains, not only the ads this run listed. A platform whose request failed is left out; `platforms` is `null`
  when every request failed, and always `null` with `politicalOnly` (political listings carry no total ranges, so
  none are asked).
- **Where to find the reports.** They are not in the run's default dataset, so that an export of the ad rows stays
  clean. They go to a second dataset, with the alias `reports`, and a copy of all of them is written as the JSON
  record `REPORTS` of the run's key-value store. That second dataset is not listed among the run's storages, so the
  `REPORTS` record is the easiest way to them; the run log names the dataset:
  `Advertiser reports: 2 copied to the record "REPORTS" of the run's key-value store; they are in the dataset <dataset id> (alias "reports").` Like the run's own storages, it has no name and is deleted after your account's
  data retention period.
- The reports come after all the ad rows (and the `stopped` rows). A run that stops early (at your charge limit,
  near its time limit or when aborted) delivers no report, and one that stops while delivering reports delivers no
  more (the report being written is finished first; the requests for the next ones are cut at once).
- The status message counts them: `Delivered 120 ads, 2 advertiser reports.`
- A domain can show the ads of several advertisers (agencies, resellers, local branches): each gets its report.

### Notifications

A tracked run can send a summary of its changes to a Slack incoming webhook (`slackWebhookUrl`,
`https://hooks.slack.com/...`), a Discord webhook (`discordWebhookUrl`, `https://discord.com/api/webhooks/...`)
and any https endpoint (`webhookUrl`, port 443, no credentials in the URL).

- They need a `trackingName`. A summary is sent by the run that starts the memory and by any run in which some ad
  is `new` or `stopped`; otherwise the log says `Notifications: no ad is new or stopped, none sent.`
- Slack and Discord get a short text: the totals, the run's link and up to 20 advertisers with their new, stopped
  and still running counts. `webhookUrl` gets the summary as JSON:
  `{"trackingName", "firstRun", "totals": {"new", "stopped", "stillRunning", "firstSeen"}, "advertisers": [{"advertiserId",
  "advertiserName", "new", "stopped", "stillRunning"}], "runUrl", "scrapedAt"}`, the advertisers with the most
  changes first.
- They are sent at the end of the run, after the memory and the reports are saved, without the proxy. Each
  destination gets at most two attempts (the second only after a network error, HTTP 429 or 5xx) within 25 seconds;
  redirects are not followed, and an address that resolves to a private or local network is refused.
- A notification that fails never fails the run. The log says what happened to each one
  (`Slack notification sent.`, `Discord notification failed (HTTP 404).`), never its URL: the webhook URLs are
  secret inputs and are kept out of every log line and status message.

### Charging

Each delivered row is one charged event: `ad` (an `ad` row, whatever its `trackingStatus`), `ad-detail`,
`asset-download` (an `asset` row), `advertiser-check` and `advertiser-report`; the prices are in
[What it costs](#what-it-costs). A row that was not delivered, a duplicate or an empty row is never charged. Ad
text, change tracking and notifications have no event of their own. Each run also has Apify's small start event.

In a tracked run:

- every delivered `ad` row is one `ad` event, whether it is `new`, `first_seen`, `still_running` or `stopped`;
- with `onlyChanges`, only the `new`, `first_seen` and `stopped` rows delivered are charged; the ads still running that were
  checked are not;
- every tracked run delivers and charges one `advertiser-report` per advertiser, even when nothing changed: it
  covers the cost of the sweep.

Example: a tracked run lists 300 ads shown in the window, from 2 advertisers. 12 of them are new (the other 288
are still running), and 3 remembered ads are no longer listed (stopped).

- Without `onlyChanges`: 300 + 3 = **303 `ad` events and 2 `advertiser-report` events**.
- With `onlyChanges: true`: 12 + 3 = **15 `ad` events and 2 `advertiser-report` events**.

# Actor input Schema

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

Advertiser website domains, e.g. nike.com. Lists the ads Google shows for each domain.

## `searchTerms` (type: `array`):

Advertiser or brand names, up to 100 characters each. Each term is resolved from Google's suggestions to the advertisers whose name contains the term as a whole word (for nike: 'Nike, Inc.', not 'Nikena'; a domain with a short ending, such as nike.com or nike.com.br, also matches by its name part, while other terms with dots, such as dr.oetker, match only as a whole), verified ones with the most ads first, up to 'Max advertisers per search term'. In ads mode the domain whose name equals the term (nike.com for nike) is listed first when Google suggests it, and only when there is neither such a domain nor a matching name are the closest suggested names listed instead. In advertiser-check mode no domain is used, so whenever no name matches, the rows are the closest suggested names. Matches are by name, so they can be other companies or people with the same name, and what is delivered for them is charged. In ads mode the status message and the run log say what was listed; in advertiser-check mode the rows themselves show which advertisers were used. For exact control, give a domain or an advertiser ID instead.

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

Advertiser IDs as shown in the Transparency Center: AR followed by digits, e.g. AR18378488041124659201.

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

Links copied from adstransparency.google.com: an advertiser page (/advertiser/AR...), a single ad page (/advertiser/AR.../creative/CR...) or a page with ?domain=...

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

ads: list the ads of every target. advertiser-check: one row per advertiser found for each search term, domain or advertiser ID, saying whether it advertises (single ad URLs are not supported in this mode).

## `maxAdsPerTarget` (type: `integer`):

Stop listing a domain or an advertiser after this many ads. For a search term, it applies to each domain or advertiser the term is resolved to.

## `maxAdvertisersPerSearchTerm` (type: `integer`):

How many domains and advertisers a search term is resolved to. The domain whose name equals the term, when Google suggests it, counts as one; the rest are the suggested advertisers whose name contains the term as a whole word, verified ones with the most ads first (Google suggests at most 10). A domain or advertiser that another target of the run already lists is not listed again, but still uses one of these places. 'Max ads per target' applies to each one: with the defaults a search term can deliver up to 3 × 200 = 600 ads.

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

Where the ads were shown: anywhere, a two-letter country code (e.g. US, MX) or an English country name.

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

Only ads of this format.

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

Only ads shown on or after this date.

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

Only ads shown on or before this date.

## `platforms` (type: `array`):

Only ads shown on these Google platforms. Leave empty for all platforms.

## `politicalOnly` (type: `boolean`):

Only political (election) ads. These rows also carry impressions, spend and the regions where they were shown.

## `includeDetails` (type: `boolean`):

Also deliver one ad-detail row per ad: the regions where it was shown with impressions per platform, its variants, EU impressions and topic. One extra request per ad.

## `downloadAssets` (type: `boolean`):

Store each ad's image (or its preview script when it has no image) in the run's key-value store and deliver one asset row per stored file.

## `extractText` (type: `boolean`):

Add the text of each ad (headline, description, display URL and all the text read) to its row, read from the ad's preview; a YouTube video ad gets its video ID, link and title. The text ads that Google serves as an image can also be read with OCR.

## `ocr` (type: `boolean`):

Read the text ads that Google serves as an image (most search ads are) with OCR, inside the run. Image and video ads are not read with OCR. Has no effect when 'Extract ad text' is off.

## `trackingName` (type: `string`):

Turn on change tracking and name it, for example nike-watch (1 to 60 characters: letters, digits, spaces, - and \_; spaces become -). The run looks only at the ads shown in the last N days ('Tracking window'), so do not set 'Shown from' or 'Shown until'. Each run compares those ads with the previous run of the same name and delivers every ad as new, still_running or stopped; each delivered row is charged as one ad, and there is also one charged report per advertiser. Use the same name, region, format, platforms, political setting and window on every run. Left empty, nothing is tracked. Ads mode only.

## `onlyChanges` (type: `boolean`):

Deliver only the ads that are new, seen for the first time or stopped. Ads still running are not delivered and not charged. Needs a tracking name.

## `trackingWindowDays` (type: `integer`):

With a tracking name, only ads shown in the last this many days are listed; an ad that no longer shows in that window counts as stopped.

## `slackWebhookUrl` (type: `string`):

Send a summary of the changes to this Slack incoming webhook (https://hooks.slack.com/...). Needs a tracking name.

## `discordWebhookUrl` (type: `string`):

Send a summary of the changes to this Discord webhook (https://discord.com/api/webhooks/...). Needs a tracking name.

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

POST a JSON summary of the changes to this https URL (port 443, no credentials in the URL). Needs a tracking name.

## `advertiserReport` (type: `boolean`):

Deliver one charged report row per advertiser with its ad counts, formats, Google's ad totals per platform and top ads (and its countries with 'Include ad details'). Always on when a tracking name is set. Ads mode only.

## `reportTopAds` (type: `integer`):

How many ads each advertiser report lists.

## `proxyType` (type: `string`):

residential: a new residential IP for every request (the default). datacenter: in the last test (2026-11-11) Google answered 96% of datacenter attempts with its challenge page. none: no proxy and no retry after Google limits the IP.

## `concurrency` (type: `integer`):

How many targets are processed at the same time.

## Actor input object example

```json
{
  "domains": [
    "nike.com"
  ],
  "mode": "ads",
  "maxAdsPerTarget": 50,
  "maxAdvertisersPerSearchTerm": 3,
  "region": "anywhere",
  "format": "all",
  "politicalOnly": false,
  "includeDetails": false,
  "downloadAssets": false,
  "extractText": true,
  "ocr": true,
  "onlyChanges": false,
  "trackingWindowDays": 7,
  "advertiserReport": false,
  "reportTopAds": 10,
  "proxyType": "residential",
  "concurrency": 5
}
```

# Actor output Schema

## `rows` (type: `string`):

Every row of the run (ad, ad-detail, asset, advertiser-check), each with its rowType.

## `reports` (type: `string`):

The run's advertiser reports as one JSON record. Only runs with advertiserReport or a trackingName have it.

# 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"
    ],
    "maxAdsPerTarget": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("ultramarine_freezer/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"],
    "maxAdsPerTarget": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("ultramarine_freezer/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"
  ],
  "maxAdsPerTarget": 50
}' |
apify call ultramarine_freezer/google-ads-transparency-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ultramarine_freezer/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/79INOk1Y4kib6CxJJ/builds/ZHZY8ShQBE1l4YOh2/openapi.json
