# type DateTimeRangeTargetingError (v202608)

**Service** [AdjustmentService](https://developers.google.com/ad-manager/api/reference/v202608/AdjustmentService.DateTimeRangeTargetingError.md.txt) [ForecastService](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.DateTimeRangeTargetingError.md.txt) **LineItemService** [LineItemTemplateService](https://developers.google.com/ad-manager/api/reference/v202608/LineItemTemplateService.DateTimeRangeTargetingError.md.txt) [OrderService](https://developers.google.com/ad-manager/api/reference/v202608/OrderService.DateTimeRangeTargetingError.md.txt) [ProposalLineItemService](https://developers.google.com/ad-manager/api/reference/v202608/ProposalLineItemService.DateTimeRangeTargetingError.md.txt) [TargetingPresetService](https://developers.google.com/ad-manager/api/reference/v202608/TargetingPresetService.DateTimeRangeTargetingError.md.txt) [YieldGroupService](https://developers.google.com/ad-manager/api/reference/v202608/YieldGroupService.DateTimeRangeTargetingError.md.txt) **Inheritance** [ApiError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.ApiError.md.txt) ▼ [AdProductBookingError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.AdProductBookingError.md.txt) [ApiVersionError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.ApiVersionError.md.txt) [AssetError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.AssetError.md.txt) [AudienceSegmentError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.AudienceSegmentError.md.txt) [AuthenticationError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.AuthenticationError.md.txt) [ClickTrackingLineItemError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.ClickTrackingLineItemError.md.txt) [CollectionSizeError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.CollectionSizeError.md.txt) [CommonError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.CommonError.md.txt) [CompanyCreditStatusError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.CompanyCreditStatusError.md.txt) [CreativeError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.CreativeError.md.txt) [CrossSellError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.CrossSellError.md.txt) [CurrencyCodeError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.CurrencyCodeError.md.txt) [CustomFieldValueError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.CustomFieldValueError.md.txt) [CustomTargetingError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.CustomTargetingError.md.txt) **DateTimeRangeTargetingError** [DayPartTargetingError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.DayPartTargetingError.md.txt) [EntityChildrenLimitReachedE...](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.EntityChildrenLimitReachedError.md.txt "EntityChildrenLimitReachedError") [EntityLimitReachedError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.EntityLimitReachedError.md.txt) [FeatureError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.FeatureError.md.txt) [ForecastError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.ForecastError.md.txt) [FrequencyCapError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.FrequencyCapError.md.txt) [GenericTargetingError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.GenericTargetingError.md.txt) [GeoTargetingError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.GeoTargetingError.md.txt) [GrpSettingsError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.GrpSettingsError.md.txt) [ImageError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.ImageError.md.txt) [InternalApiError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.InternalApiError.md.txt) [InvalidUrlError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.InvalidUrlError.md.txt) [InventoryTargetingError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.InventoryTargetingError.md.txt) [LabelEntityAssociationError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.LabelEntityAssociationError.md.txt) [LineItemActivityAssociation...](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.LineItemActivityAssociationError.md.txt "LineItemActivityAssociationError") [LineItemCreativeAssociation...](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.LineItemCreativeAssociationError.md.txt "LineItemCreativeAssociationError") [LineItemError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.LineItemError.md.txt) [LineItemFlightDateError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.LineItemFlightDateError.md.txt) [LineItemOperationError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.LineItemOperationError.md.txt) [MobileApplicationTargetingE...](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.MobileApplicationTargetingError.md.txt "MobileApplicationTargetingError") [NotNullError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.NotNullError.md.txt) [NullError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.NullError.md.txt) [OrderActionError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.OrderActionError.md.txt) [OrderError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.OrderError.md.txt) [ParseError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.ParseError.md.txt) [PermissionError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.PermissionError.md.txt) [PrecisionError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.PrecisionError.md.txt) [ProgrammaticError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.ProgrammaticError.md.txt) [PublisherProvidedSignalsTar...](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.PublisherProvidedSignalsTargetingError.md.txt "PublisherProvidedSignalsTargetingError") [PublisherQueryLanguageConte...](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.PublisherQueryLanguageContextError.md.txt "PublisherQueryLanguageContextError") [PublisherQueryLanguageSynta...](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.PublisherQueryLanguageSyntaxError.md.txt "PublisherQueryLanguageSyntaxError") [QuotaError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.QuotaError.md.txt) [RangeError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.RangeError.md.txt) [RegExError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.RegExError.md.txt) [RequestError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.RequestError.md.txt) [RequestPlatformTargetingError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.RequestPlatformTargetingError.md.txt) [RequiredCollectionError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.RequiredCollectionError.md.txt) [RequiredError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.RequiredError.md.txt) [RequiredNumberError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.RequiredNumberError.md.txt) [RequiredSizeError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.RequiredSizeError.md.txt) [ReservationDetailsError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.ReservationDetailsError.md.txt) [ServerError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.ServerError.md.txt) [SetTopBoxLineItemError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.SetTopBoxLineItemError.md.txt) [StatementError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.StatementError.md.txt) [StringFormatError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.StringFormatError.md.txt) [StringLengthError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.StringLengthError.md.txt) [TeamError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.TeamError.md.txt) [TechnologyTargetingError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.TechnologyTargetingError.md.txt) [TimeZoneError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.TimeZoneError.md.txt) [TranscodingError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.TranscodingError.md.txt) [TypeError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.TypeError.md.txt) [UniqueError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.UniqueError.md.txt) [UserDomainTargetingError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.UserDomainTargetingError.md.txt) [VideoPositionTargetingError](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.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/v202608`

| ## 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 /> |