---
title: "Ads"
description: "Google 광고 투명성 센터에서, 광고주가 집행한 모든 광고나 웹사이트로 이어지는 모든 광고, 또는 한 나라의 정치 광고를 가져옵니다."
---

> 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/ads
```

파라미터는 `GET`의 쿼리 문자열로도, `POST`의 JSON 본문으로도 보낼 수 있습니다. 둘은 같습니다.

## 요청

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

```js tab="JavaScript"
const params = new URLSearchParams({ political: "true", country: "US" });
const res = await fetch(`https://gateway.apinoa.com/v1/google-ads/ads?${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/ads",
    params={"political": "true", "country": "US"},
    headers={"x-api-key": os.environ["APINOA_API_KEY"]},
)
body = res.json()
```

## 넘길 값

| 넘길 값 | 읽는 것 | 설명 |
|---|---|---|
| `advertiser` | 이 광고주들이 집행한 모든 광고 | 광고주 id(`AR…`) 최대 10개, 쉼표로 구분 |
| `domain` | 이 웹사이트로 이어지는 모든 광고(광고주 무관) | `nike.com` |
| `political=true` | 정치 광고 | 단독(`country`와 함께)으로, 또는 `advertiser`·`domain`과 함께 |

`advertiser`나 `domain`을 넘기세요. 필터(`country`, `platform`, `format`, `startDate`, `endDate`, `political`)는 둘 다와 함께 씁니다.

## 파라미터

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

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

## 응답

`data`에 `AdPage`를 반환합니다. 실제 응답을 줄인 것입니다. 배열은 앞쪽 항목만 남기고 긴 텍스트는 잘랐습니다.

```json
{
  "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`가 아닙니다. `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).

## 참고

- `AdPage`입니다. [Ads API](/docs/api-reference/ads/response-schema)의 모든 광고 라이브러리가 같은 레코드를 반환합니다. 투명성 센터만 밝히는 정보는 `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`만 넘기면 됩니다.
