# type DateTimeRangeTargetingError (v202505)

**Service** [AdjustmentService](https://developers.google.com/ad-manager/api/reference/v202505/AdjustmentService.DateTimeRangeTargetingError) [ForecastService](https://developers.google.com/ad-manager/api/reference/v202505/ForecastService.DateTimeRangeTargetingError) [LineItemService](https://developers.google.com/ad-manager/api/reference/v202505/LineItemService.DateTimeRangeTargetingError) [LineItemTemplateService](https://developers.google.com/ad-manager/api/reference/v202505/LineItemTemplateService.DateTimeRangeTargetingError) [OrderService](https://developers.google.com/ad-manager/api/reference/v202505/OrderService.DateTimeRangeTargetingError) **ProposalLineItemService** [TargetingPresetService](https://developers.google.com/ad-manager/api/reference/v202505/TargetingPresetService.DateTimeRangeTargetingError) [YieldGroupService](https://developers.google.com/ad-manager/api/reference/v202505/YieldGroupService.DateTimeRangeTargetingError) **Inheritance** [ApiError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ApiError) ▼ [ApiVersionError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ApiVersionError) [AudienceSegmentError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.AudienceSegmentError) [AuthenticationError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.AuthenticationError) [BillingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.BillingError) [CollectionSizeError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.CollectionSizeError) [CommonError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.CommonError) [CurrencyCodeError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.CurrencyCodeError) [CustomFieldValueError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.CustomFieldValueError) [CustomTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.CustomTargetingError) **DateTimeRangeTargetingError** [DayPartTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.DayPartTargetingError) [DealError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.DealError) [EntityChildrenLimitReachedE...](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.EntityChildrenLimitReachedError "EntityChildrenLimitReachedError") [EntityLimitReachedError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.EntityLimitReachedError) [ExchangeRateError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ExchangeRateError) [FeatureError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.FeatureError) [ForecastError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ForecastError) [FrequencyCapError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.FrequencyCapError) [GenericTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.GenericTargetingError) [GeoTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.GeoTargetingError) [GrpSettingsError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.GrpSettingsError) [InternalApiError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.InternalApiError) [InventoryTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.InventoryTargetingError) [LabelEntityAssociationError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.LabelEntityAssociationError) [LineItemError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.LineItemError) [LineItemFlightDateError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.LineItemFlightDateError) [LineItemOperationError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.LineItemOperationError) [MobileApplicationTargetingE...](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.MobileApplicationTargetingError "MobileApplicationTargetingError") [NotNullError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.NotNullError) [ParseError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ParseError) [PermissionError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.PermissionError) [PrecisionError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.PrecisionError) [PreferredDealError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.PreferredDealError) [ProgrammaticError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ProgrammaticError) [ProposalActionError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ProposalActionError) [ProposalError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ProposalError) [ProposalLineItemActionError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ProposalLineItemActionError) [ProposalLineItemError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ProposalLineItemError) [ProposalLineItemMakegoodError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ProposalLineItemMakegoodError) [ProposalLineItemProgrammati...](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ProposalLineItemProgrammaticError "ProposalLineItemProgrammaticError") [PublisherQueryLanguageConte...](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.PublisherQueryLanguageContextError "PublisherQueryLanguageContextError") [PublisherQueryLanguageSynta...](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.PublisherQueryLanguageSyntaxError "PublisherQueryLanguageSyntaxError") [QuotaError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.QuotaError) [RangeError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.RangeError) [RequestPlatformTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.RequestPlatformTargetingError) [RequiredCollectionError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.RequiredCollectionError) [RequiredError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.RequiredError) [RequiredNumberError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.RequiredNumberError) [ReservationDetailsError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ReservationDetailsError) [ServerError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ServerError) [StatementError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.StatementError) [StringFormatError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.StringFormatError) [StringLengthError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.StringLengthError) [TeamError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.TeamError) [TechnologyTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.TechnologyTargetingError) [TimeZoneError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.TimeZoneError) [TypeError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.TypeError) [UniqueError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.UniqueError) [UserDomainTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.UserDomainTargetingError) [VideoPositionTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.VideoPositionTargetingError)

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

*** ** * ** ***

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

| ## Field ||
|---|---|
| **`ApiError` (inherited)** ||
| ### `fieldPath` | ` xsd:string` The OGNL field path to identify cause of error. |
| ### `fieldPathElements` | ` https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.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/v202505/ProposalLineItemService.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` : `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. <br /> |