type DateRange (v202411)
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/v202411
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-11-19 UTC.
[null,null,["Last updated 2024-11-19 UTC."],[[["DateRange represents a flexible range of dates, allowing for open-ended ranges by specifying only a start or end date."],["It includes two optional fields: `startDate` and `endDate`, defining the lower and upper bounds of the date range respectively."],["If one date field is not set, the other must be specified to create a valid range."],["DateRange utilizes the `Date` type for both `startDate` and `endDate`, ensuring consistent date representation."],["It belongs to the namespace `https://www.google.com/apis/ads/publisher/v202411`, indicating its context within the Ad Manager API."]]],["The document outlines the `DateRange` object within the Ad Manager API's `AdjustmentService` and `ForecastService`. `DateRange` represents a period with `startDate` and `endDate`, both optional. If one bound is not set, the other must be. A missing `startDate` indicates no lower bound, and a missing `endDate` indicates no upper bound. The object belongs to the `https://www.google.com/apis/ads/publisher/v202411` namespace. It is used with `TimeSeries`, `TrafficDataRequest`, and `TrafficDataResponse`.\n"]]