get_ad_insights
Retrieve key performance metrics for a specific ad, such as impressions, clicks, spend, and conversions, to evaluate and optimize ad performance.
Instructions
Get performance insights for a specific ad.
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": {
"ad_id": "<ad_id>"
},
"name": "get_ad_insights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | Yes | Ad ID | |
| level | No | Aggregation level: campaign, adset, ad | |
| fields | No | Comma-separated insight fields | impressions,clicks,spend,reach,frequency,cpc,cpm,ctr,actions,cost_per_action_type |
| filtering | No | JSON string for filtering | |
| breakdowns | No | Breakdown dimensions: age,gender,country,region,placement,device_platform | |
| time_range | No | JSON string {since,until} in YYYY-MM-DD format | |
| date_preset | No | Date preset: TODAY,YESTERDAY,LAST_7D,LAST_14D,LAST_30D,THIS_MONTH,LAST_MONTH,THIS_QUARTER,LAST_QUARTER,THIS_YEAR,LAST_YEAR | |
| time_increment | No | Time granularity: all_days, 1, 7, monthly |