# Google Ads Transparency Scraper (`sharkinho/google-ads-transparency-scraper`) Actor

Scrape the Google Ads Transparency Center: every ad an advertiser or domain runs on Search, YouTube, Display, Play and Maps, with ad text, format, first/last shown dates, regions and preview links. Also finds advertisers by name or domain. Plain HTTP, pay per ad.

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

## Pricing

Pay per event

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 Center Scraper

Scrape the **[Google Ads Transparency Center](https://adstransparency.google.com/)** for any advertiser or website. You get every ad Google shows publicly: **headline, description, sitelinks, display URL**, image and **YouTube video**, **first shown / last shown dates**, **regions**, **platforms** (Search, YouTube, Maps, Play, Shopping), impression ranges, targeting types, who paid for the ad, and a link to the ad in the Transparency Center.

A second mode does **advertiser search**: type a name keyword and get the matching advertisers with their ID, verified status, country and number of ads.

It talks to the Transparency Center's own JSON API over plain HTTP, with no browser. That makes it fast and cheap: **$1.50 per 1,000 ads, details and ad text included**.

### What you can use it for

- **Competitor ad research**: see every search, display and video ad a competitor runs, in which countries, and since when.
- **Ad copy inspiration**: collect real headlines and descriptions from the top advertisers in your niche.
- **Agency pitches and audits**: show a prospect what their competitors run on Google Search and YouTube.
- **Brand monitoring**: see which advertiser accounts run ads that point to a domain.
- **Market mapping**: find the advertiser accounts behind a brand name, with their ad volume.

### Input

| Field | What it does |
|---|---|
| `mode` | `ads` (default) or `advertisers` (advertiser search by name keyword) |
| `queries` | One per line. Any mix of **advertiser names** (`Nike, Inc.`), **advertiser IDs** (`AR16735076323512287233`), **domains** (`nike.com`), and **Transparency Center URLs** (advertiser page, single ad page, or `?domain=` search). Filters in a URL (region, format, platform, dates) are respected. |
| `region` | 2-letter country code (`US`, `GB`, `DE`, `BR`…) or `anywhere` |
| `adFormat` | `all`, `text`, `image`, `video` |
| `platform` | `all`, `search`, `youtube`, `play`, `maps`, `shopping` |
| `startDate` / `endDate` | Only ads shown in this window (YYYY-MM-DD) |
| `maxAdsPerQuery` | Ads per line (default 20, `0` = all) |
| `maxAdvertisersPerName` | For names: how many matching advertiser accounts to scrape (best match first) |
| `includeAdDetails` | Regions, per-region dates, platforms, impressions, targeting, payer (default on) |
| `extractAdText` | Headline, description, sitelinks, display URL, YouTube video ID (default on) |
| `proxy` | Apify datacenter proxy by default. It works well here; switch to residential only if you see blocking. |

Example:

```json
{
    "queries": ["nike.com", "AR16735076323512287233", "Adidas"],
    "region": "US",
    "adFormat": "all",
    "platform": "all",
    "maxAdsPerQuery": 100
}
```

Only YouTube video ads shown in Germany since January:

```json
{ "queries": ["nike.com"], "region": "DE", "adFormat": "video", "platform": "youtube", "startDate": "2026-01-01" }
```

Advertiser search:

```json
{ "mode": "advertisers", "queries": ["nike", "booking"], "maxAdvertisers": 50 }
```

An empty input `{}` runs a small demo: 20 ads for `nike.com`.

### Output

One flat JSON object per ad:

```json
{
  "adId": "CR07254791283019874305",
  "advertiserId": "AR18378488041124659201",
  "advertiserName": "Nike Retail BV",
  "payerName": "Nike Retail BV",
  "isAdvertiserVerified": true,
  "format": "TEXT",
  "firstShown": "2025-10-22",
  "lastShown": "2026-11-22",
  "daysShown": 397,
  "regions": ["PL", "DK", "HU", "CH", "ES", "AT", "DE", "FR"],
  "regionCount": 17,
  "platforms": ["GOOGLE_SEARCH", "GOOGLE_MAPS", "GOOGLE_SHOPPING"],
  "platformsSource": "reported",
  "headline": "Nike Black Friday Days laufen - Bis 40% auf ausgewählte Styles",
  "description": "Die Nike Black Friday Days sind da. Bis zu 40 % auf ausgewählte Styles. Ende: 1. Dezember.",
  "adTexts": ["nike.com", "Nike Black Friday Days laufen - Bis 40% auf ausgewählte Styles", "..."],
  "sitelinks": [],
  "displayUrl": "nike.com",
  "landingDomain": "nike.com",
  "imageUrl": "https://tpc.googlesyndication.com/simgad/1672928408929562047",
  "imageUrls": ["https://tpc.googlesyndication.com/simgad/1672928408929562047"],
  "videoId": null,
  "videoUrl": null,
  "previewScriptUrl": "https://displayads-formats.googleusercontent.com/ads/preview/content.js?...",
  "variationCount": 2,
  "impressionsMin": 100000,
  "impressionsMax": 140000,
  "targeting": ["demographics:included", "geography:included", "contextual:included"],
  "regionStats": [{ "region": "PL", "regionName": "Poland", "firstShown": null, "lastShown": "2026-11-21", "impressionsMin": 9000, "impressionsMax": 10000, "platforms": ["GOOGLE_SEARCH"] }],
  "adUrl": "https://adstransparency.google.com/advertiser/AR18378488041124659201/creative/CR07254791283019874305?region=anywhere",
  "url": "https://adstransparency.google.com/advertiser/AR18378488041124659201/creative/CR07254791283019874305?region=anywhere",
  "query": "nike.com",
  "queryType": "domain",
  "scrapedAt": "2026-11-22T08:57:12.000Z"
}
```

Advertiser search mode returns `advertiserId`, `advertiserName`, `country`, `isVerified`, `adsCountMin`, `adsCountMax`, `relatedDomains`, `source`, `url`, `query` and `scrapedAt`.

The dataset has an **Overview** table view with image previews, and an **Advertisers** view for advertiser search.

### Pricing

Pay per result, no subscription:

- **$0.0015 per ad** ($1.50 per 1,000). Details and ad text are included, with no extra events.
- **$0.0015 per advertiser** in advertiser search mode.

You only pay for results saved to the dataset. Set **Maximum cost per run** in the run options and the scraper stops cleanly when it reaches that amount.

### How it works and what to expect

- Data comes straight from the Transparency Center's own API, the same one its web page uses. Nothing is guessed, except where a field says so (`platformsSource: "inferred"`).
- **Ad text.** Google keeps many ads as a live preview. For those, the scraper reads the headline, description, sitelinks and display URL. Many older **text ads are archived only as screenshots**. Those have no extractable text, but `imageUrl` gives you the screenshot. In our test of 300 ads from a large US advertiser, about 70% had extractable text.
- **Platforms.** Google publishes per-platform data only for some regions (mainly the EU/EEA). When it's missing, `platforms` comes from your platform filter or is inferred from the format (text → Search, video → YouTube). `platformsSource` tells you which: `reported`, `filter` or `inferred`.
- **Impressions** are ranges and are published only for some regions.
- **Date filter.** The Transparency Center's date filter covers roughly the last 12 months.
- **Landing domain.** Filled for domain searches and when the ad preview shows a display URL.
- **Speed.** About 1.5–3 ads per second with details and text (300 ads took about 3 minutes in our test). Turn off `extractAdText` or `includeAdDetails` to go faster.
- **Reliability.** Retries with exponential backoff, proxy session rotation when Google rate-limits, and hard request timeouts. One failing ad or query never fails the whole run.

### FAQ

**How do I find an advertiser ID?** Open the advertiser on adstransparency.google.com. The ID (`AR…`) is in the URL. You can also paste that URL, the advertiser's name, or their website domain.

**A name matched the wrong company.** Names are matched against Google's advertiser suggestions (exact name first, then verified accounts with the most ads). Use the domain or the `AR…` ID to be exact, or raise `maxAdvertisersPerName` to include more accounts.

**Advertiser search returned nothing.** Advertiser search matches advertiser *names* (for example "nike" or "booking"), not topics like "running shoes". This is how the Transparency Center search works.

**Is this legal?** The Transparency Center is a public Google service created so anyone can see who advertises and what they show. The scraper collects only this public, commercial advertising information and no personal contact data. Check your own legal requirements for how you use the data.

**Political ads?** This actor targets commercial ads. Political-specific fields (spend, candidate) aren't extracted.

### Limits

- At most what Google shows in the Transparency Center. Some ads have no preview or text.
- Big brands have tens of thousands of ads. Use `maxAdsPerQuery`, filters and a cost limit.

# Actor input Schema

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

ads: get the ads of advertisers / domains. advertisers: search advertisers by keyword (ID, name, country, verification, number of ads).

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

One per line. Ads mode accepts: advertiser names ("Nike, Inc."), advertiser IDs (AR16735076323512287233), website domains (nike.com), and Transparency Center URLs (advertiser pages, single ad pages, or ?domain= searches). Advertiser search mode: keywords.

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

2-letter country code such as US, GB, DE, BR, or "anywhere" for all countries.

## `adFormat` (type: `string`):

Text, image or video ads. "all" = no format filter.

## `platform` (type: `string`):

Google surface where the ad ran. These are the platform filters the Transparency Center supports.

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

Only ads shown on or after this date. The Transparency Center date filter covers roughly the last 12 months.

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

Only ads shown on or before this date.

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

Maximum ads to save for each line in the list. 0 = all ads (big brands have tens of thousands).

## `maxAdvertisersPerName` (type: `integer`):

When you give a name, how many matching advertiser accounts to scrape (best match first). Example: "Nike" matches Nike, Inc. and Nike Retail BV.

## `maxAdvertisers` (type: `integer`):

Advertiser search mode only: maximum advertisers to return per keyword. 0 = up to 1,000.

## `includeAdDetails` (type: `boolean`):

Loads the detail page of each ad. Same price, slightly slower.

## `extractAdText` (type: `boolean`):

Reads the ad preview to get headline, description, sitelinks, display URL and YouTube video ID where Google provides a live preview. Older text ads archived only as screenshots have no extractable text (their image URL is still returned).

## `maxConcurrency` (type: `integer`):

Ads processed in parallel. The default of 10 is fast and gentle on the source.

## `proxy` (type: `object`):

Apify datacenter proxy works well for this source. Switch to residential only if you see blocking.

## Actor input object example

```json
{
  "mode": "ads",
  "queries": [
    "nike.com"
  ],
  "region": "anywhere",
  "adFormat": "all",
  "platform": "all",
  "maxAdsPerQuery": 20,
  "maxAdvertisersPerName": 1,
  "maxAdvertisers": 20,
  "includeAdDetails": true,
  "extractAdText": true,
  "maxConcurrency": 10,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

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

No description

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

No description

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

No description

# API

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

## JavaScript example

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

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

// Prepare Actor input
const input = {
    "queries": [
        "nike.com"
    ],
    "maxAdsPerQuery": 20,
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("sharkinho/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 = {
    "queries": ["nike.com"],
    "maxAdsPerQuery": 20,
    "proxy": { "useApifyProxy": True },
}

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

```

## MCP server setup

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