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

CampaignCriterionError

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.