Google

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 credit
x-api-key*stringrequiredheader

Your API key, made in the dashboard.

Parameters

8
advertiser_idstringoptionalquery

An advertiser's id: AR and 20 digits, from the companies search. Give advertiser_id or domain.

domainstringoptionalquery

The advertiser's website, like nike.com. Give advertiser_id or domain.

max 253 chars · example: nike.com

countrystringoptionalquery

Only ads shown in this country: a two-letter code (US), or ALL.

default: ALL · example: US

media_typeenumoptionalquery

Only text, image or video ads.

one of: all, text, image, video · default: all

platformenumoptionalquery

Only ads shown on this Google service.

one of: all, google_play, google_maps, google_search, google_shopping, youtube · default: all

start_datestringoptionalquery

Only ads shown in this date range (YYYY-MM-DD), within the last year: give start_date and end_date together.

end_datestringoptionalquery

Only ads shown in this date range (YYYY-MM-DD), within the last year: give start_date and end_date together.

cursorstringoptionalquery

For the next page: page.next_cursor from the page before. Send the other parameters again with it.

max 300 chars

Response fields

26
dataarray

The result: one object, or a list for the endpoints that return several.

data[].advertiser_idstring

The advertiser's id: the company ads endpoint takes it.

data[].creative_idstring

The ad's id: the ad endpoint takes it.

data[].urlstring

The ad's page in the Ads Transparency Center.

data[].advertiser_namestringnullable

The advertiser's verified name.

data[].domainstringnullable

The advertiser's website, where Google shows it.

data[].formatstringnullable

text, image or video.

one of: text, image, video

data[].first_shownstringnullable

When it was first shown. Null on the ad endpoint.

format: date-time

data[].last_shownstringnullable

When it was last shown.

format: date-time

data[].preview_urlstringnullable

A link to its preview, which draws the ad.

data[].image_urlstringnullable

Its image, for an ad Google keeps as one.

data[].variationsarraynullable

Each version of the ad. Only on the ad endpoint.

data[].variations[].preview_urlstringnullable

A link to the version's preview, which draws the ad.

data[].variations[].image_urlstringnullable

The version's image, for an ad Google keeps as one.

data[].countriesstring[]nullable

The countries it was shown in, as two-letter codes. Only on the ad endpoint.

pageobjectnullable

Paging, for the endpoints that page; null for the others.

page.next_cursorstringnullable

Send it as the cursor parameter, with the same other parameters, for the next page. Null on the last page.

page.has_morebooleanoptional

Whether another page follows.

default: false

metaobject

About this call.

meta.platformstring

The platform: reddit, threads, tiktok or youtube.

meta.endpointstring

The endpoint's name, such as channel_videos.

meta.paramsobject

The call's parameters, defaults included. Parameters without a value, and the cursor, are left out.

meta.request_idstring

This call's id. Quote it when you report a problem.

meta.api_versionstring

The API version that answered.

meta.fetched_atstring

When the data was fetched from the platform (UTC).

format: date-time

meta.cachedbooleanoptional

Whether 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  }}