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

Scrape ads from the Google Ads Transparency Center by domain, advertiser, or keyword. Filter by region, time period, format, platform, and topic.

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

## Pricing

from $0.97 / 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.
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

**Google Ads Transparency Scraper** creates a structured dataset of public ads collected from the Google Ads Transparency Center. Each dataset item is one creative and can include the advertiser id, advertiser name, creative id, format, domain, first and last shown dates, days shown, region, preview URL, and the query that found it. Query the source with a domain, advertiser id, keyword, or Transparency Center URL. Filter by region, date, format, and platform, and limit results with `maxItems`. Retrieve records through the Apify Dataset API or export them as JSON, CSV, Excel, or XML.

[![Google Ads Transparency Scraper — input to structured data](https://raw.githubusercontent.com/faizanalii/apify-actor-assets/main/google-ads-scraper/google-ads-scraper-value-demo.gif)](https://apify.com/datascrapers/google-ads-scraper)

### Dataset at a glance

| Property | Value |
|---|---|
| Source | Google Ads Transparency Center |
| Record unit | One ad creative |
| Input methods | Search query, advertiser id, or Transparency Center URL |
| Main identifiers | `creativeId`, `advertiserId`, `adUrl` |
| Delivery | Apify Dataset and API |
| Export formats | JSON, CSV, Excel, XML, RSS |
| Update model | Fresh records per Actor run |
| Pricing | $1.00 per 1,000 ads on the free plan (`dataset-item`) |

### Coverage and available records

The Actor reads the public Transparency Center. A run can start from `searchQueries`, `advertiserIds`, or `startUrls`. `searchType` accepts `auto`, `domain`, `advertiser`, or `keyword`. The default region is `US`, and the default topic is `commercial`.

Supported date filters are `any`, `last_1_day`, `last_7_days`, `last_30_days`, `last_90_days`, `last_year`, and `custom` with `startDate` and `endDate`. Format filters are `text`, `image`, and `video`. Platform filters are `play`, `maps`, `search`, `shopping`, and `youtube`.

`maxItems` at `0` means no cap. The console prefill is 50. Political ads are collected only when `topic` is `political`. The Actor does not return spend, impressions, or audience lists.

### Data dictionary

| Field | Type | Nullable | Description | Example |
|---|---|---:|---|---|
| advertiserId | string | no | Transparency Center advertiser id | AR00931916197090295809 |
| advertiserName | string | yes | Advertiser name shown on the creative | Whaleco Inc. |
| creativeId | string | no | Creative id. Use this to deduplicate ads | CR12120106527709200385 |
| format | string | yes | Creative format | IMAGE |
| domain | string | yes | Domain associated with the ad | temu.com |
| firstShownAt | string | yes | First observed show time, ISO 8601 | 2025-07-08T13:49:39+00:00 |
| lastShownAt | string | yes | Last observed show time, ISO 8601 | 2026-09-05T08:21:11+00:00 |
| daysShown | string | yes | Day count returned by the source | 367 |
| previewUrl | string | yes | Google display-ads preview URL | https://displayads-formats.googleusercontent.com/ads/preview/content.js |
| adUrl | string | yes | Transparency Center page for this creative | https://adstransparency.google.com/advertiser/AR00931916197090295809/creative/CR12120106527709200385?region=US |
| region | string | yes | Region code used for the query | US |
| regionName | string | yes | Region label | United States |
| searchQuery | string | yes | Query that produced the row | temu.com |
| topic | string | yes | `commercial` or `political` | commercial |

Deduplicate on `creativeId` within a region. The same creative can appear again when the region or query changes.

### Example dataset record

```json
{
  "advertiserId": "AR00931916197090295809",
  "advertiserName": "Whaleco Inc.",
  "creativeId": "CR12120106527709200385",
  "format": "IMAGE",
  "domain": "temu.com",
  "firstShownAt": "2025-07-08T13:49:39+00:00",
  "lastShownAt": "2026-09-05T08:21:11+00:00",
  "daysShown": "367",
  "adUrl": "https://adstransparency.google.com/advertiser/AR00931916197090295809/creative/CR12120106527709200385?region=US",
  "region": "US",
  "regionName": "United States",
  "searchQuery": "temu.com",
  "topic": "commercial"
}
```

This record came from a domain search for `temu.com` in region `US`. The long `previewUrl` is present on the stored record and is omitted here so the example stays readable.

### Query and input reference

| Input | Type | Required | Default | Accepted values | Description |
|---|---|---:|---|---|---|
| searchQueries | array | no | none | domains, names, or keywords | Search text. Prefill is `temu.com` |
| startUrls | array | no | none | Transparency Center URLs | Direct search pages |
| searchType | string | no | auto | auto, domain, advertiser, keyword | How each query is interpreted |
| advertiserIds | array | no | none | advertiser ids | Lookup by advertiser id |
| region | string | no | US | region code | Transparency Center region |
| timePeriod | string | no | any | any, last_1_day, last_7_days, last_30_days, last_90_days, last_year, custom | Date window |
| startDate | string | no | none | date | Used when `timePeriod` is custom |
| endDate | string | no | none | date | Used when `timePeriod` is custom |
| formats | array | no | none | text, image, video | Creative formats |
| platforms | array | no | none | play, maps, search, shopping, youtube | Ad platforms |
| topic | string | no | commercial | commercial, political | Ad topic |
| maxItems | integer | no | 0 | 0 or a positive integer | Cap. 0 means no cap. Prefill is 50 |
| proxyConfiguration | object | no | Apify residential | Apify proxy object | Proxy used for the request |

Minimal request:

```json
{ "searchQueries": ["temu.com"], "region": "US", "maxItems": 5 }
```

### Retrieve the data through the API

Start a run with the input JSON, wait until it finishes, then read the default dataset. Other languages are on the Actor API tab.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("datascrapers/google-ads-scraper").call(
    run_input={"searchQueries": ["temu.com"], "region": "US", "maxItems": 5}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["creativeId"], item["advertiserName"])
```

### Data quality and record handling

Each creative is one dataset item. `daysShown` is returned as text, not a number. Dates are ISO 8601 strings from the source. Missing dates stay null. The Actor does not invent spend or impression counts. Deduplicate on `creativeId`. A later run can show a newer `lastShownAt` for the same creative.

### Pricing and cost examples

One `dataset-item` charge is created for each ad saved. Platform usage is included in that price.

| Plan | Price per ad | 1,000 ads | 10,000 ads |
|---|---:|---:|---:|
| Free | $0.001 | $1.00 | $10.00 |
| Bronze | $0.00099 | $0.99 | $9.90 |
| Silver | $0.00098 | $0.98 | $9.80 |
| Gold, Platinum, Diamond | $0.00097 | $0.97 | $9.70 |

### Limitations and responsible data use

The Actor collects ads that the Transparency Center shows for the selected region, topic, and dates. Coverage changes when Google changes that catalog. This is not a historical archive unless you store the dataset yourself. Use the records in line with Google's terms and applicable privacy and advertising rules.

### Dataset questions

#### What does one dataset item represent?

One creative from the Google Ads Transparency Center.

#### Which field should I use as a unique identifier?

Use `creativeId`. Keep `region` with it when you merge several regions.

#### Are fields nullable or conditional?

Advertiser name, dates, domain, and preview URL can be empty when the source omits them. Political-only fields are not added on a commercial run.

#### Can I retrieve the records as CSV or JSON?

Yes. Export the dataset as JSON, CSV, Excel, XML, or RSS, or read it from the Dataset API.

#### What counts as a billable result?

Each saved ad charges one `dataset-item` event.

### Related datasets from Data Scrapers

- [Company Service Finder](https://apify.com/datascrapers/company-service-finder) for business records that can sit next to an advertiser name.
- [Back Market Scraper](https://apify.com/datascrapers/backmarket-scraper) for product listings from a large marketplace.
- [Refurbed.de Scraper](https://apify.com/datascrapers/refurbed-de-scraper) for refurbished product offers and prices.

### Data Scrapers support

Need an additional field, record type, or export workflow? Contact Data Scrapers at stardustspotlight@gmail.com. Include a sample source URL, required fields, expected record volume, and preferred delivery format.

# Actor input Schema

## `searchQueries` (type: `array`):

Advertiser names, website domains (e.g. temu.com), or advertiser IDs (AR...). Each query is a separate search.

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

Optional Ads Transparency Center URLs (e.g. https://adstransparency.google.com/?region=US\&domain=temu.com). Domain, advertiser, region, format, and platform encoded in the URL are used.

## `searchType` (type: `string`):

How search queries are interpreted. Auto detects domains and advertiser IDs, and resolves names via Transparency Center suggestions.

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

Optional AR... IDs to keep only ads from those advertisers (the advertiser chips on a domain results page).

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

Country where the ads were shown. Anywhere omits the region filter.

## `timePeriod` (type: `string`):

Only include ads served in this window. Custom uses the start and end dates below.

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

Used when time period is Custom. Inclusive start of the served-date window.

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

Used when time period is Custom. Inclusive end of the served-date window.

## `formats` (type: `array`):

Ad formats to include. Leave empty for all formats (text, image, and video).

## `platforms` (type: `array`):

Where the ads ran. Leave empty for all platforms. Ads shown before 4 Sep 2023 are hidden when a platform is selected.

## `topic` (type: `string`):

Commercial ads (All topics) or political advertising.

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

Maximum number of ads to scrape (0 = unlimited).

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

Apify Residential proxies are recommended for Ads Transparency Center.

## Actor input object example

```json
{
  "searchQueries": [
    "temu.com"
  ],
  "startUrls": [
    {
      "url": "https://adstransparency.google.com/?region=US&domain=temu.com"
    }
  ],
  "searchType": "auto",
  "region": "US",
  "timePeriod": "any",
  "topic": "commercial",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Dataset containing scraped Google ads

## `runStats` (type: `string`):

Record count and run timestamps

# 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 = {
    "searchQueries": [
        "temu.com"
    ],
    "startUrls": [
        {
            "url": "https://adstransparency.google.com/?region=US&domain=temu.com"
        }
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascrapers/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 = {
    "searchQueries": ["temu.com"],
    "startUrls": [{ "url": "https://adstransparency.google.com/?region=US&domain=temu.com" }],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("datascrapers/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 '{
  "searchQueries": [
    "temu.com"
  ],
  "startUrls": [
    {
      "url": "https://adstransparency.google.com/?region=US&domain=temu.com"
    }
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call datascrapers/google-ads-scraper --silent --output-dataset

```

## MCP server setup

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