# Google Ads Transparency RPC Scraper — No Login ($0.70/1K) (`studio001/google-ads-transparency-direct-rpc`) Actor

No-login Google Ads Transparency Center API built on direct internal RPCs ($0.70/1K Gold, 256MB RAM vs 4GB browsers). Extract advertiser IDs, TEXT/IMAGE/VIDEO creatives, copy, images, YouTube URLs & landing pages—MCP & Standby ready.

- **URL**: https://apify.com/studio001/google-ads-transparency-direct-rpc.md
- **Developed by:** [YEONG JUN YOO](https://apify.com/studio001) (community)
- **Categories:** Lead generation, AI, MCP servers
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 ads creative scraped

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/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 Center Direct-RPC Scraper

**Zero-browser, ultra-lightweight (`256 MB` RAM) Google Ads Transparency Center API built directly on Google's internal `/anji/_/rpc/` endpoints — delivering 16x lower memory footprint, instant pagination, deep creative asset recovery, and predictable Pay-Per-Event pricing.**

Unlike legacy Playwright or Puppeteer scrapers that launch heavy `4,096 MB` headless Chromium browsers and fail whenever Google tweaks CSS classes, `studio001/google-ads-transparency-direct-rpc` speaks natively to `adstransparency.google.com/anji/_/rpc/` (`SearchSuggestions`, `SearchCreatives`, and `LookupService/GetCreativeById`) over HTTP/2. You get clean advertiser IDs, active date windows, creative formats (`TEXT`, `IMAGE`, `VIDEO`), A/B variation counts, extracted headlines/copy snippets, image URLs, YouTube video links, and landing page URLs in seconds.

***

### Executive Value Proposition & Key Highlights

- **16x Lower RAM (`256 MB` vs `4,096 MB` Browser Actors)**: Zero Chromium startup lag, zero DOM selector breakage, and dramatically lower Apify Compute Unit overhead across scheduled runs and high-volume MCP tool calls.
- **Direct Internal RPC Precision**: Queries `SearchService/SearchSuggestions`, `SearchService/SearchCreatives`, and `LookupService/GetCreativeById` directly with automatic 40-item cursor pagination up to `1,000` ads per target.
- **Resilient Cloud Proxy & Anti-Bot Politeness**: Automatically defaults to Apify Datacenter proxy on Apify Cloud (`useApifyProxy: true`) so US-East API and MCP callers never encounter silent `0-ad` blocks, backed by polite session rotation (`0.4–0.8s` jitter), a 1-shot `RESIDENTIAL` fallback strictly for valid non-empty domains, and immediate respectful termination on HTTP 429 `/sorry/` gates.
- **Zero-Charge Failure Protection**: You are never billed `ad-scraped` or `creative-assets-extracted` item fees when a target fails, encounters a `/sorry/` challenge gate, or yields no creatives.
- **URL Auto-Sanitization & Brand Auto-Resolution**: Paste raw URLs like `"https://www.Airbnb.com/rooms?x=1"` into `domains` (auto-cleaned to `"airbnb.com"`), pass verified `AR...` IDs, or supply plain brand names in `searchQueries`.
- **Deep Creative Asset & Video Recovery**: Enable `extractCreativeAssets` to fetch and decode Google's `content.js` preview bundles for `imageUrls`, `youtubeVideoIds`, `youtubeVideoUrls`, `textSnippets`, and `landingUrls`.
- **AI Agents, MCP & Workflow Ready**: First-class support for `mcp.apify.com`, Claude Desktop, Cursor, VS Code, LangGraph, n8n, Make.com, Google Sheets, Python (`apify-client`), and cURL.

***

### Competitor Comparison Benchmark

| Feature / Metric | **Google Ads Transparency Direct-RPC (Studio 001)** | `solidcode~ads-transparency-scraper` | Typical Playwright / Browser Scrapers |
| :--- | :--- | :--- | :--- |
| **Execution Architecture** | **Direct `/anji/_/rpc/` + `content.js` HTTP/2 parser** | Headless Chromium / Playwright (`1.93★`) | Headless Chromium / Puppeteer |
| **Memory Footprint (RAM)** | **`256 MB`** (min `256 MB` / max `512 MB`) | `4,096 MB` (`16x` heavier) | `2,048–4,096 MB` |
| **Cold Start & Speed** | **Instant HTTP client (~0.4s/RPC page)** | 8–20s Chromium boot + hydration waits | 10–30s browser render overhead |
| **Base Creative Pricing** | **`$1.00 / 1K` (`FREE`/`BRONZE`), `$0.70 / 1K` (`GOLD`)** | Higher compute + variable run cost | `$2.00–$5.00 / 1K` + heavy CU burn |
| **Actor Start Fee** | **`$0.00005`** | Higher run/CU baseline | `$0.005–$0.01+` |
| **Failed / Blocked Target Fee** | **`$0` item charge on errors or `/sorry/` gates** | Platform CU billed during timeouts | Billed on partial failures / retries |
| **DOM Selector Breakage** | **Immune** (native Protobuf-JSON RPC keys) | Frequent CSS/Shadow-DOM breakage | Frequent UI layout breakage |
| **Asset & Video Recovery** | Optional `extractCreativeAssets` & `includeCreativeDetails` | Limited screenshot / DOM scraping | Slow iframe inspection |
| **URL Auto-Sanitization** | Automatic (`https://www.Brand.com/path` -> `brand.com`) | Manual root-domain formatting required | Manual formatting required |

***

### Real-World Use Cases

#### 1. Brand & Competitive Ad Intelligence

Monitor every Search (`TEXT`), Display (`IMAGE`), and YouTube (`VIDEO`) campaign launched by direct competitors across `30+` mapped countries (`US`, `GB`, `CA`, `AU`, `DE`, `FR`, `JP`, `KR`, `SG`, and `ALL`). Track `firstShownAt` and `lastShownAt` dates to identify evergreen winning creatives versus short-lived A/B tests.

#### 2. Performance Creative Swipe Files & Video Hook Mining

Activate `extractCreativeAssets: true` to harvest ad headlines, call-to-action copy (`textSnippets`), high-resolution `tpc.googlesyndication.com` / `lh3.googleusercontent.com` creative images, destination `landingUrls`, and embedded `youtubeVideoUrls`. Feed video URLs downstream into transcript/hook extractors to dissect top-performing YouTube ad scripts.

#### 3. B2B Agency Prospecting & Outbound Lead Qualification

Identify companies actively spending budget on Google Ads (`format: "VIDEO"` or `"IMAGE"`), capture their verified legal entity name (`advertiserName`), `domain`, and active regional footprint, then pipe those domains into enrichment pipelines to contact marketing and growth leaders with tailored creative audits.

#### 4. K-Beauty & Cross-Border E-Commerce Expansion Tracking

Benchmark how global DTC brands localize copy and creative formats when entering `US`, `JP`, `SG`, or `KR` markets—comparing ad messaging alongside marketplace presence on OliveYoung and Coupang.

#### 5. AI RAG Knowledge Bases & Autonomous Agent Research

Expose Google Ads Transparency data directly to AI agents via `mcp.apify.com` or ingest normalized JSON creative records into vector stores (Pinecone, Qdrant, pgvector) so marketing copilots can answer queries like *"Show me Shopify's latest US video ads and landing funnels from Q4."*

***

### Quick-Start Input Examples

#### 1. Default Quick-Start (Zero-Config Domain Lookup)

```json
{
  "domains": ["shopify.com"],
  "region": "US",
  "format": "ALL",
  "maxAdsPerTarget": 40,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

#### 2. Competitive Creative Swipe File (URL Sanitization + Brand Query + Asset Recovery)

```json
{
  "domains": ["https://www.airbnb.com/rooms?x=1", "stripe.com"],
  "searchQueries": ["Nike"],
  "region": "US",
  "format": "ALL",
  "dateRange": {
    "startDate": "2026-09-01",
    "endDate": "2026-11-28"
  },
  "maxAdsPerTarget": 40,
  "includeCreativeDetails": true,
  "extractCreativeAssets": true,
  "proxyConfiguration": { "useApifyProxy": true },
  "maxTotalChargeUsd": 0.5
}
```

#### 3. Direct Advertiser ID (`AR...`) YouTube Video Ad Monitoring

```json
{
  "domains": [],
  "advertiserIds": ["AR01625195283841286145"],
  "region": "ALL",
  "format": "VIDEO",
  "maxAdsPerTarget": 100,
  "extractCreativeAssets": true,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

***

### Input Parameter Reference

| Parameter | Type | Default / Prefill | Constraints / Allowed Values | Description |
| :--- | :--- | :--- | :--- | :--- |
| `domains` | `array<string>` | `["shopify.com"]` | Root domains or full URLs | List of advertiser domains. Full URLs (e.g. `https://www.Airbnb.com/rooms?x=1`) are automatically stripped to `airbnb.com`. Defaults to `["shopify.com"]` only when `domains`, `advertiserIds`, and `searchQueries` are all empty. |
| `advertiserIds` | `array<string>` | `[]` | Verified `AR...` IDs | Google Ads Transparency Center advertiser IDs (e.g. `"AR01625195283841286145"`). Useful when targeting regional entities or parent holding companies directly. |
| `searchQueries` | `array<string>` | `[]` | Brand / advertiser names | Brand strings auto-resolved via `SearchService/SearchSuggestions`. Prefers exact domain matches (capturing all regional advertiser entities) or falls back to the best region/ad-count advertiser ID match. |
| `region` | `string` | `"US"` | ISO-2, numeric ID, or `"ALL"` | Target country filter. Mapped codes include `US`, `GB`/`UK`, `CA`, `AU`, `DE`, `FR`, `JP`, `KR`, `IN`, `SG`, `NL`, `ES`, `IT`, `BR`, `MX`, `SE`, `CH`, `PL`, `IE`, `NZ`, `AE`, `IL`, `ID`, `TH`, `TW`, `HK`, `PH`, `VN`, numeric Google GeoTargetConstant IDs, or `"ALL"`/`"GLOBAL"`/`"WORLDWIDE"`. |
| `format` | `string` | `"ALL"` | `"ALL"`, `"TEXT"`, `"IMAGE"`, `"VIDEO"` | Filter creatives by ad format. |
| `dateRange` | `object` | `{}` | `{"startDate": "YYYY-MM-DD", "endDate": "YYYY-MM-DD"}` | Optional last-shown date window filter (`startDate` / `endDate`). Also accepts JSON-stringified objects. |
| `maxAdsPerTarget` | `integer` | `40` | `1` to `1000` | Maximum unique creatives extracted per resolved target (automatically paginates 40 creatives per RPC page, up to 30 pages). |
| `includeCreativeDetails` | `boolean` | `false` | `true` / `false` | Calls `LookupService/GetCreativeById` per creative to populate `variationCount`, `variationPreviewUrls`, and `rawRegionStats`. No additional PPE event is charged for this toggle. |
| `extractCreativeAssets` | `boolean` | `false` | `true` / `false` | Fetches and parses `content.js` preview bundles to extract `assets` (`imageUrls`, `youtubeVideoIds`, `youtubeVideoUrls`, `textSnippets`, `landingUrls`). Triggers `creative-assets-extracted` per enriched ad. |
| `proxyConfiguration` | `object` | `{"useApifyProxy": true}` | Apify Proxy config | Defaults to Cloud Datacenter proxy. Set `{"useApifyProxy": false}` to force direct connections (e.g., local testing). |
| `maxTotalChargeUsd` | `number` | `null` (unlimited) | `>= 0` | Hard Pay-Per-Event USD budget ceiling for the run. Gracefully halts enrichment and dataset pushes before crossing this limit. |

***

### Output Example & Field-by-Field Data Dictionary

#### Sample Output Record (with `includeCreativeDetails: true` and `extractCreativeAssets: true`)

```json
{
  "target": "airbnb.com",
  "advertiserId": "AR01625195283841286145",
  "advertiserName": "Airbnb, Inc.",
  "domain": "airbnb.com",
  "creativeId": "CR12345678901234567890",
  "format": "IMAGE",
  "region": "US",
  "firstShownAt": "2024-03-10",
  "lastShownAt": "2026-11-28",
  "previewUrl": "https://displayads-formats.googleusercontent.com/ads/preview/content.js?client=ads-transparency&...",
  "adTransparencyUrl": "https://adstransparency.google.com/advertiser/AR01625195283841286145/creative/CR12345678901234567890?region=us",
  "variationCount": 3,
  "variationPreviewUrls": [
    "https://displayads-formats.googleusercontent.com/ads/preview/content.js?...",
    "https://displayads-formats.googleusercontent.com/ads/preview/content.js?..."
  ],
  "rawRegionStats": null,
  "assets": {
    "imageUrls": [
      "https://tpc.googlesyndication.com/simgad/1234567890123456789"
    ],
    "youtubeVideoIds": [],
    "youtubeVideoUrls": [],
    "textSnippets": [
      "Book unique stays around the world",
      "Explore Airbnb"
    ],
    "landingUrls": [
      "https://www.airbnb.com/"
    ]
  }
}
```

#### Dataset Field Dictionary

| Field | Type | Always Present | Description |
| :--- | :--- | :---: | :--- |
| `target` | `string \| null` | Yes | Sanitized input domain or `advertiserId` that produced this creative. |
| `advertiserId` | `string` | Yes | Google's verified advertiser entity ID (`AR...`). |
| `advertiserName` | `string \| null` | Yes | Legal name of the verified advertiser as registered with Google Ads. |
| `domain` | `string \| null` | Yes | Associated advertiser domain returned by RPC (falls back to input domain). |
| `creativeId` | `string` | Yes | Unique Google ad creative identifier (`CR...`). |
| `format` | `string` | Yes | Creative format: `"TEXT"`, `"IMAGE"`, or `"VIDEO"`. |
| `region` | `string` | Yes | Uppercase region filter applied for the query (e.g. `"US"`, `"ALL"`). |
| `firstShownAt` | `string \| null` | Yes | UTC `YYYY-MM-DD` date when the creative was first observed. |
| `lastShownAt` | `string \| null` | Yes | UTC `YYYY-MM-DD` date when the creative was last observed. |
| `previewUrl` | `string \| null` | Yes | Google `displayads-formats.googleusercontent.com` preview `content.js` URL when available. |
| `adTransparencyUrl` | `string` | Yes | Direct canonical URL to view this creative on Google Ads Transparency Center. |
| `variationCount` | `integer` | When `includeCreativeDetails` | Total number of creative variations returned by `GetCreativeById`. |
| `variationPreviewUrls` | `array<string>` | When `includeCreativeDetails` | Up to 5 variation `content.js` preview URLs. |
| `rawRegionStats` | `any \| null` | When `includeCreativeDetails` | Raw regional impression payload (`root["17"]`) from `GetCreativeById` if exposed by Google for that creative. |
| `assets` | `object` | When `extractCreativeAssets` | Decoded asset bundle extracted from `previewUrl` (present when `previewUrl` exists and budget permits). |
| `assets.imageUrls` | `array<string>` | Inside `assets` | Up to 15 unique image URLs (`tpc.googlesyndication.com`, `lh3.googleusercontent.com`, `s0.2mdn.net`). |
| `assets.youtubeVideoIds` | `array<string>` | Inside `assets` | Deduplicated 11-character YouTube video IDs embedded inside video ads. |
| `assets.youtubeVideoUrls` | `array<string>` | Inside `assets` | Canonical `https://www.youtube.com/watch?v=<id>` links ready for playback or transcript extraction. |
| `assets.textSnippets` | `array<string>` | Inside `assets` | Up to 12 cleaned ad headlines, descriptions, and CTA text snippets (inline JS/CSS stripped). |
| `assets.landingUrls` | `array<string>` | Inside `assets` | Up to 5 candidate advertiser destination URLs (excluding Google CDN/font hosts). |

#### Key-Value Store Telemetry (`OUTPUT_METRICS`)

Every run writes a structured diagnostic JSON record to Key-Value Store key `OUTPUT_METRICS` containing:

- `counts`: Event counts (`apify-actor-start`, `ad-scraped`, `creative-assets-extracted`)
- `bronze_total_usd` / `blended_total_usd`: Exact PPE spend summary
- `wire_bytes_in` / `wire_bytes_out` / `requestCount`: Network transfer and HTTP request count
- `targetsTotal` / `targetsSucceeded` / `failedTargets`: Per-target success/failure diagnostics
- `adsPushed`, `residentialFallbackUsed`, `elapsed_sec`, and `unit_economics_1k`

***

### Transparent PPE Pricing & $5 Free Tier Cost Estimator

#### Pay-Per-Event (PPE) Schedule

| Event Name | Trigger Condition | FREE | BRONZE | SILVER | GOLD |
| :--- | :--- | :---: | :---: | :---: | :---: |
| `apify-actor-start` | One-time run initialization | `$0.00005` | `$0.00005` | `$0.00005` | `$0.00005` |
| `ad-scraped` | Per unique Google ad creative pushed to dataset | `$0.001` | `$0.001` | `$0.0008` | `$0.0007` |
| `creative-assets-extracted` | Optional add-on per creative when `extractCreativeAssets: true` | `$0.002` | `$0.002` | `$0.0016` | `$0.0014` |

#### $5.00 Free Tier Monthly Credit Estimator

Apify's Free plan includes **$5.00/month** in platform credits. Because this Actor runs in `256 MB` RAM without a browser, almost your entire budget goes directly to ad data:

| Workload Scenario | `extractCreativeAssets` | Total Ads | FREE Tier PPE Cost | Monthly Runs Possible on $5 Credit |
| :--- | :---: | :---: | :---: | :---: |
| **Quick Brand Audit (1 domain, 40 ads)** | `false` | `40` | **`$0.04005`** (`$0.00005 + 40 × $0.00005`) | ~**121 runs** (`4,840+` ads/mo) |
| **5-Competitor Weekly Monitor (40 ads each)** | `false` | `200` | **`$0.20005`** (`$0.00005 + 200 × $0.00005`) | ~**24 weekly runs** (`4,800+` ads/mo) |
| **Deep Asset Swipe File (1 domain, 40 ads)** | `true` | `40` | **`$0.12005`** (`$0.00005 + 40 × $0.003`) | ~**41 runs** (`1,640+` enriched ads/mo) |
| **Max Single-Domain Harvest (1,000 ads)** | `false` | `1,000` | **`$1.00005`** (`$0.00005 + 1,000 × $0.00005`) | ~**4 full 1K runs** (`4,995` ads on FREE) |
| **Enterprise Volume (GOLD Tier, 10,000 ads)** | `false` | `10,000` | **`$7.00005`** (`$0.00005 + 10,000 × $0.0007`) | **$0.70 / 1K ads** |

> **Budget Guard**: Set `"maxTotalChargeUsd": 0.50` to guarantee a run never spends more than `$0.50` in PPE charges, even across large multi-domain lists.

***

### AI Agents, MCP & Skills Ready

#### 1. Copy-Paste `mcp.apify.com` Config (Claude Desktop / Cursor / VS Code)

Connect this Actor directly as a live Model Context Protocol (MCP) tool via Apify's hosted MCP server (`https://mcp.apify.com/?actors=studio001/google-ads-transparency-direct-rpc`).

##### Remote Streamable HTTP / SSE Config (Cursor / VS Code `.vscode/mcp.json` / MCP Clients)

```json
{
  "mcpServers": {
    "google-ads-transparency": {
      "url": "https://mcp.apify.com/?actors=studio001/google-ads-transparency-direct-rpc",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

##### Claude Desktop `claude_desktop_config.json` (via `mcp-remote`)

```json
{
  "mcpServers": {
    "google-ads-transparency": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.apify.com/?actors=studio001/google-ads-transparency-direct-rpc",
        "--header",
        "Authorization: Bearer ${APIFY_TOKEN}"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

#### 2. For AI Agents & LLMs — Copy-Paste Skill Block

Paste this concise skill definition into your Claude Project, OpenAI Custom GPT, Cursor Rules, or LangGraph system prompt:

```markdown
#### Skill: Google Ads Transparency Competitive Research (`studio001/google-ads-transparency-direct-rpc`)
- **When to use**: User asks for active/historical Google Search, Display, or YouTube ads run by a domain, brand, or AR... advertiser ID.
- **Actor ID**: `studio001/google-ads-transparency-direct-rpc` (256 MB RAM, zero-browser Direct-RPC).
- **Recommended Safe Input**:
  - `domains`: pass clean domains or raw URLs (auto-sanitized); or `searchQueries` for brand lookup; or `advertiserIds` for `AR...`.
  - `region`: ISO-2 country (`"US"`, `"GB"`, `"DE"`, `"JP"`, `"KR"`, `"ALL"`).
  - `format`: `"ALL"`, `"TEXT"`, `"IMAGE"`, or `"VIDEO"`.
  - `maxAdsPerTarget`: keep `20–40` for fast interactive replies; up to `1000` for batch audits.
  - `extractCreativeAssets`: set `true` ONLY when ad copy, image URLs, YouTube video links, or landing URLs are requested (adds `$0.002`/ad on FREE/BRONZE).
  - `includeCreativeDetails`: set `true` when variation counts are needed (`$0` extra PPE fee).
  - `proxyConfiguration`: always include `{"useApifyProxy": true}` on Apify Cloud.
  - `maxTotalChargeUsd`: always set a conservative safety cap (e.g., `0.25` for quick interactive queries).
- **Output Interpretation**: Group findings by `format` (`TEXT`/`IMAGE`/`VIDEO`), cite `advertiserName`, `advertiserId`, active window (`firstShownAt`..`lastShownAt`), `adTransparencyUrl`, and `assets.textSnippets` / `assets.youtubeVideoUrls` / `assets.landingUrls`. Check `OUTPUT_METRICS.failedTargets` if any domain returned empty.
```

#### 3. n8n / Make.com / Google Sheets 3-Minute Non-Coder & Cron Workflow Guide

Pre-built workflow templates, cron blueprints, and client wrappers for Studio 001 Actors are maintained at:
👉 **<https://github.com/yeongjunyoo/studio001-apify-clients>**

1. **n8n Automated Creative Swipe File (3 Minutes)**:
   - Add a **Schedule Trigger** node (e.g., every Monday 09:00).
   - Add an **Apify -> Run Actor** node targeting `studio001/google-ads-transparency-direct-rpc` with `"memory": 256`, `"domains": ["competitor1.com", "competitor2.com"]`, `"extractCreativeAssets": true`, and `"maxTotalChargeUsd": 0.5`.
   - Connect **Apify -> Get Dataset Items** to **Google Sheets (Append or Update Row by `creativeId`)**, **Notion**, or **Slack** to alert your growth team whenever a new `creativeId` appears.
2. **Make.com & Google Sheets No-Code Sync**:
   - Use Make's **Apify — Run an Actor** module -> **Get Dataset Items** -> **Google Sheets — Add a Row** mapping `advertiserName`, `format`, `firstShownAt`, `lastShownAt`, `assets.textSnippets[0]`, and `adTransparencyUrl`.
   - Grab ready-to-import JSON blueprints directly from [github.com/yeongjunyoo/studio001-apify-clients](https://github.com/yeongjunyoo/studio001-apify-clients).

#### 4. Python (`apify-client`) & cURL Quickstart

##### Python (`pip install apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("studio001/google-ads-transparency-direct-rpc").call(
    run_input={
        "domains": ["https://www.shopify.com/pricing"],
        "region": "US",
        "format": "ALL",
        "maxAdsPerTarget": 40,
        "includeCreativeDetails": True,
        "extractCreativeAssets": True,
        "proxyConfiguration": {"useApifyProxy": True},
        "maxTotalChargeUsd": 0.50,
    },
    memory_mbytes=256,
)

for ad in client.dataset(run["defaultDatasetId"]).iterate_items():
    snippets = (ad.get("assets") or {}).get("textSnippets", [])
    print(ad["format"], ad["creativeId"], ad["lastShownAt"], snippets[:2])
```

##### cURL (Synchronous Run Returning Dataset Items)

```bash
curl -X POST "https://api.apify.com/v2/acts/studio001~google-ads-transparency-direct-rpc/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN&memory=256" \
  -H "Content-Type: application/json" \
  -d '{
    "domains": ["shopify.com"],
    "region": "US",
    "format": "VIDEO",
    "maxAdsPerTarget": 20,
    "extractCreativeAssets": true,
    "proxyConfiguration": { "useApifyProxy": true },
    "maxTotalChargeUsd": 0.25
  }'
```

***

### Architecture, Anti-Bot Politeness & Troubleshooting

#### Why Direct-RPC + Polite Fallback Preserves Targets

1. **Protocol-Level Direct-RPC (`AdsTransparencyClient`)**: Uses a lightweight `httpx` HTTP/2 client (`256 MB` container footprint) calling `SearchSuggestions`, `SearchCreatives`, and `GetCreativeById` with `f.req` form-encoded payloads—avoiding megabytes of Angular/Wiz browser JS bundles, fonts, and ad-preview iframes.
2. **Gentle Rate Pacing & Bounded Concurrency**: Enforces a `0.4s` interval per RPC call, limits concurrent target fetches (`Semaphore(2)`), and bounds detail/asset enrichment (`Semaphore(4)`) so Google's Transparency Center endpoints are never flooded.
3. **Smart Cloud Datacenter-First Routing**: Starts on Apify Datacenter proxy (`useApifyProxy: true`) rather than burning expensive residential bandwidth up front. Only if a syntactically valid domain returns `0` ads or fails, the Actor performs one polite rotated DC session retry (`0.4–0.8s` jitter) followed by at most one single-shot Cloud `RESIDENTIAL` retry.
4. **Strict Anti-Bot Respect (`/sorry/` Gate Enforcement)**: If Google returns HTTP `429` with `/sorry/` in the URL at any stage (suggestion lookup, search, enrichment, or fallback), this Actor **immediately halts retries and refuses residential escalation** rather than attempting CAPTCHA workarounds or brute-force loops.

#### Troubleshooting Matrix

| Symptom | Likely Cause | Fix / Action |
| :--- | :--- | :--- |
| **`0` ads returned on Apify Cloud** | `proxyConfiguration` was manually set to `{"useApifyProxy": false}`, hitting US-East DC IP limits | Restore `"proxyConfiguration": {"useApifyProxy": true}` (or omit it on Apify Cloud so default DC + 1-shot Residential fallback activates). |
| **Target appears in `failedTargets` with `HTTP 429 /sorry/`** | Upstream rate/challenge gate triggered on the active proxy exit | Wait briefly and re-run with a smaller batch or fewer concurrent targets; note `$0` item fees were charged for the failed target. |
| **Ads returned without `assets` object** | `extractCreativeAssets` was `false`, `previewUrl` was absent on that creative, or `maxTotalChargeUsd` was reached | Set `"extractCreativeAssets": true` and verify `maxTotalChargeUsd` is high enough (`$0.003` per enriched ad on FREE/BRONZE). |
| **Wrong country ads returned** | Unmapped or misspelled `region` string (falls back to `US` / `2840`) | Use a supported ISO-2 code (`US`, `GB`, `CA`, `AU`, `DE`, `FR`, `JP`, `KR`, `SG`, etc.), numeric GeoTargetConstant ID, or `"ALL"`. |
| **Brand `searchQueries` picked regional subsidiary instead of global** | Brand has separate verified entities per country | Pass the brand's primary root domain in `domains` (e.g., `"nike.com"`) or pass specific `AR...` IDs in `advertiserIds`. |

***

### Frequently Asked Questions (FAQ)

**Q: Do API or MCP callers need to configure `proxyConfiguration` manually?**\
No. On Apify Cloud, if `proxyConfiguration` is omitted or `{}` is sent, the Actor automatically applies Datacenter proxy (`useApifyProxy: true`). When running via UI or automated QA, `prefill` already supplies `{"useApifyProxy": true}`. Local runs work directly or with explicit proxy settings.

**Q: Which countries and ad formats are supported?**\
`30+` mapped ISO-2 country codes (`US`, `GB`/`UK`, `CA`, `AU`, `DE`, `FR`, `JP`, `KR`, `IN`, `SG`, `NL`, `ES`, `IT`, `BR`, `MX`, `SE`, `CH`, `PL`, `IE`, `NZ`, `AE`, `IL`, `ID`, `TH`, `TW`, `HK`, `PH`, `VN`), any numeric Google `GeoTargetConstant` ID, plus `"ALL"` / `"GLOBAL"` / `"WORLDWIDE"`. Supported formats are `ALL`, `TEXT`, `IMAGE`, and `VIDEO`.

**Q: What is the difference between `includeCreativeDetails` and `extractCreativeAssets`?**\
`includeCreativeDetails: true` calls `LookupService/GetCreativeById` to add `variationCount`, `variationPreviewUrls`, and `rawRegionStats` at **no extra PPE cost**. `extractCreativeAssets: true` fetches and parses the JavaScript `previewUrl` (`content.js`) to extract `imageUrls`, `youtubeVideoIds`, `youtubeVideoUrls`, `textSnippets`, and `landingUrls`, billing `creative-assets-extracted`.

**Q: Can I filter ads by active date range?**\
Yes. Pass `"dateRange": {"startDate": "2026-01-01", "endDate": "2026-11-28"}`. Format filtering (`TEXT`/`IMAGE`/`VIDEO`) is also applied accurately across paginated RPC results.

**Q: Am I charged if a domain fails or hits a rate gate?**\
No. PPE events (`ad-scraped` and `creative-assets-extracted`) are only billed for ads actually pushed to your dataset. Failed targets appear in `OUTPUT_METRICS.failedTargets` with `$0` item charges.

**Q: Can I paste full landing URLs into `domains`?**\
Yes. Inputs like `"https://www.Airbnb.com/rooms?x=1"` or `"http://WWW.Shopify.COM/pricing#top"` are automatically normalized to `"airbnb.com"` and `"shopify.com"`.

***

### Use as a Real-Time API or Native MCP Server (Standby)

Run Google Ads Transparency lookups synchronously over Apify Standby mode without batch cold starts:

- **Native MCP Endpoint (`LIMITED_PERMISSIONS`, `256 MB`):** `https://studio001--google-ads-transparency-direct-rpc.apify.actor/mcp` (`tools/list` exposes `search_google_ads_transparency`)
- **Instant REST Endpoint:** `POST https://studio001--google-ads-transparency-direct-rpc.apify.actor/api/run`

```bash
curl -X POST "https://studio001--google-ads-transparency-direct-rpc.apify.actor/api/run" \
  -H "Authorization: Bearer YOUR_APIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domains": ["shopify.com"], "maxAdsPerTarget": 5}'
```

***

### More High-Reliability APIs by Studio 001

Explore the full Studio 001 suite of `256 MB` zero-browser, Pay-Per-Event APIs on Apify Store:

| Studio 001 Actor | Category | Core Capability | Apify Store URL |
| :--- | :--- | :--- | :--- |
| **Google Hotels Multi-OTA Monitor** | Travel / Pricing | Multi-OTA hotel prices (Booking, Expedia, Agoda, Official Site) via direct RPC | [apify.com/studio001/google-hotels-multi-ota-monitor](https://apify.com/studio001/google-hotels-multi-ota-monitor) |
| **YouTube Transcript & Chapters Pro API** | AI / Video | Timestamped YouTube transcripts, chapter breakdowns, and clean text for RAG | [apify.com/studio001/youtube-transcript-chapters-pro-api](https://apify.com/studio001/youtube-transcript-chapters-pro-api) |
| **Instagram Reels AI Transcript & Hook Extractor** | Social / AI | Reels metadata, audio transcripts, and viral opening hook extraction | [apify.com/studio001/instagram-reels-ai-transcript-hook-extractor](https://apify.com/studio001/instagram-reels-ai-transcript-hook-extractor) |
| **B2B Domain Email Finder & SMTP/MX Verifier** | Lead Gen | Domain email discovery with live DNS MX & SMTP deliverability verification | [apify.com/studio001/b2b-email-finder-smtp-mx-verifier](https://apify.com/studio001/b2b-email-finder-smtp-mx-verifier) |
| **Naver Blog & Cafe Pro Scraper** | Social / Korea | Korean Naver Blog & Cafe posts, metadata, and public comments (`$0` on locked) | [apify.com/studio001/naver-blog-cafe-pro-scraper](https://apify.com/studio001/naver-blog-cafe-pro-scraper) |
| **OliveYoung Global & KR Beauty API** | E-Commerce / K-Beauty | Global & KR OliveYoung products, Top 100 rankings, and trending keywords | [apify.com/studio001/oliveyoung-global-kr-beauty-api](https://apify.com/studio001/oliveyoung-global-kr-beauty-api) |
| **Coupang Search & Product Detail Pro API** | E-Commerce / Korea | Coupang KR search, Rocket Delivery badges, organic ranks, and product details | [apify.com/studio001/coupang-search-detail-pro-api](https://apify.com/studio001/coupang-search-detail-pro-api) |
| **ATS Direct Multi-Board Jobs Feed** | Jobs / Intelligence | Direct structured job postings across Greenhouse, Lever, Ashby & corporate ATS feeds | [apify.com/studio001/ats-jobs-direct-api](https://apify.com/studio001/ats-jobs-direct-api) |
| **YouTube Channel Search & Creator Discovery Pro API** | Creators / Marketing | Channel discovery, subscriber/view metrics, and creator prospecting at scale | [apify.com/studio001/youtube-channel-search-pro-api](https://apify.com/studio001/youtube-channel-search-pro-api) |
| **Similarweb Traffic & Channel Intel API** | Marketing / B2B / MCP | Monthly visits, bounce rate, channel split, geo & competitors (`UNBLOCKER`) | [apify.com/studio001/similarweb-traffic-channel-intel-api](https://apify.com/studio001/similarweb-traffic-channel-intel-api) |
| **AI Search & AEO Brand Monitor** | AI / SEO / MCP | Google AI Overviews, Perplexity, ChatGPT & Gemini brand citations & share of voice | [apify.com/studio001/ai-search-aeo-brand-monitor](https://apify.com/studio001/ai-search-aeo-brand-monitor) |

#### Recommended Multi-Actor Pipeline Chains

1. **Performance Ad + B2B Agency Outbound Stack (#5 Google Ads + #4 B2B Email + #2 YouTube Transcripts)**
   - **Step 1**: Run [Google Ads Transparency Direct-RPC](https://apify.com/studio001/google-ads-transparency-direct-rpc) (`format: "VIDEO"`, `extractCreativeAssets: true`) on target SaaS or DTC domains to verify active ad spend and extract `landingUrls` + `youtubeVideoUrls`.
   - **Step 2**: Pass extracted `youtubeVideoUrls` to [YouTube Transcript & Chapters Pro API](https://apify.com/studio001/youtube-transcript-chapters-pro-api) to analyze winning video ad scripts, and cross-reference creator partnerships with [Instagram Reels AI Transcript & Hook Extractor](https://apify.com/studio001/instagram-reels-ai-transcript-hook-extractor) & [YouTube Channel Search & Creator Discovery Pro API](https://apify.com/studio001/youtube-channel-search-pro-api).
   - **Step 3**: Feed active advertiser `domain` records into [B2B Domain Email Finder & SMTP/MX Verifier](https://apify.com/studio001/b2b-email-finder-smtp-mx-verifier) (and track hiring expansion via [ATS Direct Multi-Board Jobs Feed](https://apify.com/studio001/ats-jobs-direct-api)) to build verified, high-intent outbound agency pipelines.
2. **K-Commerce Full-Funnel Intelligence Stack (#6 Naver + #7 OliveYoung + #8 Coupang)**
   - Combine grassroots Korean consumer reviews from [Naver Blog & Cafe Pro Scraper](https://apify.com/studio001/naver-blog-cafe-pro-scraper) with global/KR K-Beauty pricing and Top 100 trends from [OliveYoung Global & KR Beauty API](https://apify.com/studio001/oliveyoung-global-kr-beauty-api) and Rocket Delivery SERP/SKU monitoring from [Coupang Search & Product Detail Pro API](https://apify.com/studio001/coupang-search-detail-pro-api).

***

### Task Examples

Launch pre-configured zero-setup workflows directly from Apify Store:

- **[Google Ads Transparency Scraper by Domain (No Login)](https://apify.com/studio001/google-ads-transparency-direct-rpc/examples/google-ads-transparency-by-domain)** — Extract competitor Google Search, Display, and YouTube ads by root domain via Direct-RPC at $0.70/1K Gold (256MB). No login required.
- **[Google Ads YouTube Video Creatives & Hook Extractor](https://apify.com/studio001/google-ads-transparency-direct-rpc/examples/google-ads-youtube-video-creatives-scraper)** — Discover competitor YouTube video ads, landing pages, and creative variations via Direct-RPC at 256MB RAM ($0.70/1K Gold base).
- **[Competitor Google Display Image Ads & Copy Scraper](https://apify.com/studio001/google-ads-transparency-direct-rpc/examples/google-ads-competitor-display-banners)** — Scrape competitor Google Display image ads, banner assets, copy, and landing URLs without a browser ($0.70/1K Gold base, 256MB).
- **[Google Search Text Ads Copy & Landing Page Scraper](https://apify.com/studio001/google-ads-transparency-direct-rpc/examples/google-ads-search-copy-landing-pages)** — Extract active Google Search text ad copy, variations, and landing pages for any domain via zero-browser RPC ($0.70/1K Gold).
- **[Google Ads Verified Advertiser ID & Brand Search API](https://apify.com/studio001/google-ads-transparency-direct-rpc/examples/google-ads-advertiser-brand-search-api)** — Search Google Ads Transparency by brand keyword to discover verified advertiser IDs (AR...), legal names, and active ads ($0.70/1K).

***

### Custom Data Pipelines & Enterprise SLA

Need dedicated rate limits, custom dataset schemas, private webhook/S3/Snowflake delivery, high-volume volume discounts, or bespoke multi-Actor pipelines?

- **Direct Engineering Contact:** <studio001.kr@gmail.com>
- **Supported Delivery:** Managed Apify Standby MCP integrations, dedicated residential/unblocker routing, custom cron monitoring, and SLA-backed ETL connectors.

# Actor input Schema

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

List of advertiser root domains or pasted URLs (auto-sanitized from e.g. "https://www.Airbnb.com/rooms?x=1" to "airbnb.com").

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

Optional list of verified Google Ads Transparency advertiser IDs (e.g., \["AR01625195283841286145"]).

## `searchQueries` (type: `array`):

Optional brand or company names automatically resolved into verified domains or advertiser IDs via SearchSuggestions RPC.

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

Country filter (30+ ISO-2 codes including US, GB, CA, AU, DE, FR, JP, KR, SG, or numeric GeoTargetConstant ID, or ALL for global).

## `format` (type: `string`):

Filter returned creatives by ad format: ALL, TEXT, IMAGE, or VIDEO.

## `dateRange` (type: `object`):

Optional JSON object {"startDate": "YYYY-MM-DD", "endDate": "YYYY-MM-DD"} filtering creatives by last-shown window.

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

Maximum ad creatives to collect per domain, advertiser ID, or resolved query (auto-paginates 40 creatives per RPC page).

## `includeCreativeDetails` (type: `boolean`):

Calls LookupService/GetCreativeById per ad to append variationCount, variationPreviewUrls, and rawRegionStats.

## `extractCreativeAssets` (type: `boolean`):

Downloads and decodes preview content.js bundles to extract imageUrls, youtubeVideoIds, youtubeVideoUrls, textSnippets, and landingUrls (billed via creative-assets-extracted).

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

Apify Proxy settings. Datacenter proxy is enabled by default for reliable cloud execution with polite session rotation and 1-shot Residential fallback on 0-ad valid domains.

## `maxTotalChargeUsd` (type: `number`):

Optional hard Pay-Per-Event spending cap (USD) for this run. Execution stops gracefully before exceeding this cap.

## Actor input object example

```json
{
  "domains": [
    "shopify.com",
    "airbnb.com"
  ],
  "advertiserIds": [
    "AR01625195283841286145"
  ],
  "searchQueries": [
    "Nike",
    "Stripe"
  ],
  "region": "US",
  "format": "ALL",
  "dateRange": {
    "startDate": "2026-01-01",
    "endDate": "2026-11-28"
  },
  "maxAdsPerTarget": 40,
  "includeCreativeDetails": false,
  "extractCreativeAssets": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxTotalChargeUsd": 1
}
```

# Actor output Schema

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

Scraped advertiser creatives, ad formats, regions, and active date ranges.

## `metrics` (type: `string`):

Execution telemetry, wire bytes, proxy usage, and per-run unit economics JSON.

# 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": [
        "shopify.com"
    ],
    "region": "US",
    "format": "ALL",
    "maxAdsPerTarget": 40,
    "includeCreativeDetails": false,
    "extractCreativeAssets": false,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio001/google-ads-transparency-direct-rpc").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": ["shopify.com"],
    "region": "US",
    "format": "ALL",
    "maxAdsPerTarget": 40,
    "includeCreativeDetails": False,
    "extractCreativeAssets": False,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("studio001/google-ads-transparency-direct-rpc").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 '{
  "domains": [
    "shopify.com"
  ],
  "region": "US",
  "format": "ALL",
  "maxAdsPerTarget": 40,
  "includeCreativeDetails": false,
  "extractCreativeAssets": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call studio001/google-ads-transparency-direct-rpc --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio001/google-ads-transparency-direct-rpc"
        }
    }
}
```

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/5Kt8QvRdC34A6cPHt/builds/Cy4sDXvYWWSzvfQj9/openapi.json
