CampaignCriterionError

  • This document outlines possible errors that can occur with campaign criterion settings.

  • Errors cover various issues including concrete type requirements, invalid URLs, and limitations on excluding or setting status for criterion types.

  • Specific errors relate to conflicts such as targeting and excluding the same criterion or limitations on negative criteria updates.

  • Several errors are specific to different campaign types, including Shopping, Smart, and Local Services campaigns.

Enum describing possible campaign criterion errors.

Enums

UNSPECIFIED

Enum unspecified.

UNKNOWN

The received error code is not known in this version.

CONCRETE_TYPE_REQUIRED

Concrete type of criterion (keyword v.s. placement) is required for CREATE and UPDATE operations.

INVALID_PLACEMENT_URL

Invalid placement URL.

CANNOT_EXCLUDE_CRITERIA_TYPE

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

CANNOT_SET_STATUS_FOR_CRITERIA_TYPE

Cannot set the campaign criterion status for this criteria type.

CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA

Cannot set the campaign criterion status for an excluded criteria.

CANNOT_TARGET_AND_EXCLUDE

Cannot target and exclude the same criterion.

TOO_MANY_OPERATIONS

The mutate contained too many operations.

OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE

This operator cannot be applied to a criterion of this type.

SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL

The Shopping campaign sales country is not supported for ProductSalesChannel targeting.

CANNOT_ADD_EXISTING_FIELD

The existing field can't be updated with CREATE operation. It can be updated with UPDATE operation only.

CANNOT_UPDATE_NEGATIVE_CRITERION

Negative criteria are immutable, so updates are not allowed.

CANNOT_SET_NEGATIVE_KEYWORD_THEME_CONSTANT_CRITERION

Only free form names are allowed for negative Smart campaign keyword theme.

INVALID_KEYWORD_THEME_CONSTANT

Invalid Smart campaign keyword theme constant criterion.

MISSING_KEYWORD_THEME_CONSTANT_OR_FREE_FORM_KEYWORD_THEME

A Smart campaign keyword theme constant or free-form Smart campaign keyword theme is required.

CANNOT_TARGET_BOTH_PROXIMITY_AND_LOCATION_CRITERIA_FOR_SMART_CAMPAIGN

A Smart campaign may not target proximity and location criteria simultaneously.

CANNOT_TARGET_MULTIPLE_PROXIMITY_CRITERIA_FOR_SMART_CAMPAIGN

A Smart campaign may not target multiple proximity criteria.

LOCATION_NOT_LAUNCHED_FOR_LOCAL_SERVICES_CAMPAIGN

Location is not launched for Local Services Campaigns.

LOCATION_INVALID_FOR_LOCAL_SERVICES_CAMPAIGN

A Local Services campaign may not target certain criteria types.

CANNOT_TARGET_COUNTRY_FOR_LOCAL_SERVICES_CAMPAIGN

Country locations are not supported for Local Services campaign.

LOCATION_NOT_IN_HOME_COUNTRY_FOR_LOCAL_SERVICES_CAMPAIGN

Location is not within the home country of Local Services campaign.

CANNOT_ADD_OR_REMOVE_LOCATION_FOR_LOCAL_SERVICES_CAMPAIGN

Local Services profile does not exist for a particular Local Services campaign.

AT_LEAST_ONE_POSITIVE_LOCATION_REQUIRED_FOR_LOCAL_SERVICES_CAMPAIGN

Local Services campaign must have at least one target location.

AT_LEAST_ONE_LOCAL_SERVICE_ID_CRITERION_REQUIRED_FOR_LOCAL_SERVICES_CAMPAIGN

At least one positive local service ID criterion is required for a Local Services campaign.

LOCAL_SERVICE_ID_NOT_FOUND_FOR_CATEGORY

Local service ID is not found under selected categories in local services campaign setting.

CANNOT_ATTACH_BRAND_LIST_TO_NON_QUALIFIED_SEARCH_CAMPAIGN

For search advertising channel, brand lists can only be applied to exclusive targeting, broad match campaigns for inclusive targeting or PMax generated campaigns.

CANNOT_REMOVE_ALL_LOCATIONS_DUE_TO_TOO_MANY_COUNTRY_EXCLUSIONS

Campaigns that target all countries and territories are limited to a certain number of top-level location exclusions. If removing a criterion causes the campaign to target all countries and territories and the campaign has more top-level location exclusions than the limit allows, then this error is returned.