Skip to content

Wildberries API TypeScript SDK / ComputeROASOptions

Interface: ComputeROASOptions

Defined in: utils/roas.ts:29

Options for computeROAS.

Properties

PropertyTypeDescriptionDefined in
<a id="excludelastdays"></a> excludeLastDays?numberNumber of the most-recent (freshest) days to EXCLUDE from the window. Default 1. WB attributes sum_price (revenue) to the click day, but finalization lags ~1-2 days — the freshest day's sum_price is typically undercounted. Excluding it avoids the same-day-ROAS footgun (Q6). See the task-135(b) / task-136 findings.utils/roas.ts:37
<a id="windowdays"></a> windowDays?numberCap the window to the most recent N days (AFTER exclusion). Default: all remaining days.utils/roas.ts:41

Made with ❤️ for the Wildberries developer community