type DateRange (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
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/v202502
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 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[],["The core content describes the `DateRange` within the `ForecastService` and `AdjustmentService`. `DateRange` defines a period with optional start and end dates. If either `startDate` or `endDate` is not set, the range becomes open-ended on that side. Both `startDate` and `endDate` are of `Date` type. At least one of the dates (`startDate` or `endDate`) must be provided. The namespace is `https://www.google.com/apis/ads/publisher/v202502`.\n"],null,["# type DateRange (v202502)\n\n**Service** \n[AdjustmentService](/ad-manager/api/reference/v202502/AdjustmentService.DateRange) **ForecastService** **Dependencies** \n[TimeSeries](/ad-manager/api/reference/v202502/ForecastService.TimeSeries) [TrafficDataRequest](/ad-manager/api/reference/v202502/ForecastService.TrafficDataRequest) [TrafficDataResponse](/ad-manager/api/reference/v202502/ForecastService.TrafficDataResponse) \n▼\n**DateRange**\n\n\nRepresents a range of dates that has an upper and a lower bound.\n\nAn open ended date range can be described by only setting either\none of the bounds, the upper bound or the lower bound.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Field ----- ||\n|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `startDate` | ` `[Date](/ad-manager/api/reference/v202502/ForecastService.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. |\n| ### `endDate` | ` `[Date](/ad-manager/api/reference/v202502/ForecastService.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. |"]]