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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eDateRange represents a flexible range of dates, allowing for open-ended ranges by specifying only a start or end date.\u003c/p\u003e\n"],["\u003cp\u003eIt includes two optional fields: \u003ccode\u003estartDate\u003c/code\u003e and \u003ccode\u003eendDate\u003c/code\u003e, defining the lower and upper bounds of the date range respectively.\u003c/p\u003e\n"],["\u003cp\u003eIf one date field is not set, the other must be specified to create a valid range.\u003c/p\u003e\n"],["\u003cp\u003eDateRange utilizes the \u003ccode\u003eDate\u003c/code\u003e type for both \u003ccode\u003estartDate\u003c/code\u003e and \u003ccode\u003eendDate\u003c/code\u003e, ensuring consistent date representation.\u003c/p\u003e\n"],["\u003cp\u003eIt belongs to the namespace \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e, indicating its context within the Ad Manager API.\u003c/p\u003e\n"]]],["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"],null,["# type DateRange (v202411)\n\n**Service** \n[AdjustmentService](/ad-manager/api/reference/v202411/AdjustmentService.DateRange) **ForecastService** **Dependencies** \n[TimeSeries](/ad-manager/api/reference/v202411/ForecastService.TimeSeries) [TrafficDataRequest](/ad-manager/api/reference/v202411/ForecastService.TrafficDataRequest) [TrafficDataResponse](/ad-manager/api/reference/v202411/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/v202411`\n\n| Field ----- ||\n|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `startDate` | ` `[Date](/ad-manager/api/reference/v202411/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/v202411/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. |"]]