Advertisers
在 Google 广告透明度中心按名称或网站查找广告主,每个都带有 ads 接受的 id。
GET | POST /v1/google-ads/advertisers参数可以用 GET 的查询字符串发送,也可以用 POST 的 JSON 正文发送,两者等效。
请求
curl "https://gateway.apinoa.com/v1/google-ads/advertisers?query=nike&country=US" \
-H "x-api-key: $APINOA_API_KEY"传入内容
| 传入 | 读取 | 说明 |
|---|---|---|
query | 名称匹配的广告主,以及匹配的网站 | 广告主名称(nike)或网站(temu.com) |
country 只保留在该国家/地区投放过广告的广告主。limit 大于 10 时,会分页列出所有匹配的广告主。
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
country | string | Only advertisers whose ads were 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. | |
limit | integer 1–100 | Advertisers per page, 1–100. Up to 10 (the default) also lists matching websites; more pages through every advertiser that matches. | |
query | string | An advertiser's name or a website: the advertisers whose name matches, each with the id that ads?advertiser= takes, and the matching websites (for ads?domain=). |
这些参数及所有响应类型也写在OpenAPI 文档中。
响应
在 data 中返回 AdvertiserPage。 真实响应的精简版:数组只保留前几项,长文本已截断。
{
"success": true,
"data": {
"library": "google-ads",
"items": [
{
"library": "google-ads",
"id": "AR17365672681860497409",
"url": "https://adstransparency.google.com/advertiser/AR17365672681860497409?reg…",
"name": "NIKE SRL",
"country": "IT",
"verified": true,
"ads": {
"lower": 1,
"upper": 1
}
},
{
"library": "google-ads",
"id": "AR16735076323512287233",
"url": "https://adstransparency.google.com/advertiser/AR16735076323512287233?reg…",
"name": "Nike, Inc.",
"country": "US",
"verified": true,
"ads": {
"lower": 9000,
"upper": 10000
}
}
],
"ext": {
"domains": [
"nike.cl",
"nike.in"
]
}
}
}错误
| 状态 | 错误码 | 含义 |
|---|---|---|
| 400 | INVALID_CURSOR | 该 cursor 不是本操作返回的。请不带它重新开始。 |
| 400 | INVALID_PARAMS | 参数缺失、未知或超出范围。消息中会指出是哪一个。 |
| 401 | UNAUTHORIZED | 缺少 x-api-key 请求头,或密钥已吊销或未知。 |
| 402 | INSUFFICIENT_CREDITS | 积分不足以支付本次调用。请在控制台选择套餐或充值。 |
| 429 | MARKETPLACE_SATURATED | 并发调用过多。请等待 Retry-After 秒后重试。 |
| 502 | UPSTREAM_ERROR | 平台返回了无法使用的内容。请退避后重试。 |
所有错误码见错误。失败的调用不计费。
价格
价格 每次调用 1 积分。套餐与积分
说明
- 一个
AdvertiserPage:Ads API 中每个广告库返回的都是同一种记录。只有透明度中心提供的信息在ext中。 id(AR…)是ads?advertiser=和advertiser?id=接受的值。ext.domains中的每一项是ads?domain=接受的值。ads是该广告主的广告数量,与透明度中心所示一致:一个范围(lower–upper),不会在其中挑一个数字。给出确切数量时,lower等于upper。- Google 未验证广告主身份时,
verified为false。 - 最多 10 个广告主(默认)时,
ext.domains中会附带匹配的网站。limit更大时,会按页列出所有匹配的广告主,每个的ext中带有advertiser显示的名称和国家/地区,ext.total给出匹配数量;要获取下一页,只传cursor。