Compare Periods
hyros_compare_periodsCompare ad performance metrics between two date ranges, returning revenue, cost, ROAS, sales, leads, and percentage changes. Ideal for analyzing week-over-week or period-over-period results.
Instructions
Compare ad performance metrics between two date ranges using attribution data. Requires an ad account ID and level. Returns revenue, cost, ROAS, sales, leads, and percentage changes. Perfect for "compare this week vs last week".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | Level of analysis (required) | |
| currency | No | Currency code | |
| adAccountId | Yes | Ad account ID to compare (required). Get from hyros_get_sources. | |
| period1EndDate | Yes | Period 1 end date in ISO 8601 format (required) | |
| period2EndDate | Yes | Period 2 end date in ISO 8601 format (required) | |
| attributionModel | No | Attribution model (default: last_click) | |
| period1StartDate | Yes | Period 1 start date in ISO 8601 format (required) | |
| period2StartDate | Yes | Period 2 start date in ISO 8601 format (required) |