Ad libraries
Google Ads Transparency Center API
Search Google advertisers and read their ads, creatives and political ad transparency details.
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
http://localhost:3062Public API: https://api.scrapeatlas.com.Endpoints
/v1/google/adLibrary/advertisers/searchSearch 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/v1/google/company/adsCompany 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/v1/google/adGet 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.
ReferenceQuick start
Create an API key on your account page, then call the public API. Values below are placeholders.
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.
| HTTP | failure.code | Meaning |
|---|---|---|
| 400 | invalid_request | Invalid, duplicate, unknown or conflicting inputs, or a request the source rejected. |
| 401 | unauthorized | Missing or incorrect service key. |
| 404 | not_found | Missing advertiser, ad or route. |
| 429 | upstream_rate_limited | Source throttling. |
| 502 | upstream_challenged unsupported_page | Refused request or unsupported response structure. |
| 502 | upstream_error unsafe_redirect response_too_large request_limit payload_too_complex | Bounded source failure. |
| 503 | busy | All retrieval slots and queue places are taken. |
| 504 | timeout | Deadline exceeded. |