Google Ads Transparency Creative Detail
google-adstransparency.creative.get
Get one ad from its advertiser and ad IDs: every version of it, the regions it ran in and when it was last shown.
At a glance
- Endpoint ID
google-adstransparency.creative.get- Price
- 1.5 credits per call; failed calls are free
- Runs for up to
- 60 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "google-adstransparency.creative.get", "input": { "advertiser_id": "AR12815412684405080065", "creative_id": "CR10007278137596968961" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "google-adstransparency.creative.get", "input": { "advertiser_id": "AR12815412684405080065", "creative_id": "CR10007278137596968961" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "google-adstransparency.creative.get", "input": { "advertiser_id": "AR12815412684405080065", "creative_id": "CR10007278137596968961" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
advertiser_id |
string | yes | Google's advertiser ID, such as AR12815412684405080065: field 1 of an ad from the other endpoints. | AR12815412684405080065 |
creative_id |
string | yes | Google's ID for the ad, such as CR10007278137596968961: field 2 of the same ad. | CR10007278137596968961 |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "creative": { "1": "AR12815412684405080065", "2": "CR10007278137596968961", "8": 1, "4": { "1": "1792419148", "2": 950516000 }, "17": [ { "1": 2840, "5": 20261019 } ], "5": [ { "5": true, "3": { "2": "<img src=\"https://tpc.googlesyndication.com/archive/simgad/1042557611142725945\" height=\"376\" width=\"348\">" } }, { "5": true, "3": { "2": "<img src=\"https://tpc.googlesyndication.com/archive/simgad/15929607272574382757\" height=\"180\" width=\"348\">" } } ] }}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
creative.5[].5 |
boolean | A flag Google sets on the version. | true |
creative.5[].3 |
object | What Google shows to preview this version. | 1 fields |
creative |
object | The ad as Google's Ads Transparency Center describes it. | 6 fields |
creative.1 |
string | Google's ID for the advertiser. | AR12815412684405080065 |
creative.17 |
array | The regions the ad ran in. | 1 records |
creative.17[].1 |
integer | Google's ID for the region, such as 2840 for the United States. | 2840 |
creative.17[].5 |
integer | A date Google gives for the region, as YYYYMMDD. | 20,261,019 |
creative.2 |
string | Google's ID for the ad. | CR10007278137596968961 |
creative.4 |
object | When the ad was last shown. | 2 fields |
creative.4.1 |
string | When the ad was last shown, as a Unix time in seconds. | 1792419148 |
creative.4.2 |
integer | The fraction of that second, in nanoseconds. | 950,516,000 |
creative.5 |
array | Every version of the ad. | 3 records |
creative.8 |
integer | The ad's format: 1 text, 2 image, 3 video. | 1 |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other Google Ads Transparency endpoints
Something missing or unclear? Ask the team that builds the Google Ads Transparency endpoints.