# type DayPartTargetingError (v202602)

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

Lists all errors associated with day-part targeting for a line item.

*** ** * ** ***

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` | ` 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. |
| **`DayPartTargetingError`** ||
| ### `reason` | ` DayPartTargetingError.Reason ` The error reason represented by an enum. *** ** * ** *** **Enumerations** `INVALID_HOUR` :   Hour of day must be between 0 and 24, inclusive. `INVALID_MINUTE` :   Minute of hour must be one of 0, 15,30, 45. `END_TIME_NOT_AFTER_START_TIME` :   The [DayPart.endTime](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.DayPart.md.txt#endTime) cannot be after [DayPart.startTime](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.DayPart.md.txt#startTime). `TIME_PERIODS_OVERLAP` :   Cannot create day-parts that overlap. `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. <br /> |