Search ad libraries
search_adsUse when you need Meta, TikTok or Google Ads by query or advertiser (one). Not for one Ad or an Advertiser's profile: use get_ad. To watch an Advertiser: track. Price: Meta 1 credit per Ad delivered; TikTok 3 credits per page; Google 3 credits per Ad; +20 credits per Ad analysed. Meta: status, kind, media_type, placements, started_after/before, limit; order_by winner. analyze: first 50. TikTok: EU/EEA, CH, UK and Turkey only; advertiser: id, library URL or name (advertiser_ambiguous: candidates, free).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"library": "<library>"
},
"name": "search_ads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Meta only. Default commercial. | |
| limit | No | Max: Meta 500 (default 50), TikTok 30, Google 200 (default 40). | |
| query | No | Not Google. | |
| cursor | No | ||
| status | No | Meta only. Default active. | |
| analyze | No | Not TikTok: first 50 Ads, per Ad, computed or stored; refused Ads free (Google: delivery alone). | |
| country | No | ISO-2, not TikTok. Google default: worldwide, US on fallback. | |
| library | Yes | ||
| estimate | No | Quote the price in Credits: no Run, no charge | |
| order_by | No | Meta only. relevance (default, the library's order), winner (winner Score), days_running or start_date (newest); sorts the returned page. | |
| advertiser | No | Its id (Meta Page, TikTok, Google AR), library URL or name; Google also a domain. | |
| media_type | No | carousel: Meta; text: Google. | |
| placements | No | Meta; one for Google. | |
| max_credits | No | ||
| started_after | No | ISO date, inclusive. | |
| started_before | No | ISO date, exclusive. | |
| 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 | ||
| max_ads | No | ||
| poll_url | No | ||
| priced_per | No | ||
| per_ad_credits | No | ||
| estimate_credits | No |