AI-generated Key Takeaways
-
AudienceSegmentError.Reasonis an enumeration detailing various reasons for errors related to audience segments within the Google Ad Manager API. -
Error reasons cover unsupported first-party segments, limitations on segment creation, invalid identifiers, rules, names, descriptions, and various invalid numeric values for segment properties like pageviews, recency, and membership expiration.
-
Errors also include issues with custom keys and values in segment rules, such as invalid characters or match types, and restrictions on including specific types of nested segments or shared selling inventory units.
-
Policy violations and errors related to global licenses or unknown issues can also be reasons for an
AudienceSegmentError.
Reason of the given AudienceSegmentError.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
| Enumeration | Description |
|---|---|
FIRST_PARTY_AUDIENCE_SEGMENT_NOT_SUPPORTED
|
First party audience segment is not supported. |
ONLY_RULE_BASED_FIRST_PARTY_AUDIENCE_SEGMENTS_CAN_BE_CREATED
|
Only rule-based first-party audience segments can be created. |
AUDIENCE_SEGMENT_ID_NOT_FOUND
|
Audience segment for the given id is not found. |
INVALID_AUDIENCE_SEGMENT_RULE
|
Audience segment rule is invalid. |
AUDIENCE_SEGMENT_RULE_TOO_LONG
|
Audience segment rule contains too many ad units and/or custom criteria. |
INVALID_AUDIENCE_SEGMENT_NAME
|
Audience segment name is invalid. |
DUPLICATE_AUDIENCE_SEGMENT_NAME
|
Audience segment with this name already exists. |
INVALID_AUDIENCE_SEGMENT_DESCRIPTION
|
Audience segment description is invalid. |
INVALID_AUDIENCE_SEGMENT_PAGEVIEWS
|
Audience segment pageviews value is invalid. It must be between 1 and 12. |
INVALID_AUDIENCE_SEGMENT_RECENCY
|
Audience segment recency value is invalid. It must be between 1 and 90 if pageviews > 1. |
INVALID_AUDIENCE_SEGMENT_MEMBERSHIP_EXPIRATION
|
Audience segment membership expiration value is invalid. It must be between 1 and 180. |
INVALID_AUDIENCE_SEGMENT_CUSTOM_KEY_NAME
|
The given custom key cannot be part of audience segment rule due to unsupported characters. |
INVALID_AUDIENCE_SEGMENT_CUSTOM_VALUE_NAME
|
The given custom value cannot be part of audience segment rule due to unsupported characters. |
INVALID_AUDIENCE_SEGMENT_CUSTOM_VALUE_MATCH_TYPE
|
Broad-match custom value cannot be part of audience segment rule. |
INVALID_NESTED_FIRST_PARTY_AUDIENCE_SEGMENT
|
Audience segment rule cannot contain itself. |
SHARED_SELLING_PARTNER_ROOT_CANNOT_BE_INCLUDED
|
Audience segment rule cannot contain shared selling inventory unit. |
INVALID_NESTED_THIRD_PARTY_AUDIENCE_SEGMENT
|
Audience segment rule cannot contain a nested third-party segment. |
INACTIVE_NESTED_AUDIENCE_SEGMENT
|
Audience segment rule cannot contain a nested inactive segment. |
AUDIENCE_SEGMENT_GLOBAL_LICENSE_ERROR
|
An error occurred when purchasing global licenses. |
SEGMENT_VIOLATED_POLICY
|
Segment cannot be activated as it violates Google's Platform Policy. |
UNKNOWN
|
The value returned if the actual value is not exposed by the requested API version. |