li_compare_periods
Compare LinkedIn campaign performance week-over-week, month-over-month, or year-over-year. Get per-entity metrics with current, prior, delta, and percentage change for easy reporting.
Instructions
Compare LinkedIn campaign performance across two time periods. wow (week-over-week): last 7d vs prior 7d. mom (month-over-month): last 30d vs prior 30d. yoy (year-over-year): last 30d vs same 30d last year. Returns per-entity rows (keyed by campaign/creative URN) with _current, _prior, _delta, and _pct_change columns for every requested metric. Deltas are computed server-side so you do not need to post-process. Useful for weekly/monthly performance reports and anomaly detection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pivot | No | CAMPAIGN | |
| fields | No | ||
| comparison | No | wow: last 7d vs prior 7d. mom: last 30d vs prior 30d. yoy: last 30d vs same 30d last year. | wow |
| campaign_ids | No | ||
| ad_account_id | No |