• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2023 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
15syntax = "proto3";
16
17package google.ads.googleads.v14.errors;
18
19option csharp_namespace = "Google.Ads.GoogleAds.V14.Errors";
20option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v14/errors;errors";
21option java_multiple_files = true;
22option java_outer_classname = "CriterionErrorProto";
23option java_package = "com.google.ads.googleads.v14.errors";
24option objc_class_prefix = "GAA";
25option php_namespace = "Google\\Ads\\GoogleAds\\V14\\Errors";
26option ruby_package = "Google::Ads::GoogleAds::V14::Errors";
27
28// Proto file describing criterion errors.
29
30// Container for enum describing possible criterion errors.
31message CriterionErrorEnum {
32  // Enum describing possible criterion errors.
33  enum CriterionError {
34    // Enum unspecified.
35    UNSPECIFIED = 0;
36
37    // The received error code is not known in this version.
38    UNKNOWN = 1;
39
40    // Concrete type of criterion is required for CREATE and UPDATE operations.
41    CONCRETE_TYPE_REQUIRED = 2;
42
43    // The category requested for exclusion is invalid.
44    INVALID_EXCLUDED_CATEGORY = 3;
45
46    // Invalid keyword criteria text.
47    INVALID_KEYWORD_TEXT = 4;
48
49    // Keyword text should be less than 80 chars.
50    KEYWORD_TEXT_TOO_LONG = 5;
51
52    // Keyword text has too many words.
53    KEYWORD_HAS_TOO_MANY_WORDS = 6;
54
55    // Keyword text has invalid characters or symbols.
56    KEYWORD_HAS_INVALID_CHARS = 7;
57
58    // Invalid placement URL.
59    INVALID_PLACEMENT_URL = 8;
60
61    // Invalid user list criterion.
62    INVALID_USER_LIST = 9;
63
64    // Invalid user interest criterion.
65    INVALID_USER_INTEREST = 10;
66
67    // Placement URL has wrong format.
68    INVALID_FORMAT_FOR_PLACEMENT_URL = 11;
69
70    // Placement URL is too long.
71    PLACEMENT_URL_IS_TOO_LONG = 12;
72
73    // Indicates the URL contains an illegal character.
74    PLACEMENT_URL_HAS_ILLEGAL_CHAR = 13;
75
76    // Indicates the URL contains multiple comma separated URLs.
77    PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE = 14;
78
79    // Indicates the domain is blocked.
80    PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION = 15;
81
82    // Invalid topic path.
83    INVALID_TOPIC_PATH = 16;
84
85    // The YouTube Channel Id is invalid.
86    INVALID_YOUTUBE_CHANNEL_ID = 17;
87
88    // The YouTube Video Id is invalid.
89    INVALID_YOUTUBE_VIDEO_ID = 18;
90
91    // Indicates the placement is a YouTube vertical channel, which is no longer
92    // supported.
93    YOUTUBE_VERTICAL_CHANNEL_DEPRECATED = 19;
94
95    // Indicates the placement is a YouTube demographic channel, which is no
96    // longer supported.
97    YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED = 20;
98
99    // YouTube urls are not supported in Placement criterion. Use YouTubeChannel
100    // and YouTubeVideo criterion instead.
101    YOUTUBE_URL_UNSUPPORTED = 21;
102
103    // Criteria type can not be excluded by the customer, like AOL account type
104    // cannot target site type criteria.
105    CANNOT_EXCLUDE_CRITERIA_TYPE = 22;
106
107    // Criteria type can not be targeted.
108    CANNOT_ADD_CRITERIA_TYPE = 23;
109
110    // Not allowed to exclude similar user list.
111    CANNOT_EXCLUDE_SIMILAR_USER_LIST = 26;
112
113    // Not allowed to target a closed user list.
114    CANNOT_ADD_CLOSED_USER_LIST = 27;
115
116    // Not allowed to add display only UserLists to search only campaigns.
117    CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS = 28;
118
119    // Not allowed to add display only UserLists to search plus campaigns.
120    CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS = 29;
121
122    // Not allowed to add display only UserLists to shopping campaigns.
123    CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS = 30;
124
125    // Not allowed to add User interests to search only campaigns.
126    CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS = 31;
127
128    // Not allowed to set bids for this criterion type in search campaigns
129    CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS = 32;
130
131    // Final URLs, URL Templates and CustomParameters cannot be set for the
132    // criterion types of Gender, AgeRange, UserList, Placement, MobileApp, and
133    // MobileAppCategory in search campaigns and shopping campaigns.
134    CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE = 33;
135
136    // Invalid combined audience criterion.
137    INVALID_COMBINED_AUDIENCE = 122;
138
139    // Invalid custom affinity criterion.
140    INVALID_CUSTOM_AFFINITY = 96;
141
142    // Invalid custom intent criterion.
143    INVALID_CUSTOM_INTENT = 97;
144
145    // Invalid custom audience criterion.
146    INVALID_CUSTOM_AUDIENCE = 121;
147
148    // IP address is not valid.
149    INVALID_IP_ADDRESS = 34;
150
151    // IP format is not valid.
152    INVALID_IP_FORMAT = 35;
153
154    // Mobile application is not valid.
155    INVALID_MOBILE_APP = 36;
156
157    // Mobile application category is not valid.
158    INVALID_MOBILE_APP_CATEGORY = 37;
159
160    // The CriterionId does not exist or is of the incorrect type.
161    INVALID_CRITERION_ID = 38;
162
163    // The Criterion is not allowed to be targeted.
164    CANNOT_TARGET_CRITERION = 39;
165
166    // The criterion is not allowed to be targeted as it is deprecated.
167    CANNOT_TARGET_OBSOLETE_CRITERION = 40;
168
169    // The CriterionId is not valid for the type.
170    CRITERION_ID_AND_TYPE_MISMATCH = 41;
171
172    // Distance for the radius for the proximity criterion is invalid.
173    INVALID_PROXIMITY_RADIUS = 42;
174
175    // Units for the distance for the radius for the proximity criterion is
176    // invalid.
177    INVALID_PROXIMITY_RADIUS_UNITS = 43;
178
179    // Street address in the address is not valid.
180    INVALID_STREETADDRESS_LENGTH = 44;
181
182    // City name in the address is not valid.
183    INVALID_CITYNAME_LENGTH = 45;
184
185    // Region code in the address is not valid.
186    INVALID_REGIONCODE_LENGTH = 46;
187
188    // Region name in the address is not valid.
189    INVALID_REGIONNAME_LENGTH = 47;
190
191    // Postal code in the address is not valid.
192    INVALID_POSTALCODE_LENGTH = 48;
193
194    // Country code in the address is not valid.
195    INVALID_COUNTRY_CODE = 49;
196
197    // Latitude for the GeoPoint is not valid.
198    INVALID_LATITUDE = 50;
199
200    // Longitude for the GeoPoint is not valid.
201    INVALID_LONGITUDE = 51;
202
203    // The Proximity input is not valid. Both address and geoPoint cannot be
204    // null.
205    PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL = 52;
206
207    // The Proximity address cannot be geocoded to a valid lat/long.
208    INVALID_PROXIMITY_ADDRESS = 53;
209
210    // User domain name is not valid.
211    INVALID_USER_DOMAIN_NAME = 54;
212
213    // Length of serialized criterion parameter exceeded size limit.
214    CRITERION_PARAMETER_TOO_LONG = 55;
215
216    // Time interval in the AdSchedule overlaps with another AdSchedule.
217    AD_SCHEDULE_TIME_INTERVALS_OVERLAP = 56;
218
219    // AdSchedule time interval cannot span multiple days.
220    AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS = 57;
221
222    // AdSchedule time interval specified is invalid, endTime cannot be earlier
223    // than startTime.
224    AD_SCHEDULE_INVALID_TIME_INTERVAL = 58;
225
226    // The number of AdSchedule entries in a day exceeds the limit.
227    AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT = 59;
228
229    // CriteriaId does not match the interval of the AdSchedule specified.
230    AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS = 60;
231
232    // Cannot set bid modifier for this criterion type.
233    CANNOT_BID_MODIFY_CRITERION_TYPE = 61;
234
235    // Cannot bid modify criterion, since it is opted out of the campaign.
236    CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT = 62;
237
238    // Cannot set bid modifier for a negative criterion.
239    CANNOT_BID_MODIFY_NEGATIVE_CRITERION = 63;
240
241    // Bid Modifier already exists. Use SET operation to update.
242    BID_MODIFIER_ALREADY_EXISTS = 64;
243
244    // Feed Id is not allowed in these Location Groups.
245    FEED_ID_NOT_ALLOWED = 65;
246
247    // The account may not use the requested criteria type. For example, some
248    // accounts are restricted to keywords only.
249    ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE = 66;
250
251    // The requested criteria type cannot be used with campaign or ad group
252    // bidding strategy.
253    CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY = 67;
254
255    // The Criterion is not allowed to be excluded.
256    CANNOT_EXCLUDE_CRITERION = 68;
257
258    // The criterion is not allowed to be removed. For example, we cannot remove
259    // any of the device criterion.
260    CANNOT_REMOVE_CRITERION = 69;
261
262    // Bidding categories do not form a valid path in the Shopping bidding
263    // category taxonomy.
264    INVALID_PRODUCT_BIDDING_CATEGORY = 76;
265
266    // ShoppingSetting must be added to the campaign before ProductScope
267    // criteria can be added.
268    MISSING_SHOPPING_SETTING = 77;
269
270    // Matching function is invalid.
271    INVALID_MATCHING_FUNCTION = 78;
272
273    // Filter parameters not allowed for location groups targeting.
274    LOCATION_FILTER_NOT_ALLOWED = 79;
275
276    // Feed not found, or the feed is not an enabled location feed.
277    INVALID_FEED_FOR_LOCATION_FILTER = 98;
278
279    // Given location filter parameter is invalid for location groups targeting.
280    LOCATION_FILTER_INVALID = 80;
281
282    // Cannot set geo target constants and feed item sets at the same time.
283    CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_FEED_ITEM_SETS = 123;
284
285    // Cannot set both assetset and feed at the same time.
286    CANNOT_SET_BOTH_ASSET_SET_AND_FEED = 140;
287
288    // Cannot set feed or feed item sets for Customer.
289    CANNOT_SET_FEED_OR_FEED_ITEM_SETS_FOR_CUSTOMER = 142;
290
291    // Cannot set AssetSet criteria for customer.
292    CANNOT_SET_ASSET_SET_FIELD_FOR_CUSTOMER = 150;
293
294    // Cannot set geo target constants and asset sets at the same time.
295    CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_ASSET_SETS = 143;
296
297    // Cannot set asset sets and feed item sets at the same time.
298    CANNOT_SET_ASSET_SETS_WITH_FEED_ITEM_SETS = 144;
299
300    // The location group asset set id is invalid
301    INVALID_LOCATION_GROUP_ASSET_SET = 141;
302
303    // The location group radius is in the range but not at the valid increment.
304    INVALID_LOCATION_GROUP_RADIUS = 124;
305
306    // The location group radius unit is invalid.
307    INVALID_LOCATION_GROUP_RADIUS_UNIT = 125;
308
309    // Criteria type cannot be associated with a campaign and its ad group(s)
310    // simultaneously.
311    CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP = 81;
312
313    // Range represented by hotel length of stay's min nights and max nights
314    // overlaps with an existing criterion.
315    HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION = 82;
316
317    // Range represented by hotel advance booking window's min days and max days
318    // overlaps with an existing criterion.
319    HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION = 83;
320
321    // The field is not allowed to be set when the negative field is set to
322    // true, for example, we don't allow bids in negative ad group or campaign
323    // criteria.
324    FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING = 84;
325
326    // The combination of operand and operator in webpage condition is invalid.
327    INVALID_WEBPAGE_CONDITION = 85;
328
329    // The URL of webpage condition is invalid.
330    INVALID_WEBPAGE_CONDITION_URL = 86;
331
332    // The URL of webpage condition cannot be empty or contain white space.
333    WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY = 87;
334
335    // The URL of webpage condition contains an unsupported protocol.
336    WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL = 88;
337
338    // The URL of webpage condition cannot be an IP address.
339    WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS = 89;
340
341    // The domain of the URL is not consistent with the domain in campaign
342    // setting.
343    WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING = 90;
344
345    // The URL of webpage condition cannot be a public suffix itself.
346    WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX = 91;
347
348    // The URL of webpage condition has an invalid public suffix.
349    WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX = 92;
350
351    // Value track parameter is not supported in webpage condition URL.
352    WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED = 93;
353
354    // Only one URL-EQUALS webpage condition is allowed in a webpage
355    // criterion and it cannot be combined with other conditions.
356    WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION = 94;
357
358    // A webpage criterion cannot be added to a non-DSA ad group.
359    WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP = 95;
360
361    // Cannot add positive user list criteria in Smart Display campaigns.
362    CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS = 99;
363
364    // Cannot add positive placement criterion types in search campaigns.
365    CANNOT_TARGET_PLACEMENTS_FOR_SEARCH_CAMPAIGNS = 126;
366
367    // Listing scope contains too many dimension types.
368    LISTING_SCOPE_TOO_MANY_DIMENSION_TYPES = 100;
369
370    // Listing scope has too many IN operators.
371    LISTING_SCOPE_TOO_MANY_IN_OPERATORS = 101;
372
373    // Listing scope contains IN operator on an unsupported dimension type.
374    LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED = 102;
375
376    // There are dimensions with duplicate dimension type.
377    DUPLICATE_LISTING_DIMENSION_TYPE = 103;
378
379    // There are dimensions with duplicate dimension value.
380    DUPLICATE_LISTING_DIMENSION_VALUE = 104;
381
382    // Listing group SUBDIVISION nodes cannot have bids.
383    CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION = 105;
384
385    // Ad group is invalid due to the listing groups it contains.
386    INVALID_LISTING_GROUP_HIERARCHY = 106;
387
388    // Listing group unit cannot have children.
389    LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN = 107;
390
391    // Subdivided listing groups must have an "others" case.
392    LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE = 108;
393
394    // Dimension type of listing group must be the same as that of its siblings.
395    LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS = 109;
396
397    // Listing group cannot be added to the ad group because it already exists.
398    LISTING_GROUP_ALREADY_EXISTS = 110;
399
400    // Listing group referenced in the operation was not found in the ad group.
401    LISTING_GROUP_DOES_NOT_EXIST = 111;
402
403    // Recursive removal failed because listing group subdivision is being
404    // created or modified in this request.
405    LISTING_GROUP_CANNOT_BE_REMOVED = 112;
406
407    // Listing group type is not allowed for specified ad group criterion type.
408    INVALID_LISTING_GROUP_TYPE = 113;
409
410    // Listing group in an ADD operation specifies a non temporary criterion id.
411    LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID = 114;
412
413    // The combined length of dimension values of the Listing scope criterion
414    // is too long.
415    LISTING_SCOPE_TOO_LONG = 115;
416
417    // Listing scope contains too many dimensions.
418    LISTING_SCOPE_TOO_MANY_DIMENSIONS = 116;
419
420    // The combined length of dimension values of the Listing group criterion is
421    // too long.
422    LISTING_GROUP_TOO_LONG = 117;
423
424    // Listing group tree is too deep.
425    LISTING_GROUP_TREE_TOO_DEEP = 118;
426
427    // Listing dimension is invalid (for example, dimension contains illegal
428    // value, dimension type is represented with wrong class, etc). Listing
429    // dimension value can not contain "==" or "&+".
430    INVALID_LISTING_DIMENSION = 119;
431
432    // Listing dimension type is either invalid for campaigns of this type or
433    // cannot be used in the current context. BIDDING_CATEGORY_Lx and
434    // PRODUCT_TYPE_Lx dimensions must be used in ascending order of their
435    // levels: L1, L2, L3, L4, L5... The levels must be specified sequentially
436    // and start from L1. Furthermore, an "others" Listing group cannot be
437    // subdivided with a dimension of the same type but of a higher level
438    // ("others" BIDDING_CATEGORY_L3 can be subdivided with BRAND but not with
439    // BIDDING_CATEGORY_L4).
440    INVALID_LISTING_DIMENSION_TYPE = 120;
441
442    // Customer is not on allowlist for composite audience in display campaigns.
443    ADVERTISER_NOT_ON_ALLOWLIST_FOR_COMBINED_AUDIENCE_ON_DISPLAY = 127;
444
445    // Cannot target on a removed combined audience.
446    CANNOT_TARGET_REMOVED_COMBINED_AUDIENCE = 128;
447
448    // Combined audience ID is invalid.
449    INVALID_COMBINED_AUDIENCE_ID = 129;
450
451    // Can not target removed combined audience.
452    CANNOT_TARGET_REMOVED_CUSTOM_AUDIENCE = 130;
453
454    // Range represented by hotel check-in date's start date and end date
455    // overlaps with an existing criterion.
456    HOTEL_CHECK_IN_DATE_RANGE_OVERLAPS_WITH_EXISTING_CRITERION = 131;
457
458    // Start date is earlier than earliest allowed value of yesterday UTC.
459    HOTEL_CHECK_IN_DATE_RANGE_START_DATE_TOO_EARLY = 132;
460
461    // End date later is than latest allowed day of 330 days in the future UTC.
462    HOTEL_CHECK_IN_DATE_RANGE_END_DATE_TOO_LATE = 133;
463
464    // Start date is after end date.
465    HOTEL_CHECK_IN_DATE_RANGE_REVERSED = 134;
466
467    // Broad match modifier (BMM) keywords can no longer be created. See
468    // https://ads-developers.googleblog.com/2021/06/broad-match-modifier-upcoming-changes.html.
469    BROAD_MATCH_MODIFIER_KEYWORD_NOT_ALLOWED = 135;
470
471    // Only one audience is allowed in an asset group.
472    ONE_AUDIENCE_ALLOWED_PER_ASSET_GROUP = 136;
473
474    // Audience is not supported for the specified campaign type.
475    AUDIENCE_NOT_ELIGIBLE_FOR_CAMPAIGN_TYPE = 137;
476
477    // Audience is not allowed to attach when use_audience_grouped bit is set to
478    // false.
479    AUDIENCE_NOT_ALLOWED_TO_ATTACH_WHEN_AUDIENCE_GROUPED_SET_TO_FALSE = 138;
480
481    // Targeting is not allowed for Customer Match lists as per Customer Match
482    // policy. See
483    // https://support.google.com/google-ads/answer/6299717.
484    CANNOT_TARGET_CUSTOMER_MATCH_USER_LIST = 139;
485
486    // Cannot create a negative keyword list criterion with a shared set that
487    // does not exist.
488    NEGATIVE_KEYWORD_SHARED_SET_DOES_NOT_EXIST = 145;
489
490    // Cannot create a negative keyword list with deleted shared set.
491    CANNOT_ADD_REMOVED_NEGATIVE_KEYWORD_SHARED_SET = 146;
492
493    // Can only have one Negative Keyword List per account.
494    CANNOT_HAVE_MULTIPLE_NEGATIVE_KEYWORD_LIST_PER_ACCOUNT = 147;
495
496    // Only allowlisted customers can add criteria of this type.
497    CUSTOMER_CANNOT_ADD_CRITERION_OF_THIS_TYPE = 149;
498
499    // Targeting for Similar audiences is not supported, since this feature has
500    // been deprecated. See
501    // https://support.google.com/google-ads/answer/12463119 to learn more.
502    CANNOT_TARGET_SIMILAR_USER_LIST = 151;
503
504    // Audience segment criteria cannot be added when use_audience_grouped bit
505    // is set.
506    CANNOT_ADD_AUDIENCE_SEGMENT_CRITERION_WHEN_AUDIENCE_GROUPED_IS_SET = 152;
507
508    // Only one audience is allowed in an ad group.
509    ONE_AUDIENCE_ALLOWED_PER_AD_GROUP = 153;
510
511    // Invalid detailed demographics criterion.
512    INVALID_DETAILED_DEMOGRAPHIC = 154;
513  }
514}
515