type CustomTargetingError (v202405)
- Namespace
-
https://www.google.com/apis/ads/publisher/v202405
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
-
|
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 2024-05-15 UTC.
[null,null,["Last updated 2024-05-15 UTC."],[[["This documentation details the `CustomTargetingError` object and its properties within the Google Ad Manager API."],["The `CustomTargetingError` object is inherited from the `ApiError` object, inheriting properties such as `fieldPath`, `fieldPathElements`, `trigger`, and `errorString`."],["`CustomTargetingError` includes a `reason` property, which is an enumeration detailing the various reasons why a custom targeting error might occur, like key or value issues, invalid expressions, or restrictions on targeting certain audience segments."],["Developers can use the provided `reason` codes to troubleshoot and resolve custom targeting issues encountered when interacting with the Google Ad Manager API."]]],["The document outlines services and error types within an API, focusing on ad management. Key services include AdRule, Adjustment, AudienceSegment, CustomTargeting, Forecast, LineItem, LineItemTemplate, NativeStyle, Order, ProposalLineItem, TargetingPreset, and YieldGroup. A key error type is CustomTargetingError, which details reasons for failure like invalid key/value names, incorrect matching, targeting restrictions, and audience segment issues. This error is inherited from ApiError.\n"]]