get_insights
Retrieve raw insight data for ad accounts, campaigns, ad groups, or ads, with optional field selection and automatic date handling.
Instructions
Escape hatch for raw insight rows at a given aggregation level.
aggregation_level is one of ad_account/campaign/ad_group/ad.
If fields is omitted, sensible defaults for that level are used (fields must match
the level, e.g. campaign.impressions not ad.impressions). The until == today quirk is handled for you. Prefer ad_performance for the common 'find weak
ads' task.
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": {
"aggregation_level": "<aggregation_level>",
"since": "<since>",
"until": "<until>"
},
"name": "get_insights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aggregation_level | Yes | ||
| since | Yes | ||
| until | Yes | ||
| fields | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aggregation_level | Yes | ||
| since | Yes | ||
| until | Yes | ||
| rows | No |