Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / google-proto-files / google / ads / googleads / v1 / errors / criterion_error.proto
1 // Copyright 2019 Google LLC.
2 //
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
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
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.
14 //
15
16 syntax = "proto3";
17
18 package google.ads.googleads.v1.errors;
19
20 import "google/api/annotations.proto";
21
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 = "CriterionErrorProto";
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 criterion errors.
31
32 // Container for enum describing possible criterion errors.
33 message CriterionErrorEnum {
34   // Enum describing possible criterion errors.
35   enum CriterionError {
36     // Enum unspecified.
37     UNSPECIFIED = 0;
38
39     // The received error code is not known in this version.
40     UNKNOWN = 1;
41
42     // Concrete type of criterion is required for CREATE and UPDATE operations.
43     CONCRETE_TYPE_REQUIRED = 2;
44
45     // The category requested for exclusion is invalid.
46     INVALID_EXCLUDED_CATEGORY = 3;
47
48     // Invalid keyword criteria text.
49     INVALID_KEYWORD_TEXT = 4;
50
51     // Keyword text should be less than 80 chars.
52     KEYWORD_TEXT_TOO_LONG = 5;
53
54     // Keyword text has too many words.
55     KEYWORD_HAS_TOO_MANY_WORDS = 6;
56
57     // Keyword text has invalid characters or symbols.
58     KEYWORD_HAS_INVALID_CHARS = 7;
59
60     // Invalid placement URL.
61     INVALID_PLACEMENT_URL = 8;
62
63     // Invalid user list criterion.
64     INVALID_USER_LIST = 9;
65
66     // Invalid user interest criterion.
67     INVALID_USER_INTEREST = 10;
68
69     // Placement URL has wrong format.
70     INVALID_FORMAT_FOR_PLACEMENT_URL = 11;
71
72     // Placement URL is too long.
73     PLACEMENT_URL_IS_TOO_LONG = 12;
74
75     // Indicates the URL contains an illegal character.
76     PLACEMENT_URL_HAS_ILLEGAL_CHAR = 13;
77
78     // Indicates the URL contains multiple comma separated URLs.
79     PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE = 14;
80
81     // Indicates the domain is blacklisted.
82     PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION = 15;
83
84     // Invalid topic path.
85     INVALID_TOPIC_PATH = 16;
86
87     // The YouTube Channel Id is invalid.
88     INVALID_YOUTUBE_CHANNEL_ID = 17;
89
90     // The YouTube Video Id is invalid.
91     INVALID_YOUTUBE_VIDEO_ID = 18;
92
93     // Indicates the placement is a YouTube vertical channel, which is no longer
94     // supported.
95     YOUTUBE_VERTICAL_CHANNEL_DEPRECATED = 19;
96
97     // Indicates the placement is a YouTube demographic channel, which is no
98     // longer supported.
99     YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED = 20;
100
101     // YouTube urls are not supported in Placement criterion. Use YouTubeChannel
102     // and YouTubeVideo criterion instead.
103     YOUTUBE_URL_UNSUPPORTED = 21;
104
105     // Criteria type can not be excluded by the customer, like AOL account type
106     // cannot target site type criteria.
107     CANNOT_EXCLUDE_CRITERIA_TYPE = 22;
108
109     // Criteria type can not be targeted.
110     CANNOT_ADD_CRITERIA_TYPE = 23;
111
112     // Product filter in the product criteria has invalid characters. Operand
113     // and the argument in the filter can not have "==" or "&+".
114     INVALID_PRODUCT_FILTER = 24;
115
116     // Product filter in the product criteria is translated to a string as
117     // operand1==argument1&+operand2==argument2, maximum allowed length for the
118     // string is 255 chars.
119     PRODUCT_FILTER_TOO_LONG = 25;
120
121     // Not allowed to exclude similar user list.
122     CANNOT_EXCLUDE_SIMILAR_USER_LIST = 26;
123
124     // Not allowed to target a closed user list.
125     CANNOT_ADD_CLOSED_USER_LIST = 27;
126
127     // Not allowed to add display only UserLists to search only campaigns.
128     CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS = 28;
129
130     // Not allowed to add display only UserLists to search plus campaigns.
131     CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS = 29;
132
133     // Not allowed to add display only UserLists to shopping campaigns.
134     CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS = 30;
135
136     // Not allowed to add User interests to search only campaigns.
137     CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS = 31;
138
139     // Not allowed to set bids for this criterion type in search campaigns
140     CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS = 32;
141
142     // Final URLs, URL Templates and CustomParameters cannot be set for the
143     // criterion types of Gender, AgeRange, UserList, Placement, MobileApp, and
144     // MobileAppCategory in search campaigns and shopping campaigns.
145     CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE = 33;
146
147     // IP address is not valid.
148     INVALID_IP_ADDRESS = 34;
149
150     // IP format is not valid.
151     INVALID_IP_FORMAT = 35;
152
153     // Mobile application is not valid.
154     INVALID_MOBILE_APP = 36;
155
156     // Mobile application category is not valid.
157     INVALID_MOBILE_APP_CATEGORY = 37;
158
159     // The CriterionId does not exist or is of the incorrect type.
160     INVALID_CRITERION_ID = 38;
161
162     // The Criterion is not allowed to be targeted.
163     CANNOT_TARGET_CRITERION = 39;
164
165     // The criterion is not allowed to be targeted as it is deprecated.
166     CANNOT_TARGET_OBSOLETE_CRITERION = 40;
167
168     // The CriterionId is not valid for the type.
169     CRITERION_ID_AND_TYPE_MISMATCH = 41;
170
171     // Distance for the radius for the proximity criterion is invalid.
172     INVALID_PROXIMITY_RADIUS = 42;
173
174     // Units for the distance for the radius for the proximity criterion is
175     // invalid.
176     INVALID_PROXIMITY_RADIUS_UNITS = 43;
177
178     // Street address in the address is not valid.
179     INVALID_STREETADDRESS_LENGTH = 44;
180
181     // City name in the address is not valid.
182     INVALID_CITYNAME_LENGTH = 45;
183
184     // Region code in the address is not valid.
185     INVALID_REGIONCODE_LENGTH = 46;
186
187     // Region name in the address is not valid.
188     INVALID_REGIONNAME_LENGTH = 47;
189
190     // Postal code in the address is not valid.
191     INVALID_POSTALCODE_LENGTH = 48;
192
193     // Country code in the address is not valid.
194     INVALID_COUNTRY_CODE = 49;
195
196     // Latitude for the GeoPoint is not valid.
197     INVALID_LATITUDE = 50;
198
199     // Longitude for the GeoPoint is not valid.
200     INVALID_LONGITUDE = 51;
201
202     // The Proximity input is not valid. Both address and geoPoint cannot be
203     // null.
204     PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL = 52;
205
206     // The Proximity address cannot be geocoded to a valid lat/long.
207     INVALID_PROXIMITY_ADDRESS = 53;
208
209     // User domain name is not valid.
210     INVALID_USER_DOMAIN_NAME = 54;
211
212     // Length of serialized criterion parameter exceeded size limit.
213     CRITERION_PARAMETER_TOO_LONG = 55;
214
215     // Time interval in the AdSchedule overlaps with another AdSchedule.
216     AD_SCHEDULE_TIME_INTERVALS_OVERLAP = 56;
217
218     // AdSchedule time interval cannot span multiple days.
219     AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS = 57;
220
221     // AdSchedule time interval specified is invalid, endTime cannot be earlier
222     // than startTime.
223     AD_SCHEDULE_INVALID_TIME_INTERVAL = 58;
224
225     // The number of AdSchedule entries in a day exceeds the limit.
226     AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT = 59;
227
228     // CriteriaId does not match the interval of the AdSchedule specified.
229     AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS = 60;
230
231     // Cannot set bid modifier for this criterion type.
232     CANNOT_BID_MODIFY_CRITERION_TYPE = 61;
233
234     // Cannot bid modify criterion, since it is opted out of the campaign.
235     CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT = 62;
236
237     // Cannot set bid modifier for a negative criterion.
238     CANNOT_BID_MODIFY_NEGATIVE_CRITERION = 63;
239
240     // Bid Modifier already exists. Use SET operation to update.
241     BID_MODIFIER_ALREADY_EXISTS = 64;
242
243     // Feed Id is not allowed in these Location Groups.
244     FEED_ID_NOT_ALLOWED = 65;
245
246     // The account may not use the requested criteria type. For example, some
247     // accounts are restricted to keywords only.
248     ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE = 66;
249
250     // The requested criteria type cannot be used with campaign or ad group
251     // bidding strategy.
252     CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY = 67;
253
254     // The Criterion is not allowed to be excluded.
255     CANNOT_EXCLUDE_CRITERION = 68;
256
257     // The criterion is not allowed to be removed. For example, we cannot remove
258     // any of the device criterion.
259     CANNOT_REMOVE_CRITERION = 69;
260
261     // The combined length of product dimension values of the product scope
262     // criterion is too long.
263     PRODUCT_SCOPE_TOO_LONG = 70;
264
265     // Product scope contains too many dimensions.
266     PRODUCT_SCOPE_TOO_MANY_DIMENSIONS = 71;
267
268     // The combined length of product dimension values of the product partition
269     // criterion is too long.
270     PRODUCT_PARTITION_TOO_LONG = 72;
271
272     // Product partition contains too many dimensions.
273     PRODUCT_PARTITION_TOO_MANY_DIMENSIONS = 73;
274
275     // The product dimension is invalid (e.g. dimension contains illegal value,
276     // dimension type is represented with wrong class, etc). Product dimension
277     // value can not contain "==" or "&+".
278     INVALID_PRODUCT_DIMENSION = 74;
279
280     // Product dimension type is either invalid for campaigns of this type or
281     // cannot be used in the current context. BIDDING_CATEGORY_Lx and
282     // PRODUCT_TYPE_Lx product dimensions must be used in ascending order of
283     // their levels: L1, L2, L3, L4, L5... The levels must be specified
284     // sequentially and start from L1. Furthermore, an "others" product
285     // partition cannot be subdivided with a dimension of the same type but of a
286     // higher level ("others" BIDDING_CATEGORY_L3 can be subdivided with BRAND
287     // but not with BIDDING_CATEGORY_L4).
288     INVALID_PRODUCT_DIMENSION_TYPE = 75;
289
290     // Bidding categories do not form a valid path in the Shopping bidding
291     // category taxonomy.
292     INVALID_PRODUCT_BIDDING_CATEGORY = 76;
293
294     // ShoppingSetting must be added to the campaign before ProductScope
295     // criteria can be added.
296     MISSING_SHOPPING_SETTING = 77;
297
298     // Matching function is invalid.
299     INVALID_MATCHING_FUNCTION = 78;
300
301     // Filter parameters not allowed for location groups targeting.
302     LOCATION_FILTER_NOT_ALLOWED = 79;
303
304     // Given location filter parameter is invalid for location groups targeting.
305     LOCATION_FILTER_INVALID = 80;
306
307     // Criteria type cannot be associated with a campaign and its ad group(s)
308     // simultaneously.
309     CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP = 81;
310
311     // Range represented by hotel length of stay's min nights and max nights
312     // overlaps with an existing criterion.
313     HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION = 82;
314
315     // Range represented by hotel advance booking window's min days and max days
316     // overlaps with an existing criterion.
317     HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION = 83;
318
319     // The field is not allowed to be set when the negative field is set to
320     // true, e.g. we don't allow bids in negative ad group or campaign criteria.
321     FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING = 84;
322
323     // The combination of operand and operator in webpage condition is invalid.
324     INVALID_WEBPAGE_CONDITION = 85;
325
326     // The URL of webpage condition is invalid.
327     INVALID_WEBPAGE_CONDITION_URL = 86;
328
329     // The URL of webpage condition cannot be empty or contain white space.
330     WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY = 87;
331
332     // The URL of webpage condition contains an unsupported protocol.
333     WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL = 88;
334
335     // The URL of webpage condition cannot be an IP address.
336     WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS = 89;
337
338     // The domain of the URL is not consistent with the domain in campaign
339     // setting.
340     WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING = 90;
341
342     // The URL of webpage condition cannot be a public suffix itself.
343     WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX = 91;
344
345     // The URL of webpage condition has an invalid public suffix.
346     WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX = 92;
347
348     // Value track parameter is not supported in webpage condition URL.
349     WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED = 93;
350
351     // Only one URL-EQUALS webpage condition is allowed in a webpage
352     // criterion and it cannot be combined with other conditions.
353     WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION = 94;
354
355     // A webpage criterion cannot be added to a non-DSA ad group.
356     WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP = 95;
357   }
358
359
360 }