meta_ads_analysis_compare_ads
Compare ads within an ad set to identify statistically significant winners and underperformers. Rank by efficiency metrics like CPA and CTR to decide which creatives to pause.
Instructions
Runs an A/B-style comparison of ads inside a single ad set, ranking them by efficiency and flagging statistically meaningful winners. Returns rows per ad with impressions, spend, conversions, CPA, CTR, and a relative-score vs the ad set average, plus a verdict (winner / laggard / insufficient-data). Read-only. Use this to decide which creatives to pause; pair with meta_ads_ads_pause for action.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Analysis window. Accepts Meta predefined ranges ('today', 'yesterday', 'last_7d', 'last_14d', 'last_30d' (default), 'last_90d', 'this_month', 'last_month') or explicit 'YYYY-MM-DD..YYYY-MM-DD' (both endpoints inclusive). Longer windows cost more Graph API quota. | |
| ad_set_id | Yes | Ad set whose ads will be compared. Comparison is always within a single ad set (same targeting, same budget) so differences reflect creative. | |
| account_id | No | Meta Ads account ID in the format 'act_XXXXXXXXXX' (e.g. 'act_1234567890'). Optional — falls back to META_ADS_ACCOUNT_ID from the configured credentials. The leading 'act_' prefix is required. |