• 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.v16.errors;
18
19option csharp_namespace = "Google.Ads.GoogleAds.V16.Errors";
20option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v16/errors;errors";
21option java_multiple_files = true;
22option java_outer_classname = "AdErrorProto";
23option java_package = "com.google.ads.googleads.v16.errors";
24option objc_class_prefix = "GAA";
25option php_namespace = "Google\\Ads\\GoogleAds\\V16\\Errors";
26option ruby_package = "Google::Ads::GoogleAds::V16::Errors";
27
28// Proto file describing ad errors.
29
30// Container for enum describing possible ad errors.
31message AdErrorEnum {
32  // Enum describing possible ad errors.
33  enum AdError {
34    // Enum unspecified.
35    UNSPECIFIED = 0;
36
37    // The received error code is not known in this version.
38    UNKNOWN = 1;
39
40    // Ad customizers are not supported for ad type.
41    AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE = 2;
42
43    // Estimating character sizes the string is too long.
44    APPROXIMATELY_TOO_LONG = 3;
45
46    // Estimating character sizes the string is too short.
47    APPROXIMATELY_TOO_SHORT = 4;
48
49    // There is a problem with the snippet.
50    BAD_SNIPPET = 5;
51
52    // Cannot modify an ad.
53    CANNOT_MODIFY_AD = 6;
54
55    // business name and url cannot be set at the same time
56    CANNOT_SET_BUSINESS_NAME_IF_URL_SET = 7;
57
58    // The specified field is incompatible with this ad's type or settings.
59    CANNOT_SET_FIELD = 8;
60
61    // Cannot set field when originAdId is set.
62    CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET = 9;
63
64    // Cannot set field when an existing ad id is set for sharing.
65    CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING = 10;
66
67    // Cannot set allowFlexibleColor false if no color is provided by user.
68    CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE = 11;
69
70    // When user select native, no color control is allowed because we will
71    // always respect publisher color for native format serving.
72    CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING = 12;
73
74    // Cannot specify a url for the ad type
75    CANNOT_SET_URL = 13;
76
77    // Cannot specify a tracking or mobile url without also setting final urls
78    CANNOT_SET_WITHOUT_FINAL_URLS = 14;
79
80    // Cannot specify a legacy url and a final url simultaneously
81    CANNOT_SET_WITH_FINAL_URLS = 15;
82
83    // Cannot specify a urls in UrlData and in template fields simultaneously.
84    CANNOT_SET_WITH_URL_DATA = 17;
85
86    // This operator cannot be used with a subclass of Ad.
87    CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR = 18;
88
89    // Customer is not approved for mobile ads.
90    CUSTOMER_NOT_APPROVED_MOBILEADS = 19;
91
92    // Customer is not approved for 3PAS richmedia ads.
93    CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS = 20;
94
95    // Customer is not approved for 3PAS redirect richmedia (Ad Exchange) ads.
96    CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS = 21;
97
98    // Not an eligible customer
99    CUSTOMER_NOT_ELIGIBLE = 22;
100
101    // Customer is not eligible for updating beacon url
102    CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL = 23;
103
104    // There already exists an ad with the same dimensions in the union.
105    DIMENSION_ALREADY_IN_UNION = 24;
106
107    // Ad's dimension must be set before setting union dimension.
108    DIMENSION_MUST_BE_SET = 25;
109
110    // Ad's dimension must be included in the union dimensions.
111    DIMENSION_NOT_IN_UNION = 26;
112
113    // Display Url cannot be specified (applies to Ad Exchange Ads)
114    DISPLAY_URL_CANNOT_BE_SPECIFIED = 27;
115
116    // Telephone number contains invalid characters or invalid format.
117    // Re-enter your number using digits (0-9), dashes (-), and parentheses
118    // only.
119    DOMESTIC_PHONE_NUMBER_FORMAT = 28;
120
121    // Emergency telephone numbers are not allowed. Enter a valid
122    // domestic phone number to connect customers to your business.
123    EMERGENCY_PHONE_NUMBER = 29;
124
125    // A required field was not specified or is an empty string.
126    EMPTY_FIELD = 30;
127
128    // A feed attribute referenced in an ad customizer tag is not in the ad
129    // customizer mapping for the feed.
130    FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID = 31;
131
132    // The ad customizer field mapping for the feed attribute does not match the
133    // expected field type.
134    FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH = 32;
135
136    // The use of ad customizer tags in the ad text is disallowed. Details in
137    // trigger.
138    ILLEGAL_AD_CUSTOMIZER_TAG_USE = 33;
139
140    // Tags of the form {PH_x}, where x is a number, are disallowed in ad text.
141    ILLEGAL_TAG_USE = 34;
142
143    // The dimensions of the ad are specified or derived in multiple ways and
144    // are not consistent.
145    INCONSISTENT_DIMENSIONS = 35;
146
147    // The status cannot differ among template ads of the same union.
148    INCONSISTENT_STATUS_IN_TEMPLATE_UNION = 36;
149
150    // The length of the string is not valid.
151    INCORRECT_LENGTH = 37;
152
153    // The ad is ineligible for upgrade.
154    INELIGIBLE_FOR_UPGRADE = 38;
155
156    // User cannot create mobile ad for countries targeted in specified
157    // campaign.
158    INVALID_AD_ADDRESS_CAMPAIGN_TARGET = 39;
159
160    // Invalid Ad type. A specific type of Ad is required.
161    INVALID_AD_TYPE = 40;
162
163    // Headline, description or phone cannot be present when creating mobile
164    // image ad.
165    INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE = 41;
166
167    // Image cannot be present when creating mobile text ad.
168    INVALID_ATTRIBUTES_FOR_MOBILE_TEXT = 42;
169
170    // Invalid call to action text.
171    INVALID_CALL_TO_ACTION_TEXT = 43;
172
173    // Invalid character in URL.
174    INVALID_CHARACTER_FOR_URL = 44;
175
176    // Creative's country code is not valid.
177    INVALID_COUNTRY_CODE = 45;
178
179    // Invalid use of Expanded Dynamic Search Ads tags ({lpurl} etc.)
180    INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 47;
181
182    // An input error whose real reason was not properly mapped (should not
183    // happen).
184    INVALID_INPUT = 48;
185
186    // An invalid markup language was entered.
187    INVALID_MARKUP_LANGUAGE = 49;
188
189    // An invalid mobile carrier was entered.
190    INVALID_MOBILE_CARRIER = 50;
191
192    // Specified mobile carriers target a country not targeted by the campaign.
193    INVALID_MOBILE_CARRIER_TARGET = 51;
194
195    // Wrong number of elements for given element type
196    INVALID_NUMBER_OF_ELEMENTS = 52;
197
198    // The format of the telephone number is incorrect. Re-enter the
199    // number using the correct format.
200    INVALID_PHONE_NUMBER_FORMAT = 53;
201
202    // The certified vendor format id is incorrect.
203    INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID = 54;
204
205    // The template ad data contains validation errors.
206    INVALID_TEMPLATE_DATA = 55;
207
208    // The template field doesn't have have the correct type.
209    INVALID_TEMPLATE_ELEMENT_FIELD_TYPE = 56;
210
211    // Invalid template id.
212    INVALID_TEMPLATE_ID = 57;
213
214    // After substituting replacement strings, the line is too wide.
215    LINE_TOO_WIDE = 58;
216
217    // The feed referenced must have ad customizer mapping to be used in a
218    // customizer tag.
219    MISSING_AD_CUSTOMIZER_MAPPING = 59;
220
221    // Missing address component in template element address field.
222    MISSING_ADDRESS_COMPONENT = 60;
223
224    // An ad name must be entered.
225    MISSING_ADVERTISEMENT_NAME = 61;
226
227    // Business name must be entered.
228    MISSING_BUSINESS_NAME = 62;
229
230    // Description (line 2) must be entered.
231    MISSING_DESCRIPTION1 = 63;
232
233    // Description (line 3) must be entered.
234    MISSING_DESCRIPTION2 = 64;
235
236    // The destination url must contain at least one tag (for example, {lpurl})
237    MISSING_DESTINATION_URL_TAG = 65;
238
239    // The tracking url template of ExpandedDynamicSearchAd must contain at
240    // least one tag. (for example, {lpurl})
241    MISSING_LANDING_PAGE_URL_TAG = 66;
242
243    // A valid dimension must be specified for this ad.
244    MISSING_DIMENSION = 67;
245
246    // A display URL must be entered.
247    MISSING_DISPLAY_URL = 68;
248
249    // Headline must be entered.
250    MISSING_HEADLINE = 69;
251
252    // A height must be entered.
253    MISSING_HEIGHT = 70;
254
255    // An image must be entered.
256    MISSING_IMAGE = 71;
257
258    // Marketing image or product videos are required.
259    MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS = 72;
260
261    // The markup language in which your site is written must be entered.
262    MISSING_MARKUP_LANGUAGES = 73;
263
264    // A mobile carrier must be entered.
265    MISSING_MOBILE_CARRIER = 74;
266
267    // Phone number must be entered.
268    MISSING_PHONE = 75;
269
270    // Missing required template fields
271    MISSING_REQUIRED_TEMPLATE_FIELDS = 76;
272
273    // Missing a required field value
274    MISSING_TEMPLATE_FIELD_VALUE = 77;
275
276    // The ad must have text.
277    MISSING_TEXT = 78;
278
279    // A visible URL must be entered.
280    MISSING_VISIBLE_URL = 79;
281
282    // A width must be entered.
283    MISSING_WIDTH = 80;
284
285    // Only 1 feed can be used as the source of ad customizer substitutions in a
286    // single ad.
287    MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED = 81;
288
289    // TempAdUnionId must be use when adding template ads.
290    MUST_USE_TEMP_AD_UNION_ID_ON_ADD = 82;
291
292    // The string has too many characters.
293    TOO_LONG = 83;
294
295    // The string has too few characters.
296    TOO_SHORT = 84;
297
298    // Ad union dimensions cannot change for saved ads.
299    UNION_DIMENSIONS_CANNOT_CHANGE = 85;
300
301    // Address component is not {country, lat, lng}.
302    UNKNOWN_ADDRESS_COMPONENT = 86;
303
304    // Unknown unique field name
305    UNKNOWN_FIELD_NAME = 87;
306
307    // Unknown unique name (template element type specifier)
308    UNKNOWN_UNIQUE_NAME = 88;
309
310    // Unsupported ad dimension
311    UNSUPPORTED_DIMENSIONS = 89;
312
313    // URL starts with an invalid scheme.
314    URL_INVALID_SCHEME = 90;
315
316    // URL ends with an invalid top-level domain name.
317    URL_INVALID_TOP_LEVEL_DOMAIN = 91;
318
319    // URL contains illegal characters.
320    URL_MALFORMED = 92;
321
322    // URL must contain a host name.
323    URL_NO_HOST = 93;
324
325    // URL not equivalent during upgrade.
326    URL_NOT_EQUIVALENT = 94;
327
328    // URL host name too long to be stored as visible URL (applies to Ad
329    // Exchange ads)
330    URL_HOST_NAME_TOO_LONG = 95;
331
332    // URL must start with a scheme.
333    URL_NO_SCHEME = 96;
334
335    // URL should end in a valid domain extension, such as .com or .net.
336    URL_NO_TOP_LEVEL_DOMAIN = 97;
337
338    // URL must not end with a path.
339    URL_PATH_NOT_ALLOWED = 98;
340
341    // URL must not specify a port.
342    URL_PORT_NOT_ALLOWED = 99;
343
344    // URL must not contain a query.
345    URL_QUERY_NOT_ALLOWED = 100;
346
347    // A url scheme is not allowed in front of tag in tracking url template
348    // (for example, http://{lpurl})
349    URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 102;
350
351    // The user does not have permissions to create a template ad for the given
352    // template.
353    USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE = 103;
354
355    // Expandable setting is inconsistent/wrong. For example, an AdX ad is
356    // invalid if it has a expandable vendor format but no expanding directions
357    // specified, or expanding directions is specified, but the vendor format is
358    // not expandable.
359    INCONSISTENT_EXPANDABLE_SETTINGS = 104;
360
361    // Format is invalid
362    INVALID_FORMAT = 105;
363
364    // The text of this field did not match a pattern of allowed values.
365    INVALID_FIELD_TEXT = 106;
366
367    // Template element is mising
368    ELEMENT_NOT_PRESENT = 107;
369
370    // Error occurred during image processing
371    IMAGE_ERROR = 108;
372
373    // The value is not within the valid range
374    VALUE_NOT_IN_RANGE = 109;
375
376    // Template element field is not present
377    FIELD_NOT_PRESENT = 110;
378
379    // Address is incomplete
380    ADDRESS_NOT_COMPLETE = 111;
381
382    // Invalid address
383    ADDRESS_INVALID = 112;
384
385    // Error retrieving specified video
386    VIDEO_RETRIEVAL_ERROR = 113;
387
388    // Error processing audio
389    AUDIO_ERROR = 114;
390
391    // Display URL is incorrect for YouTube PYV ads
392    INVALID_YOUTUBE_DISPLAY_URL = 115;
393
394    // Too many product Images in GmailAd
395    TOO_MANY_PRODUCT_IMAGES = 116;
396
397    // Too many product Videos in GmailAd
398    TOO_MANY_PRODUCT_VIDEOS = 117;
399
400    // The device preference is not compatible with the ad type
401    INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE = 118;
402
403    // Call tracking is not supported for specified country.
404    CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 119;
405
406    // Carrier specific short number is not allowed.
407    CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 120;
408
409    // Specified phone number type is disallowed.
410    DISALLOWED_NUMBER_TYPE = 121;
411
412    // Phone number not supported for country.
413    PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 122;
414
415    // Phone number not supported with call tracking enabled for country.
416    PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 123;
417
418    // Premium rate phone number is not allowed.
419    PREMIUM_RATE_NUMBER_NOT_ALLOWED = 124;
420
421    // Vanity phone number is not allowed.
422    VANITY_PHONE_NUMBER_NOT_ALLOWED = 125;
423
424    // Invalid call conversion type id.
425    INVALID_CALL_CONVERSION_TYPE_ID = 126;
426
427    // Cannot disable call conversion and set conversion type id.
428    CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID = 127;
429
430    // Cannot set path2 without path1.
431    CANNOT_SET_PATH2_WITHOUT_PATH1 = 128;
432
433    // Missing domain name in campaign setting when adding expanded dynamic
434    // search ad.
435    MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME = 129;
436
437    // The associated ad is not compatible with restriction type.
438    INCOMPATIBLE_WITH_RESTRICTION_TYPE = 130;
439
440    // Consent for call recording is required for creating/updating call only
441    // ads. See https://support.google.com/google-ads/answer/7412639.
442    CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 131;
443
444    // Either an image or a media bundle is required in a display upload ad.
445    MISSING_IMAGE_OR_MEDIA_BUNDLE = 132;
446
447    // The display upload product type is not supported in this campaign.
448    PRODUCT_TYPE_NOT_SUPPORTED_IN_THIS_CAMPAIGN = 133;
449
450    // The default value of an ad placeholder can not be the empty string.
451    PLACEHOLDER_CANNOT_HAVE_EMPTY_DEFAULT_VALUE = 134;
452
453    // Ad placeholders with countdown functions must not have a default value.
454    PLACEHOLDER_COUNTDOWN_FUNCTION_CANNOT_HAVE_DEFAULT_VALUE = 135;
455
456    // A previous ad placeholder that had a default value was found which means
457    // that all (non-countdown) placeholders must have a default value. This
458    // ad placeholder does not have a default value.
459    PLACEHOLDER_DEFAULT_VALUE_MISSING = 136;
460
461    // A previous ad placeholder that did not have a default value was found
462    // which means that no placeholders may have a default value. This
463    // ad placeholder does have a default value.
464    UNEXPECTED_PLACEHOLDER_DEFAULT_VALUE = 137;
465
466    // Two ad customizers may not be directly adjacent in an ad text. They must
467    // be separated by at least one character.
468    AD_CUSTOMIZERS_MAY_NOT_BE_ADJACENT = 138;
469
470    // The ad is not associated with any enabled AdGroupAd, and cannot be
471    // updated.
472    UPDATING_AD_WITH_NO_ENABLED_ASSOCIATION = 139;
473
474    // Call Ad verification url and final url don't have same domain.
475    CALL_AD_VERIFICATION_URL_FINAL_URL_DOES_NOT_HAVE_SAME_DOMAIN = 140;
476
477    // Final url and verification url cannot both be empty for call ads.
478    CALL_AD_FINAL_URL_AND_VERIFICATION_URL_CANNOT_BOTH_BE_EMPTY = 154;
479
480    // Too many ad customizers in one asset.
481    TOO_MANY_AD_CUSTOMIZERS = 141;
482
483    // The ad customizer tag is recognized, but the format is invalid.
484    INVALID_AD_CUSTOMIZER_FORMAT = 142;
485
486    // Customizer tags cannot be nested.
487    NESTED_AD_CUSTOMIZER_SYNTAX = 143;
488
489    // The ad customizer syntax used in the ad is not supported.
490    UNSUPPORTED_AD_CUSTOMIZER_SYNTAX = 144;
491
492    // There exists unpaired brace in the ad customizer tag.
493    UNPAIRED_BRACE_IN_AD_CUSTOMIZER_TAG = 145;
494
495    // More than one type of countdown tag exists among all text lines.
496    MORE_THAN_ONE_COUNTDOWN_TAG_TYPE_EXISTS = 146;
497
498    // Date time in the countdown tag is invalid.
499    DATE_TIME_IN_COUNTDOWN_TAG_IS_INVALID = 147;
500
501    // Date time in the countdown tag is in the past.
502    DATE_TIME_IN_COUNTDOWN_TAG_IS_PAST = 148;
503
504    // Cannot recognize the ad customizer tag.
505    UNRECOGNIZED_AD_CUSTOMIZER_TAG_FOUND = 149;
506
507    // Customizer type forbidden for this field.
508    CUSTOMIZER_TYPE_FORBIDDEN_FOR_FIELD = 150;
509
510    // Customizer attribute name is invalid.
511    INVALID_CUSTOMIZER_ATTRIBUTE_NAME = 151;
512
513    // App store value does not match the value of the app store in the app
514    // specified in the campaign.
515    STORE_MISMATCH = 152;
516
517    // Missing required image aspect ratio.
518    MISSING_REQUIRED_IMAGE_ASPECT_RATIO = 153;
519
520    // Aspect ratios mismatch between different assets.
521    MISMATCHED_ASPECT_RATIOS = 155;
522
523    // Images must be unique between different carousel card assets.
524    DUPLICATE_IMAGE_ACROSS_CAROUSEL_CARDS = 156;
525  }
526}
527