Ads
来自 Google 广告透明度中心:某广告主投放的全部广告、指向某网站的全部广告,或某国家/地区的政治广告。
GET | POST /v1/google-ads/ads参数可以用 GET 的查询字符串发送,也可以用 POST 的 JSON 正文发送,两者等效。
请求
curl "https://gateway.apinoa.com/v1/google-ads/ads?political=true&country=US" \
-H "x-api-key: $APINOA_API_KEY"传入内容
| 传入 | 读取 | 说明 |
|---|---|---|
advertiser | 这些广告主投放的全部广告 | 最多 10 个广告主 id(AR…),用逗号分隔 |
domain | 指向该网站的全部广告(不论广告主) | nike.com |
political=true | 政治广告 | 单独使用(配合 country),或与 advertiser、domain 一起使用 |
传入 advertiser 或 domain。筛选条件(country、platform、format、startDate、endDate、political)对两者都适用。
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
advertiser | string list | Every ad these advertisers ran: up to 10 advertiser ids (AR…), comma-separated (advertisers?query= finds one by name). | |
country | string | Only ads shown in this country (ISO 3166-1 alpha-2). Default: anywhere. | |
cursor | string | Opaque cursor from the previous page's cursor. Pass it alone for the next page. | |
domain | string | Every ad that leads to this website (nike.com), whichever advertiser ran it. | |
endDate | string | Only ads shown on or before this day (YYYY-MM-DD). | |
format | enum | Only ads of this format: text, image or video. text image video | |
limit | integer 1–100 | Ads per page, 1–100 (default 40). | |
platform | enum | Only ads shown on this Google platform: search, youtube, shopping, maps or play. play maps search shopping youtube | |
political | boolean | Political ads only (the Transparency Center's political ads report): these state impressions, spend and regions. | |
startDate | string | Only ads shown on or after this day (YYYY-MM-DD). |
这些参数及所有响应类型也写在OpenAPI 文档中。
响应
在 data 中返回 AdPage。 真实响应的精简版:数组只保留前几项,长文本已截断。
{
"success": true,
"data": {
"library": "google-ads",
"items": [
{
"library": "google-ads",
"id": "CR12655672276457357313",
"url": "https://adstransparency.google.com/advertiser/AR16405420687142944769/cre…",
"advertiser": {
"id": "AR16405420687142944769",
"name": "Claire M Sheehan",
"url": "https://adstransparency.google.com/advertiser/AR16405420687142944769?reg…"
},
"format": "VIDEO",
"firstShownAt": "2026-04-27T21:28:26.000Z",
"lastShownAt": "2026-11-26T10:53:12.000Z",
"impressions": {
"lower": 9000,
"upper": 10000
},
"spend": {
"lower": 0,
"upper": 100
},
"currency": "USD",
"images": [],
"videos": [],
"cards": [],
"countries": [
{
"country": "US"
}
],
"ext": {
"daysShown": 213,
"previewUrl": "https://displayads-formats.googleusercontent.com/ads/preview/content.js?…"
}
},
{
"library": "google-ads",
"id": "CR05008684663233839105",
"url": "https://adstransparency.google.com/advertiser/AR17096688148651442177/cre…",
"advertiser": {
"id": "AR17096688148651442177",
"name": "ONE BLACK RABBIT LLC",
"url": "https://adstransparency.google.com/advertiser/AR17096688148651442177?reg…"
},
"format": "VIDEO",
"firstShownAt": "2026-11-23T08:01:48.000Z",
"lastShownAt": "2026-11-26T10:51:22.000Z",
"impressions": {
"lower": 9000,
"upper": 10000
},
"spend": {
"lower": 100,
"upper": 200
},
"currency": "USD",
"images": [],
"videos": [],
"cards": [],
"countries": [
{
"country": "US"
}
],
"ext": {
"daysShown": 4,
"previewUrl": "https://displayads-formats.googleusercontent.com/ads/preview/content.js?…"
}
}
],
"cursor": "NCDFmqSVNCZe1x7I2Dlpdve6UW2f6CepaQCZa9AfPYkj6ap8pJiJDz0cbxyQD3Gx7OgZ5jaP…",
"total": 977094
}
}错误
| 状态 | 错误码 | 含义 |
|---|---|---|
| 400 | INVALID_CURSOR | 该 cursor 不是本操作返回的。请不带它重新开始。 |
| 400 | INVALID_PARAMS | 参数缺失、未知或超出范围。消息中会指出是哪一个。 |
| 401 | UNAUTHORIZED | 缺少 x-api-key 请求头,或密钥已吊销或未知。 |
| 402 | INSUFFICIENT_CREDITS | 积分不足以支付本次调用。请在控制台选择套餐或充值。 |
| 429 | MARKETPLACE_SATURATED | 并发调用过多。请等待 Retry-After 秒后重试。 |
| 502 | UPSTREAM_ERROR | 平台返回了无法使用的内容。请退避后重试。 |
所有错误码见错误。失败的调用不计费。
价格
价格 每次调用 1 积分。套餐与积分
说明
- 一个
AdPage:Ads API 中每个广告库返回的都是同一种记录。只有透明度中心提供的信息在ext中。 - 匹配的广告数量在大多数搜索中以范围给出(
totalRange,例如 8000–9000),小型搜索和政治广告则给出确切数量(total)。两者都不经过取整或估算。 - 政治广告还带有以范围给出的
impressions和spend、花费的currency,以及投放的countries。其他广告没有展示次数或花费:Google 不公开这些数据。 - 大多数文字广告以广告图片列出(
images,含宽度和高度);其他广告在ext.previewUrl中有预览。ad?include=content会从预览中读取广告文字。 ext.daysShown是广告展示的天数,ext.matchedDomain是domain搜索所匹配的网站。url是该广告在透明度中心的页面,ad?id=可直接接受。- 每页最多 100 条广告(
limit,默认 40)。要获取下一页,只传cursor。