Google advertiser's running ads — Ads Transparency Center
serpapi.google.ads.transparencyAds a Google advertiser is running now, from the Ads Transparency Center
- 价格
- $0.015/success按供应商原价
- 成功率
- 100%近 30 天 · 2,416 次
- 延迟 p50
- 2.5 秒p95 11 秒
- 最后验证
- 2026年7月28日实测可用
GEThttps://toolswitch.dev/v1/tools/serpapi.google.ads.transparency?text=coffee&engine=google_ads_transparency_center预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
answers arrive in `ad_creatives`. This is the one endpoint in the file whose query param is `text` rather than `q` — and it is optional, because you may identify the advertiser by id instead.
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
num | 整数 | 可选 | results to return; default 40. Unlike engine=google, `num` IS documented here | 10 |
text | 字符串 | 可选 | free-text advertiser or domain to search for. Supply either this OR advertiser_id — neither is individually mandatory but one is needed | coffee |
engine | 字符串 | 必填 | google_ads_transparency_center | |
region | 字符串 | 可选 | geographic region the search originates from. REQUIRED when political_ads is true | |
end_date | 字符串 | 可选 | YYYYMMDD | |
platform | 字符串 | 可选 | where the ad ran: PLAY | MAPS | SEARCH | SHOPPING | YOUTUBE | |
start_date | 字符串 | 可选 | YYYYMMDD | |
advertiser_id | 字符串 | 可选 | a specific advertiser id, or several comma-separated | |
political_ads | 布尔 | 可选 | restrict to political advertising; forces `region` to be set | |
creative_format | 字符串 | 可选 | text | image | video | |
next_page_token | 字符串 | 可选 | cursor from the previous response's serpapi_pagination | |
- 查询参数
num整数可选results to return; default 40. Unlike engine=google, `num` IS documented here
示例:
10text字符串可选free-text advertiser or domain to search for. Supply either this OR advertiser_id — neither is individually mandatory but one is needed
示例:
coffeeengine字符串必填示例:
google_ads_transparency_centerregion字符串可选geographic region the search originates from. REQUIRED when political_ads is true
end_date字符串可选YYYYMMDD
platform字符串可选where the ad ran: PLAY | MAPS | SEARCH | SHOPPING | YOUTUBE
start_date字符串可选YYYYMMDD
advertiser_id字符串可选a specific advertiser id, or several comma-separated
political_ads布尔可选restrict to political advertising; forces `region` to be set
creative_format字符串可选text | image | video
next_page_token字符串可选cursor from the previous response's serpapi_pagination
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/serpapi.google.ads.transparency?text=coffee&engine=google_ads_transparency_center' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/serpapi.google.ads.transparency?text=coffee&engine=google_ads_transparency_center",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/serpapi.google.ads.transparency?text=coffee&engine=google_ads_transparency_center", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.015/success 计费,已含服务费。