x ads get account stats
x_ads_get_account_statsRetrieve synchronous X Ads account analytics—impressions, engagements, and spend—for a chosen entity, placement, and time window, with pagination and native fields preserved.
Instructions
Get synchronous analytics (impressions, engagements, spend) for an ads account 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>",
"end_time": "<end_time>",
"entity": "<entity>",
"entity_ids": "<entity_ids>",
"granularity": "<granularity>",
"metric_groups": "<metric_groups>",
"placement": "<placement>",
"start_time": "<start_time>"
},
"name": "x_ads_get_account_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | Entity type to fetch metrics for. | |
| end_time | Yes | ISO 8601 end of the metrics window (exclusive). | |
| placement | Yes | Placement to scope the metrics to. | |
| account_id | Yes | X Ads account ID from X_ADS_ACCOUNT_IDS. | |
| entity_ids | Yes | Comma-separated IDs of the entities to fetch metrics for (max 20). | |
| start_time | Yes | ISO 8601 start of the metrics window, e.g. 2026-07-01T00:00:00Z. | |
| granularity | Yes | Granularity of the returned time series. | |
| metric_groups | Yes | Comma-separated metric groups, e.g. ENGAGEMENT,BILLING,VIDEO (max 10; MOBILE_CONVERSION groups mu... |
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. |