Get an Ad or Advertiser
get_adUse when you need one Ad or Advertiser, in exactly one of five modes: library_id (Meta Ad), page_id (Meta Advertiser), advertiser_id (TikTok or Google Advertiser), tiktok_ad_id (TikTok Ad) or google_ad_id (Google Ad). Not for finding Ads: use search_ads (advertiser=page_id). Price: Ad 3 credits, +20 credits with analyze; Advertiser 15 credits. Ads: copy, landing URL, media, dates, spend, reach; TikTok adds targeting. A removed Ad is from our copy. Unknown ids: not_found, free.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| analyze | No | Ad mode: add the Ad's analysis: charged whether computed or already stored. A TikTok Ad answered by Creative Center refuses it: media_unavailable, free. | |
| page_id | No | Advertiser mode: the Advertiser's numeric Facebook Page id. | |
| estimate | No | Quote the price in Credits: no Run, no charge | |
| platform | No | meta (default, page_id), tiktok or google (advertiser_id). | |
| library_id | No | Meta Ad Library id, the number in facebook.com/ads/library/?id=... | |
| max_credits | No | ||
| google_ad_id | No | CR id or Transparency URL; unstored, also advertiser_id. | |
| tiktok_ad_id | No | TikTok mode: the TikTok ad library id, the number in library.tiktok.com/ads/detail/?ad_id=... or an id from a TikTok search_ads | |
| advertiser_id | No | TikTok (adv_biz_ids) or (platform=google) AR id, library URL or name; or the AR id beside google_ad_id. | |
| idempotency_key | No | Reuse on a retry: replays the original Run, not charged again |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | ||
| cached | No | ||
| result | No | ||
| poll_url | No | ||
| priced_per | No | ||
| estimate_credits | No |