Campaign weekly cohort retention
Weekly cohort retention for attributed plays (listeners who reached the campaign
soundlink), read from api_campaign_cohort_retention_weekly_by_country. Cohort
weeks are UTC and anchored on the campaign start, not calendar Mondays. Each
listener has one acquisition country.
days covers relative days 0 to 7. weeks covers relative weeks 0 to 26; week N
spans days 7N to 7N+6 (week 0 streams includes day 0). Week 0 pct is the
share of the cohort active on days 1 to 6 (day 0 excluded).
Only fully observed days and weeks are returned. Young cohorts have shorter, possibly empty arrays, and cells are never padded.
Omit groupBy for the global rollup (country_code is null; counts are summed
over countries and pct is recomputed). groupBy=country returns one item per
cohort week and country (XX when unknown).
startDate / endDate filter cohort_week (inclusive) and default to a recent
window. A range that is too wide returns 400 invalid_query_parameter.
Plan requirement: Label, Enterprise, committed, and self-serve plans.
Organizations on a lower plan receive 403 premium_plan_required.
Requires the metrics:read scope. A campaign outside the organization returns
404 campaign_not_found.