openai ads get insights
openai_ads_get_insightsRead ad performance metrics by account, campaign, ad group, or ad for inclusive date ranges, with optional country, device, or platform delivery breakdowns.
Instructions
Read performance by account, campaign, ad group or ad over inclusive account-local dates. One optional country, device or platform breakdown supports delivery metrics only; use openai_ads_get_conversion_insights for conversions by country or device. Attribution defaults to 30-day click, 1-day view and ad_event_time. CTR and CVR are fractions; money uses major units of the account currency. Pages are followed up to maxRows and truncation is explicit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Aggregation level: ad_account, campaign, ad_group or ad. Defaults to campaign. | campaign |
| since | Yes | First day of the report, YYYY-MM-DD, in the account's time zone. Inclusive. | |
| until | Yes | Last day of the report, YYYY-MM-DD, in the account's time zone. Inclusive. At most 365 days after since. | |
| maxRows | No | Maximum rows to collect across pages, 1 to 10,000. truncated is true when more rows exist. | |
| metrics | No | Native metrics to return. Defaults to spend, impressions and clicks. | |
| breakdown | No | One delivery breakdown per request: country, device or platform. Supports impressions, clicks, spend, ctr, cpc and cpm. Omit for entity totals. | |
| adAccountId | Yes | The adacct_ ID configured in OPENAI_ADS_ACCOUNT_ID. The API key is scoped to this one account; another ID is refused. | |
| attribution | No | Report attribution only: attribution_window_days 7, 14 or 30, view_through_attribution_window_days 0 or 1, attribution_time_basis ad_event_time or conversion_time. Campaign goals are unchanged. | |
| timeGranularity | No | daily returns one row per day; none returns period totals. | daily |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Original tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query. |