Skip to content

Wildberries API TypeScript SDK / ROASResult

Interface: ROASResult

Defined in: utils/roas.ts:8

Result of computeROAS.

Properties

PropertyTypeDescriptionDefined in
<a id="roas"></a> roasnumber | nullROAS = revenue / spend, or null when spend === 0 (no ad spend → div-by-zero avoided).utils/roas.ts:13
<a id="revenue"></a> revenuenumberΣ sum_price over the window — attributed order revenue (RUB).utils/roas.ts:15
<a id="spend"></a> spendnumberΣ sum over the window — ad spend (RUB).utils/roas.ts:17
<a id="daysused"></a> daysUsednumberNumber of days included in the sums.utils/roas.ts:19
<a id="excludeddays"></a> excludedDaysnumberNumber of freshest days actually dropped (capped to the available day count).utils/roas.ts:21

Made with ❤️ for the Wildberries developer community