# Google Ads Transparency Scraper: Ad Library & Competitor Ads (`data-for-agents/google-ads-transparency-scraper`) Actor

Search, Display and YouTube ads from Google's Ads Transparency Center by website or advertiser ID, one row per ad: advertiser, format, first and last shown, days running, preview and ad link. $0.50 per 1,000 ads; errors free. Filters: region, format, active now, days running. No login.

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

## Pricing

$0.50 / 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

### What it returns

One row per ad from Google's **Ads Transparency Center** (Search, Display, YouTube and other Google ads): advertiser name and ID, format (text, image, video), first and last day shown, days running, days shown, whether it is running now, a preview link and a link to the ad. Search by website, by advertiser ID, or paste any Ads Transparency Center link. No login, no API key.

**Price: $0.50 per 1,000 ads.** Charged once per ad row. Error rows, ads your filters remove, skipped ads and repeats are free. No start fee.

Measured on Apify: 40 ads for one website in about 20 s; 41 websites (511 ads) in about 1 minute.

### Example input

```json
{ "domains": ["zapier.com"], "region": "US", "maxAds": 40 }
```

### Example output

```json
{
  "status": "ok",
  "creative_id": "CR05759093523760545793",
  "ad_url": "https://adstransparency.google.com/advertiser/AR07656268315995668481/creative/CR05759093523760545793?region=US",
  "advertiser_id": "AR07656268315995668481",
  "advertiser_name": "Zapier, Inc",
  "domain": "zapier.com",
  "format": "text",
  "first_shown": "2025-04-25",
  "last_shown": "2026-11-17",
  "days_running": 571,
  "days_shown": 573,
  "is_active": true,
  "preview_url": "https://tpc.googlesyndication.com/archive/simgad/8447520889899304000",
  "preview_type": "image",
  "region": "US"
}
```

### Input

| Field | What it does |
|---|---|
| `domains` | Websites: every advertiser whose ads point there. Up to 100 searches in total across the three lists. |
| `advertiserIds` | Google advertiser IDs (AR...): every ad of one advertiser. |
| `urls` | Advertiser links (`/advertiser/AR...`) or website-search links (`?domain=...`); their filters are kept. Links to a single ad are not accepted. |
| `region` | Two-letter code (US, GB...) or anywhere. Default anywhere. |
| `maxAds` | Ads per search, 1 to 5,000. Default 100. |
| `format` | all, text, image or video. |
| `activeOnly` | Only ads shown in the last 2 days. |
| `minDaysRunning`, `maxDaysRunning` | Only ads that ran at least / at most this many days, e.g. 60+ for proven ads. |
| `excludeAdIds` | Creative IDs (CR...) you already have: skipped, never charged. Entries that are not CR... IDs get a free error row. |
| `dedupe` | `ad` (default): an ad found by several searches comes once, charged once. `none`: every search returns all its ads. |

Filtered and skipped ads are free.

### Limits

- Google shows text ads as images: the row gives the preview image, not the words as text.
- The Transparency Center searches by advertiser and website, not by keyword in the ad.
- Preview links are Google's and may stop working for ads Google removes.
- Deep searches take time: Google sends 40 ads a page, a few seconds each. At the default 2,048 MB, searches with `maxAds` of 1,000 run one after another (3 advertisers x 1,000 ads took 11 minutes); more memory runs more at once.

### Errors

Every error is a row with `status: "error"`, an `error_code` and a sentence saying what to do. Error rows are free.

| error_code | Meaning | Retry helps |
|---|---|---|
| `missing_input`, `invalid_input` | The input or one entry cannot be used | No, fix the input |
| `no_data` | No ads for this search and filters | No, change filters |
| `blocked`, `rate_limited` | Google refused the request | Later |
| `timeout`, `network_error`, `proxy_error` | The page did not load in time | Yes |
| `partial_result` | Fewer ads than asked; the ones returned are complete | Sometimes |
| `site_changed` | The page no longer has the known shape | No, the Actor needs an update |
| `low_memory` | The browser ran out of memory | Run with more memory |
| `cost_limit` | Your maximum charge was reached | Raise the limit |
| `run_timeout` | The run's time limit was reached before a search | Give more time |
| `internal_error` | A bug on our side | Report it |

### FAQ

**Is it legal?** It reads Google's public Ads Transparency Center, which anyone can open without an account. You are responsible for following Google's terms and the law where you use the data.

**Personal data?** Rows hold advertiser business names and ad links. If you store or use personal data you need a lawful basis, such as one under GDPR.

# Changelog

This Actor's version history is a separate document: https://apify.com/data-for-agents/google-ads-transparency-scraper/changelog.md

# Actor input Schema

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

Websites whose Google ads you want: every advertiser whose ads point there. Example: zapier.com. Up to 100 searches in total across websites, advertiser IDs and links.

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

Google advertiser IDs (AR...) from an Ads Transparency Center link, to get all ads of one advertiser. Example: AR07656268315995668481.

## `urls` (type: `array`):

Advertiser links (/advertiser/AR...) or website-search links (?domain=...) copied from adstransparency.google.com; their own filters are kept. Links to a single ad are not accepted. Example: https://adstransparency.google.com/advertiser/AR07656268315995668481?region=US

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

Where the ads were shown: a two-letter country code such as US or GB, or anywhere.

## `maxAds` (type: `integer`):

Stop each search after this many ads. Each ad is charged; one page of results is 40 ads.

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

Only ads of this format: all, text, image or video.

## `activeOnly` (type: `boolean`):

On: only ads Google showed in the last 2 days. Others are skipped and not charged.

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

Only ads that ran at least this many days from first to last shown, for example 60 for proven ads. Shorter ads are skipped and not charged. 0: no minimum.

## `maxDaysRunning` (type: `integer`):

Only ads that ran at most this many days, for example 14 for new ads. Longer ads are skipped and not charged. 0: no maximum.

## `excludeAdIds` (type: `array`):

Creative IDs (CR...) you already have. They are skipped and not charged. Entries that are not CR... IDs are reported in a free error row and ignored.

## `dedupe` (type: `string`):

ad (default): an ad found by several searches is returned and charged once. none: every search returns all its ads.

## Actor input object example

```json
{
  "domains": [
    "zapier.com"
  ],
  "region": "US",
  "maxAds": 40,
  "format": "all",
  "activeOnly": false,
  "minDaysRunning": 0,
  "maxDaysRunning": 0,
  "dedupe": "ad"
}
```

# Actor output Schema

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

Every row: ads (status ok) and free error rows (status error).

## `summary` (type: `string`):

Counts by status and error_code.

# 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": [
        "zapier.com"
    ],
    "region": "US",
    "maxAds": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("data-for-agents/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": ["zapier.com"],
    "region": "US",
    "maxAds": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("data-for-agents/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": [
    "zapier.com"
  ],
  "region": "US",
  "maxAds": 40
}' |
apify call data-for-agents/google-ads-transparency-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,data-for-agents/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/NHSyw6KubyaxzdgJw/builds/u1hBd0hImNtXimGzS/openapi.json
