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

Get every ad a company runs on Google (Search, YouTube, Display) from the official Ads Transparency Center: by domain, advertiser name or ID, with region and format filters. Pay per ad.

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

## Pricing

from $1.15 / 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 Domain, Name or ID

See **every ad a company runs on Google** (Search, YouTube, Display, Shopping) using Google's official [Ads Transparency Center](https://adstransparency.google.com/). Enter a website domain, an advertiser name or a Google advertiser ID and get a flat table of ads with format, first and last shown dates, image and preview links.

- Search by **domain** (`nike.com`), **advertiser name** (`Patagonia`) or **advertiser ID** (`AR…`).
- Filter by **country** (89 countries) and **ad format** (text, image, video).
- Optional **ad details**: number of variations, all image URLs, countries where the ad ran, and impression ranges where Google publishes them.
- No login, no API key, no cookies.

### Use cases

- Competitor research: what creatives a competitor runs right now and since when.
- Creative inspiration and ad-copy benchmarking for agencies.
- Brand protection: find who advertises on your brand domain.
- Monitoring: schedule daily runs and compare `lastShown` to see which ads are still live.

### Input

| Field | Type | Description |
|---|---|---|
| `searchTerms` | list of strings | Domains, advertiser names or advertiser IDs, one per line |
| `region` | country code or `anywhere` | Only ads shown in this country |
| `adFormat` | `all` · `text` · `image` · `video` | Format filter |
| `maxAdsPerSearch` | integer (1–10,000, default 100) | Ads per line (per matched advertiser for names) |
| `advertisersPerName` | integer (1–10, default 1) | For names: how many matching advertisers to scrape. Same name first (ignoring case, punctuation and "Inc./LLC/GmbH…"), then the advertisers with the most ads |
| `includeDetails` | boolean (default `false`) | Load the detail of each ad (one extra request per ad) |
| `proxyConfiguration` | proxy | Apify Proxy recommended |

Example:

```json
{
    "searchTerms": ["nike.com", "Patagonia", "AR13494478831020408833"],
    "region": "US",
    "adFormat": "all",
    "maxAdsPerSearch": 100,
    "includeDetails": false,
    "proxyConfiguration": { "useApifyProxy": true }
}
```

### Output

| Field | Description |
|---|---|
| `searchTerm` | The line of your input this ad belongs to |
| `region` | Country filter used (`anywhere` if none) |
| `advertiserId`, `advertiserName` | Verified advertiser identity from Google |
| `advertiserDomain` | Advertiser domain when the search was by domain |
| `creativeId` | Google creative ID |
| `format` | `TEXT`, `IMAGE` or `VIDEO` |
| `firstShown`, `lastShown` | First and last time the ad was shown (ISO 8601, UTC) |
| `imageUrl` | Image of the ad when Google stores one. For text ads this is Google's rendered picture of the ad |
| `previewUrl` | Image URL or Google's preview script URL for HTML/video ads |
| `adUrl` | Link to the ad on the Ads Transparency Center |
| `scrapedAt` | Collection time |

With `includeDetails`: `variationsCount`, `imageUrls` (space-separated), `shownRegions` (comma-separated country codes), `impressionsMin`, `impressionsMax`, `detailsFirstShownDate`, `detailsLastShownDate`. Google publishes impression ranges only for some regions (mainly the EU); elsewhere these fields are `null`.

Example row (real data from a test run):

```json
{
    "searchTerm": "nike.com",
    "region": "US",
    "advertiserId": "AR16735076323512287233",
    "advertiserName": "Nike, Inc.",
    "advertiserDomain": "nike.com",
    "creativeId": "CR16536307204148428801",
    "format": "TEXT",
    "firstShown": "2026-11-15T05:03:19.000Z",
    "lastShown": "2026-11-19T08:06:53.000Z",
    "imageUrl": "https://tpc.googlesyndication.com/archive/simgad/12484147762846101113",
    "adUrl": "https://adstransparency.google.com/advertiser/AR16735076323512287233/creative/CR16536307204148428801?region=US",
    "variationsCount": 6,
    "shownRegions": "US",
    "detailsLastShownDate": "2026-11-19"
}
```

See `sample_output.json` in the source for 20 complete rows.

### Pricing

Pay per result: **$1.15 per 1,000 ads** ($0.00115 per ad), detail data included at no extra charge. You pay only for ads saved to your dataset. Set "Maximum cost per run" and the Actor stops cleanly at your budget.

### Reliability

- Uses the same public endpoints as the Ads Transparency Center website, with a real-browser HTTP fingerprint.
- Automatic retries with exponential backoff; on rate limiting (HTTP 429) it starts a new session and, with Apify Proxy, a new IP.
- One failing line never fails the whole run: collected ads are kept and problems are listed in the `FAILURES` record of the key-value store.

### FAQ

**Domain or name – which is better?** A domain returns ads that link to that site, from every advertiser account. A name or ID returns ads of one verified advertiser account, wherever they link.

**Why does Google show "about 8000-9000 ads" but I get fewer?** The run stops at `maxAdsPerSearch`. Raise it to get more; the log shows Google's own estimate for each search.

**Can I get the ad text (headline, description)?** Text ads come as Google's rendered image of the ad (`imageUrl`) plus the preview link; the text itself is not exported as separate fields in this version.

**Is it legal?** The Actor reads data that Google publishes for public transparency and contains no personal data. You are responsible for using it in line with applicable law and Google's terms.

# Actor input Schema

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

One per line: an advertiser website domain (nike.com), an advertiser name (Patagonia) or a Google advertiser ID (AR0123...). Names are matched with Google's own advertiser search.

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

Only ads shown in this country. "Anywhere" returns ads from all regions.

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

Filter by ad format.

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

How many ads to save for each line above (for names: for each matched advertiser).

## `advertisersPerName` (type: `integer`):

When you enter a name, how many matching advertisers to scrape (exact name matches first, then the biggest).

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

Load each ad's detail page too: number of variations, all image URLs, regions where shown, and impression ranges where Google publishes them (mainly EU). One extra request per ad.

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

Proxy servers used for requests. Apify Proxy is recommended.

## Actor input object example

```json
{
  "searchTerms": [
    "nike.com",
    "Patagonia"
  ],
  "region": "anywhere",
  "adFormat": "all",
  "maxAdsPerSearch": 100,
  "advertisersPerName": 1,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All scraped rows in the default dataset.

# 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.com",
        "Patagonia"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

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

```

## MCP server setup

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