# How to Scrape Google Ads Transparency Center in Python (2026): RPC, Playwright & Managed API Guide

![How to Scrape Google Ads Transparency Center in Python](https://raw.githubusercontent.com/yun87457-web/google-ads-transparency-mcp/main/cover.png)

**Google does not provide an official public developer API for the Google Ads Transparency Center.** If you want to extract active competitor ad creatives, structured ad copy, destination URLs, or EU Digital Services Act (DSA) audience reach disclosures programmatically in Python, you have three practical options: reverse-engineering Google's internal RPC endpoints, running headless Playwright browsers, or calling a zero-browser managed RPC API.

This guide walks through all three methods with real Python code, compares their speed and maintenance cost, and shares a live 12-domain SaaS benchmark pulled on **November 23, 2026**.

> **Live Open Dataset (Nov 2026):** We also screened 100 major SaaS, AI & DTC brands (`97%` active Google Ads, `72%` YouTube video ads, led by Shopify `70k–80k`). Explore & download CSV: [Top 100 Brands Google Ads Index](https://yun87457-web.github.io/google-ads-transparency-mcp/) · Run locally via MCP: `npx -y github:yun87457-web/google-ads-transparency-mcp`

## Why Teams Scrape the Google Ads Transparency Center

Marketing agencies, competitive intelligence teams, and B2B outbound pipelines rely on Transparency Center data for four concrete workflows:

1. **Verifying active Google Ads spend before outreach:** Checking whether a prospect has `gtag.js` on their homepage produces constant false positives because dormant tags stay installed for years. Transparency Center confirms verified advertiser entities and live creative counts.
2. **Monitoring competitor creative testing:** Seeing exact Search, Display, and YouTube Video formats and launch dates lets PPC teams spot new positioning tests weeks earlier.
3. **Extracting EU Digital Services Act (DSA) reach & targeting:** For ads shown in the EEA, Google discloses estimated audience reach ranges, age/gender/geo targeting parameters, and `fundedBy` end-payer entities.
4. **Building automated Slack or CRM alerts:** Running scheduled checks on key competitors via n8n, Python cron jobs, or AI agents over MCP.

---

## Method 1: Headless Browser Automation (Playwright in Python)

The most intuitive starting point is loading `https://adstransparency.google.com/?domain=shopify.com` in Playwright and scraping rendered DOM cards:

```python
from playwright.sync_api import sync_playwright

def scrape_ads_playwright(domain: str, region: str = "US"):
    with sync_playwright() as p:
        browser = p.chromium.launch(headless=True)
        page = browser.new_page()
        page.goto(
            f"https://adstransparency.google.com/?region={region}&domain={domain}",
            wait_until="networkidle",
            timeout=20000,
        )
        page.wait_for_selector("creative-preview", timeout=10000)
        cards = page.locator("creative-preview").all_inner_texts()
        browser.close()
        return cards[:10]

if __name__ == "__main__":
    print(scrape_ads_playwright("shopify.com"))
```

**Where Playwright breaks in production:**
- **Memory & latency:** Each Chromium worker consumes 1–4 GB of RAM and takes 8–20 seconds per domain. Screening 500 B2B leads becomes slow and expensive.
- **Image-only previews:** Many Search and Display creatives render inside sandboxed iframes or canvas/image previews, forcing brittle OCR pipelines if you only scrape DOM text.
- **Missing EU DSA detail panes:** Getting reach, targeting, and `fundedBy` disclosures requires clicking into every individual creative drawer.

---

## Method 2: Calling Google's Internal RPC Endpoints Directly

Under the hood, the Transparency Center Angular frontend fetches structured protobuf-like JSON arrays from internal `POST` endpoints such as:

`https://adstransparency.google.com/anji/_/rpc/SearchService/SearchCreatives`

Querying the RPC layer directly eliminates Chromium completely (cutting memory from 4 GB down to ~15 MB and dropping latency from ~12 seconds to under 500 ms). The trade-off is maintenance: Google's nested `f.req` array indices, region geo-target IDs (240+ countries), pagination tokens, and EU DSA detail endpoints change periodically, and resolving messy CRM inputs (like `ceo@klaviyo.com` or `https://www.shopify.com/pricing?utm=1`) to verified `AR...` advertiser IDs requires multi-step lookup logic.

---

## Method 3: Zero-Browser Managed RPC API (Python, cURL, n8n & MCP)

If you want the millisecond speed of direct RPC without maintaining protobuf index tables or proxy pools, you can call a dedicated Go RPC engine via **Apify** or **RapidAPI** (`AdPulse` — Google Ads Transparency Center Scraper & API).

### Python Example (Bulk Domain Ad-Spend Screening via Apify)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("spiky_closet/google-ads-transparency-scraper").call(run_input={
    "domains": ["shopify.com", "hubspot.com", "klaviyo.com", "linear.app", "vercel.com"],
    "screeningMode": True,
})

for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(
        f"{row['domain']:15} | active={row['hasActiveAds']} | "
        f"ads={row['approxAdCountLow']}-{row['approxAdCountHigh']} | "
        f"formats={row['formatsObserved']}"
    )
