Apinoa Docs

Ads

来自 Google 广告透明度中心:某广告主投放的全部广告、指向某网站的全部广告,或某国家/地区的政治广告。

查看原始 .mdx
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)对两者都适用。

参数

参数类型必填说明
advertiserstring listEvery ad these advertisers ran: up to 10 advertiser ids (AR…), comma-separated (advertisers?query= finds one by name).
countrystringOnly ads shown in this country (ISO 3166-1 alpha-2). Default: anywhere.
cursorstringOpaque cursor from the previous page's cursor. Pass it alone for the next page.
domainstringEvery ad that leads to this website (nike.com), whichever advertiser ran it.
endDatestringOnly ads shown on or before this day (YYYY-MM-DD).
formatenumOnly ads of this format: text, image or video. text image video
limitinteger 1–100Ads per page, 1–100 (default 40).
platformenumOnly ads shown on this Google platform: search, youtube, shopping, maps or play. play maps search shopping youtube
politicalbooleanPolitical ads only (the Transparency Center's political ads report): these state impressions, spend and regions.
startDatestringOnly 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
  }
}

错误

状态错误码含义
400INVALID_CURSOR该 cursor 不是本操作返回的。请不带它重新开始。
400INVALID_PARAMS参数缺失、未知或超出范围。消息中会指出是哪一个。
401UNAUTHORIZED缺少 x-api-key 请求头,或密钥已吊销或未知。
402INSUFFICIENT_CREDITS积分不足以支付本次调用。请在控制台选择套餐或充值。
429MARKETPLACE_SATURATED并发调用过多。请等待 Retry-After 秒后重试。
502UPSTREAM_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。

本页内容