Interested in sharing your feedback about the Google Ads API?
Sign up to be invited to participate in user research!
CampaignCriterionError
Stay organized with collections
Save and categorize content based on your preferences.
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. |
|
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. |
|
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. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-12 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-12 UTC."],[[["This enum describes potential errors encountered when setting up or modifying campaign criteria within Google Ads."],["Errors can relate to criterion types, status, operations, compatibility with specific campaign types (like Shopping or Local Services), and location targeting."],["Some errors highlight restrictions, such as the inability to exclude certain criteria types, target and exclude the same criterion, or modify negative criteria."],["Local Services campaigns have specific requirements for location targeting, including the need for at least one positive target location and restrictions on targeting countries or locations outside the home country."],["Brand lists have limitations in their application, primarily for search campaigns with specific targeting settings."]]],["This document outlines various errors related to campaign criteria. Key actions include creating, updating, targeting, and excluding criteria. Errors arise from actions like using unsupported operators, setting invalid URLs, targeting and excluding the same criterion, or exceeding operation limits. Specific campaign types, like Smart or Local Services, have unique restrictions such as limitations on location or keyword targeting, or on the use of certain criteria types or statuses. Updating or removing location can also produce errors.\n"]]