affiliate_build_brand_snapshot
Pull and normalize a brand's affiliate performance across networks into a time-windowed snapshot (yesterday, 7-day, 30-day, YTD), persist locally, and return it with honest network health reporting.
Instructions
Pull one brand's affiliate performance across the networks it is bound to in brands.json, normalise it into a single time-windowed dataset (yesterday, rolling 7-day, rolling 30-day, and year-to-date), persist it locally, and return the snapshot. Clicks come from advertiser performance and the commission status split from transactions; per-network health is count-honest, so a partial pull is reported as such and never totalled as if every network responded. This snapshot powers the free tables; the CSV export and the AI-action bundle are separate tools. Requires the brand to be bound to advertiser-side networks that report programme performance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brand | Yes | ||
| networks | No | ||
| timezone | No |