Get campaign analytics
get_campaign_analyticsRead views, plays, finishes, CTA clicks, bookings, and watch retention for one campaign. Retention points count visits that reached each elapsed second threshold; page switches come from the campaign outline. Use an inclusive UTC date range of up to 90 days, or 7 days for hourly buckets. Omit both dates for the last 30 days including today, or the last 7 when hourly. Counts include repeat activity.
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": {
"campaign_id": "<campaign_id>"
},
"name": "get_campaign_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | Last UTC date, inclusive (YYYY-MM-DD). Supply with start_date. | |
| interval | No | Timeline interval in UTC. Default: day. Weeks start on Monday. | |
| start_date | No | First UTC date, inclusive (YYYY-MM-DD). Supply with end_date. | |
| campaign_id | Yes | The campaign's id, as list_campaigns returns it, e.g. `o6duFik0_UNSUGPCn1LTm`. |