Performance report
get_insightsRetrieves OpenAI Ads performance insights for accounts, campaigns, ad groups, or ads over a date range, including impressions, clicks, spend, CTR, CPC, CPM, conversions, attributed sales, and ROAS.
Instructions
OpenAI's Insights for the account, a campaign, an ad group or an ad: impressions, clicks, spend, CTR, CPC, CPM and, without a breakdown, conversions, attributed sales and ROAS. Attribution settings are always sent explicitly (defaults 30-day click, 1-day view, ad_event_time, which is what Ads Manager shows). spend/cpc/cpm are MAJOR units of the account currency, not micros. A missing or null metric is unavailable, never zero. Conversions update daily; allow a day. These are OpenAI's attributed numbers; for orders measured in the store use the measurement_* tools.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "get_insights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Required unless scope is account | |
| to | Yes | Last day, inclusive (YYYY-MM-DD, ad account timezone) | |
| from | Yes | First day (YYYY-MM-DD, ad account timezone) | |
| after | No | next_after of the previous page | |
| level | No | What one row is. Default: campaign for account scope, else the scope itself | |
| limit | No | Rows per page, default 500 | |
| scope | No | Default account | |
| breakdown | No | One extra dimension (delivery metrics only). product keeps about 30 days of history | |
| time_basis | No | ||
| granularity | No | Default daily; none = one total per row | |
| view_window_days | No | ||
| click_window_days | No |