<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[AdPulse Engineering Notes]]></title><description><![CDATA[AdPulse Engineering Notes]]></description><link>https://adpulselabs.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 08:53:31 GMT</lastBuildDate><atom:link href="https://adpulselabs.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How to Scrape Google Ads Transparency Center in Python (2026): RPC, Playwright & Managed API Guide]]></title><description><![CDATA[Google has no official Ads Transparency Center API. Compare internal RPC, Playwright, and fast zero-browser Python APIs with live 12-SaaS benchmark data.]]></description><link>https://adpulselabs.hashnode.dev/how-to-scrape-google-ads-transparency-center-api-python</link><guid isPermaLink="true">https://adpulselabs.hashnode.dev/how-to-scrape-google-ads-transparency-center-api-python</guid><category><![CDATA[marketing]]></category><category><![CDATA[api]]></category><category><![CDATA[automation]]></category><category><![CDATA[web scraping]]></category><category><![CDATA[Python]]></category><dc:creator><![CDATA[AdPulse Labs]]></dc:creator><pubDate>Tue, 24 Nov 2026 03:13:33 GMT</pubDate><content:encoded><![CDATA[<p><img src="https://raw.githubusercontent.com/yun87457-web/google-ads-transparency-mcp/main/cover.png" alt="How to Scrape Google Ads Transparency Center in Python" /></p>
<p><strong>Google does not provide an official public developer API for the Google Ads Transparency Center.</strong> 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.</p>
<p>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 <strong>November 23, 2026</strong>.</p>
<blockquote>
<p><strong>Live Open Dataset (Nov 2026):</strong> We also screened 100 major SaaS, AI &amp; DTC brands (<code>97%</code> active Google Ads, <code>72%</code> YouTube video ads, led by Shopify <code>70k–80k</code>). Explore &amp; download CSV: <a href="https://yun87457-web.github.io/google-ads-transparency-mcp/">Top 100 Brands Google Ads Index</a> · Run locally via MCP: <code>npx -y github:yun87457-web/google-ads-transparency-mcp</code></p>
</blockquote>
<h2>Why Teams Scrape the Google Ads Transparency Center</h2>
<p>Marketing agencies, competitive intelligence teams, and B2B outbound pipelines rely on Transparency Center data for four concrete workflows:</p>
<ol>
<li><strong>Verifying active Google Ads spend before outreach:</strong> Checking whether a prospect has <code>gtag.js</code> on their homepage produces constant false positives because dormant tags stay installed for years. Transparency Center confirms verified advertiser entities and live creative counts.</li>
<li><strong>Monitoring competitor creative testing:</strong> Seeing exact Search, Display, and YouTube Video formats and launch dates lets PPC teams spot new positioning tests weeks earlier.</li>
<li><strong>Extracting EU Digital Services Act (DSA) reach &amp; targeting:</strong> For ads shown in the EEA, Google discloses estimated audience reach ranges, age/gender/geo targeting parameters, and <code>fundedBy</code> end-payer entities.</li>
<li><strong>Building automated Slack or CRM alerts:</strong> Running scheduled checks on key competitors via n8n, Python cron jobs, or AI agents over MCP.</li>
</ol>
<hr />
<h2>Method 1: Headless Browser Automation (Playwright in Python)</h2>
<p>The most intuitive starting point is loading <code>https://adstransparency.google.com/?domain=shopify.com</code> in Playwright and scraping rendered DOM cards:</p>
<pre><code class="language-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}&amp;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"))
</code></pre>
<p><strong>Where Playwright breaks in production:</strong></p>
<ul>
<li><strong>Memory &amp; latency:</strong> Each Chromium worker consumes 1–4 GB of RAM and takes 8–20 seconds per domain. Screening 500 B2B leads becomes slow and expensive.</li>
<li><strong>Image-only previews:</strong> Many Search and Display creatives render inside sandboxed iframes or canvas/image previews, forcing brittle OCR pipelines if you only scrape DOM text.</li>
<li><strong>Missing EU DSA detail panes:</strong> Getting reach, targeting, and <code>fundedBy</code> disclosures requires clicking into every individual creative drawer.</li>
</ul>
<hr />
<h2>Method 2: Calling Google's Internal RPC Endpoints Directly</h2>
<p>Under the hood, the Transparency Center Angular frontend fetches structured protobuf-like JSON arrays from internal <code>POST</code> endpoints such as:</p>
<p><code>https://adstransparency.google.com/anji/_/rpc/SearchService/SearchCreatives</code></p>
<p>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 <code>f.req</code> array indices, region geo-target IDs (240+ countries), pagination tokens, and EU DSA detail endpoints change periodically, and resolving messy CRM inputs (like <code>ceo@klaviyo.com</code> or <code>https://www.shopify.com/pricing?utm=1</code>) to verified <code>AR...</code> advertiser IDs requires multi-step lookup logic.</p>
<hr />
<h2>Method 3: Zero-Browser Managed RPC API (Python, cURL, n8n &amp; MCP)</h2>
<p>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 <strong>Apify</strong> or <strong>RapidAPI</strong> (<code>AdPulse</code> — Google Ads Transparency Center Scraper &amp; API).</p>
<h3>Python Example (Bulk Domain Ad-Spend Screening via Apify)</h3>
<pre><code class="language-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']}"
    )
