# 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:** Social media
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.70 / 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/actors/running/actors-in-store.md#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 Rastriq Actors

#### Ad library scrapers

All four share a [normalized output schema](https://www.rastriq.es/en/ad-libraries/) — same field names, same formats. Merge datasets from different platforms without a mapping layer.

| Actor | What it adds |
| --- | --- |
| [TikTok Ad Library Scraper](https://apify.com/rastriq/tiktok-ad-library-scraper) | Ad creatives, targeting and spend data from TikTok's EU transparency archive |
| [Facebook Ad Library Scraper](https://apify.com/rastriq/fb-adlibrary-scraper) | Ad creatives from Facebook and Instagram — Meta's entire paid media ecosystem |
| [LinkedIn Ad Library Scraper](https://apify.com/rastriq/linkedin-ad-library-scraper) | B2B ad intelligence — impressions by country, paying entity and targeting segments |

#### TikTok Creative Center

| Actor | What it adds |
| --- | --- |
| [TikTok Top Ads Scraper](https://apify.com/rastriq/tiktok-top-ads-scraper) | Top-performing ad creatives — CTR, likes, video URLs, landing pages across 49 countries and 21 industries |
| [TikTok Trending Videos Scraper](https://apify.com/rastriq/tiktok-trending-videos-scraper) | Trending videos with creator profiles, engagement rates and 6-second view-through rates |
| [TikTok Trends Scraper](https://apify.com/rastriq/tiktok-trends-scraper) | Trending hashtags with view counts, post volumes and industry tags across 27 countries |

#### Competitive intelligence

| Actor | What it adds |
| --- | --- |
| [SimilarWeb Data Extractor](https://apify.com/rastriq/similarweb-data-extractor) | Traffic estimates and top pages for the landing pages these ads point to |

# Actor input Schema

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

Paste one or more URLs directly from <b>Google Ads Transparency Center</b>. The scraper auto-detects the type:<br><br><code>https://adstransparency.google.com/?domain=nike.com</code> — domain search<br><code>https://adstransparency.google.com/advertiser/AR12345</code> — advertiser page<br><code>https://adstransparency.google.com/advertiser/AR12345/creative/CR67890</code> — specific creative<br><code>https://adstransparency.google.com/?q=nike\&region=US</code> — keyword search<br><br>💡 Region and search mode are extracted automatically from the URL.

## `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. Ignored if domains or URLs are provided above.

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

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

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

Filter ads by country/region. Use <b>Any region</b> for the broadest results.<br><br>💡 When using URLs, the region is extracted from the URL and this setting is ignored.

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

Maximum number of ads to extract. Applies per domain/URL 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 or paste URLs instead.

## Actor input object example

```json
{
  "startUrls": [],
  "domains": [
    "leroymerlin.es"
  ],
  "keyword": "Leroy Merlin",
  "maxAdvertisers": 3,
  "region": "ANY",
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "headless": 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 = {
    "startUrls": [],
    "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 = {
    "startUrls": [],
    "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(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 '{
  "startUrls": [],
  "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": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rastriq/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/DO8zx7nZN1Dfxwqai/builds/8zCETvutkoFdK1lFZ/openapi.json
