get_campaign_stats
Retrieve performance metrics for your Interaction Studio campaigns including impressions, clicks, goals, orders, and revenue. Use campaign ID to get stats for specified time periods.
Instructions
Get performance stats for an Interaction Studio campaign: impressions, clicks, goals, orders, and revenue.
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_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset | No | Dataset name. Optional if IS_DEFAULT_DATASET is configured. | |
| time_range | No | pastDay, pastWeek (default), pastMonth, pastQuarter, Today, or YYYY-MM-DD..YYYY-MM-DD | |
| campaign_id | Yes | Campaign id from list_campaigns |