PastDaysRange
The PastDaysRange object represents a range of past days for targeting calculations.
¶ Properties
| Property | Type | Description |
|---|---|---|
start_day |
integer | Start day for the range (0 = today, closest day to now) |
end_day |
integer | End day for the range (furthest day from now) |
¶ Usage
- For “past 7 days” targeting:
start_day = 0, end_day = 7 - Allowed ranges for order frequency targeting:
start_day = 0withend_dayof7,14,30,42,45,60,90, or365. Any other combination is rejected - For no time restriction (all time):
start_day = -1, end_day = -1. Order frequency targeting accepts this range only withlower_bound = -1and eitherupper_bound = -1(users who have ordered) orupper_bound = 1(users who have never ordered) start_dayis always the closest day to nowend_dayis always the furthest day from now