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

Scrape the Google Ads Transparency Center. Extract advertiser info, ad creatives, targeting details, and spending data. Monitor competitors' ad campaigns across Google Search, YouTube, and Display Network. Export to JSON, CSV, or Excel.

- **URL**: https://apify.com/rastriq/google-ads-scraper.md
- **Developed by:** [Rastriq — Structured data from the world](https://apify.com/rastriq) (community)
- **Categories:** Marketing, SEO tools, Lead generation
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.25 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

### What data can you scrape from Google Ads Transparency?

Extract structured data from Google Ads Transparency including listings, prices, and details.

- **Structured output** — Clean, normalized records ready for spreadsheets, BI tools or databases
- **Flexible filters** — Narrow your scrape by category, keyword, or other parameters
- **Export anywhere** — JSON, CSV, Excel, or via the Apify API and integrations

***

### Output: Google Ads Transparency data structure

The Actor returns structured records with all available fields from Google Ads Transparency listings.

#### Example output (one record)

```json
{
  "domain": "leroymerlin.es",
  "region": "ES",
  "maxResults": 300
}
```

***

### 🚀 Quick start

1. Click **Start** with the default input to test with a small sample.
2. Open the **Output** tab to preview results.
3. Export as CSV / Excel / JSON, or connect via API.

***

### How to scrape Google Ads Transparency — input options

| Field | Description | Default |
|-------|-------------|---------|
| **🌐 Advertiser domains** | One or more advertiser domains to scrape. \*\*Max ads applies per domain.\*\*Examples: leroymerlin.es, ikea.com, amazon.e... | `["leroymerlin.es"]` |
| **Advertiser name** | Search by advertiser name instead of domain. Finds matching advertisers on the Transparency Center and scrapes their ... | `Leroy Merlin` |
| **Max advertisers to scrape** | How many matching advertisers to scrape in keyword mode. Ignored in domain mode. | `3` |
| **📍 Region** | Filter ads by country/region. Use **Any region** for the broadest results. | `ANY` |
| **Max ads** | Maximum number of ads to extract. Applies per domain in batch mode.Start low (10–20) for your first run. | `100` |
| **Proxy configuration** | Optional. Residential proxies recommended for best results. | Apify auto |
| **Headless browser** | Run browser without a visible window. Disable only for local debugging. | true |
| **domain (legacy)** | Deprecated: use 'domains' array instead. | — |

***

### 🔍 How it works

This Actor uses **Playwright (headless browser), HTTP requests** to extract data from Google Ads Transparency. It navigates search results or catalog pages, extracts structured data from each listing, and normalizes the output into a consistent schema.

***

### How much does it cost to scrape Google Ads Transparency?

This Actor uses **Pay-Per-Event** pricing — you pay only for results delivered, not for compute time.

| Plan | What you get |
|------|-------------|
| **Free tier** | $5/month of platform credits — enough for thousands of results |
| **Paid plans** | Scale to tens of thousands of results per run |

***

### 🔄 Integrations & scheduling

- **Schedule** daily/weekly runs from the Apify Console for automated data collection.
- Push results to **Google Sheets, Slack, Zapier, Make, webhooks** or any database.
- Fetch datasets via the **Apify REST API** or the official JavaScript/Python clients.

***

### Is it legal to scrape Google Ads Transparency?

This Actor collects only **publicly available** data. It does not log in, bypass paywalls, or access private information. You are responsible for using the extracted data in compliance with the site's Terms of Service and applicable data protection laws (including GDPR where relevant).

***

### ❓ FAQ

**Can I access the data via API?**
Yes. Every run stores its dataset on Apify. Fetch it via REST API or use the official JavaScript/Python clients.

**What export formats are supported?**
JSON, CSV, Excel (XLSX), XML, and HTML table. You can also push data directly to Google Sheets or any webhook endpoint.

**Do I need proxies?**
Residential proxies are recommended for best results. The default proxy configuration is pre-set.

### Related Actors from Rastriq

- [Tiktok Ad Library Scraper](https://apify.com/rastriq/tiktok-ad-library-scraper)

# Actor input Schema

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

One or more advertiser domains to scrape. <b>Max ads applies per domain.</b><br><br>Examples: <code>leroymerlin.es</code>, <code>ikea.com</code>, <code>amazon.es</code><br><br>💡 Domain mode returns the most complete results (~900 ads per site).

## `keyword` (type: `string`):

Search by advertiser name instead of domain. Finds matching advertisers on the Transparency Center and scrapes their ads.<br><br>Use when you don't know the exact domain.

## `maxAdvertisers` (type: `integer`):

How many matching advertisers to scrape in keyword mode. Ignored in domain mode.

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

Filter ads by country/region. Use <b>Any region</b> for the broadest results.

## `maxResults` (type: `integer`):

Maximum number of ads to extract. Applies per domain in batch mode.<br>Start low (10–20) for your first run.

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

Google Ads Transparency works from datacenter IPs without proxy. Enable only if you experience blocks.

## `headless` (type: `boolean`):

Run browser without a visible window. Disable only for local debugging.

## `domain` (type: `string`):

Deprecated: use 'domains' array instead.

## Actor input object example

```json
{
  "domains": [
    "leroymerlin.es"
  ],
  "keyword": "Leroy Merlin",
  "maxAdvertisers": 3,
  "region": "ANY",
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "headless": true
}
```

# Actor output Schema

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

Dataset containing all extracted ad creatives.

# 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": [
        "leroymerlin.es"
    ],
    "keyword": "Leroy Merlin",
    "maxResults": 10,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rastriq/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 = {
    "domains": ["leroymerlin.es"],
    "keyword": "Leroy Merlin",
    "maxResults": 10,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("rastriq/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 '{
  "domains": [
    "leroymerlin.es"
  ],
  "keyword": "Leroy Merlin",
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call rastriq/google-ads-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/DO8zx7nZN1Dfxwqai/builds/h0ucfVZF1zy7yxOdk/openapi.json
