# Google Ads Library Scraper — Transparency Center Ads & Reach (`muhammadafzal/google-ads-library-scraper`) Actor

Scrape the Google Ads Library (Ads Transparency Center): ads by brand, website or advertiser with dates, images, regions and reach. USD 1.50 per 1,000 ads.

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

## Pricing

from $1.20 / 1,000 ad or advertiser saveds

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 Library Scraper — Transparency Center Ads & Reach

Google Ads Library Scraper exports every ad an advertiser runs on Google from the Google Ads Transparency Center. Look ads up by brand, website or advertiser ID; each ad comes with its format, first and last shown dates, days shown, image link and advertiser identity. Turn on ad details to add the regions it ran in, Google's "times shown" ranges, platforms, topic, payer and audience selection. It costs USD 1.50 per 1,000 ads plus USD 3 per 1,000 ads with details, and you only pay for ads saved.

Built for marketers, agencies and analysts who research competitors' Google Search, YouTube, Shopping, Maps and Play ads without copying them one by one from adstransparency.google.com.

### What data does the Google Ads Library Scraper return?

One row per ad. Fields marked *details* need **Include ad details**.

| Field | What it is |
|---|---|
| `advertiserName`, `advertiserLegalName`, `advertiserCountry` | Who runs the ad: name, legal name and the country it is based in |
| `advertiserIdentityVerified` | `true` when Google shows "Advertiser has verified their identity" |
| `creativeId`, `advertiserId`, `adUrl` | The ad's IDs and its page on adstransparency.google.com |
| `format` | `TEXT`, `IMAGE` or `VIDEO` |
| `domain` | The website the ad points to, when Google lists one |
| `firstShownAt`, `lastShownAt`, `shownDays` | When the ad first and last ran, and for how many days. Long-running ads are usually the ones that work |
| `imageUrl`, `imageWidth`, `imageHeight` | Direct image link. Google publishes most text ads as an image of the ad |
| `previewUrl` | Google's preview script for video and rich ads with no plain image |
| `regionsShown` *(details)* | Every country with first and last shown date, times-shown range and per-platform split |
| `platforms` *(details)* | Google Search, YouTube, Shopping, Maps and Play, as reported in the times-shown split |
| `euTimesShownMin`, `euTimesShownMax` *(details)* | Google's "Times shown" range for the EU as a whole |
| `topic`, `fundedBy` *(details)* | The topic Google labeled (for example Apparel) and "Ad funded by" |
| `audienceSelection` *(details)* | Demographic info, geographic locations, contextual signals, topics of interest and customer lists: included, excluded, both, or not used |
| `variations` *(details)* | Up to 20 variations, each with its image or preview link |
| `accessRoute` | `direct`, or `fallback` when Google refused the direct route (see Limits) |

### How do I scrape a competitor's Google ads?

Put the competitor in **Advertisers, brands or websites** and start the run.

- **A website** such as `nike.com` returns every ad that points at that site, from every advertiser account (brand, agencies, resellers). This is the most complete way to cover a brand.
- **A name** such as `Nike` finds advertiser accounts whose name contains every word, the ones with the most ads first. It then returns their ads. `maxAdvertisersPerTerm` (default 3) caps how many accounts are used.
- **An advertiser ID** such as `AR18378488041124659201`, or a link copied from adstransparency.google.com (an advertiser page, one ad, or a website search), goes straight to that account or ad.

Filter by **Region** (one country or anywhere), **Platforms**, **Ad format** and a **Shown from / Shown until** window. `maxAdsPerTarget` (default 100, up to 10,000) caps ads per website or account. `maxResults` (default 1,000, up to 50,000) caps the whole run.

```json
{
  "searchTerms": ["nike.com", "Booking.com", "AR16735076323512287233"],
  "region": "DE",
  "platforms": ["YOUTUBE"],
  "adFormat": "VIDEO",
  "startDate": "2026-10-01",
  "maxAdsPerTarget": 200,
  "includeDetails": true
}
```

### Can I see how many times an ad was shown and who it targeted?

Yes, for ads that ran in regions where Google publishes it, which is mainly the EU. **Include ad details** reads each ad's detail record: every region with dates, Google's "times shown" range per region and platform, the EU total, the topic, who funded it, and which audience criteria the advertiser selected. It is one extra request per ad, charged as one ad-details event (USD 0.003) per ad that has details. For ads shown only outside those regions, Google publishes the regions and last-shown dates but no times shown.

### How do I find which advertisers run ads for a website or brand?

Set **Result type** to `advertisers`. For a website, the Actor scans up to `maxAdsPerTarget` of its ads and returns one row per advertiser account behind them. Each row has the legal name, country, verification badge, the number of scanned ads it ran (`adsSeen`) and the websites on those ads. For a name or ID, each row carries Google's own estimate of the account's ad count for your filters (`estimatedAdCountMin` and `estimatedAdCountMax`, the "~40K ads" on the site). Each advertiser row is one result.

### Output example

