Get Campaign Stats
get_campaign_statsPerformance metrics for campaigns: impressions, clicks, CTR, cost, conversions, avg CPC, Impr.(Abs.Top)%. Default: LAST_30_DAYS. Use date_range for a named period, or date_from + date_to (YYYY-MM-DD) for any custom period such as a specific month. Set compare_previous_period=true to also fetch the immediately preceding period of equal length with deltas/percent change per metric; for a comparison against a specific different period (e.g. Nov vs Oct) also pass compare_date_from + compare_date_to.
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": {
"user_intent": "<user_intent>"
},
"name": "get_campaign_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | No | Custom end date YYYY-MM-DD, inclusive. | |
| date_from | No | Custom start date YYYY-MM-DD (use with date_to, instead of date_range). | |
| date_range | No | TODAY, YESTERDAY, LAST_7_DAYS, LAST_14_DAYS, LAST_30_DAYS, THIS_MONTH, LAST_MONTH, THIS_WEEK_MON_TODAY, LAST_WEEK_MON_SUN, THIS_QUARTER, LAST_QUARTER. Not combinable with date_from/date_to. | |
| campaign_id | No | ||
| customer_id | No | ||
| user_intent | Yes | ||
| compare_date_to | No | Optional explicit comparison period end YYYY-MM-DD, inclusive. | |
| compare_date_from | No | Optional explicit comparison period start YYYY-MM-DD (requires compare_previous_period=true and compare_date_to). | |
| compare_previous_period | No | If true, also returns the immediately preceding period of equal length (e.g. for LAST_30_DAYS, the 30 days before that) plus per-metric delta and percent change, both at the account-total level and per campaign. |