# type DateTimeRangeTargetingError (v202602)

**Service** **AdjustmentService** [ForecastService](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.DateTimeRangeTargetingError) [LineItemService](https://developers.google.com/ad-manager/api/reference/v202602/LineItemService.DateTimeRangeTargetingError) [LineItemTemplateService](https://developers.google.com/ad-manager/api/reference/v202602/LineItemTemplateService.DateTimeRangeTargetingError) [OrderService](https://developers.google.com/ad-manager/api/reference/v202602/OrderService.DateTimeRangeTargetingError) [ProposalLineItemService](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.DateTimeRangeTargetingError) [TargetingPresetService](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.DateTimeRangeTargetingError) [YieldGroupService](https://developers.google.com/ad-manager/api/reference/v202602/YieldGroupService.DateTimeRangeTargetingError) **Inheritance** [ApiError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.ApiError) ▼ [ApiVersionError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.ApiVersionError) [AuthenticationError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.AuthenticationError) [CollectionSizeError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.CollectionSizeError) [CommonError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.CommonError) [CustomTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.CustomTargetingError) [DateError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.DateError) **DateTimeRangeTargetingError** [DayPartTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.DayPartTargetingError) [EntityLimitReachedError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.EntityLimitReachedError) [FeatureError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.FeatureError) [ForecastAdjustmentError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.ForecastAdjustmentError) [ForecastError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.ForecastError) [GenericTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.GenericTargetingError) [GeoTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.GeoTargetingError) [InternalApiError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.InternalApiError) [InvalidUrlError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.InvalidUrlError) [InventoryTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.InventoryTargetingError) [InventoryUnitError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.InventoryUnitError) [InventoryUnitSizesError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.InventoryUnitSizesError) [NotNullError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.NotNullError) [NullError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.NullError) [ParseError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.ParseError) [PermissionError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.PermissionError) [PublisherQueryLanguageConte...](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.PublisherQueryLanguageContextError "PublisherQueryLanguageContextError") [PublisherQueryLanguageSynta...](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.PublisherQueryLanguageSyntaxError "PublisherQueryLanguageSyntaxError") [QuotaError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.QuotaError) [RequiredCollectionError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.RequiredCollectionError) [RequiredError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.RequiredError) [ServerError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.ServerError) [StatementError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.StatementError) [StringFormatError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.StringFormatError) [StringLengthError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.StringLengthError) [TechnologyTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.TechnologyTargetingError) [TrafficForecastSegmentError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.TrafficForecastSegmentError) [TypeError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.TypeError) [UniqueError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.UniqueError) [UserDomainTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.UserDomainTargetingError)

Lists all date time range errors caused by associating a line item with a targeting
expression.

*** ** * ** ***

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

| ## Field ||
|---|---|
| **`ApiError` (inherited)** ||
| ### `fieldPath` | ` xsd:string` The OGNL field path to identify cause of error. |
| ### `fieldPathElements` | ` https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.FieldPathElement[]` A parsed copy of the field path. For example, the field path "operations\[1\].operand" corresponds to this list: {FieldPathElement(field = "operations", index = 1), FieldPathElement(field = "operand", index = null)}. |
| ### `trigger` | ` xsd:string` The data that caused the error. |
| ### `errorString` | ` xsd:string` A simple string representation of the error and reason. |
| **`DateTimeRangeTargetingError`** ||
| ### `reason` | ` https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.DateTimeRangeTargetingError.Reason ` The error reason represented by an enum. *** ** * ** *** **Enumerations** `EMPTY_RANGES` :   No targeted ranges exists. `NOT_SPONSORSHIP_LINEITEM` :   Type of lineitem is not sponsorship. `NOT_SPONSORSHIP_OR_STANDARD_LINEITEM` :   Type of lineitem is not sponsorship or standard. `UNSUPPORTED_LINEITEM_RESERVATION_TYPE` :   Line item must have a reservation type of sponsorship, standard or preferred deal to use date time range targeting. `PAST_RANGES_CHANGED` :   Past ranges are changed. `RANGES_OVERLAP` :   Targeted date time ranges overlap. `FIRST_DATE_TIME_DOES_NOT_MATCH_START_TIME` :   First date time does not match line item's start time. `LAST_DATE_TIME_DOES_NOT_MATCH_END_TIME` :   Last date time does not match line item's end time. `RANGES_OUT_OF_LINEITEM_ACTIVE_PERIOD` :   Targeted date time ranges fall out the active period of lineitem. `START_TIME_IS_NOT_START_OF_DAY` :   Start time of range (except the earliest range) is not at start of day. Start of day is 00:00:00. `END_TIME_IS_NOT_END_OF_DAY` :   End time of range (except the latest range) is not at end of day. End of day is 23:59:59. `START_DATE_TIME_IS_IN_PAST` :   Start date time of earliest targeted ranges is in past. `MODIFY_START_DATE_TIME_TO_PAST` :   Cannot modify the start date time for date time targeting to the past. `RANGE_END_TIME_BEFORE_START_TIME` :   The end time of range is before the start time. Could happen when start type is IMMEDIATE or ONE_HOUR_LATER. `END_DATE_TIME_IS_TOO_LATE` :   End date time of latest targeted ranges is too late. `LIMITED_RANGES_IN_UNLIMITED_LINEITEM` : `BLACKOUT_DURATION_TOO_SHORT` :   Blackout ranges do not adhere to the minimum blackout duration. There must be a minimum of 2 seconds between targeted `DateTime`s. `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. <br /> |