# Ad

> One ad from a public ad library: advertiser, copy, creative, landing page and when it ran.

Canonical page: https://okdata.online/docs/objects/ad/

The same shape on every platform. A field a platform does not have is null, and meta.unavailable says why. Use fields= to keep only what you need.

| Field | Type | Description |
|---|---|---|
| `id` | string | 라이브러리 내 광고 ID. |
| `url` | string | 라이브러리 내 광고 링크. |
| `advertiser` | AdvertiserRef | 광고 운영 주체. |
| `title` | string \| null | 헤드라인(광고에 있는 경우). |
| `text` | string | Ad copy as plain text; empty when the ad has none. |
| `format` | string \| null | Creative format; dynamic means the platform assembles it per viewer (catalog ads). |
| `images` | string[] \| null | 광고 소재의 이미지 URL. |
| `videos` | string[] \| null | 크리에이티브 동영상 URL. |
| `landing_url` | string \| null | 광고 연결 페이지. |
| `cta` | string \| null | CTA 버튼 텍스트. |
| `platforms` | string[] \| null | 게재 위치(예: facebook, instagram). |
| `active` | boolean \| null | 광고 게재 중 여부. |
| `first_shown_at` | string \| null | First time or day shown, ISO 8601 in UTC. |
| `last_shown_at` | string \| null | Last time or day shown, ISO 8601 in UTC. |
| `reach` | string \| null | People reached, as the library publishes it: a bracket such as 1K-10K, or a count (the EU reach of a Meta ad); null where none is published. |
| `ext` | object | 플랫폼별 추가 필드. view=full일 때만 반환됩니다. |

### AdvertiserRef

| Field | Type | Description |
|---|---|---|
| `id` | string \| null | 라이브러리 내 광고주 ID. |
| `name` | string \| null | 광고주 이름. |
| `url` | string \| null | 광고주 페이지. |

## Endpoints that return a Ad

- [TikTok 광고 라이브러리 검색](https://okdata.online/apis/tiktok/ads/search/) (`tiktok.ads.search`): $0.004 per call · about 12 ads per page
- [TikTok Creative Center 인기 광고 목록](https://okdata.online/apis/tiktok/creative_center/ads/search/) (`tiktok.creative_center.ads.search`): $0.002 per call · about 20 ads per page
- [TikTok Creative Center 인기 광고](https://okdata.online/apis/tiktok/creative_center/ads/get/) (`tiktok.creative_center.ads.get`): $0.002 per call
- [Meta Ad Library 검색](https://okdata.online/apis/meta/ads/search/) (`meta.ads.search`): $0.004 per call · about 30 ads per page
- [Meta Ad Library 광고 상세](https://okdata.online/apis/meta/ads/get/) (`meta.ads.get`): $0.004 per call
- [Meta 광고주 광고](https://okdata.online/apis/meta/advertisers/ads/list/) (`meta.advertisers.ads.list`): $0.004 per call · about 30 ads per page
- [Google 광고주 광고](https://okdata.online/apis/google/advertisers/ads/list/) (`google.advertisers.ads.list`): $0.004 per call · about 40 ads per page

## Fields by view

Each view includes the fields of the views above it. `view=compact` is the smallest; `full` adds platform extras under `ext`.

- compact: `id`, `url`, `advertiser`, `title`, `text`, `format`, `active`, `first_shown_at`, `last_shown_at`
- standard: `images`, `landing_url`, `cta`, `platforms`, `reach`
- full: `videos`, `ext`
