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

\[💰 $1.00 / 1K]Scrape Google Ads Transparency Center with high speed. Extract videos, images, and text ads by advertiser or keyword. Features: HD creative downloads, OCR for text ads, regional data, and direct RPC calls. No browser overhead — fast, cheap, and stealthy. 100% structured data.

- **URL**: https://apify.com/kitcunemia/google-ads-scraper.md
- **Developed by:** [Kitcune Mia](https://apify.com/kitcunemia) (community)
- **Categories:** Automation, SEO tools, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

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

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 🔍 Google Ads Scraper (Transparency Center)

**Uncover any advertiser's complete Google Ads playbook in seconds.** Extract every active and historical creative — videos, images, and text — directly from the official Google Ads Transparency Center into a structured dataset.

> **High-Speed Extraction:** 200 ads in 1.7 seconds. 100% official data. Zero scraping headaches.

---

### ⚡ Why This Scraper?

While other tools struggle with Google's complex RPC calls, this Actor speaks Google's internal API directly, providing unmatched speed and data depth.

*   **🚀 Blazing Fast:** Up to **120 ads/sec** for listings. Built with a fully concurrent architecture.
*   **🎯 Total Creative Access:** Every MP4 video, image URL, text ad, and regional rollout. Nothing is hidden.
*   **🌍 Global Filtering:** Supports 250+ countries. Filter by region, format, or date range directly in the input.
*   **💰 Cost-Efficient:** Use the `Skip details` mode to run **4x cheaper** when you only need IDs and basic metadata.
*   **🛡️ Stealth & Stability:** Real Chrome TLS fingerprints via `curl_cffi` and fresh proxy sessions per request to bypass any rate limits.
*   **📦 Asset Archiving:** One-click download of all previews and source files (images/videos) into the Apify Key-Value store.

---

### 🎯 What Data You Get

Each record is a fully decoded ad creative:
*   **Creative Info:** Format (Video, Image, Text), IDs, and Ad Transparency URLs.
*   **Temporal Data:** First and Last shown timestamps, total active duration.
*   **Geo-Targeting:** List of regions/countries where the ad was served.
*   **Assets:** Direct URLs to images, video files, and HTML5 previews.
*   **Raw Payload:** Full original JSPB payloads for advanced analysis.

---

### 🚀 Quick Start

#### 1. By Advertiser URL
Monitor a specific competitor by pasting their Transparency Center link:
```json
{
    "startUrls": [{ "url": "https://adstransparency.google.com/advertiser/AR08888592736429539329" }],
    "resultsLimit": 100
}
````

#### 2. By Keyword (Search)

Find top advertisers for any niche automatically:

```json
{
    "startUrls": [{ "url": "https://adstransparency.google.com/?query=nike" }],
    "resultsLimit": 50
}
```

#### 3. Advanced Filtering

Target specific formats and regions directly:

```json
{
    "startUrls": [{ "url": "https://google.com" }]
}
```

***

### ⚙️ Input Reference

| Parameter | Type | Default | Description |
|---|---|---|---|
| `startUrls` | `Array` | - | Advertiser links, direct ad links, or keyword searches. |
| `resultsLimit`| `Number`| `50` | Max ads per advertiser. Set to `0` for unlimited. |
| `skipDetails` | `Boolean`| `false`| **Speed Mode:** Skips deep lookup for 4x faster runs. |
| `downloadAssets`| `Boolean`| `false`| Saves MP4/Images directly to Apify storage. |
| `maxConcurrency`| `Number` | `10` | Number of parallel requests (5-20 is optimal). |

***

### 💡 Top Use Cases

- **Competitive Intelligence:** Reverse-engineer your competitors' creative testing playbook.
- **Market Trends:** Benchmark advertising intensity and messaging across entire industries.
- **Creative Swipe File:** Build a library of winning ad formats for your own design team.
- **Brand Protection:** Detect impersonators or unauthorized resellers running ads on your brand terms.
- **AI Analysis:** Feed structured ad copy and metadata into LLMs for sentiment and trend analysis.

***

### 🏗️ Under the Hood

This Actor doesn't waste resources rendering HTML. It communicates directly with Google's **internal `anji` RPC API**.

- **Network Layer:** Uses `curl_cffi` with Chrome impersonation (JA3/ALPN) to stay indistinguishable from a real browser.
- **Reliability:** Three independent retry budgets (`cookies`, `search`, `lookup`) with exponential backoff ensure the crawl continues even if individual calls fail.
- **Efficiency:** Processes over **5,000 ads per minute** in listing-only mode.

***

### ⚠️ Honest Limitations

- **Impression Buckets:** Specific platform breakdowns (YouTube vs Search) are often hidden in undocumented numeric keys in the raw payload.
- **Asset Expiry:** Direct image/video URLs from Google may expire over time; use `downloadAssets` for permanent storage.

***

**Ready to dominate the ad auction?** Start your search today.

# Actor input Schema

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

URLs from Google Ads Transparency Center. Supported shapes:

- Advertiser page: https://adstransparency.google.com/advertiser/AR...
- Single creative: https://adstransparency.google.com/advertiser/AR.../creative/CR...
- Search query: https://adstransparency.google.com/?query=KEYWORD

Query-string filters (region, format, platform) embedded in the URL are honoured.

## `resultsLimit` (type: `integer`):

Maximum ads to return per Start URL. 0 = unlimited.

## `skipDetails` (type: `boolean`):

When enabled, only the listing data (advertiser ID, creative ID, URL) is returned. Skips the per-creative LookupService/GetCreativeById call.

## `downloadAssets` (type: `boolean`):

Download the underlying creative file (mp4 / image / text HTML) into the run's key-value store.

## `downloadPreviews` (type: `boolean`):

Download preview thumbnails / iframes into the run's key-value store.

## `useOcr` (type: `boolean`):

Run OCR on image/text creatives to extract on-image text. Heavier and slower.

## `extractAdText` (type: `boolean`):

Fetch each preview URL in parallel, decode the ad copy, headlines, image and video URLs into a structured `variants` array. Adds one HTTP call per preview (4× per typical creative). All requests stay parallel under maxConcurrency.

## `extractVideoVariants` (type: `boolean`):

For VIDEO ads, fetch the preview JS in parallel and pull out the real video URL (googlevideo.com / youtube.com) into `variants[]`. Adds 1–4 HTTP calls per VIDEO creative. Recommended ON to match competitor coverage.

## `includeRawPayload` (type: `boolean`):

Attach the original SearchCreatives + GetCreativeById JSPB payloads under `_raw` for advanced debugging.

## `maxConcurrency` (type: `integer`):

Higher = faster but more proxy traffic and higher block rate. Recommended 5–20.

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

Datacenter is the default and works well; switch to Residential if you see blocks.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://adstransparency.google.com/advertiser/AR08888592736429539329"
    }
  ],
  "resultsLimit": 50,
  "skipDetails": false,
  "downloadAssets": false,
  "downloadPreviews": false,
  "useOcr": false,
  "extractAdText": false,
  "extractVideoVariants": true,
  "includeRawPayload": false,
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `creativesDataset` (type: `string`):

All scraped ad creatives. Pick the format you need on the dataset page (JSON, CSV, Excel, XML).

## `downloadedAssets` (type: `string`):

Key-value store containing every preview and asset downloaded by this run.

# 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 = {
    "startUrls": [
        {
            "url": "https://adstransparency.google.com/advertiser/AR08888592736429539329"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kitcunemia/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 = { "startUrls": [{ "url": "https://adstransparency.google.com/advertiser/AR08888592736429539329" }] }

# Run the Actor and wait for it to finish
run = client.actor("kitcunemia/google-ads-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://adstransparency.google.com/advertiser/AR08888592736429539329"
    }
  ]
}' |
apify call kitcunemia/google-ads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=kitcunemia/google-ads-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Ads Scraper",
        "description": "[💰 $1.00 / 1K]Scrape Google Ads Transparency Center with high speed. Extract videos, images, and text ads by advertiser or keyword. Features: HD creative downloads, OCR for text ads, regional data, and direct RPC calls. No browser overhead — fast, cheap, and stealthy. 100% structured data.",
        "version": "0.1",
        "x-build-id": "f7cXPrYgZHAGfUoOh"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/kitcunemia~google-ads-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-kitcunemia-google-ads-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/kitcunemia~google-ads-scraper/runs": {
            "post": {
                "operationId": "runs-sync-kitcunemia-google-ads-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/kitcunemia~google-ads-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-kitcunemia-google-ads-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "URLs from Google Ads Transparency Center. Supported shapes:\n\n- Advertiser page: https://adstransparency.google.com/advertiser/AR...\n- Single creative: https://adstransparency.google.com/advertiser/AR.../creative/CR...\n- Search query: https://adstransparency.google.com/?query=KEYWORD\n\nQuery-string filters (region, format, platform) embedded in the URL are honoured.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "resultsLimit": {
                        "title": "Results limit",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum ads to return per Start URL. 0 = unlimited.",
                        "default": 50
                    },
                    "skipDetails": {
                        "title": "Skip details ⚡ (cheaper and ~4x faster)",
                        "type": "boolean",
                        "description": "When enabled, only the listing data (advertiser ID, creative ID, URL) is returned. Skips the per-creative LookupService/GetCreativeById call.",
                        "default": false
                    },
                    "downloadAssets": {
                        "title": "Should download assets?",
                        "type": "boolean",
                        "description": "Download the underlying creative file (mp4 / image / text HTML) into the run's key-value store.",
                        "default": false
                    },
                    "downloadPreviews": {
                        "title": "Should download previews?",
                        "type": "boolean",
                        "description": "Download preview thumbnails / iframes into the run's key-value store.",
                        "default": false
                    },
                    "useOcr": {
                        "title": "Use OCR for text ads",
                        "type": "boolean",
                        "description": "Run OCR on image/text creatives to extract on-image text. Heavier and slower.",
                        "default": false
                    },
                    "extractAdText": {
                        "title": "Extract decoded ad text & variants",
                        "type": "boolean",
                        "description": "Fetch each preview URL in parallel, decode the ad copy, headlines, image and video URLs into a structured `variants` array. Adds one HTTP call per preview (4× per typical creative). All requests stay parallel under maxConcurrency.",
                        "default": false
                    },
                    "extractVideoVariants": {
                        "title": "Extract video asset URLs",
                        "type": "boolean",
                        "description": "For VIDEO ads, fetch the preview JS in parallel and pull out the real video URL (googlevideo.com / youtube.com) into `variants[]`. Adds 1–4 HTTP calls per VIDEO creative. Recommended ON to match competitor coverage.",
                        "default": true
                    },
                    "includeRawPayload": {
                        "title": "Include raw API payloads",
                        "type": "boolean",
                        "description": "Attach the original SearchCreatives + GetCreativeById JSPB payloads under `_raw` for advanced debugging.",
                        "default": false
                    },
                    "maxConcurrency": {
                        "title": "Max concurrent RPC calls",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Higher = faster but more proxy traffic and higher block rate. Recommended 5–20.",
                        "default": 10
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Datacenter is the default and works well; switch to Residential if you see blocks.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
