Learn more about migrating to the Google Ads API by watching our latest webinar

CriterionError

Enum describing possible criterion errors.

Enums

UNSPECIFIED

Enum unspecified.

UNKNOWN

The received error code is not known in this version.

CONCRETE_TYPE_REQUIRED

Concrete type of criterion is required for CREATE and UPDATE operations.

INVALID_EXCLUDED_CATEGORY

The category requested for exclusion is invalid.

INVALID_KEYWORD_TEXT

Invalid keyword criteria text.

KEYWORD_TEXT_TOO_LONG

Keyword text should be less than 80 chars.

KEYWORD_HAS_TOO_MANY_WORDS

Keyword text has too many words.

KEYWORD_HAS_INVALID_CHARS

Keyword text has invalid characters or symbols.

INVALID_PLACEMENT_URL

Invalid placement URL.

INVALID_USER_LIST

Invalid user list criterion.

INVALID_USER_INTEREST

Invalid user interest criterion.

INVALID_FORMAT_FOR_PLACEMENT_URL

Placement URL has wrong format.

PLACEMENT_URL_IS_TOO_LONG

Placement URL is too long.

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_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION

Indicates the domain is blocked.

INVALID_TOPIC_PATH

Invalid topic path.

INVALID_YOUTUBE_CHANNEL_ID

The YouTube Channel Id is invalid.

INVALID_YOUTUBE_VIDEO_ID

The YouTube Video Id is invalid.

YOUTUBE_VERTICAL_CHANNEL_DEPRECATED

Indicates the placement is a YouTube vertical channel, which is no longer supported.

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.

CANNOT_EXCLUDE_CRITERIA_TYPE

Criteria type can not be excluded by the customer, like AOL account type cannot target site type criteria.

CANNOT_ADD_CRITERIA_TYPE

Criteria type can not be targeted.

CANNOT_EXCLUDE_SIMILAR_USER_LIST

Not allowed to exclude similar user list.

CANNOT_ADD_CLOSED_USER_LIST

Not allowed to target a closed user list.

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_SEARCH_CAMPAIGNS

Not allowed to add display only UserLists to search plus campaigns.

CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS

Not allowed to add display only UserLists to shopping campaigns.

CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS

Not allowed to add User interests to search only campaigns.

CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS

Not allowed to set bids for this criterion type in search campaigns

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.

INVALID_COMBINED_AUDIENCE

Invalid combined audience criterion.

INVALID_CUSTOM_AFFINITY

Invalid custom affinity criterion.

INVALID_CUSTOM_INTENT

Invalid custom intent criterion.

INVALID_CUSTOM_AUDIENCE

Invalid custom audience criterion.

INVALID_IP_ADDRESS

IP address is not valid.

INVALID_IP_FORMAT

IP format is not valid.

INVALID_MOBILE_APP

Mobile application is not valid.

INVALID_MOBILE_APP_CATEGORY

Mobile application category is not valid.

INVALID_CRITERION_ID

The CriterionId does not exist or is of the incorrect type.

CANNOT_TARGET_CRITERION

The Criterion is not allowed to be targeted.

CANNOT_TARGET_OBSOLETE_CRITERION

The criterion is not allowed to be targeted as it is deprecated.

CRITERION_ID_AND_TYPE_MISMATCH

The CriterionId is not valid for the type.

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_STREETADDRESS_LENGTH

Street address in the address is not valid.

INVALID_CITYNAME_LENGTH

City name in the address is not valid.

INVALID_REGIONCODE_LENGTH

Region code in the address is not valid.

INVALID_REGIONNAME_LENGTH

Region name in the address is not valid.

INVALID_POSTALCODE_LENGTH

Postal code in the address is not valid.

INVALID_COUNTRY_CODE

Country code in the address is not valid.

INVALID_LATITUDE

Latitude for the GeoPoint is not valid.

INVALID_LONGITUDE

Longitude for the GeoPoint is not valid.

PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL

The Proximity input is not valid. Both address and geoPoint cannot be null.

INVALID_PROXIMITY_ADDRESS

The Proximity address cannot be geocoded to a valid lat/long.

INVALID_USER_DOMAIN_NAME

User domain name is not valid.

CRITERION_PARAMETER_TOO_LONG

Length of serialized criterion parameter exceeded size limit.

AD_SCHEDULE_TIME_INTERVALS_OVERLAP

Time interval in the AdSchedule overlaps with another AdSchedule.

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_EXCEEDED_INTERVALS_PER_DAY_LIMIT

The number of AdSchedule entries in a day exceeds the limit.

AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS

CriteriaId does not match the interval of the AdSchedule specified.

CANNOT_BID_MODIFY_CRITERION_TYPE

Cannot set bid modifier for this criterion type.

CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT

Cannot bid modify criterion, since it is opted out of the campaign.

CANNOT_BID_MODIFY_NEGATIVE_CRITERION

