type DayPartTargetingError (v202411)

  • DayPartTargetingError encompasses all errors related to day-part targeting for a line item.

  • It is part of the Google Ad Manager API and resides within the namespace https://www.google.com/apis/ads/publisher/v202411.

  • The error object provides details such as the field path causing the error, a parsed field path, the triggering data, and an error string.

  • Specific reasons for DayPartTargetingError are outlined in the 'reason' field, including invalid hour/minute, end time preceding start time, overlapping time periods, and unknown errors.

  • Developers can utilize this error information to debug and resolve issues with day-part targeting in their Ad Manager integrations.

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


Namespace
https://www.google.com/apis/ads/publisher/v202411

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 cannot be after DayPart.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.