Google company ads
An advertiser's ads in Google's Ads Transparency Center, 40 a page: by its id or its website, with the country, format, Google service and dates given.
GET/v1/google/ad-library/companies/ads1 creditHeaders
Get your API keyx-api-key*stringrequiredheaderYour API key, made in the dashboard.
Parameters
8advertiser_idstringoptionalqueryAn advertiser's id: AR and 20 digits, from the companies search. Give advertiser_id or domain.
domainstringoptionalqueryThe advertiser's website, like nike.com. Give advertiser_id or domain.
max 253 chars · example: nike.com
countrystringoptionalqueryOnly ads shown in this country: a two-letter code (US), or ALL.
default: ALL · example: US
media_typeenumoptionalqueryOnly text, image or video ads.
one of: all, text, image, video · default: all
platformenumoptionalqueryOnly ads shown on this Google service.
one of: all, google_play, google_maps, google_search, google_shopping, youtube · default: all
start_datestringoptionalqueryOnly ads shown in this date range (YYYY-MM-DD), within the last year: give start_date and end_date together.
end_datestringoptionalqueryOnly ads shown in this date range (YYYY-MM-DD), within the last year: give start_date and end_date together.
cursorstringoptionalqueryFor the next page: page.next_cursor from the page before. Send the other parameters again with it.
max 300 chars
Response fields
26dataarrayThe result: one object, or a list for the endpoints that return several.
data[].advertiser_idstringThe advertiser's id: the company ads endpoint takes it.
data[].creative_idstringThe ad's id: the ad endpoint takes it.
data[].urlstringThe ad's page in the Ads Transparency Center.
data[].advertiser_namestringnullableThe advertiser's verified name.
data[].domainstringnullableThe advertiser's website, where Google shows it.
data[].formatstringnullabletext, image or video.
one of: text, image, video
data[].first_shownstringnullableWhen it was first shown. Null on the ad endpoint.
format: date-time
data[].last_shownstringnullableWhen it was last shown.
format: date-time
data[].preview_urlstringnullableA link to its preview, which draws the ad.
data[].image_urlstringnullableIts image, for an ad Google keeps as one.
data[].variationsarraynullableEach version of the ad. Only on the ad endpoint.
data[].variations[].preview_urlstringnullableA link to the version's preview, which draws the ad.
data[].variations[].image_urlstringnullableThe version's image, for an ad Google keeps as one.
data[].countriesstring[]nullableThe countries it was shown in, as two-letter codes. Only on the ad endpoint.
pageobjectnullablePaging, for the endpoints that page; null for the others.
page.next_cursorstringnullableSend it as the cursor parameter, with the same other parameters, for the next page. Null on the last page.
page.has_morebooleanoptionalWhether another page follows.
default: false
metaobjectAbout this call.
meta.platformstringThe platform: reddit, threads, tiktok or youtube.
meta.endpointstringThe endpoint's name, such as channel_videos.
meta.paramsobjectThe call's parameters, defaults included. Parameters without a value, and the cursor, are left out.
meta.request_idstringThis call's id. Quote it when you report a problem.
meta.api_versionstringThe API version that answered.
meta.fetched_atstringWhen the data was fetched from the platform (UTC).
format: date-time
meta.cachedbooleanoptionalWhether it came from our cache; fetched_at says how old it is.
default: false
Code example
curl -X GET 'https://api.socialparse.dev/v1/google/ad-library/companies/ads?domain=nike.com&country=US' \ -H 'x-api-key: YOUR_API_KEY'Responses
Successful Response
{ "data": [ { "advertiser_id": "string", "creative_id": "string", "url": "string", "advertiser_name": "string", "domain": "string", "format": "text", "first_shown": "2019-08-24T14:15:22Z", "last_shown": "2019-08-24T14:15:22Z", "preview_url": "string", "image_url": "string", "variations": [ { "preview_url": "string", "image_url": "string" } ], "countries": [ "string" ] } ], "page": { "next_cursor": "string", "has_more": false }, "meta": { "platform": "string", "endpoint": "string", "params": { "property1": "string", "property2": "string" }, "request_id": "string", "api_version": "string", "fetched_at": "2019-08-24T14:15:22Z", "cached": false }}