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.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp 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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
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
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Google | $0.015 mỗi lần gọi | JSON |
Google | $0.01 mỗi lần gọi | JSON |
Google | Từ $0.002 mỗi lần gọi | JSON |
Google | Từ $0.0015 mỗi lần gọi | JSON |
Google | $0.01 mỗi lần gọi | JSON |
Google | $0.01 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/google/ads-transparency với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.015 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Không có tham số bắt buộc. Tùy chọn: text (string), advertiser_id (string), region (string), political_ads (boolean), platform (string) và creative_format (string) và 4 mục khác. Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Google Ads Transparency Center chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Google.