Skip to content
scrapeatlas.Dashboard

Ad libraries

Google Ads Transparency Center API

Search Google advertisers and read their ads, creatives and political ad transparency details.

3 endpointsx-api-key

Find advertisers and their websites in the Google Ads Transparency Center, list an advertiser's or domain's ads by region, platform, format and date with cursor pagination, and read an ad's variations, regions shown and, for political ads, spend, impressions and targeting.

API availability: Available

Base URL · local workerhttp://localhost:3062Public API: https://api.scrapeatlas.com.
Authenticationx-api-keyCustomer key from your account. See Authentication.

Endpoints

GET/v1/google/adLibrary/advertisers/search

Search advertisers

Search the Ads Transparency Center for advertisers and advertised websites matching a name. Each advertiser carries its ID, the region it is registered in and the source's estimate of its ad count; pass the ID or a website domain to Company ads.

Reference
GET/v1/google/company/ads

Company ads

List one page of up to 40 ads for an advertiser ID or an advertised domain, optionally limited to a region, a Google platform, an ad format and a date range. Each ad carries its format, first and last shown times, preview image or preview script and its variation count. Pass the returned cursor with the same filters for the next page.

Reference
GET/v1/google/ad

Get ad

Read one ad by its Transparency Center URL or by advertiser and creative IDs: format, first and last shown times, every variation's image or preview script, the regions it was shown in with dates, and for political ads the spend range, impression range and age, gender and location targeting.

Reference

Quick start

Create an API key on your account page, then call the public API. Values below are placeholders.

Terminal
curl "https://api.scrapeatlas.com/v1/google/adLibrary/advertisers/search?query=lululemon" \
  -H "x-api-key: YOUR_API_KEY"

Coverage & limits

  • Six active operations with a queue of 12 and an 8-second queue wait; 25-second deadline covering the queue; three upstream reads per operation with one shared transient retry.
  • Reads are paced in process: about one per second with a burst of four without a proxy, 20 per second with one. With a proxy every read leaves on a fresh session; a tunnel that fails before any response is reopened on the same session up to five times.
  • Up to 50 advertisers and 50 websites per search; 40 ads per company-ads page; 100 variations and 300 regions per ad.
  • 4 MiB of decoded JSON per operation; at most 32 levels and 200,000 values.
  • Plain HTTPS to the public Transparency Center RPC endpoint. No login, cookies or account. Preview images and preview scripts are returned as URLs, never fetched; nothing is stored.
Error codes
8
HTTPfailure.codeMeaning
400invalid_requestInvalid, duplicate, unknown or conflicting inputs, or a request the source rejected.
401unauthorizedMissing or incorrect service key.
404not_foundMissing advertiser, ad or route.
429upstream_rate_limitedSource throttling.
502upstream_challenged unsupported_pageRefused request or unsupported response structure.
502upstream_error unsafe_redirect response_too_large request_limit payload_too_complexBounded source failure.
503busyAll retrieval slots and queue places are taken.
504timeoutDeadline exceeded.