Cannot set bid modifier for a negative criterion.

BID_MODIFIER_ALREADY_EXISTS

Bid Modifier already exists. Use SET operation to update.

FEED_ID_NOT_ALLOWED

Feed Id is not allowed in these Location Groups.

ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE

The account may not use the requested criteria type. For example, some accounts are restricted to keywords only.

CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY

The requested criteria type cannot be used with campaign or ad group bidding strategy.

CANNOT_EXCLUDE_CRITERION

The Criterion is not allowed to be excluded.

CANNOT_REMOVE_CRITERION

The criterion is not allowed to be removed. For example, we cannot remove any of the device criterion.

INVALID_PRODUCT_BIDDING_CATEGORY

Bidding categories do not form a valid path in the Shopping bidding category taxonomy.

MISSING_SHOPPING_SETTING

ShoppingSetting must be added to the campaign before ProductScope criteria can be added.

INVALID_MATCHING_FUNCTION

Matching function is invalid.

LOCATION_FILTER_NOT_ALLOWED

Filter parameters not allowed for location groups targeting.

INVALID_FEED_FOR_LOCATION_FILTER

Feed not found, or the feed is not an enabled location feed.

LOCATION_FILTER_INVALID

Given location filter parameter is invalid for location groups targeting.

CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_FEED_ITEM_SETS

Cannot set geo target constants and feed item sets at the same time.

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.

CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP

Criteria type cannot be associated with a campaign and its ad group(s) simultaneously.

HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION

Range represented by hotel length of stay's min nights and max nights overlaps with an existing criterion.

HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION

Range represented by hotel advance booking window's min days and max days overlaps with an existing criterion.

FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING

The field is not allowed to be set when the negative field is set to true, e.g. we don't allow bids in negative ad group or campaign criteria.

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.

WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY

The URL of webpage condition cannot be empty or contain white space.

WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL

The URL of webpage condition contains an unsupported protocol.

WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS

The URL of webpage condition cannot be an IP address.

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_CANNOT_BE_PUBLIC_SUFFIX

The URL of webpage condition cannot be a public suffix itself.

WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX

The URL of webpage condition has an invalid public suffix.

WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED

Value track parameter is not supported in webpage condition URL.

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.

WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP

A webpage criterion cannot be added to a non-DSA ad group.

CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS

Cannot add positive user list criteria in Smart Display campaigns.

CANNOT_TARGET_PLACEMENTS_FOR_SEARCH_CAMPAIGNS

Cannot add positive placement criterion types in search campaigns.

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.

LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED

Listing scope contains IN operator on an unsupported dimension type.

DUPLICATE_LISTING_DIMENSION_TYPE

There are dimensions with duplicate dimension type.

DUPLICATE_LISTING_DIMENSION_VALUE

There are dimensions with duplicate dimension value.

CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION

Listing group SUBDIVISION nodes cannot have bids.

INVALID_LISTING_GROUP_HIERARCHY

Ad group is invalid due to the listing groups it contains.

LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN

Listing group unit cannot have children.

LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE

Subdivided listing groups must have an "others" case.

LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS

Dimension type of listing group must be the same as that of its siblings.

LISTING_GROUP_ALREADY_EXISTS

Listing group cannot be added to the ad group because it already exists.

LISTING_GROUP_DOES_NOT_EXIST

Listing group referenced in the operation was not found in the ad group.

LISTING_GROUP_CANNOT_BE_REMOVED

Recursive removal failed because listing group subdivision is being created or modified in this request.

INVALID_LISTING_GROUP_TYPE

Listing group type is not allowed for specified ad group criterion type.

LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID

Listing group in an ADD operation specifies a non temporary criterion id.

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_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.

INVALID_LISTING_DIMENSION

Listing dimension is invalid (e.g. 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).

ADVERTISER_NOT_ON_ALLOWLIST_FOR_COMBINED_AUDIENCE_ON_DISPLAY

Customer is not on allowlist for composite audience in display campaigns.

CANNOT_TARGET_REMOVED_COMBINED_AUDIENCE

Cannot target on a removed combined audience.

INVALID_COMBINED_AUDIENCE_ID

Combined audience ID is invalid.

CANNOT_TARGET_REMOVED_CUSTOM_AUDIENCE

Can not target removed combined audience.

HOTEL_CHECK_IN_DATE_RANGE_OVERLAPS_WITH_EXISTING_CRITERION

Range represented by hotel check-in date's start date and end date overlaps with an existing criterion.

HOTEL_CHECK_IN_DATE_RANGE_START_DATE_TOO_EARLY

Start date is earlier than earliest allowed value of yesterday UTC.

HOTEL_CHECK_IN_DATE_RANGE_END_DATE_TOO_LATE

End date later is than latest allowed day of 330 days in the future UTC.

HOTEL_CHECK_IN_DATE_RANGE_REVERSED

Start date is after end date.