# type DateTimeRange (v202602)

**Service** [AdRuleService](https://developers.google.com/ad-manager/api/reference/v202602/AdRuleService.DateTimeRange) [AdjustmentService](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.DateTimeRange) [ForecastService](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.DateTimeRange) [LineItemService](https://developers.google.com/ad-manager/api/reference/v202602/LineItemService.DateTimeRange) **NativeStyleService** [ProposalLineItemService](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.DateTimeRange) [ProposalService](https://developers.google.com/ad-manager/api/reference/v202602/ProposalService.DateTimeRange) [PublisherQueryLanguageService](https://developers.google.com/ad-manager/api/reference/v202602/PublisherQueryLanguageService.DateTimeRange) [TargetingPresetService](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.DateTimeRange) [YieldGroupService](https://developers.google.com/ad-manager/api/reference/v202602/YieldGroupService.DateTimeRange) **Dependencies** [DateTimeRangeTargeting](https://developers.google.com/ad-manager/api/reference/v202602/NativeStyleService.DateTimeRangeTargeting) ▼ **DateTimeRange**

Represents a range of dates (combined with time of day) that has an upper and/or lower bound.

*** ** * ** ***

Namespace
:
    `https://www.google.com/apis/ads/publisher/v202602`

| ## Field ||
|---|---|
| ### `startDateTime` | ` https://developers.google.com/ad-manager/api/reference/v202602/NativeStyleService.DateTime ` The start date time of this range. This field is optional and if it is not set then there is no lower bound on the date time range. If this field is not set then `endDateTime` must be specified. |
| ### `endDateTime` | ` https://developers.google.com/ad-manager/api/reference/v202602/NativeStyleService.DateTime ` The end date time of this range. This field is optional and if it is not set then there is no upper bound on the date time range. If this field is not set then `startDateTime` must be specified. |