Google

Google ad

An ad in Google's Ads Transparency Center: its advertiser, format, versions, the countries it was shown in and when it was last shown.

GET/v1/google/ad-library/ads1 credit
x-api-key*stringrequiredheader

Your API key, made in the dashboard.

Parameters

2
creative_idstringoptionalquery

An ad's id: CR and 20 digits, the company ads endpoint's creative_id. Give creative_id or url.

urlstringoptionalquery

An ad's link: adstransparency.google.com/advertiser/<id>/creative/<id>. Give creative_id or url.

max 300 chars · example: https://adstransparency.google.com/advertiser/AR16735076323512287233/creative/CR07264436911983296513

Response fields

26
dataobject

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/ads?url=https%3A%2F%2Fadstransparency.google.com%2Fadvertiser%2FAR16735076323512287233%2Fcreative%2FCR07264436911983296513' \  -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  }}