# 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 quảng cáo trong thư viện. |
| `url` | string | Link đến quảng cáo trong thư viện. |
| `advertiser` | AdvertiserRef | Người chạy quảng cáo. |
| `title` | string \| null | Tiêu đề, nếu quảng cáo có. |
| `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 ảnh của mẫu quảng cáo. |
| `videos` | string[] \| null | URL video của creative. |
| `landing_url` | string \| null | Nơi quảng cáo dẫn tới. |
| `cta` | string \| null | Văn bản nút kêu gọi hành động. |
| `platforms` | string[] \| null | Nơi quảng cáo được phân phối, ví dụ facebook, instagram. |
| `active` | boolean \| null | Quảng cáo còn đang chạy hay không. |
| `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 | Dữ liệu bổ sung riêng của nền tảng. Chỉ trả về khi view=full. |

### AdvertiserRef

| Field | Type | Description |
|---|---|---|
| `id` | string \| null | ID của nhà quảng cáo trong thư viện. |
| `name` | string \| null | Tên nhà quảng cáo. |
| `url` | string \| null | Trang của nhà quảng cáo. |

## Endpoints that return a Ad

- [Tìm kiếm TikTok Ads Library](https://okdata.online/apis/tiktok/ads/search/) (`tiktok.ads.search`): $0.004 per call · about 12 ads per page
- [Các quảng cáo hàng đầu 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
- [Quảng cáo hàng đầu TikTok Creative Center](https://okdata.online/apis/tiktok/creative_center/ads/get/) (`tiktok.creative_center.ads.get`): $0.002 per call
- [Tìm trong Meta Ad Library](https://okdata.online/apis/meta/ads/search/) (`meta.ads.search`): $0.004 per call · about 30 ads per page
- [Chi tiết quảng cáo Meta Ad Library](https://okdata.online/apis/meta/ads/get/) (`meta.ads.get`): $0.004 per call
- [Quảng cáo của nhà quảng cáo Meta](https://okdata.online/apis/meta/advertisers/ads/list/) (`meta.advertisers.ads.list`): $0.004 per call · about 30 ads per page
- [Quảng cáo của nhà quảng cáo 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`
