# type DateTimeRangeTargetingError (v202605)

**Service** [AdjustmentService](https://developers.google.com/ad-manager/api/reference/v202605/AdjustmentService.DateTimeRangeTargetingError.md.txt) [ForecastService](https://developers.google.com/ad-manager/api/reference/v202605/ForecastService.DateTimeRangeTargetingError.md.txt) [LineItemService](https://developers.google.com/ad-manager/api/reference/v202605/LineItemService.DateTimeRangeTargetingError.md.txt) [LineItemTemplateService](https://developers.google.com/ad-manager/api/reference/v202605/LineItemTemplateService.DateTimeRangeTargetingError.md.txt) [OrderService](https://developers.google.com/ad-manager/api/reference/v202605/OrderService.DateTimeRangeTargetingError.md.txt) [ProposalLineItemService](https://developers.google.com/ad-manager/api/reference/v202605/ProposalLineItemService.DateTimeRangeTargetingError.md.txt) **TargetingPresetService** [YieldGroupService](https://developers.google.com/ad-manager/api/reference/v202605/YieldGroupService.DateTimeRangeTargetingError.md.txt) **Inheritance** [ApiError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.ApiError.md.txt) ▼ [ApiVersionError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.ApiVersionError.md.txt) [AuthenticationError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.AuthenticationError.md.txt) [CollectionSizeError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.CollectionSizeError.md.txt) [CommonError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.CommonError.md.txt) [CustomTargetingError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.CustomTargetingError.md.txt) **DateTimeRangeTargetingError** [DayPartTargetingError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.DayPartTargetingError.md.txt) [EntityChildrenLimitReachedE...](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.EntityChildrenLimitReachedError.md.txt "EntityChildrenLimitReachedError") [EntityLimitReachedError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.EntityLimitReachedError.md.txt) [FeatureError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.FeatureError.md.txt) [GenericTargetingError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.GenericTargetingError.md.txt) [GeoTargetingError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.GeoTargetingError.md.txt) [InternalApiError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.InternalApiError.md.txt) [InventoryTargetingError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.InventoryTargetingError.md.txt) [MobileApplicationTargetingE...](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.MobileApplicationTargetingError.md.txt "MobileApplicationTargetingError") [NotNullError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.NotNullError.md.txt) [ParseError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.ParseError.md.txt) [PermissionError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.PermissionError.md.txt) [PublisherProvidedSignalsTar...](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.PublisherProvidedSignalsTargetingError.md.txt "PublisherProvidedSignalsTargetingError") [PublisherQueryLanguageConte...](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.PublisherQueryLanguageContextError.md.txt "PublisherQueryLanguageContextError") [PublisherQueryLanguageSynta...](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.PublisherQueryLanguageSyntaxError.md.txt "PublisherQueryLanguageSyntaxError") [QuotaError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.QuotaError.md.txt) [RequestPlatformTargetingError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.RequestPlatformTargetingError.md.txt) [RequiredCollectionError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.RequiredCollectionError.md.txt) [RequiredError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.RequiredError.md.txt) [ServerError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.ServerError.md.txt) [StatementError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.StatementError.md.txt) [StringFormatError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.StringFormatError.md.txt) [StringLengthError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.StringLengthError.md.txt) [TechnologyTargetingError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.TechnologyTargetingError.md.txt) [UniqueError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.UniqueError.md.txt) [UserDomainTargetingError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.UserDomainTargetingError.md.txt) [VideoPositionTargetingError](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.VideoPositionTargetingError.md.txt)

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

*** ** * ** ***

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

| ## Field ||
|---|---|
| **`ApiError` (inherited)** ||
| ### `fieldPath` | ` xsd:string` The OGNL field path to identify cause of error. |
| ### `fieldPathElements` | ` 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` | ` DateTimeRangeTargetingError... ` 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 /> |