Enum describing possible criterion errors.

[Proto definition ![GitHub](https://developers.google.com/site-assets/logo-github.svg)](https://github.com/googleapis/googleapis/blob/master/google/ads/googleads/v26/errors/criterion_error.proto)

| Enums ||
|---|---|
| ## `ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE` | The account may not use the requested criteria type. For example, some accounts are restricted to keywords only. |
| ## `ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION` | Range represented by advance booking window's min days and max days overlaps with an existing criterion. |
| ## `ADVERTISER_NOT_ON_ALLOWLIST_FOR_COMBINED_AUDIENCE_ON_DISPLAY` | Customer is not on allowlist for composite audience in display campaigns. |
| ## `AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS` | CriteriaId does not match the interval of the AdSchedule specified. |
| ## `AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT` | The number of AdSchedule entries in a day exceeds the limit. |
| ## `AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS` | AdSchedule time interval cannot span multiple days. |
| ## `AD_SCHEDULE_INVALID_TIME_INTERVAL` | AdSchedule time interval specified is invalid, endTime cannot be earlier than startTime. |
| ## `AD_SCHEDULE_TIME_INTERVALS_OVERLAP` | Time interval in the AdSchedule overlaps with another AdSchedule. |
| ## `AI_MAX_MUST_BE_ENABLED` | This feature is only available for AI Max campaigns. |
| ## `AUDIENCE_NOT_ALLOWED_TO_ATTACH_WHEN_AUDIENCE_GROUPED_SET_TO_FALSE` | Audience is not allowed to attach when use_audience_grouped bit is set to false. |
| ## `AUDIENCE_NOT_ELIGIBLE_FOR_CAMPAIGN_TYPE` | Audience is not supported for the specified campaign type. |
| ## `BID_MODIFIER_ALREADY_EXISTS` | Bid Modifier already exists. Use SET operation to update. |
| ## `BRAND_SHARED_SET_DOES_NOT_EXIST` | The brand_list.shared_set_id references a shared set that does not exist. |
| ## `BROAD_MATCH_MODIFIER_KEYWORD_NOT_ALLOWED` | Broad match modifier (BMM) keywords can no longer be created. See <https://ads-developers.googleblog.com/2021/06/broad-match-modifier-upcoming-changes.html>. |
| ## `CANNOT_ADD_AUDIENCE_SEGMENT_CRITERION_WHEN_AUDIENCE_GROUPED_IS_SET` | Audience segment criteria cannot be added when use_audience_grouped bit is set. |
| ## `CANNOT_ADD_CLOSED_USER_LIST` | Not allowed to target a closed user list. |
| ## `CANNOT_ADD_CRITERIA_TYPE` | Criteria type can not be targeted. |
| ## `CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS` | Not allowed to add display only UserLists to search plus campaigns. |
| ## `CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS` | Not allowed to add display only UserLists to search only campaigns. |
| ## `CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS` | Not allowed to add display only UserLists to shopping campaigns. |
| ## `CANNOT_ADD_REMOVED_BRAND_SHARED_SET` | Cannot create a brand list with deleted shared set. |
| ## `CANNOT_ADD_REMOVED_NEGATIVE_KEYWORD_SHARED_SET` | Cannot create a negative keyword list with deleted shared set. |
| ## `CANNOT_ADD_REMOVED_PLACEMENT_LIST_SHARED_SET` | Cannot create a placement list with deleted shared set. |
| ## `CANNOT_ADD_REMOVED_VERTICAL_ADS_ITEM_GROUP_RULE_LIST_SHARED_SET` | Cannot add Vertical Ads Item Group Rule List with deleted shared set. |
| ## `CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE` | Final URLs, URL Templates and CustomParameters cannot be set for the criterion types of Gender, AgeRange, UserList, Placement, MobileApp, and MobileAppCategory in search campaigns and shopping campaigns. |
| ## `CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS` | Not allowed to add User interests to search only campaigns. |
| ## `CANNOT_ADD_USER_LIST_PENDING_PRIVACY_REVIEW` | The user list cannot be used while it is pending privacy review. |
| ## `CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP` | Criteria type cannot be associated with a campaign and its ad group(s) simultaneously. |
| ## `CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT` | Cannot bid modify criterion, since it is opted out of the campaign. |
| ## `CANNOT_BID_MODIFY_CRITERION_TYPE` | Cannot set bid modifier for this criterion type. |
| ## `CANNOT_BID_MODIFY_NEGATIVE_CRITERION` | Cannot set bid modifier for a negative criterion. |
| ## `CANNOT_EXCLUDE_ALL_TARGETS` | Cannot exclude all demographic targets. |
| ## `CANNOT_EXCLUDE_CRITERIA_TYPE` | Criteria type can not be excluded by the customer, like AOL account type cannot target site type criteria. |
| ## `CANNOT_EXCLUDE_CRITERION` | The Criterion is not allowed to be excluded. |
| ## `CANNOT_EXCLUDE_SIMILAR_USER_LIST` | Not allowed to exclude similar user list. |
| ## `CANNOT_HAVE_MULTIPLE_NEGATIVE_KEYWORD_LIST_PER_ACCOUNT` | Can only have one Negative Keyword List per account. |
| ## `CANNOT_RECOGNIZE_BRAND` | The brand criteria has a brand input that is not recognized as a valid brand. |
| ## `CANNOT_REMOVE_CRITERION` | The criterion is not allowed to be removed. For example, we cannot remove any of the device criterion. |
| ## `CANNOT_SET_ASSET_SETS_WITH_FEED_ITEM_SETS` | Cannot set asset sets and feed item sets at the same time. |
| ## `CANNOT_SET_ASSET_SET_FIELD_FOR_CUSTOMER` | Cannot set AssetSet criteria for customer. |
| ## `CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS` | Not allowed to set bids for this criterion type in search campaigns |
| ## `CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION` | Listing group SUBDIVISION nodes cannot have bids. |
| ## `CANNOT_SET_BOTH_ASSET_SET_AND_FEED` | Cannot set both assetset and feed at the same time. |
| ## `CANNOT_SET_FEED_OR_FEED_ITEM_SETS_FOR_CUSTOMER` | Cannot set feed or feed item sets for Customer. |
| ## `CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_ASSET_SETS` | Cannot set geo target constants and asset sets at the same time. |
| ## `CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_FEED_ITEM_SETS` | Cannot set geo target constants and feed item sets at the same time. |
| ## `CANNOT_TARGET_CRITERION` | The Criterion is not allowed to be targeted. |
| ## `CANNOT_TARGET_CUSTOMER_MATCH_USER_LIST` | Targeting is not allowed for Customer Match lists as per Customer Match policy. See <https://support.google.com/google-ads/answer/6299717>. |
| ## `CANNOT_TARGET_LANGUAGE` | The criterion is not allowed to be targeted for the language. |
| ## `CANNOT_TARGET_OBSOLETE_CRITERION` | The criterion is not allowed to be targeted as it is deprecated. |
| ## `CANNOT_TARGET_ONLY_UNDETERMINED` | The combination of demographic criteria would result in only targeting the "undetermined" segment, which is prohibited. |
| ## `CANNOT_TARGET_PLACEMENTS_FOR_SEARCH_CAMPAIGNS` | Cannot add positive placement criterion types in search campaigns. |
| ## `CANNOT_TARGET_REMOVED_COMBINED_AUDIENCE` | Cannot target on a removed combined audience. |
| ## `CANNOT_TARGET_REMOVED_CUSTOM_AUDIENCE` | Can not target removed combined audience. |
| ## `CANNOT_TARGET_SIMILAR_USER_LIST` | Targeting for Similar audiences is not supported, since this feature has been deprecated. See <https://support.google.com/google-ads/answer/12463119> to learn more. |
| ## `CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS` | Cannot add positive user list criteria in Smart Display campaigns. |
| ## `CONCRETE_TYPE_REQUIRED` | Concrete type of criterion is required for CREATE and UPDATE operations. |
| ## `CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY` | The requested criteria type cannot be used with campaign or ad group bidding strategy. |
| ## `CRITERION_ID_AND_TYPE_MISMATCH` | The CriterionId is not valid for the type. |
| ## `CRITERION_PARAMETER_TOO_LONG` | Length of serialized criterion parameter exceeded size limit. |
| ## `CUSTOMER_CANNOT_ADD_CRITERION_OF_THIS_TYPE` | Only allowlisted customers can add criteria of this type. |
| ## `DUPLICATE_LISTING_DIMENSION_TYPE` | There are dimensions with duplicate dimension type. |
| ## `DUPLICATE_LISTING_DIMENSION_VALUE` | There are dimensions with duplicate dimension value. |
| ## `FEED_ID_NOT_ALLOWED` | Feed Id is not allowed in these Location Groups. |
| ## `FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING` | The field is not allowed to be set when the negative field is set to true, for example, we don't allow bids in negative ad group or campaign criteria. |
| ## `INVALID_CAMPAIGN_TYPE_FOR_THIRD_PARTY_PARTNER_DATA_LIST` | Targeting this UserList is not allowed for this campaign type. |
| ## `INVALID_CITYNAME_LENGTH` | City name in the address is not valid. |
| ## `INVALID_COMBINED_AUDIENCE` | Invalid combined audience criterion. |
| ## `INVALID_COMBINED_AUDIENCE_ID` | Combined audience ID is invalid. |
| ## `INVALID_COUNTRY_CODE` | Country code in the address is not valid. |
| ## `INVALID_CRITERION_ID` | The CriterionId does not exist or is of the incorrect type. |
| ## `INVALID_CUSTOM_AFFINITY` | Invalid custom affinity criterion. |
| ## `INVALID_CUSTOM_AUDIENCE` | Invalid custom audience criterion. |
| ## `INVALID_CUSTOM_INTENT` | Invalid custom intent criterion. |
| ## `INVALID_DETAILED_DEMOGRAPHIC` | Invalid detailed demographics criterion. |
| ## `INVALID_EXCLUDED_CATEGORY` | The category requested for exclusion is invalid. |
| ## `INVALID_FEED_FOR_LOCATION_FILTER` | Feed not found, or the feed is not an enabled location feed. |
| ## `INVALID_FORMAT_FOR_PLACEMENT_URL` | Placement URL has wrong format. |
| ## `INVALID_IP_ADDRESS` | IP address is not valid. |
| ## `INVALID_IP_FORMAT` | IP format is not valid. |
| ## `INVALID_KEYWORD_TEXT` | Invalid keyword criteria text. |
| ## `INVALID_LATITUDE` | Latitude for the GeoPoint is not valid. |
| ## `INVALID_LISTING_DIMENSION` | Listing dimension is invalid (for example, dimension contains illegal value, dimension type is represented with wrong class, etc). Listing dimension value can not contain "==" or "\&+". |
| ## `INVALID_LISTING_DIMENSION_TYPE` | Listing dimension type is either invalid for campaigns of this type or cannot be used in the current context. BIDDING_CATEGORY_Lx and PRODUCT_TYPE_Lx dimensions must be used in ascending order of their levels: L1, L2, L3, L4, L5... The levels must be specified sequentially and start from L1. Furthermore, an "others" Listing group cannot be subdivided with a dimension of the same type but of a higher level ("others" BIDDING_CATEGORY_L3 can be subdivided with BRAND but not with BIDDING_CATEGORY_L4). |
| ## `INVALID_LISTING_GROUP_HIERARCHY` | Ad group is invalid due to the listing groups it contains. |
| ## `INVALID_LISTING_GROUP_TYPE` | Listing group type is not allowed for specified ad group criterion type. |
| ## `INVALID_LOCATION_GROUP_ASSET_SET` | The location group asset set id is invalid |
| ## `INVALID_LOCATION_GROUP_RADIUS` | The location group radius is in the range but not at the valid increment. |
| ## `INVALID_LOCATION_GROUP_RADIUS_UNIT` | The location group radius unit is invalid. |
| ## `INVALID_LONGITUDE` | Longitude for the GeoPoint is not valid. |
| ## `INVALID_MATCHING_FUNCTION` | Matching function is invalid. |
| ## `INVALID_MOBILE_APP` | Mobile application is not valid. |
| ## `INVALID_MOBILE_APP_CATEGORY` | Mobile application category is not valid. |
| ## `INVALID_PLACEMENT_URL` | Invalid placement URL. |
| ## `INVALID_POSTALCODE_LENGTH` | Postal code in the address is not valid. |
| ## `INVALID_PRODUCT_BIDDING_CATEGORY` | Bidding categories do not form a valid path in the Shopping bidding category taxonomy. |
| ## `INVALID_PROXIMITY_ADDRESS` | The Proximity address cannot be geocoded to a valid lat/long. |
| ## `INVALID_PROXIMITY_RADIUS` | Distance for the radius for the proximity criterion is invalid. |
| ## `INVALID_PROXIMITY_RADIUS_UNITS` | Units for the distance for the radius for the proximity criterion is invalid. |
| ## `INVALID_REGIONCODE_LENGTH` | Region code in the address is not valid. |
| ## `INVALID_REGIONNAME_LENGTH` | Region name in the address is not valid. |
| ## `INVALID_STREETADDRESS_LENGTH` | Street address in the address is not valid. |
| ## `INVALID_TOPIC_PATH` | Invalid topic path. |
| ## `INVALID_USER_DOMAIN_NAME` | User domain name is not valid. |
| ## `INVALID_USER_INTEREST` | Invalid user interest criterion. |
| ## `INVALID_USER_LIST` | Invalid user list criterion. |
| ## `INVALID_WEBPAGE_CONDITION` | The combination of operand and operator in webpage condition is invalid. |
| ## `INVALID_WEBPAGE_CONDITION_URL` | The URL of webpage condition is invalid. |
| ## `INVALID_YOUTUBE_CHANNEL_ID` | The YouTube Channel Id is invalid. |
| ## `INVALID_YOUTUBE_VIDEO_ID` | The YouTube Video Id is invalid. |
| ## `KEYWORD_HAS_INVALID_CHARS` | Keyword text has invalid characters or symbols. |
| ## `KEYWORD_HAS_TOO_MANY_WORDS` | Keyword text has too many words. |
| ## `KEYWORD_TEXT_TOO_LONG` | Keyword text should be less than 80 chars. |
| ## `LENGTH_OF_BOOKING_OVERLAPS_WITH_EXISTING_CRITERION` | Range represented by length of booking's min days and max days overlaps with an existing criterion. |
| ## `LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID` | Listing group in an ADD operation specifies a non temporary criterion id. |
| ## `LISTING_GROUP_ALREADY_EXISTS` | Listing group cannot be added to the ad group because it already exists. |
| ## `LISTING_GROUP_CANNOT_BE_REMOVED` | Recursive removal failed because listing group subdivision is being created or modified in this request. |
| ## `LISTING_GROUP_DOES_NOT_EXIST` | Listing group referenced in the operation was not found in the ad group. |
| ## `LISTING_GROUP_ERROR_IN_ANOTHER_OPERATION` | Product group operation is invalid because another operation targeting the same AdGroupId is failing. |
| ## `LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS` | Dimension type of listing group must be the same as that of its siblings. |
| ## `LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE` | Subdivided listing groups must have an "others" case. |
| ## `LISTING_GROUP_TOO_LONG` | The combined length of dimension values of the Listing group criterion is too long. |
| ## `LISTING_GROUP_TREE_TOO_DEEP` | Listing group tree is too deep. |
| ## `LISTING_GROUP_TREE_WAS_INVALID_BEFORE_MUTATION` | Tree was invalid before the mutation. |
| ## `LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN` | Listing group unit cannot have children. |
| ## `LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED` | Listing scope contains IN operator on an unsupported dimension type. |
| ## `LISTING_SCOPE_TOO_LONG` | The combined length of dimension values of the Listing scope criterion is too long. |
| ## `LISTING_SCOPE_TOO_MANY_DIMENSIONS` | Listing scope contains too many dimensions. |
| ## `LISTING_SCOPE_TOO_MANY_DIMENSION_TYPES` | Listing scope contains too many dimension types. |
| ## `LISTING_SCOPE_TOO_MANY_IN_OPERATORS` | Listing scope has too many IN operators. |
| ## `LOCATION_FILTER_INVALID` | Given location filter parameter is invalid for location groups targeting. |
| ## `LOCATION_FILTER_NOT_ALLOWED` | Filter parameters not allowed for location groups targeting. |
| ## `LOCATION_TARGETING_NOT_ELIGIBLE_FOR_RESTRICTED_CAMPAIGN` | Cannot positively target locations outside of restricted area for campaign. |
| ## `MISSING_EU_POLITICAL_ADVERTISING_SELF_DECLARATION` | The operation failed because the campaign is missing the self-declaration on political advertising status in the EU. |
| ## `MISSING_SHOPPING_SETTING` | ShoppingSetting must be added to the campaign before ProductScope criteria can be added. |
| ## `NEGATIVE_KEYWORD_SHARED_SET_DOES_NOT_EXIST` | Cannot create a negative keyword list criterion with a shared set that does not exist. |
| ## `NOT_AVAILABLE_FOR_AI_MAX_CAMPAIGNS` | This feature is not available for AI Max campaigns. |
| ## `ONE_AUDIENCE_ALLOWED_PER_AD_GROUP` | Only one audience is allowed in an ad group. |
| ## `ONE_AUDIENCE_ALLOWED_PER_ASSET_GROUP` | Only one audience is allowed in an asset group. |
| ## `ONLY_EXCLUSION_BRAND_LIST_ALLOWED_FOR_CAMPAIGN_TYPE` | Brand list can only be negatively targeted for the campaign type. |
| ## `ONLY_INCLUSION_BRAND_LIST_ALLOWED_FOR_AD_GROUPS` | Ad group level brand list criteria only support inclusionary targeting. Negative targeting at this level is not supported. |
| ## `PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION` | Indicates the domain is blocked. |
| ## `PLACEMENT_LIST_SHARED_SET_DOES_NOT_EXIST` | The placement_list.shared_set_id references a shared set that does not exist. |
| ## `PLACEMENT_URL_HAS_ILLEGAL_CHAR` | Indicates the URL contains an illegal character. |
| ## `PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE` | Indicates the URL contains multiple comma separated URLs. |
| ## `PLACEMENT_URL_IS_TOO_LONG` | Placement URL is too long. |
| ## `PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL` | The Proximity input is not valid. Both address and geoPoint cannot be null. |
| ## `RETAIL_FILTER_EXPRESSION_DOES_NOT_EXIST` | A RetailTag references a RetailFilterExpression name that does not exist. |
| ## `RETAIL_FILTER_TAGS_REFERRING_TO_EXPRESSION` | A RetailFilterExpression cannot be removed as it is still referenced by Tags. |
| ## `START_DATE_RANGE_END_DATE_TOO_LATE` | End date is later than latest allowed day of 330 days in the future UTC. |
| ## `START_DATE_RANGE_OVERLAPS_WITH_EXISTING_CRITERION` | Range represented by start date range's start date and end date overlaps with an existing criterion. |
| ## `START_DATE_RANGE_REVERSED` | Start date is after end date. |
| ## `START_DATE_RANGE_START_DATE_TOO_EARLY` | Start date is earlier than earliest allowed value of yesterday UTC. |
| ## `UNKNOWN` | The received error code is not known in this version. |
| ## `UNSPECIFIED` | Enum unspecified. |
| ## `VERTICAL_ADS_ITEM_GROUP_RULE_LIST_DOES_NOT_EXIST` | The referenced Vertical Ads item group rule list shared set does not exist. |
| ## `VERTICAL_ADS_ITEM_GROUP_RULE_LIST_NOT_SUPPORTED_FOR_CAMPAIGNS_WITHOUT_AI_MAX` | Vertical Ads Item Group Rule List is not supported for campaigns that do not have AI max enabled. |
| ## `VERTICAL_ADS_ITEM_GROUP_RULE_LIST_NOT_SUPPORTED_FOR_CAMPAIGNS_WITHOUT_ENABLED_TRAVEL_FEED` | Vertical Ads Item Group Rule List is not supported for campaigns that do not have an active travel feed. |
| ## `VERTICAL_ADS_ITEM_GROUP_RULE_NOT_SUPPORTED_FOR_THE_VERTICAL_TYPE` | The dimension of the Vertical Ads Item Group Rule criterion is not supported for the shared set vertical type. |
| ## `WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY` | The URL of webpage condition cannot be empty or contain white space. |
| ## `WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS` | The URL of webpage condition cannot be an IP address. |
| ## `WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX` | The URL of webpage condition cannot be a public suffix itself. |
| ## `WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING` | The domain of the URL is not consistent with the domain in campaign setting. |
| ## `WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX` | The URL of webpage condition has an invalid public suffix. |
| ## `WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL` | The URL of webpage condition contains an unsupported protocol. |
| ## `WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED` | Value track parameter is not supported in webpage condition URL. |
| ## `WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP` | A webpage criterion cannot be added to a non-DSA ad group. |
| ## `WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION` | Only one URL-EQUALS webpage condition is allowed in a webpage criterion and it cannot be combined with other conditions. |
| ## `YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED` | Indicates the placement is a YouTube demographic channel, which is no longer supported. |
| ## `YOUTUBE_URL_UNSUPPORTED` | YouTube urls are not supported in Placement criterion. Use YouTubeChannel and YouTubeVideo criterion instead. |
| ## `YOUTUBE_VERTICAL_CHANNEL_DEPRECATED` | Indicates the placement is a YouTube vertical channel, which is no longer supported. |