# Google Ads Transparency Scraper: Creatives & Dates (`rar_888/google-ads-transparency`) Actor

Find public ads in the Google Ads Transparency Center by advertiser, domain or advertiser ID. Export creative metadata, formats, shown dates, regions and official preview links. Filter by date to monitor recent ads.

- **URL**: https://apify.com/rar_888/google-ads-transparency.md
- **Developed by:** [Rardiel Andrés Ceballo Salas](https://apify.com/rar_888) (community)
- **Categories:** Marketing, Business, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.50 / 1,000 google ads transparency creative records

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 Explorer: Ad Creatives & Dates

Extract public ad creative metadata, formats (`text`, `image`, `video`), active date ranges (`firstShown`, `lastShown`), regional breakdowns, and official preview links from **Google Ads Transparency Center** (`adstransparency.google.com`) by **advertiser name**, **domain**, or **Google Advertiser ID (`AR...`)**.

> **Attribution Notice:** All data extracted by this Actor comes from the public Google Ads Transparency Center. Each output item includes `"source": "Google Ads Transparency Center"` and the direct `transparencyUrl` link (`https://adstransparency.google.com`).

***

### Key Features

1. **Flexible Advertiser Query Resolution (`queries`):**
   - Pass **Google Advertiser IDs** directly (e.g., `"AR16735076323512287233"`), **domains** (e.g., `"shopify.com"`, `"booking.com"`), or **advertiser names** (e.g., `"Nike, Inc."`, `"Duolingo"`).
2. **Incremental Monitoring Filter (`firstShownAfter`):**
   - Set `firstShownAfter` to a date (`"2026-01-01"`), an ISO-8601 UTC timestamp, or a relative window (`"1d"`, `"7d"`, `"24h"`) to retrieve **only newly launched ads**.
   - Ideal for daily or weekly schedules: a run that finds zero new ads finishes cleanly and costs **`$0.00`**.
3. **Region & Format Filtering:**
   - Filter by any **ISO 3166-1 alpha-2 country code** (`"US"`, `"GB"`, `"DE"`, `"ES"`, `"FR"`, `"BR"`, `"JP"`, etc., or `""` for all regions) and ad format (`"any"`, `"text"`, `"image"`, `"video"`).
4. **Optional Per-Creative Regional Breakdown (`includeDetails`):**
   - Keep `includeDetails: false` (default) for fast bulk extraction (up to 40 ads per RPC call), or enable `includeDetails: true` to query `LookupService/GetCreativeById` for per-country date ranges.
5. **Apify Proxy Support, Session Rotation & Safety Stop:**
   - Supports Apify Proxy (`proxyGroup: "DATACENTER"` or `"RESIDENTIAL"`) on port `8000` with fresh per-request HTTP connections and automatic fallback to direct mode when running locally without credentials.
   - Operates at `<= 1` request/second, rotates anonymous sessions on HTTP `503` or `429`, does not retry permanent `4xx` errors, and stops after 3 consecutive failed queries.
6. **Zero Re-hosting of Ad Assets:**
   - Returns Google's official `previewUrl` and `transparencyUrl` links without downloading or re-hosting third-party creative images or videos.

***

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `queries` | `array<string>` | *(required)* | Advertiser names (`"Nike, Inc."`), domains (`"shopify.com"`), or Google Advertiser IDs (`"AR16735076323512287233"`). |
| `region` | `string` | `""` | Two-letter ISO country code (`"US"`, `"GB"`, `"DE"`, `"ES"`, etc.) or `""` / `"anywhere"` for all regions. |
| `format` | `string` | `"any"` | Filter by creative format: `"any"`, `"text"`, `"image"`, or `"video"`. |
| `firstShownAfter` | `string` | `""` | Optional. Date (`"YYYY-MM-DD"`), ISO-8601 UTC timestamp, or relative window (`"1d"`, `"7d"`, `"24h"`). Only returns ads first shown after that cutoff. |
| `maxScanPerQuery` | `integer` | `400` | Only with `firstShownAfter`. Maximum ads scanned per query to find ads launched after `firstShownAfter` (unmatched ads are not charged). |
| `maxItemsPerQuery` | `integer` | `25` | Maximum number of ads to return per entry in `queries` (`1–1000`). |
| `maxItems` | `integer` | `100` | Maximum total number of ads to return across the entire run (`1–5000`). |
| `includeDetails` | `boolean` | `false` | Fetch per-creative regional details (`LookupService/GetCreativeById`). |
| `proxyGroup` | `string` | `"DATACENTER"` | Apify Proxy group: `"DATACENTER"` (default) or `"RESIDENTIAL"` (for strict rate-limit recovery). |
| `proxyConfiguration` | `object` | `{"useApifyProxy": true}` | Apify Proxy configuration (falls back to direct connection locally). |

#### Example Input

```json
{
  "queries": [
    "AR16735076323512287233",
    "shopify.com",
    "Duolingo",
    "booking.com",
    "amazon.com"
  ],
  "region": "US",
  "format": "any",
  "firstShownAfter": "",
  "maxItemsPerQuery": 5,
  "maxItems": 25,
  "includeDetails": false,
  "proxyGroup": "DATACENTER",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

***

### Output Schema

Each dataset item represents one public ad creative:

```json
{
  "advertiserId": "AR16735076323512287233",
  "advertiserName": "Nike, Inc.",
  "creativeId": "CR05039561071455633409",
  "format": "text",
  "firstShown": "2023-11-17T03:48:36Z",
  "lastShown": "2026-10-19T19:15:44Z",
  "regions": [
    "US"
  ],
  "previewUrl": "https://tpc.googlesyndication.com/archive/simgad/7270270668040141288",
  "transparencyUrl": "https://adstransparency.google.com/advertiser/AR16735076323512287233/creative/CR05039561071455633409?region=US",
  "query": "AR16735076323512287233",
  "fetchedAt": "2026-10-19T19:40:10Z",
  "source": "Google Ads Transparency Center"
}
```

***

### Pricing (Pay-Per-Event)

You pay only for **successfully extracted ad creative items** (`apify-default-dataset-item`). Startup (`apify-actor-start`), unmatched ads during `firstShownAfter` scans, and failed queries cost **`$0.00`**:

- **Price per ad creative (`apify-default-dataset-item`):** **`$0.0025` USD per ad** (`$2.50` per `1,000` ads), all-inclusive of platform compute (`256 MB`) and proxy usage.
- **Spending Cap Enforcement:** Checks `is_event_charge_limit_reached("apify-default-dataset-item")` before emitting every item and stops cleanly when your budget limit is reached.

| Scenario | Ads (`maxItems`) | Total User Cost (`$0.0025/ad`) |
|---|---:|---:|
| Single creative verification | 1 | **$0.0025** |
| Competitor spot check | 10 | **$0.025** |
| Multi-advertiser audit | 100 | **$0.25** |
| Full competitive dataset | 1,000 | **$2.50** |

***

### Technical Reference: Public RPC Endpoints Used

This Actor communicates with the unauthenticated JSON RPC endpoints of `https://adstransparency.google.com` using URL-encoded `f.req` payloads:

1. **`POST /anji/_/rpc/SearchService/SearchSuggestions?authuser=`** — Resolves advertiser names to `AR...` IDs or domains.
2. **`POST /anji/_/rpc/SearchService/SearchCreatives?authuser=`** — Lists up to 40 ad creatives per page matching an advertiser ID or domain.
3. **`POST /anji/_/rpc/LookupService/GetCreativeById?authuser=`** *(only when `includeDetails: true`)* — Fetches per-country metadata for a specific creative.

***

### Frequently Asked Questions (FAQ)

#### 1. What does this Actor cost?

This Actor uses Apify's **Pay-Per-Event (PPE)** model at **`$0.0025` USD per returned ad creative** (`$2.50` per `1,000` ads), with a **`$0.00` startup fee** and **`$0.00` monthly subscription**. Platform compute and proxy traffic are included.

#### 2. Why does this Actor charge per item instead of a monthly subscription or startup fee?

Per-item charging (`apify-default-dataset-item`) lets you run scheduled monitoring (`firstShownAfter: "1d"`) or small AI agent lookups without paying a `$10–$20/month` fixed rental fee. If an advertiser launches zero new ads today, or if a query fails, your run costs **`$0.00`**.

#### 3. What data fields does each output item return?

Each record returns `advertiserId` (`AR...`), `advertiserName`, `creativeId` (`CR...`), `format` (`text`, `image`, or `video`), `firstShown` and `lastShown` (UTC ISO-8601 timestamps), `regions` (country code list, or per-country objects when `includeDetails: true`), `previewUrl`, `transparencyUrl`, `query`, `fetchedAt`, and `source` (`"Google Ads Transparency Center"`).

#### 4. Do I need a Google API key or logged-in Google account?

No. All data comes from the public, unauthenticated Google Ads Transparency Center endpoints (`adstransparency.google.com/anji/_/rpc/*`). No API key or Google account is required.

#### 5. What are the rate limits, proxy options, and operational limits?

The Actor paces requests at `<= 1` request/second (`min_interval_seconds = 1.1s`), supports `"DATACENTER"` and `"RESIDENTIAL"` Apify Proxy groups via `proxyGroup`, caps `maxItemsPerQuery` at `1,000` and `maxItems` at `5,000`, and scans up to `maxScanPerQuery` (default `400`) ads when `firstShownAfter` is set. If 3 queries fail consecutively, a safety stop ends the run cleanly.

#### 6. How can I use this Actor in daily workflows or AI agent pipelines?

- **Competitor Launch Alerts:** Schedule a daily run with `queries: ["shopify.com", "wix.com"]`, `region: "US"`, and `firstShownAfter: "1d"` to receive only ads launched in the last 24 hours.
- **Format-Specific Creative Audits:** Filter by `format: "video"` and `maxItemsPerQuery: 50` to inspect video campaigns across target markets.
- **AI Agent / MCP Brand Research:** Let an autonomous agent query `maxItems: 10` for any company name or domain at `$0.025` per call.

# Actor input Schema

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

List of advertiser names (e.g. 'Nike, Inc.'), domains (e.g. 'shopify.com'), or Google Advertiser IDs starting with 'AR' (e.g. 'AR16735076323512287233').

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

Two-letter ISO 3166-1 alpha-2 country code (e.g. 'US', 'GB', 'DE', 'ES') or empty string '' (or 'anywhere') for all regions.

## `format` (type: `string`):

Filter creatives by ad format: 'any', 'text', 'image', or 'video'.

## `firstShownAfter` (type: `string`):

Optional, for monitoring. Only returns ads first shown after this point. Use a date ('YYYY-MM-DD'), an ISO-8601 UTC timestamp, or a relative window like '1d', '7d' or '24h' (best for scheduled runs: a daily schedule with '1d' returns only the ads launched since yesterday). A monitoring run with no new ads finishes successfully and costs nothing.

## `maxScanPerQuery` (type: `integer`):

Only used with First Shown After. Google lists ads by most recently shown, not by launch date, so new ads can appear anywhere in an advertiser's list. The Actor scans up to this many ads per query to find them. Scanned ads that don't match are not charged. Raise it for advertisers with thousands of active ads.

## `maxItemsPerQuery` (type: `integer`):

Maximum number of ad creatives to extract for each query in 'queries'.

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

Maximum total number of ad creatives to push to the dataset across the entire run.

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

If true, performs an additional LookupService/GetCreativeById call per creative to retrieve detailed per-country dates and impression ranges.

## `proxyGroup` (type: `string`):

Apify Proxy group to route requests through when proxy is enabled: 'DATACENTER' (default, fast and cost-effective) or 'RESIDENTIAL' (recommended if Google rate-limits datacenter IPs).

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

Apify Proxy settings for reliable rotation across requests.

## Actor input object example

```json
{
  "queries": [
    "Nike, Inc.",
    "shopify.com"
  ],
  "region": "US",
  "format": "any",
  "firstShownAfter": "",
  "maxScanPerQuery": 400,
  "maxItemsPerQuery": 25,
  "maxItems": 100,
  "includeDetails": false,
  "proxyGroup": "DATACENTER",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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, Inc.",
        "shopify.com"
    ],
    "region": "US",
    "format": "any",
    "firstShownAfter": "",
    "maxItemsPerQuery": 25,
    "maxItems": 100,
    "includeDetails": false,
    "proxyGroup": "DATACENTER",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rar_888/google-ads-transparency").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, Inc.",
        "shopify.com",
    ],
    "region": "US",
    "format": "any",
    "firstShownAfter": "",
    "maxItemsPerQuery": 25,
    "maxItems": 100,
    "includeDetails": False,
    "proxyGroup": "DATACENTER",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("rar_888/google-ads-transparency").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, Inc.",
    "shopify.com"
  ],
  "region": "US",
  "format": "any",
  "firstShownAfter": "",
  "maxItemsPerQuery": 25,
  "maxItems": 100,
  "includeDetails": false,
  "proxyGroup": "DATACENTER",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rar_888/google-ads-transparency --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rar_888/google-ads-transparency"
        }
    }
}
```

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/zgmZiadHxOkJUGXhJ/builds/wDDoHBbGRpZcDdL7a/openapi.json
