TikTok / Snapchat performance by campaign, ad set or ad
get_platform_performanceTikTok or Snapchat results per campaign, ad set or ad. TikTok or Snapchat: one row per campaign, ad set (TikTok ad group / Snapchat ad squad) or ad of an ad account over a date range, with its status, its daily budget and its metrics (spend, impressions, clicks, CTR, CPC, CPM, purchases, revenue, ROAS, CPA…), sorted (default by spend). Filters: campaign_id, adset_id, status, min_spend. TikTok ads: the standard ads and the Smart+ ads (smart_plus: true), not the variations TikTok generates. 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_campaigns / get_adsets / get_ads.
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>",
"level": "<level>"
},
"name": "get_platform_performance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Default spend. cpa, cpc and cpm: the lowest first; the others: the highest first | |
| level | Yes | campaign, adset (a TikTok ad group / a Snapchat ad squad) or ad | |
| limit | No | Default 50 | |
| since | No | YYYY-MM-DD, with until (both included), instead of date_preset | |
| until | No | YYYY-MM-DD, with since | |
| status | No | Only the active or only the paused ones | |
| adset_id | No | Only this ad group / ad squad (level adset), or its ads (level ad) | |
| platform | Yes | tiktok or snapchat (Meta has its own reads and actions) | |
| min_spend | No | Only the rows that spent at least this much (account currency) | |
| campaign_id | No | Only this campaign (level campaign), or its ad groups / ad squads / ads | |
| 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) |