</code></pre>
<h3>REST API Example (Single-Brand Search + EU DSA Reach via RapidAPI)</h3>
<pre><code class="language-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"
</code></pre>
<h3>Connecting Directly to Claude, Cursor, or AI Agents (Streamable HTTP MCP)</h3>
<pre><code class="language-json">{
  "mcpServers": {
    "google-ads-transparency": {
      "url": "https://spiky-closet--google-ads-transparency-scraper.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
</code></pre>
<hr />
<h2>Live Benchmark: 12 Major SaaS Domains Screened (November 23, 2026)</h2>
<p>To show the exact structured output you get from bulk domain screening, we ran 12 well-known software domains directly through the engine on <strong>November 23, 2026</strong>:</p>
<table>
<thead>
<tr>
<th align="left">Domain</th>
<th align="left">Verified Advertiser</th>
<th align="left">Approx. Active/Recent Creatives</th>
<th align="left">Formats Observed</th>
<th align="left">Country</th>
</tr>
</thead>
<tbody><tr>
<td align="left"><code>shopify.com</code></td>
<td align="left">Shopify Inc.</td>
<td align="left"><code>70,000–80,000</code></td>
<td align="left">Text, Video</td>
<td align="left">CA</td>
</tr>
<tr>
<td align="left"><code>monday.com</code></td>
<td align="left">monday.com LTD</td>
<td align="left"><code>20,000–30,000</code></td>
<td align="left">Text, Video</td>
<td align="left">IL</td>
</tr>
<tr>
<td align="left"><code>klaviyo.com</code></td>
<td align="left">Klaviyo, Inc.</td>
<td align="left"><code>9,000–10,000</code></td>
<td align="left">Image, Text, Video</td>
<td align="left">US</td>
</tr>
<tr>
<td align="left"><code>datadoghq.com</code></td>
<td align="left">DATADOG, INC.</td>
<td align="left"><code>9,000–10,000</code></td>
<td align="left">Image, Text</td>
<td align="left">US</td>
</tr>
<tr>
<td align="left"><code>stripe.com</code></td>
<td align="left">Stripe, Inc.</td>
<td align="left"><code>8,000–9,000</code></td>
<td align="left">Text, Video</td>
<td align="left">US</td>
</tr>
<tr>
<td align="left"><code>hubspot.com</code></td>
<td align="left">Hubspot, Inc.</td>
<td align="left"><code>3,000–4,000</code></td>
<td align="left">Image, Text, Video</td>
<td align="left">US</td>
</tr>
<tr>
<td align="left"><code>figma.com</code></td>
<td align="left">Figma INC</td>
<td align="left"><code>1,000–2,000</code></td>
<td align="left">Text, Video</td>
<td align="left">US</td>
</tr>
<tr>
<td align="left"><code>webflow.com</code></td>
<td align="left">Webflow, Inc.</td>
<td align="left"><code>700–800</code></td>
<td align="left">Image, Text, Video</td>
<td align="left">US</td>
</tr>
<tr>
<td align="left"><code>posthog.com</code></td>
<td align="left">PostHog Inc.</td>
<td align="left"><code>400–500</code></td>
<td align="left">Text, Video</td>
<td align="left">US</td>
</tr>
<tr>
<td align="left"><code>vercel.com</code></td>
<td align="left">Vercel Inc.</td>
<td align="left"><code>200–300</code></td>
<td align="left">Text</td>
<td align="left">US</td>
</tr>
<tr>
<td align="left"><code>linear.app</code></td>
<td align="left">Linear Orbit, Inc.</td>
<td align="left"><code>25</code></td>
<td align="left">Text</td>
<td align="left">US</td>
</tr>
<tr>
<td align="left"><code>notion.so</code></td>
<td align="left">Notion Labs Japan合同会社</td>
<td align="left"><code>9</code></td>
<td align="left">Image, Text, Video</td>
<td align="left">JP</td>
</tr>
</tbody></table>
<p>Two practical patterns stand out immediately:</p>
<ul>
<li><strong>PLG dev-tool companies run lean Text-only Search ads:</strong> <code>linear.app</code> (<code>25</code> creatives) and <code>vercel.com</code> (<code>200–300</code>) focus strictly on Search text, whereas SMB/enterprise demand-gen machines (<code>shopify.com</code> at <code>70k–80k</code>, <code>monday.com</code> at <code>20k–30k</code>, <code>klaviyo.com</code> at <code>9k–10k</code>) run thousands of multi-format Search + YouTube Video variations.</li>
<li><strong>Domain screening surfaces regional legal entities:</strong> Querying <code>notion.so</code> surfaced <code>Notion Labs Japan合同会社</code> — catching regional ad accounts that naive brand-name searches often miss.</li>
</ul>
<hr />
<h2>Comparison: Playwright vs. SerpApi vs. Zero-Browser Go RPC API</h2>
<table>
<thead>
<tr>
<th align="left">Approach</th>
<th align="left">Typical Latency</th>
<th align="left">Proxy / Browser Overhead</th>
<th align="left">EU DSA Reach &amp; Payers</th>
<th align="left">Batch Domain Screening</th>
<th align="left">Pricing Model</th>
</tr>
</thead>
<tbody><tr>
<td align="left"><strong>Self-hosted Playwright</strong></td>
<td align="left"><code>8–20s / domain</code></td>
<td align="left">2–4 GB RAM + residential proxies</td>
<td align="left">Requires extra drawer clicks</td>
<td align="left">Manual scripting</td>
<td align="left">Infra + proxy bills</td>
</tr>
<tr>
<td align="left"><strong>SerpApi</strong></td>
<td align="left"><code>1–4s / call</code></td>
<td align="left">Managed</td>
<td align="left">Partial</td>
<td align="left">1 call per query</td>
<td align="left"><code>$75/mo+</code> monthly plans</td>
</tr>
<tr>
<td align="left"><strong>Go RPC API (Apify / RapidAPI)</strong></td>
<td align="left"><code>300–1,600ms</code></td>
<td align="left">Zero browser, zero proxy</td>
<td align="left">Native (<code>includeDetails: true</code>)</td>
<td align="left">Native (<code>domains[]</code> + work emails)</td>
<td align="left">Pay-per-event (<code>$1.00–$1.50/1k</code>) or Free tier</td>
</tr>
</tbody></table>
<hr />
<h2>Frequently Asked Questions</h2>
<p><strong>Is there an official Google Ads Transparency Center API?</strong>
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.</p>
<p><strong>Can I check if a list of B2B domains or work emails is actively running Google Ads?</strong>
Yes. In <code>screeningMode: true</code>, you can pass bare domains (<code>klaviyo.com</code>), URLs, or work emails (<code>ceo@hubspot.com</code>), and the API automatically normalizes each domain and returns <code>hasActiveAds</code>, verified advertiser names, creative count ranges, and active formats.</p>
<p><strong>Does it extract EU Digital Services Act (DSA) audience reach and targeting?</strong>
Yes. Passing a European region code (such as <code>DE</code>, <code>FR</code>, or <code>EU</code>) with <code>includeDetails: true</code> extracts official EU DSA reach ranges, demographic targeting disclosures, and <code>fundedBy</code> payer names.</p>
<p><strong>Do I need residential proxies to run it at scale?</strong>
No. Because it communicates over direct Go RPC rather than browser scraping, it runs cleanly on 128–256 MB containers with <code>$0</code> proxy cost.</p>
<p><strong>Where can I test it right now without writing code?</strong></p>
<ul>
<li>One-click bulk domain ad-spend preset: <a href="https://apify.com/spiky_closet/google-ads-transparency-scraper/examples/b2b-domain-google-ads-spend-checker">https://apify.com/spiky_closet/google-ads-transparency-scraper/examples/b2b-domain-google-ads-spend-checker</a></li>
<li>One-click EU DSA reach preset: <a href="https://apify.com/spiky_closet/google-ads-transparency-scraper/examples/eu-dsa-google-ads-reach-extractor">https://apify.com/spiky_closet/google-ads-transparency-scraper/examples/eu-dsa-google-ads-reach-extractor</a></li>
<li>Full Apify Actor &amp; MCP server: <a href="https://apify.com/spiky_closet/google-ads-transparency-scraper">https://apify.com/spiky_closet/google-ads-transparency-scraper</a></li>
<li>RapidAPI REST Playground (Free Basic plan): <a href="https://rapidapi.com/HYunLe/api/google-ads-transparency-creative-spy">https://rapidapi.com/HYunLe/api/google-ads-transparency-creative-spy</a></li>
<li>Standalone GitHub examples &amp; n8n workflow JSON: <a href="https://github.com/yun87457-web/google-ads-transparency-mcp">https://github.com/yun87457-web/google-ads-transparency-mcp</a></li>
</ul>
]]></content:encoded></item></channel></rss>