wafle_ads_compare_periods
Compare two date ranges and get delta % for spend, revenue, ROAS, CPA, conversions, and profit. Uses server-side CAPI data to avoid false
Instructions
Compare two date ranges (e.g. '2026-04' vs '2026-03', or two arbitrary date windows) and return delta % per metric: spend, revenue, ROAS, CPA, conversions, profit. Both ranges are evaluated against the wafle CAPI server-side truth so the comparison is honest (Meta's pixel attribution can drift quarter to quarter and produce false deltas).
Use to answer 'how did April do vs March?' or 'did the new creative pack improve things in the last 14 days vs the prior 14?'. Ranges can be passed as ISO months or as start/end dates; the two windows must NOT overlap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Wafle store slug, e.g. 'gamerland' or 'lensitive'. | |
| period_a | Yes | ||
| period_b | Yes |