# Google Ads Transparency Scraper - Competitor Ads by Brand (`swerve/google-ads-transparency-scraper`) Actor

See every ad a company runs on Google (Search, YouTube, Display, Shopping): give a website, brand name or advertiser id and get one row per ad with advertiser, format, first and last shown dates, days shown, countries and ad text. No login, no API key.

- **URL**: https://apify.com/swerve/google-ads-transparency-scraper.md
- **Developed by:** [Swerve](https://apify.com/swerve) (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

$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 Scraper - Competitor Ads by Brand

See **every ad a company runs on Google**: Search, YouTube, Display, Shopping and Play. Give a website, a brand name or an advertiser id and get one row per ad from the public Google Ads Transparency Center, with the advertiser, the format, the dates it ran and a link to the ad. **No login, no API key.**

### Why this scraper

- **Start from what you know.** A website (`nike.com`) returns every ad that leads to it, whichever advertiser account bought it. A brand name is matched to Google's verified advertisers and the biggest accounts are read. An advertiser id or a copied Transparency Center URL works too.
- **Filters that Google applies.** Country, format (text, image, video) and a date range are sent to Google, so you page through exactly the ads you asked for.
- **How long each ad ran.** First and last shown dates and the number of days shown on every row: the ads a competitor keeps running for months are the ones that work.
- **Optional depth.** Turn on details for the countries each ad ran in with dates per country; turn on ad content for the text of script-rendered ads and the YouTube video behind every video ad. Ads Google serves as an image always carry the image URL.
- **All of them.** Big brands have tens of thousands of ads. The scraper pages to the end unless you set a cap, and tells you Google's own estimate of the total.

### Use cases

- Competitor research: which messages, offers and formats a rival is running right now, and for how long
- Creative inspiration and swipe files for search and YouTube ads
- Agencies: audit a prospect's Google advertising before a pitch
- Monitoring: run daily with a date filter to catch new ads from the brands you track
- Market maps: which advertisers are active in a country for a set of domains

### Input

| Field | What it does | Example |
|-------|--------------|---------|
| **Websites** | Every ad leading to the domain. | `nike.com` |
| **Brand or company names** | Matched to verified advertiser accounts, biggest first. | `HelloFresh` |
| **Advertiser IDs or URLs** | An `AR…` id or a Transparency Center URL. | `AR17410177287600472065` |
| **Country** | Two-letter code; blank = anywhere. | `US`, `IL` |
| **Ad format** | Any, text, image or video. | `video` |
| **Shown on or after / before** | Date range, YYYY-MM-DD. | `2026-10-01` |
| **Max ads per website / advertiser** | Blank = all. | `200` |
| **Include where and when each ad ran** | Countries with dates per country, variant count. Slower. | off |
| **Include the ad's content** | Text of script-rendered ads and the YouTube video of video ads. Slower. | off |

### Output

One row per ad:

```json
{
  "creativeId": "CR15759396136252604417",
  "advertiserId": "AR18378488041124659201",
  "advertiserName": "Nike Retail BV",
  "adUrl": "https://adstransparency.google.com/advertiser/AR18378488041124659201/creative/CR15759396136252604417",
  "domain": "nike.com",
  "format": "text",
  "firstShown": "2026-11-02",
  "lastShown": "2026-11-22",
  "daysShown": 21,
  "previewUrl": "https://displayads-formats.googleusercontent.com/ads/preview/content.js?...",
  "imageUrl": null,
  "adText": "www.nike.com/ | Nike Black Friday Days - Preparati a un grande inizio",
  "adTextLines": ["www.nike.com/", "Nike Black Friday Days - Preparati a un grande inizio"],
  "youtubeVideoId": null,
  "youtubeUrl": null,
  "regions": [{ "country": "IT", "regionId": 2380, "firstShown": "2026-11-02", "lastShown": "2026-11-22" }],
  "regionCount": 1,
  "variantCount": 7,
  "searchedFor": "nike.com",
  "regionFilter": null,
  "totalAdsEstimate": "50000-60000",
  "scrapedAt": "2026-11-22T09:40:00.000Z"
}
```

`adText`, `adTextLines`, `youtubeVideoId`, `youtubeUrl`, `regions`, `regionCount` and `variantCount` are filled only when the matching option is on.

### How it works

The actor talks to the same public endpoints the Google Ads Transparency Center site uses: one to match a brand name to advertiser accounts, one to list ads for a website or advertiser with your filters, and one for the details of a single ad. Ad text is read from Google's own preview of the creative. Requests rotate through proxies because Google throttles a single address quickly.

### Limits

- Google publishes dates and countries, not spend, impressions or targeting (political ads aside), so those are not in the output.
- Google serves most text and image ads as a rendered image, so those rows carry `imageUrl` rather than text. `adText` is filled for the ads Google serves as a script, and video ads get the YouTube video they play.
- The total is Google's estimate (a range), not an exact count.

### Export formats

Download results as JSON, CSV, Excel or XML, or pull them through the Apify API into your own app, spreadsheet, database or MCP client.

### Frequently asked questions

**Is this the same data as the Google Ads Transparency Center?** Yes, the same public source, in rows you can filter, export and monitor.

**Can I see a competitor's ad spend?** No. Google does not publish spend for commercial ads.

**How do I track new ads?** Schedule the actor daily with "Shown on or after" set to yesterday.

**Is scraping it legal?** The Transparency Center is public information Google publishes for transparency. You are responsible for how you use it; review Google's terms and your local laws before large-scale use.

### Pricing

Pay per ad returned.

# Actor input Schema

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

The simplest way: the website the ads lead to. Returns every ad Google lists for that domain, whoever the advertiser account is. Examples: nike.com, hellofresh.de, monday.com

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

A name is matched to Google's verified advertisers (a brand often has several legal entities, e.g. Nike Retail BV, NIKE, Inc.) and the ads of the best matches are returned. Examples: HelloFresh, Wix, Fiverr

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

An advertiser id (starts with AR) or a URL copied from adstransparency.google.com, e.g. AR17410177287600472065 or https://adstransparency.google.com/advertiser/AR17410177287600472065

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

Two-letter country code, e.g. US, GB, IL, DE. Leave blank for ads shown anywhere.

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

Text ads (Search), image ads (Display, Shopping) or video ads (YouTube).

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

Only ads shown on or after this date, YYYY-MM-DD.

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

Only ads shown on or before this date, YYYY-MM-DD.

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

How many of the matching advertiser accounts to read for each brand name, biggest first. Default 3.

## `maxAdsPerSearch` (type: `integer`):

A big brand can have tens of thousands of ads. Leave blank to take all of them, or set a cap.

## `maxItems` (type: `integer`):

Optional overall cap for the run. Leave blank for everything.

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

One extra request per ad: the countries it was shown in with first and last date per country, and how many variants the ad has. Slower.

## `includeAdText` (type: `boolean`):

Reads Google's preview of each ad that has one: the visible text (headline, description, display URL) of script-rendered ads and the YouTube video of video ads. Ads Google serves as an image already carry imageUrl without this option. One extra request per previewed ad, so a run is slower.

## `proxyConfiguration` (type: `object`):

The Transparency Center answers datacenter proxies, so the cheap Apify datacenter pool is the default.

## Actor input object example

```json
{
  "domains": [
    "nike.com"
  ],
  "queries": [],
  "advertiserIds": [],
  "adFormat": "any",
  "maxAdvertisersPerQuery": 3,
  "maxAdsPerSearch": 200,
  "includeDetails": false,
  "includeAdText": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All ad rows (JSON). Append ?format=csv for CSV.

# 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"
    ],
    "queries": [],
    "advertiserIds": [],
    "maxAdsPerSearch": 200,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("swerve/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"],
    "queries": [],
    "advertiserIds": [],
    "maxAdsPerSearch": 200,
    "proxyConfiguration": { "useApifyProxy": True },
}

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

```

## MCP server setup

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