type DateTimeRangeTargetingError (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Lists all date time range errors caused by associating a line item with a targeting
expression.
- 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.
|
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
-
UNKNOWN
- The value returned if the actual value is not exposed by the requested API version.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eDateTimeRangeTargetingError encompasses all errors related to associating a line item with a targeting expression, specifically focusing on date and time ranges.\u003c/p\u003e\n"],["\u003cp\u003eIt's characterized by a \u003ccode\u003ereason\u003c/code\u003e field, an enum detailing the specific error cause (e.g., overlapping ranges, past ranges modified, etc.).\u003c/p\u003e\n"],["\u003cp\u003eThis error applies to various Google Ad Manager services like AdjustmentService, ForecastService, LineItemService, and more.\u003c/p\u003e\n"],["\u003cp\u003eDateTimeRangeTargetingError inherits from ApiError, providing context about the error, such as the field path and trigger.\u003c/p\u003e\n"]]],["This document outlines `DateTimeRangeTargetingError`, which occurs when associating a line item with an incompatible targeting expression. This error type inherits from `ApiError` and provides details like field path, trigger, and a string representation. Specific `DateTimeRangeTargetingError` reasons include: empty ranges, incorrect line item types, overlapping ranges, time/date mismatches with line item start/end, ranges outside the line item's active period, and start/end times not aligning with the start/end of the day.\n"],null,[]]