type DateRange (v202408)
Represents a range of dates that has an upper and a lower bound.
An open ended date range can be described by only setting either
one of the bounds, the upper bound or the lower bound.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
Field
|
startDate
|
Date
The start date of this range. This field is optional and if it is not set then there is no
lower bound on the date range. If this field is not set then endDate must be specified.
|
endDate
|
Date
The end date of this range. This field is optional and if it is not set then there is no upper
bound on the date range. If this field is not set then startDate must be specified.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-20 UTC.
[null,null,["Last updated 2024-08-20 UTC."],[[["DateRange in Google Ad Manager represents a range of dates with a start and end date."],["A DateRange can be open-ended, meaning it can either have a start date without an end date or an end date without a start date."],["Both `startDate` and `endDate` fields are optional, but at least one of them must be specified to define the range."],["`startDate` and `endDate` fields utilize the `Date` object to represent specific dates within the range."],["DateRange is utilized within the Google Ad Manager API under the namespace `https://www.google.com/apis/ads/publisher/v202408`."]]],["The core content describes the `DateRange` object, used to define a period with upper and lower bounds. `DateRange` utilizes `startDate` and `endDate`, both optional, to specify the range. If `startDate` is not set, `endDate` must be, and vice versa. Not setting either bound allows for an open-ended date range. It is associated with `ForecastService` via the `AdjustmentService` and utilizes `ForecastAdjustment` and `HistoricalBasisVolumeSettings`.\n"]]