```json
{
  "recordType": "ad",
  "creativeId": "CR13323713937808556033",
  "advertiserId": "AR18378488041124659201",
  "advertiserName": "Nike Retail BV",
  "advertiserLegalName": "Nike Retail BV",
  "advertiserCountry": "NL",
  "advertiserIdentityVerified": true,
  "domain": "nike.com",
  "format": "TEXT",
  "firstShownAt": "2025-10-29T10:02:00.000Z",
  "lastShownAt": "2026-11-16T10:06:37.000Z",
  "shownDays": 389,
  "imageUrl": "https://tpc.googlesyndication.com/archive/simgad/14815215730076430995",
  "adUrl": "https://adstransparency.google.com/advertiser/AR18378488041124659201/creative/CR13323713937808556033?region=anywhere",
  "detailsIncluded": true,
  "topic": "Apparel",
  "fundedBy": "Nike Retail BV",
  "variationCount": 3,
  "regionCount": 4,
  "regionsShown": [
    { "regionCode": "IE", "regionName": "Ireland", "firstShownDate": "2025-11-01", "lastShownDate": "2026-10-31", "timesShownMin": 0, "timesShownMax": 1000,
      "timesShownByPlatform": [{ "platform": "SEARCH", "timesShownMin": 0, "timesShownMax": 1000 }] }
  ],
  "platforms": ["SEARCH"],
  "euTimesShownMin": 0,
  "euTimesShownMax": 1000,
  "audienceSelection": { "demographicInfo": "included", "geographicLocations": "included", "contextualSignals": "included and excluded", "topicsOfInterest": null, "customerLists": null }
}
```

The run also writes an `OUTPUT` record. It holds the outcome (`SUCCESS`, `PARTIAL`, `EMPTY`, `INVALID_INPUT`, `BLOCKED` or `FAILED`), the stop reason, and one entry per target with Google's estimated ad count. It also lists which advertiser accounts a name matched, and a note when a name matched nothing.

### How much does the Google Ads Library Scraper cost?

Pay per event: one result event per ad (or advertiser row) saved, one ad-details event per ad saved with details, plus a start fee.

| Event | FREE | BRONZE (−2.5%) | SILVER (−5%) | GOLD (−20%) |
|---|---|---|---|---|
| Ad or advertiser saved | USD 0.0015 | USD 0.001463 | USD 0.001425 | USD 0.0012 |
| Ad details (per ad with details) | USD 0.003 | USD 0.002925 | USD 0.00285 | USD 0.0024 |
| Actor start (per started GB of allocated memory; one event at the default 256 MB) | USD 0.005 | USD 0.005 | USD 0.005 | USD 0.005 |

Examples at the FREE tier: 100 ads cost USD 0.155, and 1,000 ads with details cost USD 4.505. A single-ad link always returns the ad's details and is charged as one ad plus one ad-details event. A search that finds nothing, or an input that is rejected, costs only the start fee. Set a maximum cost per run and the Actor stops cleanly at it.

### When should I use it, and when not?

Use it for Google ads: Search, YouTube, Shopping, Maps and Play ads in the Google Ads Transparency Center. Do not use it for:

- ads on Facebook or Instagram: use [Facebook Ads Library Scraper](https://apify.com/muhammadafzal/facebook-ads-library-scraper);
- LinkedIn ads: use [LinkedIn Ads Library Scraper](https://apify.com/muhammadafzal/linkedin-ads-library-scraper);
- TikTok ads: use [TikTok Ads Library Scraper](https://apify.com/muhammadafzal/tiktok-ads-library-scraper);
- keyword bids, ad spend or click data, which Google does not publish for commercial ads;
- ad copy as text. Google shows most text ads as images, so you get the image link.

### Use it from an AI assistant

Google Ads Library Scraper works from Claude, ChatGPT, Cursor or any MCP client through Apify's MCP server. Add `https://mcp.apify.com/?tools=muhammadafzal/google-ads-library-scraper` to your client, then ask, for example: *"List the YouTube video ads booking.com ran in Germany this month, with how many times each was shown."*

### Limits and reliability

- Data comes from the Transparency Center's own public pages, the same ones the website loads in your browser. No login, cookies or Google account are used.
- Up to 100 ads per request. 300 ads with details take about a minute.
- Google answers some lookups with an empty record for a moment. The Actor retries once, and if ad details still don't come back, the row is saved with `detailsIncluded: false` and counted in `OUTPUT`.
- The platform filter applies only to ads shown since 2023-09-04, as on the website. Times-shown figures end about 90 days before today.
- If Google refuses requests (it rate-limits heavy use from one network address), the run continues on a fallback data route and marks those rows `accessRoute: "fallback"`. On that route the topic, funded by, audience selection and the advertiser's legal name, country and verification are not available (`null`), `shownDays` is `null`, details can be up to a day old, and variations carry the ad's headline, description and destination website instead of image links. If every route is refused, the run ends `BLOCKED` with no result charges, keeping any rows already saved.

### FAQ

**What is the Google Ads Transparency Center?**
It is Google's public ads library at adstransparency.google.com. It shows the ads verified advertisers run on Google Search, YouTube, Shopping, Maps and Play, with the advertiser's identity and, in some regions, reach data.

**Is there a Google Ads Transparency API?**
Google offers no public API for the Transparency Center. This Actor works as one: call it from the Apify API, the JavaScript or Python client, or MCP, and get JSON, CSV or Excel back.

**Can I download Google ads videos with it?**
No. Video ads come with a Google preview link and the ad page, not a video file.

**Why does a brand name return fewer ads than its website?**
A name only reaches advertiser accounts whose name contains it. A website search returns every ad that points at the site from any account, including agencies and resellers, so use the website for full coverage.

**How do I see a competitor's ads in one country?**
Set Region to that country, for example GB.

**Is it free to try?**
Apify's free plan includes monthly credit you can spend on this Actor. At USD 1.50 per 1,000 ads, that covers a few thousand ads.

### Related Actors

- [Facebook Ads Library Scraper](https://apify.com/muhammadafzal/facebook-ads-library-scraper)
- [LinkedIn Ads Library Scraper](https://apify.com/muhammadafzal/linkedin-ads-library-scraper)
- [TikTok Ads Library Scraper](https://apify.com/muhammadafzal/tiktok-ads-library-scraper)

### Legal and data note

The Actor reads ads that Google publishes for public transparency. Advertiser names can be people's names when an individual advertises. Use the data in line with your local law and Google's terms. Don't use it to profile private individuals.

Last verified: 2026-11-16

# Actor input Schema

## `searchTerms` (type: `array`):

Use this when you know a competitor's website or name. A website (nike.com) returns every ad that points at that site, from any advertiser account. A name (Nike) finds advertiser accounts whose name contains it, then returns their ads. Advertiser IDs (AR…) and adstransparency.google.com links also work here. Up to 200 per run.

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

Use this when you already have Transparency Center advertiser IDs, for example AR18378488041124659201 (the ID in an advertiser page's URL). Returns that account's ads. Not a Google Ads customer ID.

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

Use this to paste links copied from adstransparency.google.com: an advertiser page (/advertiser/AR…), a single ad (/advertiser/AR…/creative/CR…) or a website search (?domain=nike.com). A region in the link overrides the Region field for that link.

## `resultType` (type: `string`):

Use 'ads' for the ads themselves. Use 'advertisers' to find which advertiser accounts run ads for a website or brand, with their legal name, country, verification and approximate ad count; this mode does not return ad rows.

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

Use this to limit results to ads shown in one country, for example GB. 'Anywhere' covers every region. Times shown and audience details are published by Google mainly for ads shown in the EU and a few other regions.

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

Use this to keep only ads shown on some Google platforms, for example YouTube for video ad research. Empty means all platforms. Google applies this filter only to ads shown since 2023-09-04.

## `adFormat` (type: `string`):

Use this to keep one ad format, for example VIDEO. Google publishes most text ads as an image of the ad, so text ads usually come with an imageUrl rather than the ad's words.

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

Use this with 'Shown until' to keep ads that were shown at some point in a date window, for example 2026-10-01. Leave empty for any time.

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

End of the date window, for example 2026-10-31. Leave empty for up to today.

## `maxAdsPerTarget` (type: `integer`):

Use this to cap how many ads are read for each website or advertiser account, newest-shown first as Google orders them. In advertisers mode it caps how many of a website's ads are scanned to find the accounts behind them. 1 to 10,000.

## `maxAdvertisersPerTerm` (type: `integer`):

Use this when a name such as Nike matches several advertiser accounts (Nike, Inc., Nike Retail BV…). Accounts whose name contains every word of the term are kept, exact names first. 1 to 20. Does not apply to websites or IDs.

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

Total rows this run may save across all targets; each row is one result event. The run also stops at its maximum charge. 1 to 50,000.

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

Use this for reach and targeting research. Adds every region the ad ran in with first and last shown dates, Google's 'times shown' ranges per region and platform, the platforms, the topic Google labeled, who funded the ad, the audience criteria used, and all variations. One extra request per ad, charged as one ad-details event per ad (USD 0.003).

## Actor input object example

```json
{
  "searchTerms": [
    "nike.com"
  ],
  "resultType": "ads",
  "region": "anywhere",
  "adFormat": "ALL",
  "maxAdsPerTarget": 3,
  "maxAdvertisersPerTerm": 3,
  "maxResults": 1000,
  "includeDetails": false
}
```

# Actor output Schema

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

One row per ad (or per advertiser account in advertisers mode).

## `summary` (type: `string`):

Outcome, stop reason, rows saved, per-target results with Google's ad-count estimates, warnings and request counts.

# 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 = {
    "searchTerms": [
        "nike.com"
    ],
    "maxAdsPerTarget": 3,
    "includeDetails": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/google-ads-library-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 = {
    "searchTerms": ["nike.com"],
    "maxAdsPerTarget": 3,
    "includeDetails": False,
}

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/google-ads-library-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 '{
  "searchTerms": [
    "nike.com"
  ],
  "maxAdsPerTarget": 3,
  "includeDetails": false
}' |
apify call muhammadafzal/google-ads-library-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammadafzal/google-ads-library-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/eyb0E3xK0W9QNqkTB/builds/Pm90440AR3Bv8hxTE/openapi.json
