---
title: "Advertisers"
description: "在 Google 广告透明度中心按名称或网站查找广告主，每个都带有 ads 接受的 id。"
---

> Every apinoa docs page as markdown: https://apinoa.com/llms.txt (all in one file: https://apinoa.com/llms-full.txt; this API family in one file: https://apinoa.com/docs/ads/llms.txt)

```http
GET | POST /v1/google-ads/advertisers
```

参数可以用 `GET` 的查询字符串发送，也可以用 `POST` 的 JSON 正文发送，两者等效。

## 请求

```bash tab="cURL"
curl "https://gateway.apinoa.com/v1/google-ads/advertisers?query=nike&country=US" \
  -H "x-api-key: $APINOA_API_KEY"
```

```js tab="JavaScript"
const params = new URLSearchParams({ query: "nike", country: "US" });
const res = await fetch(`https://gateway.apinoa.com/v1/google-ads/advertisers?${params}`, {
  headers: { "x-api-key": process.env.APINOA_API_KEY },
});
const { success, data, error } = await res.json();
```

```python tab="Python"
import os

import requests

res = requests.get(
    "https://gateway.apinoa.com/v1/google-ads/advertisers",
    params={"query": "nike", "country": "US"},
    headers={"x-api-key": os.environ["APINOA_API_KEY"]},
)
body = res.json()
```

## 传入内容

| 传入 | 读取 | 说明 |
|---|---|---|
| `query` | 名称匹配的广告主，以及匹配的网站 | 广告主名称（`nike`）或网站（`temu.com`） |

`country` 只保留在该国家/地区投放过广告的广告主。`limit` 大于 10 时，会分页列出所有匹配的广告主。

## 参数

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `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=`). |

The same parameters, and every response type, are in the OpenAPI document: https://apinoa.com/openapi.json

## 响应

在 `data` 中返回 `AdvertiserPage`。 真实响应的精简版：数组只保留前几项，长文本已截断。

```json
{
  "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` | 平台返回了无法使用的内容。请退避后重试。 |

所有错误码见[错误](/docs/errors)。失败的调用不计费。

## 价格

**Price** 1 credit per call. [Plans and credits](https://apinoa.com/en/pricing).

## 说明

- 一个 `AdvertiserPage`：[Ads API](/docs/api-reference/ads/response-schema) 中每个广告库返回的都是同一种记录。只有透明度中心提供的信息在 `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`。
