ChatGPT Ads insights query (advanced)
chatgpt_ads_insights_queryThe full reporting query, for questions the other report tools don't cover: hourly, daily, monthly or total rows; at account, campaign, ad group or ad level; split by ONE of country, device, platform (ChatGPT app vs web) or product; filtered to campaigns or a campaign status; sorted by a metric; including entities with no impressions; with the conversion window and date basis of your choice. Rules from OpenAI: one segment per request; segmented requests allow none, daily or monthly (not hourly); product reports aren't hourly. Money is in the account currency; days follow the account time zone. Conversions use a 30-day click plus 1-day view window by default; null means unavailable, not zero. For ordinary questions prefer chatgpt_ads_performance_report.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "chatgpt_ads_insights_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | What a row is (default campaign). | |
| limit | No | Most rows to return (default 200, max 2000). | |
| sortBy | No | Sort rows by this metric, highest first (default spend for totals). | |
| status | No | Only campaigns with this status. | |
| endDate | No | YYYY-MM-DD in the ad account's time zone. Omit for yesterday. | |
| segment | No | One of country, device, platform, product. | |
| accountId | No | The ChatGPT Ads ad account id, as listed by chatgpt_ads_list_ad_accounts. A connection reaches one ad account, so this is normally left out. | |
| startDate | No | YYYY-MM-DD in the ad account's time zone. Omit for the last 30 days. | |
| timeBasis | No | Date conversions by the ad interaction (default) or by when they happened. | |
| campaignIds | No | Only these campaigns (ids from chatgpt_ads_get_campaigns). | |
| viewThrough | No | Count conversions from people who saw but didn't click an ad, within one day (default true). Set false for click-only attribution. | |
| clickWindowDays | No | Click attribution window in days: 7, 14 or 30 (default 30). Changes conversions, CPA and sales, not impressions, clicks or spend. | |
| timeGranularity | No | none = one row per entity for the whole range (default), or daily, monthly, hourly. | |
| includeZeroImpressions | No | Also return campaigns, ad groups or ads with no impressions (unsegmented only). |