Meta Ads insights
meta_insightsRetrieve Meta Ads performance by account, campaign, adset, or ad, including spend, impressions, clicks, purchases, ROAS, and CTR, with date filters and audience breakdowns.
Instructions
Meta Ads performance (spend, impressions, clicks, reach, purchases, purchase value, ROAS) by level.
ctr is recomputed as a ratio 0..1, ROAS = purchase value / spend (totals: sum of values / sum of spends), Meta's own purchase_roas is kept raw in meta_reported_roas. Currency is the ad account's, never converted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Row level: account (one row per period), campaign, adset or ad | account |
| limit | No | Maximum rows returned (1 to 500), highest spend first (daily rows too); totals cover up to 5 pages of 500 rows | |
| end_date | No | YYYY-MM-DD, last day included; leave empty with start_date to use date_preset | |
| client_id | No | Client id from clients_list; empty uses the only client | |
| account_id | No | Ad account id (digits or act_<digits>); empty means META_AD_ACCOUNT_ID | |
| breakdowns | No | Optional extra split of each row, from a fixed list: age, gender, country, region, publisher_platform, platform_position, device_platform, impression_device | |
| start_date | No | YYYY-MM-DD, first day in the ad account's timezone; leave empty with end_date to use date_preset | |
| date_preset | No | Meta relative period (e.g. last_7d, last_month), exclusive with start_date/end_date; all three empty means last_28d | |
| time_increment | No | all_days: one row for the whole period; 1: one row per day | all_days |
| attribution_windows | No | Optional attribution windows for purchases (e.g. 7d_click); empty means Meta's default 7-day click + 1-day view; several windows give one figure per window, no single total |