# Google Ads Transparency Scraper - Ad Library & Leads | $2/1k (`rickyz1x/google-ads-scraper`) Actor

Check which businesses run Google Ads: advertiser ID, verified name, ad count, formats, first/last seen dates & creatives. Domains in, qualified leads out.

- **URL**: https://apify.com/rickyz1x/google-ads-scraper.md
- **Developed by:** [ZHANG RUIQI](https://apify.com/rickyz1x) (community)
- **Categories:** Lead generation, Automation, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 80.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 advertiser qualification summaries

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 Scraper - Ad Library & Leads

Check which domains, brands or advertiser IDs run Google Ads and get the verified advertiser, ad-count range, formats, first and last seen dates and recent creatives from the Google Ads Transparency Center.

### Sample output

| Query | Advertiser | Verified | Active ads (range) | Formats (10 newest) | Last seen |
|---|---|---|---|---|---|
| hubspot.com | Hubspot, Inc. | no | 3,000-4,000 | text 9, video 1 | 2026-11-07 |
| shopify.com | Shopify Inc. | no | 70,000-80,000 | text 7, image 1, video 2 | 2026-11-07 |
| stripe.com | Stripe, Inc. | no | 8,000-9,000 | text 7, video 3 | 2026-11-07 |
| monday.com | monday.com LTD | no | 30,000-40,000 | text 3, video 7 | 2026-11-07 |

*Real rows: verified snapshot of real Transparency Center responses, recorded live 2026-11-07T12:46:47Z. The Output section below documents every field.*

### Pricing (pay per event)

| Event | Charged when | Price per event | Per 1,000 |
|---|---|---:|---:|
| `advertiser-check` (primary) | every live advertiser check delivered | $0.002 | $2 |
| `ad-creative` | every live ad creative delivered | $0.0015 | $1.50 |
| `apify-actor-start` | once per run (Apify platform start event) | $0.00005 | - |

| Example run | Events charged at most | Cost at most |
|---|---|---:|
| Console prefill or API default (2 domains, 1 check + up to 10 creatives each) | 2 x `advertiser-check`, 20 x `ad-creative` | $0.034 |
| 1,000 domains, checks only (`maxCreativesPerQuery: 0`) | 1,000 x `advertiser-check` | $2.00 |

Never charged: verified snapshot rows served when Google blocks a request; unavailable rows; invalid input.

Set **Max cost per run** (`maxTotalChargeUsd` in the API) to cap any run. The Actor checks the budget before every charge and stops cleanly when it is reached; add-on data that no longer fits is withheld, never given away. If the budget is below the price of a single record, the run delivers one free sample row and says so in its status message.

### Try it: copy-paste input

This is the Console prefill (the same input the Example run table prices):

```json
{
  "queries": [
    "hubspot.com",
    "shopify.com"
  ],
  "maxCreativesPerQuery": 10,
  "region": "US"
}
```

### Use it from the API, MCP or n8n

Run it and get the dataset in one call (the `maxTotalChargeUsd` query parameter caps what this run can cost):

```bash
curl -X POST "https://api.apify.com/v2/acts/rickyz1x~google-ads-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=0.50" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"queries":["hubspot.com","shopify.com"],"maxCreativesPerQuery":10,"region":"US"}'
```

- **AI agents (MCP):** add `https://mcp.apify.com/?actors=rickyz1x/google-ads-scraper` to Claude, Cursor or any MCP client.
- **n8n, Make, Clay:** importable templates with record limits and a max-cost cap are in the [workflow templates repository](https://github.com/Ricky-X1Z/us-permit-contractor-workflows).

### How it works

Paste a list of domains and find out, for each one:

- **is this business running Google Ads?**
- who the verified advertiser is, and its advertiser ID
- roughly how many ads it has run
- which formats it uses
- how long its longest ad has been running
- when its ads were first and last seen

You also get each advertiser's latest ad creatives, with first/last-shown dates and links to the Transparency Center.

Agencies use it to **qualify leads** ("which of these 500 roofers actually spend on Google Ads?") and to **monitor competitors** (schedule it with *Only new creatives* to get only new ads).

### Input

| Field | Default | What it does |
|---|---|---|
| `queries` | `hubspot.com`, `shopify.com` | One per line. A domain (`nike.com`, `https://www.nike.com/us/`), an advertiser name (`HubSpot`), or an advertiser ID / URL (`AR10072600183532683265`). Domains are the most precise input for lead qualification. |
| `maxCreativesPerQuery` | `10` | Most recent creatives per query, 0-100. Use `0` for advertiser checks only. |
| `region` | `US` | Region filter: US, GB, CA, AU, DE, FR, ES, IT, NL, IE, NZ, IN, BR, MX, JP, SG, ZA, SE, CH, PL. |
| `includeAdvertiserSummary` | `true` | One `advertiser_summary` record per query. |
| `onlyNewCreatives` | `false` | Only creatives not returned for the same query and region in an earlier run. |
| `extractAdText` | `false` | For Search text-ad creatives, also read the ad preview and return `ad_headline`, `ad_description`, `ad_display_url` and `landing_domain` when the preview carries them (best effort, one extra paced request per text creative, no extra charge). |
| `useApifyProxy` | `false` | Route through Apify Proxy and rotate the session whenever Google rate-limits a request. Recommended above about 50 queries. |
| `apifyProxyGroups` | `[]` | Optional proxy groups, e.g. `RESIDENTIAL`. |

### Output

#### `advertiser_summary` (real output)

```json
{
  "record_type": "advertiser_summary",
  "query": "hubspot.com",
  "query_type": "domain",
  "region": "US",
  "is_advertising": true,
  "advertiser_id": "AR10072600183532683265",
  "advertiser_name": "Hubspot, Inc.",
  "country": "US",
  "is_verified": false,
  "estimated_active_ads_min": 3000,
  "estimated_active_ads_max": 4000,
  "creatives_returned": 10,
  "formats_breakdown": {"text": 6, "image": 0, "video": 4, "other": 0},
  "longest_running_creative_days": 1717,
  "first_ad_seen_at": "2022-02-24T10:17:07Z",
  "last_ad_seen_at": "2026-11-07T12:36:03Z",
  "ad_spend_signal": "very_high",
  "other_advertisers_on_domain": [{"advertiser_id": "AR01655100247770136577", "advertiser_name": "Transformacy Ltd", "creatives_returned": 1}],
  "transparency_url": "https://adstransparency.google.com/advertiser/AR10072600183532683265?region=US",
  "data_source_mode": "live_rpc",
  "snapshot_captured_at": null,
  "scraped_at": "2026-11-07T13:02:19Z"
}
```

- `estimated_active_ads_min` / `_max` is the ad-count range the Transparency Center reports for the query in that region.
- `ad_spend_signal` (`none`, `low`, `medium`, `high`, `very_high`) is a coarse budget proxy. It starts from the ad-count range (under 20 / under 100 / under 1,000 / 1,000+). It goes one level up when an ad has run for 180+ days, and one level down when no ad was seen in the last 30 days. It is not a spend figure.
- `other_advertisers_on_domain` lists other advertisers whose ads point to the same domain, such as resellers and partners.

#### `ad_creative` (real output)

```json
{
  "record_type": "ad_creative",
  "query": "hubspot.com",
  "region": "US",
  "creative_id": "CR16896554526767579137",
  "advertiser_id": "AR10072600183532683265",
  "advertiser_name": "Hubspot, Inc.",
  "domain": "hubspot.com",
  "ad_format": "video",
  "first_shown_at": "2026-06-29T20:56:33Z",
  "last_shown_at": "2026-11-07T12:36:03Z",
  "days_active": 130,
  "preview_url": "https://displayads-formats.googleusercontent.com/ads/preview/content.js?...",
  "transparency_url": "https://adstransparency.google.com/advertiser/AR10072600183532683265/creative/CR16896554526767579137?region=US",
  "ad_headline": null,
  "ad_description": null,
  "ad_display_url": null,
  "landing_domain": null,
  "data_source_mode": "live_rpc",
  "is_new": true
}
```

`ad_format` is `text`, `image`, `video`, or `other` for a format code this Actor does not know. `preview_url` is the archived image or the preview script the Transparency Center itself uses. The four `ad_*` / `landing_domain` text fields are filled only with `extractAdText` and only when the preview carries a Search text ad's data.

### Reliability: pacing, retries and the verified snapshot

The actor uses the same public, unauthenticated web endpoints as adstransparency.google.com: `SearchService/SearchSuggestions` and `SearchService/SearchCreatives`. Requests are paced at least 0.8 s apart. Each request is retried twice with backoff, and with Apify Proxy every retry uses a new proxy session. Without pacing, bursts from one IP get redirected to `google.com/sorry`.

If Google still blocks a query, or a response no longer has the expected shape, or anything else goes wrong for that query, the run does not crash and the other queries continue. Every record says where its data came from in `data_source_mode`:

| `data_source_mode` | Meaning | Charged |
|---|---|---|
| `live_rpc` | fetched live in this run | yes |
| `live_rpc_partial` | the advertiser was resolved live, but the creatives request was blocked; see `warnings` | `advertiser-check` only |
| `verified_snapshot_fallback` | replay of real RPC responses captured on the date in `snapshot_captured_at` | no |
| `unavailable` | blocked, and no snapshot covers this query; see `error` | no |

The verified snapshot covers `hubspot.com`, `shopify.com`, `stripe.com`, `monday.com`, `canva.com`, `semrush.com` and `nike.com` (region US). It was recorded by `scripts/record_ads_snapshot.py` from live responses; nothing in it is hand-written. After 3 blocked queries in a row the actor stops calling Google for the rest of the run, instead of hammering it.

If every query ends `unavailable`, the run still finishes successfully: the free `unavailable` rows are in the dataset, nothing is charged, and the status message tells you to enable Apify Proxy and retry. The run fails only when the input is invalid or not a single row could be delivered.

### Run locally

```bash
cd actors/google-ads-transparency
pip install -r requirements.txt
python -m src.main --local-input '{"queries": ["hubspot.com", "Semrush"], "maxCreativesPerQuery": 3}'
```

### Limitations and coverage

- **Undocumented endpoints.** The RPCs can change without notice. Parsing is defensive: a shape change is treated like a block (verified snapshot for the covered domains, otherwise free `unavailable` rows), never as wrong data.
- **What you can search.** The Transparency Center is searched by advertiser or domain, not by topic keyword.
- **Text ads.** Ad text lives in Google's preview script. With `extractAdText` the Actor reads it for Search text ads, but many previews (image-rendered text ads, video and image ads) carry no text, so expect these fields to be empty on most creatives. Every creative keeps its `preview_url`.
- **Region.** Results are filtered to one region per run (20 regions supported). The verified snapshot exists for region US only.
- **Lists of advertisers.** Advertiser-name queries pick the best name match and list the other matches in `other_matching_advertisers`.

### Companion B2B & Lead Generation Actors by RickyZ1X

| Actor | Best for | Apify Store link |
| :--- | :--- | :--- |
| **Building Permits Scraper - Contractor Leads & Phone** | New permits with contractor phone and parsed job specs (6 US portals) | [rickyz1x/building-permits-scraper](https://apify.com/rickyz1x/building-permits-scraper) |
| **Contractor License Scraper - Insurance & Bond Expiry** | WA contractors with expiring insurance, bonds or licenses | [rickyz1x/contractor-license-scraper](https://apify.com/rickyz1x/contractor-license-scraper) |
| **Building Permit History Scraper - Address Lookup** | Permit history by contractor, phone or address (HTTP API + MCP) | [rickyz1x/permit-history-scraper](https://apify.com/rickyz1x/permit-history-scraper) |
| **Career Site Jobs Scraper - Greenhouse, Lever, Ashby** | Open jobs and hiring signals from 6 ATS platforms | [rickyz1x/career-site-jobs-scraper](https://apify.com/rickyz1x/career-site-jobs-scraper) |
| **Google Ads Transparency Scraper - Ad Library & Leads** | Which domains run Google Ads, with advertiser and creatives (this Actor) | [rickyz1x/google-ads-scraper](https://apify.com/rickyz1x/google-ads-scraper) |
| **Keyword Search Volume & CPC Scraper - Google & Bing** | Modeled search volume, CPC, difficulty and intent from autocomplete | [rickyz1x/keyword-volume-scraper](https://apify.com/rickyz1x/keyword-volume-scraper) |
| **Product Hunt & YC Scraper - Startup & Founder Leads** | New Product Hunt, YC and Show HN startups with founders and contacts | [rickyz1x/product-hunt-scraper](https://apify.com/rickyz1x/product-hunt-scraper) |
| **Tech Stack & Pixel Scraper - BuiltWith Alternative** | Technologies, ad pixels, GTM IDs and Shopify data for any website | [rickyz1x/tech-stack-scraper](https://apify.com/rickyz1x/tech-stack-scraper) |
| **Luma, Eventbrite & Meetup Scraper - Organizer Leads** | Upcoming events with organizer, host and sponsor leads | [rickyz1x/luma-events-scraper](https://apify.com/rickyz1x/luma-events-scraper) |

# Actor input Schema

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

One per line: a domain (hubspot.com, https://www.nike.com/), an advertiser name as shown in the Transparency Center (HubSpot), or an advertiser ID (AR10072600183532683265) / advertiser URL. Domains are the most precise input for lead qualification.

## `maxCreativesPerQuery` (type: `integer`):

Most recent ad creatives returned per query (0-100). Set 0 to get only the advertiser check, the cheapest way to qualify a long domain list.

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

Country whose ads are searched (the Transparency Center region filter). Ad counts and creatives differ by region.

## `includeAdvertiserSummary` (type: `boolean`):

Add one advertiser_summary record per query: is_advertising, advertiser ID and name, country, verification, estimated ad count range, format mix, longest-running ad and an ad spend signal.

## `onlyNewCreatives` (type: `boolean`):

Only return ad creatives that were not returned for the same query and region in a previous run. Use with a schedule to monitor competitors' new ads.

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

For Search text-ad creatives, also read the ad preview and return ad_headline, ad_description, ad_display_url and landing_domain when the preview carries them (many previews do not). One extra paced request per text creative; no extra charge.

## `useApifyProxy` (type: `boolean`):

Route requests through Apify Proxy and rotate to a new proxy session when Google rate-limits a request. Recommended for lists of more than ~50 queries.

## `apifyProxyGroups` (type: `array`):

Optional Apify Proxy groups (e.g. RESIDENTIAL). Leave empty for the default datacenter proxies. Only used when 'Use Apify Proxy' is on.

## Actor input object example

```json
{
  "queries": [
    "hubspot.com",
    "shopify.com"
  ],
  "maxCreativesPerQuery": 10,
  "region": "US",
  "includeAdvertiserSummary": true,
  "onlyNewCreatives": false,
  "extractAdText": false,
  "useApifyProxy": false,
  "apifyProxyGroups": []
}
```

# Actor output Schema

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

All output records stored in the default dataset.

## `advertisers` (type: `string`):

Lead-qualification view of advertiser_summary records.

# 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": [
        "hubspot.com",
        "shopify.com"
    ],
    "maxCreativesPerQuery": 10,
    "region": "US",
    "apifyProxyGroups": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("rickyz1x/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 = {
    "queries": [
        "hubspot.com",
        "shopify.com",
    ],
    "maxCreativesPerQuery": 10,
    "region": "US",
    "apifyProxyGroups": [],
}

# Run the Actor and wait for it to finish
run = client.actor("rickyz1x/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 '{
  "queries": [
    "hubspot.com",
    "shopify.com"
  ],
  "maxCreativesPerQuery": 10,
  "region": "US",
  "apifyProxyGroups": []
}' |
apify call rickyz1x/google-ads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rickyz1x/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/oaI9egJmcGWYd485d/builds/Df4yGFzMThhfj6arT/openapi.json
