type CustomTargetingError (v202508)

  • The Custom Targeting Error is a type of API error used in various services like AdRuleService, AdjustmentService, and ForecastService.

  • This error inherits fields from ApiError including fieldPath, fieldPathElements, trigger, and errorString.

  • The CustomTargetingError has a specific field called 'reason' which uses an enumeration to indicate the cause of the error.

  • The possible reasons for a Custom Targeting Error are listed, covering issues with keys, values, targeting expressions, and audience segments.

  • The namespace for these services and errors is https://www.google.com/apis/ads/publisher/v202508.


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

Field

ApiError (inherited)

fieldPath

xsd:string

fieldPathElements

FieldPathElement[]

trigger

xsd:string

errorString

xsd:string

CustomTargetingError

reason

CustomTargetingError.Reason


Enumerations
KEY_NOT_FOUND
KEY_COUNT_TOO_LARGE
KEY_NAME_DUPLICATE
KEY_NAME_EMPTY
KEY_NAME_INVALID_LENGTH
KEY_NAME_INVALID_CHARS
KEY_NAME_RESERVED
KEY_DISPLAY_NAME_INVALID_LENGTH
KEY_STATUS_NOT_ACTIVE
VALUE_NOT_FOUND
GET_VALUES_BY_STATEMENT_MUST_CONTAIN_KEY_ID
VALUE_COUNT_FOR_KEY_TOO_LARGE
VALUE_NAME_DUPLICATE
VALUE_NAME_EMPTY
VALUE_NAME_INVALID_LENGTH
VALUE_NAME_INVALID_CHARS
VALUE_DISPLAY_NAME_INVALID_LENGTH
VALUE_MATCH_TYPE_NOT_ALLOWED
VALUE_MATCH_TYPE_NOT_EXACT_FOR_PREDEFINED_KEY
SUFFIX_MATCH_TYPE_NOT_ALLOWED
CONTAINS_MATCH_TYPE_NOT_ALLOWED
VALUE_STATUS_NOT_ACTIVE
KEY_WITH_MISSING_VALUES
INVALID_VALUE_FOR_KEY
CANNOT_OR_DIFFERENT_KEYS
INVALID_TARGETING_EXPRESSION
DELETED_KEY_CANNOT_BE_USED_FOR_TARGETING
DELETED_VALUE_CANNOT_BE_USED_FOR_TARGETING
VIDEO_BROWSE_BY_KEY_CANNOT_BE_USED_FOR_CUSTOM_TARGETING
CANNOT_DELETE_CUSTOM_KEY_USED_IN_PARTNER_ASSIGNMENT_TARGETING
CANNOT_DELETE_CUSTOM_VALUE_USED_IN_PARTNER_ASSIGNMENT_TARGETING
CANNOT_TARGET_AUDIENCE_SEGMENT
CANNOT_TARGET_THIRD_PARTY_AUDIENCE_SEGMENT
CANNOT_TARGET_INACTIVE_AUDIENCE_SEGMENT
INVALID_AUDIENCE_SEGMENTS
CANNOT_TARGET_MAPPED_METADATA
ONLY_APPROVED_AUDIENCE_SEGMENTS_CAN_BE_TARGETED
UNKNOWN