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.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
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"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
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
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Google | $0.015 ต่อการเรียก | JSON |
Google | $0.01 ต่อการเรียก | JSON |
Google | เริ่มต้นที่ $0.002 ต่อครั้ง | JSON |
Google | เริ่มต้นที่ $0.0015 ต่อครั้ง | JSON |
Google | $0.01 ต่อการเรียก | JSON |
Google | $0.01 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/google/ads-transparency โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.015 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: text (string), advertiser_id (string), region (string), political_ads (boolean), platform (string) และ creative_format (string) และอีก 4 รายการ ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Google Ads Transparency Center ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Google API แยกต่างหาก