Google Ads Transparency ads by advertiser
Beta GET /v1/google/ad-library/company/ads
GET /v1/google/ad-library/company/ads
An advertiser's public ads by advertiser id or website domain: ids, previews and first and last shown dates when Google gives them.
- Cost: 1 credit
- Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
id | string | one of | Advertiser id (AR...). Also accepted as advertiser_id, advertiserId. |
domain | string | one of | Advertiser's website domain. |
topic | string | no | All ads or political ads. Political needs a region. One of all, political. |
platform | string | no | Where the ad ran. One of google_maps, google_play, google_search, google_shopping, youtube. |
format | string | no | Creative format. One of all, text, image, video. |
start_date | string | no | Ads shown from this date, YYYY-MM-DD. |
end_date | string | no | Ads shown up to this date, YYYY-MM-DD. |
Send at least one of id, domain. If you send several, the first listed is used and the rest are ignored.
Every request also accepts:
cursor: the cursor from the previous page (Pagination).region: two-letter country code for results that vary by country. Changing it restarts the cursor chain.trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
curl -G "https://api.socialscrape.io/v1/google/ad-library/company/ads" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode "id=AR16735076323512287233" \
--data-urlencode "platform=youtube" \
--data-urlencode "region=US"import os
import requests
params = {
"id": "AR16735076323512287233",
"platform": "youtube",
"region": "US",
}
res = requests.get(
"https://api.socialscrape.io/v1/google/ad-library/company/ads",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/google/ad-library/company/ads");
url.search = new URLSearchParams({
"id": "AR16735076323512287233",
"platform": "youtube",
"region": "US"
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape Google Ads Transparency ads by advertiser",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/google/ad-library/company/ads",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "id",
"value": "AR16735076323512287233"
},
{
"name": "platform",
"value": "youtube"
},
{
"name": "region",
"value": "US"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_54daf7d2f10a025e49047c46",
"data": {
"object": "list",
"items": [
{
"object": "ad",
"platform": "google",
"id": "CR15282208055438082049",
"url": "https://adstransparency.google.com/advertiser/AR16735076323512287233/creative/CR15282208055438082049",
"advertiser": {
"object": "advertiser",
"platform": "google",
"id": "AR16735076323512287233",
"name": "Nike, Inc.",
"url": "https://adstransparency.google.com/advertiser/AR16735076323512287233",
"page_id": null,
"country": null,
"verified": null,
"ad_count": null,
"extra": null
},
"status": "unknown",
"started_at": "2026-02-16T22:01:29Z",
"ended_at": null,
"title": null,
"body": null,
"cta_text": null,
"landing_url": null,
"format": "video",
"media": {
"thumbnail_url": null,
"video_url": null,
"audio_url": null,
"image_urls": null,
"width": null,
"height": null
},
"regions": null,
"publisher_platforms": null,
"impressions": null,
"spend": null,
"extra": {
"last_shown_at": "2026-08-11T20:43:40Z",
"preview_url": "https://displayads-formats.googleusercontent.com/ads/preview/content.js?client=ads-integrity-transparency&obfuscatedCustomerId=8804020668&creativeId=797296816243&uiFeatures=12,54&versionId=29&assets=%3DH4sIAAAAAAAAAOPi5uLkOLbjectuJgFGANEYnf...",
"region_count": 177
}
},
{
"object": "ad",
"platform": "google",
"id": "CR12425799991778344961",
"url": "https://adstransparency.google.com/advertiser/AR16735076323512287233/creative/CR12425799991778344961",
"advertiser": {
"object": "advertiser",
"platform": "google",
"id": "AR16735076323512287233",
"name": "Nike, Inc.",
"url": "https://adstransparency.google.com/advertiser/AR16735076323512287233",
"page_id": null,
"country": null,
"verified": null,
"ad_count": null,
"extra": null
},
"status": "unknown",
"started_at": "2026-02-16T22:02:36Z",
"ended_at": null,
"title": null,
"body": null,
"cta_text": null,
"landing_url": null,
"format": "video",
"media": {
"thumbnail_url": null,
"video_url": null,
"audio_url": null,
"image_urls": null,
"width": null,
"height": null
},
"regions": null,
"publisher_platforms": null,
"impressions": null,
"spend": null,
"extra": {
"last_shown_at": "2026-08-11T20:43:40Z",
"preview_url": "https://displayads-formats.googleusercontent.com/ads/preview/content.js?client=ads-integrity-transparency&obfuscatedCustomerId=8804020668&creativeId=797296784374&uiFeatures=12,54&versionId=32&assets=%3DH4sIAAAAAAAAAOPi5uLkOLbjectuJgFGANEYnf...",
"region_count": 177
}
}
],
"cursor": null,
"has_more": false,
"parent": {
"object": "advertiser",
"platform": "google",
"id": "AR16735076323512287233",
"name": "Nike, Inc.",
"url": "https://adstransparency.google.com/advertiser/AR16735076323512287233",
"page_id": null,
"country": null,
"verified": null,
"ad_count": 12,
"extra": null
}
},
"cursor": null,
"has_more": false
}Response#
A list of Ad objects in data.items, with data.cursor and data.has_more.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Also served at#
These paths answer the same request, so code written for other APIs keeps working: /v1/google/company/ads. See Switching from ScrapeCreators.
Related endpoints#
- Google Ads Transparency advertiser search (
GET /v1/google/ad-library/advertisers/search) - Google Ads Transparency ad details (
GET /v1/google/ad-library/ad)