performance_report
Pull Microsoft Ads performance data (impressions, clicks, spend, conversions) for accounts, campaigns, ad groups, or keywords. Supports date ranges, aggregation, and filtering.
Instructions
Pull a performance report. Numbers come back already typed (floats/ints; percentages as plain numbers, e.g. 1.89 means 1.89%).
Args: account_id: Ads account id. report_type: account | campaign | ad_group | ad | keyword | search_term | geographic. - search_term = actual user search queries (best for finding waste + new keywords) - keyword / ad_group / ad = entity performance incl. quality score - geographic = performance by country/state/city predefined_time: Today, Yesterday, LastSevenDays, Last14Days, Last30Days, ThisWeek, LastWeek, LastFourWeeks, ThisMonth, LastMonth, LastThreeMonths, LastSixMonths, ThisYear, LastYear. Ignored if start_date+end_date given. start_date / end_date: custom range YYYY-MM-DD (both required for custom). aggregation: Summary, Daily, Weekly, Monthly, Hourly (TimePeriod column is auto-dropped for Summary). campaign_ids: optional scope to specific campaigns. columns: optional explicit column list (defaults are sensible per report).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| columns | No | ||
| end_date | No | ||
| max_rows | No | ||
| account_id | Yes | ||
| start_date | No | ||
| aggregation | No | Summary | |
| report_type | No | campaign | |
| campaign_ids | No | ||
| predefined_time | No | LastSevenDays |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |