TikTok / Snapchat winners and losers
get_platform_top_performersRank TikTok or Snapchat ads by a metric: what to scale, what to cut. TikTok or Snapchat: the best and the worst ads (or campaigns / ad sets: level) by a metric over a date range, among those that spent: "what is working", "what should I scale or cut". Money in the ad account's currency, days in its time zone; one platform at a time (never add TikTok and Snapchat up). For Meta: get_top_performers.
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": {
"platform": "<platform>",
"ad_account_id": "<ad_account_id>",
"metric": "<metric>"
},
"name": "get_platform_top_performers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Default ad | |
| limit | No | How many best and worst, default 10 | |
| since | No | YYYY-MM-DD, with until (both included), instead of date_preset | |
| until | No | YYYY-MM-DD, with since | |
| metric | Yes | What ranks them: roas, cpa, ctr, spend, purchases, revenue, cpc, cpm, clicks or impressions (cpa, cpc, cpm: the lowest is the best) | |
| adset_id | No | Only this ad group / ad squad's ads | |
| platform | Yes | tiktok or snapchat (Meta has its own reads and actions) | |
| min_spend | No | Only those that spent at least this much (account currency); those that spent nothing are always left out | |
| campaign_id | No | Only this campaign's | |
| date_preset | No | Default last_7d (the 7 days before today, today left out), in the ad account's time zone | |
| ad_account_id | Yes | The ad account, from list_ad_accounts with the same platform: a TikTok advertiser id (digits), a Snapchat ad account id (a UUID) |