x ads get campaign reach
x_ads_get_campaign_reachFetches reach and average-frequency metrics for specified X Ads campaigns over a date range, so you can measure audience exposure and ad frequency.
Instructions
Get reach and average-frequency metrics for campaigns Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.
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": {
"account_id": "<account_id>",
"campaign_ids": "<campaign_ids>",
"end_time": "<end_time>",
"start_time": "<start_time>"
},
"name": "x_ads_get_campaign_reach"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_time | Yes | ISO 8601 end of the metrics window (exclusive); must be in the past (a future end_time is rejected). | |
| account_id | Yes | X Ads account ID from X_ADS_ACCOUNT_IDS. | |
| start_time | Yes | ISO 8601 start of the metrics window. | |
| campaign_ids | Yes | Comma-separated campaign IDs to fetch reach for (max 20). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Original tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query. |