Three lines

Uber

Developers

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 = 0 with end_day of 7, 14, 30, 42, 45, 60, 90, or 365. Any other combination is rejected
  • For no time restriction (all time): start_day = -1, end_day = -1. Order frequency targeting accepts this range only with lower_bound = -1 and either upper_bound = -1 (users who have ordered) or upper_bound = 1 (users who have never ordered)
  • start_day is always the closest day to now
  • end_day is always the furthest day from now

Uber

Developers
© 2026 Uber Technologies Inc.