```

### REST API Example (Single-Brand Search + EU DSA Reach via RapidAPI)

```bash
curl -sG "https://google-ads-transparency-creative-spy.p.rapidapi.com/search" \
  --data-urlencode "query=shopify.com" \
  --data-urlencode "region=DE" \
  --data-urlencode "maxResults=10" \
  -H "x-rapidapi-key: YOUR_RAPIDAPI_KEY" \
  -H "x-rapidapi-host: google-ads-transparency-creative-spy.p.rapidapi.com"
```

### Connecting Directly to Claude, Cursor, or AI Agents (Streamable HTTP MCP)

```json
{
  "mcpServers": {
    "google-ads-transparency": {
      "url": "https://spiky-closet--google-ads-transparency-scraper.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

---

## Live Benchmark: 12 Major SaaS Domains Screened (November 23, 2026)

To show the exact structured output you get from bulk domain screening, we ran 12 well-known software domains directly through the engine on **November 23, 2026**:

| Domain | Verified Advertiser | Approx. Active/Recent Creatives | Formats Observed | Country |
| :--- | :--- | :--- | :--- | :--- |
| `shopify.com` | Shopify Inc. | `70,000–80,000` | Text, Video | CA |
| `monday.com` | monday.com LTD | `20,000–30,000` | Text, Video | IL |
| `klaviyo.com` | Klaviyo, Inc. | `9,000–10,000` | Image, Text, Video | US |
| `datadoghq.com` | DATADOG, INC. | `9,000–10,000` | Image, Text | US |
| `stripe.com` | Stripe, Inc. | `8,000–9,000` | Text, Video | US |
| `hubspot.com` | Hubspot, Inc. | `3,000–4,000` | Image, Text, Video | US |
| `figma.com` | Figma INC | `1,000–2,000` | Text, Video | US |
| `webflow.com` | Webflow, Inc. | `700–800` | Image, Text, Video | US |
| `posthog.com` | PostHog Inc. | `400–500` | Text, Video | US |
| `vercel.com` | Vercel Inc. | `200–300` | Text | US |
| `linear.app` | Linear Orbit, Inc. | `25` | Text | US |
| `notion.so` | Notion Labs Japan合同会社 | `9` | Image, Text, Video | JP |

Two practical patterns stand out immediately:
- **PLG dev-tool companies run lean Text-only Search ads:** `linear.app` (`25` creatives) and `vercel.com` (`200–300`) focus strictly on Search text, whereas SMB/enterprise demand-gen machines (`shopify.com` at `70k–80k`, `monday.com` at `20k–30k`, `klaviyo.com` at `9k–10k`) run thousands of multi-format Search + YouTube Video variations.
- **Domain screening surfaces regional legal entities:** Querying `notion.so` surfaced `Notion Labs Japan合同会社` — catching regional ad accounts that naive brand-name searches often miss.

---

## Comparison: Playwright vs. SerpApi vs. Zero-Browser Go RPC API

| Approach | Typical Latency | Proxy / Browser Overhead | EU DSA Reach & Payers | Batch Domain Screening | Pricing Model |
| :--- | :--- | :--- | :--- | :--- | :--- |
| **Self-hosted Playwright** | `8–20s / domain` | 2–4 GB RAM + residential proxies | Requires extra drawer clicks | Manual scripting | Infra + proxy bills |
| **SerpApi** | `1–4s / call` | Managed | Partial | 1 call per query | `$75/mo+` monthly plans |
| **Go RPC API (Apify / RapidAPI)** | `300–1,600ms` | Zero browser, zero proxy | Native (`includeDetails: true`) | Native (`domains[]` + work emails) | Pay-per-event (`$1.00–$1.50/1k`) or Free tier |

---

## Frequently Asked Questions

**Is there an official Google Ads Transparency Center API?**
No. Google provides a public web portal and EU DSA transparency reports, but no official public REST API for querying advertiser creatives or domain ad activity.

**Can I check if a list of B2B domains or work emails is actively running Google Ads?**
Yes. In `screeningMode: true`, you can pass bare domains (`klaviyo.com`), URLs, or work emails (`ceo@hubspot.com`), and the API automatically normalizes each domain and returns `hasActiveAds`, verified advertiser names, creative count ranges, and active formats.

**Does it extract EU Digital Services Act (DSA) audience reach and targeting?**
Yes. Passing a European region code (such as `DE`, `FR`, or `EU`) with `includeDetails: true` extracts official EU DSA reach ranges, demographic targeting disclosures, and `fundedBy` payer names.

**Do I need residential proxies to run it at scale?**
No. Because it communicates over direct Go RPC rather than browser scraping, it runs cleanly on 128–256 MB containers with `$0` proxy cost.

**Where can I test it right now without writing code?**
- One-click bulk domain ad-spend preset: https://apify.com/spiky_closet/google-ads-transparency-scraper/examples/b2b-domain-google-ads-spend-checker
- One-click EU DSA reach preset: https://apify.com/spiky_closet/google-ads-transparency-scraper/examples/eu-dsa-google-ads-reach-extractor
- Full Apify Actor & MCP server: https://apify.com/spiky_closet/google-ads-transparency-scraper
- RapidAPI REST Playground (Free Basic plan): https://rapidapi.com/HYunLe/api/google-ads-transparency-creative-spy
- Standalone GitHub examples & n8n workflow JSON: https://github.com/yun87457-web/google-ads-transparency-mcp
