nevent_get_paid_ad_group_comparative_stats
Compare an ad group's performance metrics against the mean of its campaign sibling ad groups. Use to detect underperforming ad sets — each metric (costPerResult, CPM, frequency, CTR) is returned with its campaign sibling mean and ratioVsMean (1.0 = on par). For cost metrics (costPerResult, CPM, frequency): ratio > 1.0 means WORSE than siblings (higher cost). For CTR: ratio > 1.0 means BETTER than siblings (higher CTR is better). Use after nevent_list_paid_ad_groups to get a valid adGroupId. A 404 may mean this tenant is not enrolled in the insights pilot — call nevent_paid_ads_health to confirm.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date for the comparison window (yyyy-MM-dd). Defaults to today when omitted. | |
| from | No | Start date for the comparison window (yyyy-MM-dd). Defaults to 7 days ago when omitted. | |
| provider | Yes | Ad provider: meta | google | tiktok | |
| adGroupId | Yes | Ad group (ad set) ID from the provider. Use nevent_list_paid_ad_groups to get valid adGroupId values. |