compare_periods
Compare account performance over the trailing N days against the prior N days. Get totals and percent change for key metrics.
Instructions
Compare account performance over the trailing N days against the N days immediately before (same-length back-to-back windows). Returns totals for both windows plus absolute and percent change per metric. Money metrics in USD. Two totals per metric only: use get_daily_performance to see the day-level shape within a window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Window length in trailing days. Default 7. | |
| metrics | No | Friendly metric names. Default: a useful spend+conversions set. | |
| account_id | No | Ad account id. Falls back to REDDIT_ADS_ACCOUNT_ID. |