# Google Ads Scraper - Ads Transparency Center (`hgservices/google-ads-scraper`) Actor

Scrape Google ads from the Ads Transparency Center by advertiser name, domain or ID. Get each ad's format, preview, first and last shown dates, countries and variations. Filter by 211 countries. Track competitor ads. No login needed. Export JSON, CSV, Excel.

- **URL**: https://apify.com/hgservices/google-ads-scraper.md
- **Developed by:** [Harish Garg](https://apify.com/hgservices) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 96.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 scraped ads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 does Google Ads Scraper do?

**Google Ads Scraper** extracts ads from the [Google Ads Transparency Center](https://adstransparency.google.com/), Google's public library of the ads shown on Google Search, YouTube, Google Shopping and other Google services. For any advertiser or website, it returns **each ad creative with its format, first and last shown dates, preview image, link to the ad page, and optionally the countries where it ran and all of its variations**.

Search by **advertiser name, website domain, advertiser ID, or Transparency Center URL**, and filter by **any of 211 countries**. No Google account, no login and no API key are needed.

Because it runs on the Apify platform, you get:

- **API access** to start runs and get results from any app or script
- **Scheduling** to watch competitor ads every day or week
- **Integrations** with Google Sheets, Slack, Make, Zapier, webhooks and more
- **Exports** in JSON, CSV, Excel, XML and HTML
- **AI assistant access** through the Apify MCP server, for Claude, ChatGPT and other assistants

### Why use Google Ads Scraper?

- **Competitor ad monitoring** — See every ad a competitor runs on Google, when it started and whether it is still live.
- **Creative research** — Collect the text, image and video ads of a whole industry to find messages and formats that work.
- **Market entry research** — Filter by country to see which brands advertise in a market and how long their campaigns run.
- **Brand protection** — Find ads that send users to your domain or use your brand name.
- **Agency reporting** — Build a dataset of a client's or a prospect's live ads for a pitch or an audit.
- **Compliance and academic research** — Study political, financial or health advertising with structured, dated data.

### How to scrape Google ads

1. Open Google Ads Scraper in [Apify Console](https://console.apify.com/) and go to the **Input** tab.
2. Enter what to scrape: an advertiser name (for example `Nike`), a domain (for example `nike.com`), an advertiser ID, or a Transparency Center URL. You can mix them in one run.
3. Optional: select a **Region** and set **Max ads per advertiser or domain**.
4. Optional: turn on **Include ad details** to get the countries and variations of each ad.
5. Click **Start**.
6. When the run ends, open the **Output** tab to view or download the ads.

### Input

Fill in at least one of the first four fields. All other fields are optional.

| Field | Description | Default |
|---|---|---|
| **Advertiser names** (`searchTerms`) | Brand or company names, for example `Nike` or `Booking.com`. Each name is matched to the advertiser with that name and the most ads. Names in any language work, for example `トヨタ`. | — |
| **Domains** (`domains`) | Website domains, for example `nike.com`. Returns the ads that lead to the domain, from every advertiser that runs them. | — |
| **Advertiser IDs** (`advertiserIds`) | IDs from the Transparency Center, for example `AR16735076323512287233` (Nike, Inc.). Use an ID to pick one exact advertiser. | — |
| **Transparency Center URLs** (`startUrls`) | Advertiser pages or domain searches copied from adstransparency.google.com. A region in the URL is used for that URL. | — |
| **Region** (`region`) | Two-letter country code, for example `US`, `GB` or `DE`, or `anywhere` for all countries. | `anywhere` |
| **Max ads per advertiser or domain** (`maxAds`) | The most ads to save for each advertiser or domain, most recently shown first. `0` saves all ads. | `100` |
| **Advertisers per name** (`maxAdvertisersPerName`) | Big brands often have one advertiser account per country. Set up to 10 to get the ads of several matching accounts. | `1` |
| **Include ad details** (`includeAdDetails`) | Also get the countries where each ad was shown and the URLs of all its variations. Slower. | `false` |

#### Input example

```json
{
    "searchTerms": ["Nike", "Zalando"],
    "domains": ["booking.com"],
    "region": "US",
    "maxAds": 200
}
```

### Output

Each ad is one item in the dataset. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel. The **Output** tab has two views: **Overview** (one row per ad) and **Regions and variations** (filled when ad details are on).

#### Output example

```json
{
    "advertiserId": "AR16735076323512287233",
    "advertiserName": "Nike, Inc.",
    "creativeId": "CR14852054805727150081",
    "format": "text",
    "adUrl": "https://adstransparency.google.com/advertiser/AR16735076323512287233/creative/CR14852054805727150081?region=US",
    "previewUrl": "https://tpc.googlesyndication.com/archive/simgad/1947416629153145120",
    "firstShown": "2023-11-16",
    "lastShown": "2026-10-07",
    "daysShown": 1057,
    "regions": [
        { "regionCode": "US", "regionName": "United States", "lastShown": "2026-09-01" }
    ],
    "variationCount": 3,
    "variationUrls": [
        "https://tpc.googlesyndication.com/archive/simgad/1947416629153145120",
        "https://tpc.googlesyndication.com/archive/simgad/1955276952464500363"
    ],
    "regionFilter": "US",
    "sourceType": "searchTerm",
    "sourceValue": "Nike",
    "scrapedAt": "2026-10-07T17:33:51+00:00"
}
```

When **Include ad details** is off, `regions`, `variationCount` and `variationUrls` are `null`. Every item has the same fields, so CSV and Excel exports always have the same columns.

The key-value store also has a **SUMMARY** record. It shows which advertiser each name matched, how many ads Google lists for each advertiser or domain, and how many the run saved.

### Data fields

| Field | Description |
|---|---|
| `advertiserId` | Transparency Center ID of the advertiser |
| `advertiserName` | Verified name of the advertiser |
| `creativeId` | ID of the ad creative |
| `format` | `text`, `image` or `video` |
| `adUrl` | Link to the ad's page in the Transparency Center |
| `previewUrl` | Preview image of text and image ads, or the preview link of video ads |
| `firstShown` | Date the ad was first shown (YYYY-MM-DD) |
| `lastShown` | Date the ad was last shown (YYYY-MM-DD) |
| `daysShown` | Days from first to last shown, both included |
| `regions` | Countries where the ad was shown, with the last date in each (ad details) |
| `variationCount` | Number of variations of the ad (ad details) |
| `variationUrls` | Preview links of all variations (ad details) |
| `regionFilter` | Country filter used, or `anywhere` |
| `sourceType` | Input field that found the ad: `searchTerm`, `domain`, `advertiserId` or `startUrl` |
| `sourceValue` | Input value that found the ad |
| `scrapedAt` | Time of the run (UTC) |

### How to use Google Ads Scraper

#### Apify Console (no code)

Open the Actor, fill in the **Input** tab, and click **Start**. To run it again on a schedule, click **Schedule** on the run page, or open [Schedules](https://console.apify.com/schedules).

#### Apify API (HTTP)

Get your API token in [Console → Settings → API & Integrations](https://console.apify.com/settings/integrations). This request runs the Actor and returns the ads when the run ends:

```bash
curl -X POST "https://api.apify.com/v2/acts/hgservices~google-ads-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
        "searchTerms": ["Nike"],
        "region": "US",
        "maxAds": 50
    }'
```

For long runs, start the run with `POST /v2/acts/hgservices~google-ads-scraper/runs` and read the results from the run's default dataset. See the [Apify API reference](https://docs.apify.com/api/v2).

#### JavaScript (Node.js)

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

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });

const run = await client.actor('hgservices/google-ads-scraper').call({
    domains: ['booking.com'],
    region: 'GB',
    maxAds: 200,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const ad of items) {
    console.log(ad.advertiserName, ad.format, ad.firstShown, ad.lastShown, ad.adUrl);
}
```

#### Python

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

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("hgservices/google-ads-scraper").call(run_input={
    "searchTerms": ["Adidas"],
    "maxAdvertisersPerName": 3,
    "region": "DE",
    "maxAds": 100,
})

for ad in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(ad["advertiserName"], ad["format"], ad["firstShown"], ad["lastShown"], ad["adUrl"])
```

#### AI assistants: Claude, ChatGPT and others (MCP)

Google Ads Scraper works as a tool for AI assistants through the [Apify MCP server](https://mcp.apify.com/). The assistant can run the scraper, read the ads and use them in its answer.

**Claude (claude.ai or Claude Desktop)** — Go to **Settings → Connectors**, add a custom connector, and enter `https://mcp.apify.com`. Sign in to Apify when Claude asks.

**Claude Code**

```bash
claude mcp add --transport http apify https://mcp.apify.com
```

**ChatGPT** — Turn on **Developer mode** in **Settings → Apps & Connectors → Advanced settings**. Then create a connector with the MCP server URL `https://mcp.apify.com`.

**Cursor, VS Code and other MCP clients** — Add `https://mcp.apify.com` as a remote MCP server. To give the assistant only this scraper, use `https://mcp.apify.com?tools=hgservices/google-ads-scraper`.

Then ask in plain language:

> Use Google Ads Scraper to get the 50 newest Google ads of Nike in the United States, and group them by format.

> Which advertisers run Google ads that lead to booking.com in Germany? List each one with its number of ads.

> Find the Zalando ads that started in the last 30 days and summarize their messages.

### Tips for faster and cheaper runs

- **Start small.** Set **Max ads per advertiser or domain** to 10 to check that the input finds the right advertiser. Then raise it.
- **Check the match.** The run log and the SUMMARY record show which advertiser each name matched, and list other accounts with the same name. To pick one exact account, copy its advertiser ID into **Advertiser IDs**.
- **Use domains for brands that advertise under a company name.** For example, the ads of an app may run under its parent company's name. A domain search such as `temu.com` finds them all.
- **Turn on ad details only when you need them.** Details take one extra request per ad, so runs with details are much slower.
- **Filter by region** when you need one market only. The run then returns fewer, more relevant ads.
- **Set a maximum cost per run** to control your spend. When the run reaches it, the Actor stops, keeps the ads it already saved, and says so in the status message and the SUMMARY record.

### FAQ and support

#### Is it legal to scrape the Google Ads Transparency Center?

The Google Ads Transparency Center is a public website. Google publishes it so that anyone can see who advertises and what they show. This Actor collects only that public data and no personal data of users. However, you are responsible for how you use the data. If you are not sure, ask a lawyer, and read Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

#### Why did my advertiser name match a different company?

Google lists many advertisers with similar names. The Actor picks the account with the same name and the most ads, and the run log lists the other accounts. Use **Advertisers per name** to get several accounts, or use an advertiser ID or a domain to get exactly the one you want.

#### Why are some ads missing their regions?

Regions and variations are filled only when **Include ad details** is on. If Google limits the run, the remaining ads are saved without details, and the log says so. Run the Actor again a few minutes later to get them.

#### Which ad formats and countries are supported?

All formats that the Transparency Center shows: text, image and video ads. The region filter supports 211 countries and territories.

#### How far back does the data go?

The Actor returns every ad that the Transparency Center lists for the advertiser or domain, sorted by the date it was last shown. In our tests, the oldest ads were first shown in 2021. Ads that ended long ago may no longer be listed by Google.

#### I need a feature or a custom solution

Open an issue in the **Issues** tab. We read every issue and use it to improve the Actor. For a custom scraper or a data feed, contact us through the Actor page.

# Actor input Schema

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

Advertiser or brand names, for example "Nike" or "Booking.com". Each name is matched to the advertiser with that name and the most ads. Names that match no advertiser are skipped. The run log and the SUMMARY record show which advertiser each name matched.

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

Website domains, for example "nike.com". Returns the ads that lead to the domain, from every advertiser that runs them.

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

Advertiser IDs from the Google Ads Transparency Center, for example "AR16735076323512287233" (Nike, Inc.). Use an ID to pick one exact advertiser.

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

Advertiser page or domain search URLs copied from adstransparency.google.com, for example https://adstransparency.google.com/advertiser/AR16735076323512287233?region=US. A region in the URL overrides the Region field.

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

Return only ads shown in this country. Select "Anywhere" for ads from all countries.

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

The most ads to save for each advertiser or domain. Ads come in order of the date they were last shown, most recent first. Set 0 to save all ads.

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

How many advertisers to scrape for each advertiser name. Big brands often have one account per country (for example "ADIDAS DE MEXICO" and "Adidas America, Inc"). Set a higher number to get the ads of all matching accounts. The best matches come first: the same name, then names that contain all its words, then the accounts with the most ads.

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

Also get the countries where each ad was shown (with the last date in each) and the URLs of all ad variations. This makes one more request per ad, so the run is slower.

## Actor input object example

```json
{
  "searchTerms": [
    "Nike"
  ],
  "region": "anywhere",
  "maxAds": 100,
  "maxAdvertisersPerName": 1,
  "includeAdDetails": false
}
```

# Actor output Schema

## `ads` (type: `string`):

One item per ad creative.

## `adDetails` (type: `string`):

Countries and variations of each ad (when ad details are on).

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

The advertiser or domain each input matched, and how many ads were saved for 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 = {
    "searchTerms": [
        "Nike"
    ],
    "maxAds": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("hgservices/google-ads-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 = {
    "searchTerms": ["Nike"],
    "maxAds": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("hgservices/google-ads-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 '{
  "searchTerms": [
    "Nike"
  ],
  "maxAds": 100
}' |
apify call hgservices/google-ads-scraper --silent --output-dataset

```

## MCP server setup

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