# Ad

> 公開廣告庫裡的一條廣告：廣告主、文案、素材、落地頁和投放時間。

網頁版：https://okdata.online/zh/docs/objects/ad/

所有平台同一種結構。平台沒有的欄位為 null，meta.unavailable 會說明原因。用 fields= 只取需要的欄位。

| 欄位 | 型別 | 說明 |
|---|---|---|
| `id` | string | 廣告在廣告庫裡的 ID。 |
| `url` | string | 廣告在廣告庫裡的連結。 |
| `advertiser` | AdvertiserRef | 投放廣告的廣告主。 |
| `title` | string \| null | 廣告標題（有的話）。 |
| `text` | string | 廣告文案，純文本；沒有則為空字串。 |
| `format` | string \| null | 素材形式；dynamic 指平台按觀眾動態拼裝（商品目錄廣告）。 |
| `images` | string[] \| null | 素材圖片地址。 |
| `videos` | string[] \| null | 素材影片地址。 |
| `landing_url` | string \| null | 廣告落地頁。 |
| `cta` | string \| null | 行動按鈕文字。 |
| `platforms` | string[] \| null | 投放位置，如 facebook、instagram。 |
| `active` | boolean \| null | 是否仍在投放。 |
| `first_shown_at` | string \| null | 首次展示時間，ISO 8601，UTC。 |
| `last_shown_at` | string \| null | 最近展示時間，ISO 8601，UTC。 |
| `reach` | string \| null | 廣告庫公佈的觸達人數：區間（如 1K-10K）或人數（Meta 廣告的歐盟觸達）；未公佈為 null。 |
| `ext` | object | 平台特有欄位，只在 view=full 時返回。 |

### AdvertiserRef

| 欄位 | 型別 | 說明 |
|---|---|---|
| `id` | string \| null | 廣告主在廣告庫裡的 ID。 |
| `name` | string \| null | 廣告主名稱。 |
| `url` | string \| null | 廣告主頁面。 |

## 返回 Ad 的介面

- [Meta 廣告庫搜尋](https://okdata.online/zh/apis/meta/ads/search/) (`meta.ads.search`): $0.004/次 · 每頁約 30 條廣告
- [Meta 廣告詳情](https://okdata.online/zh/apis/meta/ads/get/) (`meta.ads.get`): $0.004/次
- [Meta 廣告主的廣告](https://okdata.online/zh/apis/meta/advertisers/ads/list/) (`meta.advertisers.ads.list`): $0.004/次 · 每頁約 30 條廣告
- [Google 廣告主的廣告](https://okdata.online/zh/apis/google/advertisers/ads/list/) (`google.advertisers.ads.list`): $0.004/次 · 每頁約 40 條廣告
- [TikTok 廣告庫搜尋](https://okdata.online/zh/apis/tiktok/ads/search/) (`tiktok.ads.search`): $0.004/次 · 每頁約 12 條廣告
- [TikTok 創意中心熱門廣告](https://okdata.online/zh/apis/tiktok/creative_center/ads/search/) (`tiktok.creative_center.ads.search`): $0.002/次 · 每頁約 20 條廣告
- [TikTok 創意中心熱門廣告詳情](https://okdata.online/zh/apis/tiktok/creative_center/ads/get/) (`tiktok.creative_center.ads.get`): $0.002/次

## 各 view 返回的欄位

每一級 view 都包含上一級的欄位。`view=compact` 最精簡；`full` 會在 `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`
