Execute Microsoft Ads report query
ms_ads_execute_report_queryExecute a Microsoft Ads performance report query for one account over a date range, returning JSON Lines (every line is a JSON object): the first line is a JSON Schema of the columns (carrying a "metadata":"schema" marker), then one JSON object per row with autodetected value types. Requires startDate, endDate and reportAggregation (performance data is time-bound). Covers metric reports over a date range, not entity/configuration snapshots (campaigns, ad groups, keywords with no metrics and no date range).
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": {
"accountId": "<accountId>",
"report": "<report>",
"columns": "<columns>",
"startDate": "<startDate>",
"endDate": "<endDate>",
"reportAggregation": "<reportAggregation>"
},
"name": "ms_ads_execute_report_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| report | Yes | Microsoft Ads report name. | |
| columns | Yes | Report columns to select. | |
| endDate | Yes | Report end date (yyyy-MM-dd). | |
| accountId | Yes | TrueClicks account id (the numeric Id field from the account listing, not the Microsoft customer id / ClientCustomerId). Must be a Microsoft account accessible by the connector. | |
| startDate | Yes | Report start date (yyyy-MM-dd). | |
| predicates | No | Optional filter predicates, each with a column Name and one or more Values. | |
| reportAggregation | Yes | Report aggregation, e.g. "Summary", "Daily", "Weekly", "Monthly". |