textstring
free-text advertiser or domain to search for. Supply either this OR advertiser_id — neither is individually mandatory but one is needed
https://api.sandbase.ai/v1/api/google/ads-transparencyAds an advertiser is running on Google, from the Ads Transparency Center: creatives, formats, first and last shown dates.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns a list of ad creatives shown on Google for an advertiser or domain, taken from the Google Ads Transparency Center. Each creative includes the advertiser, format, first and last shown timestamps, and a preview link. Send a domain or advertiser name in text, or one or more IDs in advertiser_id.
creative_format to review only video or text ads.advertiser_id values to look up one advertiser's full ad history.curl -X POST "https://api.sandbase.ai/v1/api/google/ads-transparency" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "apple.com"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
advertiser_id | string | No | a specific advertiser id, or several comma-separated |
creative_format | string | No | text / image / video |
end_date | string | No | YYYYMMDD |
next_page_token | string | No | cursor from the previous response's serpapi_pagination |
num | integer | No | results to return; default 40. Unlike engine=google, num IS documented here |
platform | string | No | where the ad ran: PLAY / MAPS / SEARCH / SHOPPING / YOUTUBE |
political_ads | boolean | No | restrict to political advertising; forces region to be set |
region | string | No | geographic region the search originates from. REQUIRED when political_ads is true |
start_date | string | No | YYYYMMDD |
text | string | No | free-text advertiser or domain to search for. Supply either this OR advertiser_id — neither is individually mandatory but one is needed |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"ad_creatives": [
{
"ad_creative_id": "CR01913929004390285313",
"advertiser": "Optimum Media Direction (Thailand) Co., Ltd",
"advertiser_id": "AR03550249516248596481",
"details_link": "https://adstransparency.google.com/advertiser/AR03550249516248596481/creative/CR…",
"first_shown": 1792688520,
"format": "video",
"last_shown": 1793690110,
"link": "https://displayads-formats.googleusercontent.com/ads/preview/content.js?client=a…",
"target_domain": "apple.com",
"total_days_shown": 12
}
],
"search_information": {
"total_results": 300000
}
}
| Field | Meaning |
|---|---|
ad_creatives[] | List of ad creatives that match the search. |
ad_creatives[].ad_creative_id | Identifier of one creative. It starts with CR. |
ad_creatives[].advertiser / ad_creatives[].advertiser_id | Name of the advertiser that ran the ad and its ID, which starts with AR. Use the ID in advertiser_id for later searches. |
ad_creatives[].format | Creative type, such as video or text. |
ad_creatives[].first_shown / ad_creatives[].last_shown | Unix timestamps in seconds for when the creative was first and last shown. |
ad_creatives[].total_days_shown | Number of days the creative was shown. |
ad_creatives[].target_domain | Domain the ad is tied to, such as apple.com. |
ad_creatives[].details_link | Link to the creative's page in the Ads Transparency Center. |
ad_creatives[].image / ad_creatives[].link / ad_creatives[].width / ad_creatives[].height | Preview image URL or preview content URL for the creative, with pixel size when given. Text and image creatives carry image, width and height. The video creative carries link. |
search_information.total_results | Total number of creatives that match the search. |
text or advertiser_id. One of the two is needed.region when political_ads is true.num to set how many results to return. Pass next_page_token from the previous response's pagination data to get the next page.start_date and end_date as YYYYMMDD.$0.015 per successful call. Failed calls are not charged.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1/api/google/ads-transparency" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "apple.com"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
textstringfree-text advertiser or domain to search for. Supply either this OR advertiser_id — neither is individually mandatory but one is needed
advertiser_idstringa specific advertiser id, or several comma-separated
regionstringgeographic region the search originates from. REQUIRED when political_ads is true
political_adsbooleanrestrict to political advertising; forces `region` to be set
platformstringwhere the ad ran: PLAY | MAPS | SEARCH | SHOPPING | YOUTUBE
creative_formatstringtext | image | video
start_datestringYYYYMMDD
end_datestringYYYYMMDD
numintegerresults to return; default 40. Unlike engine=google, `num` IS documented here
next_page_tokenstringcursor from the previous response's serpapi_pagination
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Google Ads Transparency CenterCette API Google | $0.015 par appel | JSON |
Google | $0.01 par appel | JSON |
Google | À partir de $0.002 par appel | JSON |
Google | À partir de $0.0015 par appel | JSON |
Google | $0.01 par appel | JSON |
Google | $0.01 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/google/ads-transparency avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
$0.015 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Aucun paramètre n’est requis. Facultatif : text (string), advertiser_id (string), region (string), political_ads (boolean), platform (string) et creative_format (string) et 4 de plus. Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. Google Ads Transparency Center fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Google séparément.