1 // Copyright 2019 Google LLC.
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
18 package google.ads.googleads.v1.errors;
20 import "google/api/annotations.proto";
22 option csharp_namespace = "Google.Ads.GoogleAds.V1.Errors";
23 option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors";
24 option java_multiple_files = true;
25 option java_outer_classname = "CampaignCriterionErrorProto";
26 option java_package = "com.google.ads.googleads.v1.errors";
27 option objc_class_prefix = "GAA";
28 option php_namespace = "Google\\Ads\\GoogleAds\\V1\\Errors";
29 option ruby_package = "Google::Ads::GoogleAds::V1::Errors";
30 // Proto file describing campaign criterion errors.
32 // Container for enum describing possible campaign criterion errors.
33 message CampaignCriterionErrorEnum {
34 // Enum describing possible campaign criterion errors.
35 enum CampaignCriterionError {
39 // The received error code is not known in this version.
42 // Concrete type of criterion (keyword v.s. placement) is required for
43 // CREATE and UPDATE operations.
44 CONCRETE_TYPE_REQUIRED = 2;
46 // Invalid placement URL.
47 INVALID_PLACEMENT_URL = 3;
49 // Criteria type can not be excluded for the campaign by the customer. like
50 // AOL account type cannot target site type criteria
51 CANNOT_EXCLUDE_CRITERIA_TYPE = 4;
53 // Cannot set the campaign criterion status for this criteria type.
54 CANNOT_SET_STATUS_FOR_CRITERIA_TYPE = 5;
56 // Cannot set the campaign criterion status for an excluded criteria.
57 CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA = 6;
59 // Cannot target and exclude the same criterion.
60 CANNOT_TARGET_AND_EXCLUDE = 7;
62 // The mutate contained too many operations.
63 TOO_MANY_OPERATIONS = 8;
65 // This operator cannot be applied to a criterion of this type.
66 OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE = 9;
68 // The Shopping campaign sales country is not supported for
69 // ProductSalesChannel targeting.
70 SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL = 10;
72 // The existing field can't be updated with CREATE operation. It can be
73 // updated with UPDATE operation only.
74 CANNOT_ADD_EXISTING_FIELD = 11;
76 // Negative criteria are immutable, so updates are not allowed.
77 CANNOT_UPDATE_NEGATIVE_CRITERION = 12;