reports_adgroups
Generate ad-group-level performance reports for a campaign with flexible time ranges, granularity, filtering, and pivoting options.
Instructions
Ad-group-level report within a single campaign.
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": {
"campaignId": "<campaignId>",
"startTime": "<startTime>",
"endTime": "<endTime>"
},
"name": "reports_adgroups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaignId | Yes | ||
| startTime | Yes | Inclusive start. Format YYYY-MM-DD for DAILY/WEEKLY/MONTHLY, or ISO 8601 datetime for HOURLY. | |
| endTime | Yes | Inclusive end. | |
| granularity | No | Defaults to none (single aggregated row per entity). | |
| timeZone | No | ORTZ = the org's reporting timezone. | |
| selector | No | Selector controlling sort, filtering, and pagination of the report rows. | |
| groupBy | No | Pivot the report along these dimensions. | |
| returnRecordsWithNoMetrics | No | ||
| returnRowTotals | No | ||
| returnGrandTotals | No | ||
| orgId | No | Override the org (account) for this call. Defaults to ASA_ORG_ID. Use the `org_acls` tool to discover orgIds. |