1 // Copyright 2018 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.v0.errors;
20 option csharp_namespace = "Google.Ads.GoogleAds.V0.Errors";
21 option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors";
22 option java_multiple_files = true;
23 option java_outer_classname = "AdErrorProto";
24 option java_package = "com.google.ads.googleads.v0.errors";
25 option objc_class_prefix = "GAA";
26 option php_namespace = "Google\\Ads\\GoogleAds\\V0\\Errors";
27 option ruby_package = "Google::Ads::GoogleAds::V0::Errors";
29 // Proto file describing ad errors.
31 // Container for enum describing possible ad errors.
33 // Enum describing possible ad errors.
38 // The received error code is not known in this version.
41 // Ad customizers are not supported for ad type.
42 AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE = 2;
44 // Estimating character sizes the string is too long.
45 APPROXIMATELY_TOO_LONG = 3;
47 // Estimating character sizes the string is too short.
48 APPROXIMATELY_TOO_SHORT = 4;
50 // There is a problem with the snippet.
53 // Cannot modify an ad.
56 // business name and url cannot be set at the same time
57 CANNOT_SET_BUSINESS_NAME_IF_URL_SET = 7;
59 // The specified field is incompatible with this ad's type or settings.
62 // Cannot set field when originAdId is set.
63 CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET = 9;
65 // Cannot set field when an existing ad id is set for sharing.
66 CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING = 10;
68 // Cannot set allowFlexibleColor false if no color is provided by user.
69 CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE = 11;
71 // When user select native, no color control is allowed because we will
72 // always respect publisher color for native format serving.
73 CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING = 12;
75 // Cannot specify a url for the ad type
78 // Cannot specify a tracking or mobile url without also setting final urls
79 CANNOT_SET_WITHOUT_FINAL_URLS = 14;
81 // Cannot specify a legacy url and a final url simultaneously
82 CANNOT_SET_WITH_FINAL_URLS = 15;
84 // Cannot specify a legacy url and a tracking url template simultaneously in
86 CANNOT_SET_WITH_TRACKING_URL_TEMPLATE = 16;
88 // Cannot specify a urls in UrlData and in template fields simultaneously.
89 CANNOT_SET_WITH_URL_DATA = 17;
91 // This operator cannot be used with a subclass of Ad.
92 CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR = 18;
94 // Customer is not approved for mobile ads.
95 CUSTOMER_NOT_APPROVED_MOBILEADS = 19;
97 // Customer is not approved for 3PAS richmedia ads.
98 CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS = 20;
100 // Customer is not approved for 3PAS redirect richmedia (Ad Exchange) ads.
101 CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS = 21;
103 // Not an eligible customer
104 CUSTOMER_NOT_ELIGIBLE = 22;
106 // Customer is not eligible for updating beacon url
107 CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL = 23;
109 // There already exists an ad with the same dimensions in the union.
110 DIMENSION_ALREADY_IN_UNION = 24;
112 // Ad's dimension must be set before setting union dimension.
113 DIMENSION_MUST_BE_SET = 25;
115 // Ad's dimension must be included in the union dimensions.
116 DIMENSION_NOT_IN_UNION = 26;
118 // Display Url cannot be specified (applies to Ad Exchange Ads)
119 DISPLAY_URL_CANNOT_BE_SPECIFIED = 27;
121 // Telephone number contains invalid characters or invalid format. Please
122 // re-enter your number using digits (0-9), dashes (-), and parentheses
124 DOMESTIC_PHONE_NUMBER_FORMAT = 28;
126 // Emergency telephone numbers are not allowed. Please enter a valid
127 // domestic phone number to connect customers to your business.
128 EMERGENCY_PHONE_NUMBER = 29;
130 // A required field was not specified or is an empty string.
133 // A feed attribute referenced in an ad customizer tag is not in the ad
134 // customizer mapping for the feed.
135 FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID = 31;
137 // The ad customizer field mapping for the feed attribute does not match the
138 // expected field type.
139 FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH = 32;
141 // The use of ad customizer tags in the ad text is disallowed. Details in
143 ILLEGAL_AD_CUSTOMIZER_TAG_USE = 33;
145 // Tags of the form {PH_x}, where x is a number, are disallowed in ad text.
146 ILLEGAL_TAG_USE = 34;
148 // The dimensions of the ad are specified or derived in multiple ways and
149 // are not consistent.
150 INCONSISTENT_DIMENSIONS = 35;
152 // The status cannot differ among template ads of the same union.
153 INCONSISTENT_STATUS_IN_TEMPLATE_UNION = 36;
155 // The length of the string is not valid.
156 INCORRECT_LENGTH = 37;
158 // The ad is ineligible for upgrade.
159 INELIGIBLE_FOR_UPGRADE = 38;
161 // User cannot create mobile ad for countries targeted in specified
163 INVALID_AD_ADDRESS_CAMPAIGN_TARGET = 39;
165 // Invalid Ad type. A specific type of Ad is required.
166 INVALID_AD_TYPE = 40;
168 // Headline, description or phone cannot be present when creating mobile
170 INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE = 41;
172 // Image cannot be present when creating mobile text ad.
173 INVALID_ATTRIBUTES_FOR_MOBILE_TEXT = 42;
175 // Invalid call to action text.
176 INVALID_CALL_TO_ACTION_TEXT = 43;
178 // Invalid character in URL.
179 INVALID_CHARACTER_FOR_URL = 44;
181 // Creative's country code is not valid.
182 INVALID_COUNTRY_CODE = 45;
184 // Invalid use of Dynamic Search Ads tags ({lpurl} etc.)
185 INVALID_DSA_URL_TAG = 46;
187 // Invalid use of Expanded Dynamic Search Ads tags ({lpurl} etc.)
188 INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 47;
190 // An input error whose real reason was not properly mapped (should not
194 // An invalid markup language was entered.
195 INVALID_MARKUP_LANGUAGE = 49;
197 // An invalid mobile carrier was entered.
198 INVALID_MOBILE_CARRIER = 50;
200 // Specified mobile carriers target a country not targeted by the campaign.
201 INVALID_MOBILE_CARRIER_TARGET = 51;
203 // Wrong number of elements for given element type
204 INVALID_NUMBER_OF_ELEMENTS = 52;
206 // The format of the telephone number is incorrect. Please re-enter the
207 // number using the correct format.
208 INVALID_PHONE_NUMBER_FORMAT = 53;
210 // The certified vendor format id is incorrect.
211 INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID = 54;
213 // The template ad data contains validation errors.
214 INVALID_TEMPLATE_DATA = 55;
216 // The template field doesn't have have the correct type.
217 INVALID_TEMPLATE_ELEMENT_FIELD_TYPE = 56;
219 // Invalid template id.
220 INVALID_TEMPLATE_ID = 57;
222 // After substituting replacement strings, the line is too wide.
225 // The feed referenced must have ad customizer mapping to be used in a
227 MISSING_AD_CUSTOMIZER_MAPPING = 59;
229 // Missing address component in template element address field.
230 MISSING_ADDRESS_COMPONENT = 60;
232 // An ad name must be entered.
233 MISSING_ADVERTISEMENT_NAME = 61;
235 // Business name must be entered.
236 MISSING_BUSINESS_NAME = 62;
238 // Description (line 2) must be entered.
239 MISSING_DESCRIPTION1 = 63;
241 // Description (line 3) must be entered.
242 MISSING_DESCRIPTION2 = 64;
244 // The destination url must contain at least one tag (e.g. {lpurl})
245 MISSING_DESTINATION_URL_TAG = 65;
247 // The tracking url template of ExpandedDynamicSearchAd must contain at
248 // least one tag. (e.g. {lpurl})
249 MISSING_LANDING_PAGE_URL_TAG = 66;
251 // A valid dimension must be specified for this ad.
252 MISSING_DIMENSION = 67;
254 // A display URL must be entered.
255 MISSING_DISPLAY_URL = 68;
257 // Headline must be entered.
258 MISSING_HEADLINE = 69;
260 // A height must be entered.
263 // An image must be entered.
266 // Marketing image or product videos are required.
267 MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS = 72;
269 // The markup language in which your site is written must be entered.
270 MISSING_MARKUP_LANGUAGES = 73;
272 // A mobile carrier must be entered.
273 MISSING_MOBILE_CARRIER = 74;
275 // Phone number must be entered.
278 // Missing required template fields
279 MISSING_REQUIRED_TEMPLATE_FIELDS = 76;
281 // Missing a required field value
282 MISSING_TEMPLATE_FIELD_VALUE = 77;
284 // The ad must have text.
287 // A visible URL must be entered.
288 MISSING_VISIBLE_URL = 79;
290 // A width must be entered.
293 // Only 1 feed can be used as the source of ad customizer substitutions in a
295 MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED = 81;
297 // TempAdUnionId must be use when adding template ads.
298 MUST_USE_TEMP_AD_UNION_ID_ON_ADD = 82;
300 // The string has too many characters.
303 // The string has too few characters.
306 // Ad union dimensions cannot change for saved ads.
307 UNION_DIMENSIONS_CANNOT_CHANGE = 85;
309 // Address component is not {country, lat, lng}.
310 UNKNOWN_ADDRESS_COMPONENT = 86;
312 // Unknown unique field name
313 UNKNOWN_FIELD_NAME = 87;
315 // Unknown unique name (template element type specifier)
316 UNKNOWN_UNIQUE_NAME = 88;
318 // Unsupported ad dimension
319 UNSUPPORTED_DIMENSIONS = 89;
321 // URL starts with an invalid scheme.
322 URL_INVALID_SCHEME = 90;
324 // URL ends with an invalid top-level domain name.
325 URL_INVALID_TOP_LEVEL_DOMAIN = 91;
327 // URL contains illegal characters.
330 // URL must contain a host name.
333 // URL not equivalent during upgrade.
334 URL_NOT_EQUIVALENT = 94;
336 // URL host name too long to be stored as visible URL (applies to Ad
338 URL_HOST_NAME_TOO_LONG = 95;
340 // URL must start with a scheme.
343 // URL should end in a valid domain extension, such as .com or .net.
344 URL_NO_TOP_LEVEL_DOMAIN = 97;
346 // URL must not end with a path.
347 URL_PATH_NOT_ALLOWED = 98;
349 // URL must not specify a port.
350 URL_PORT_NOT_ALLOWED = 99;
352 // URL must not contain a query.
353 URL_QUERY_NOT_ALLOWED = 100;
355 // A url scheme is not allowed in front of tag in dest url (e.g.
357 URL_SCHEME_BEFORE_DSA_TAG = 101;
359 // A url scheme is not allowed in front of tag in tracking url template
360 // (e.g. http://{lpurl})
361 URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 102;
363 // The user does not have permissions to create a template ad for the given
365 USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE = 103;
367 // Expandable setting is inconsistent/wrong. For example, an AdX ad is
368 // invalid if it has a expandable vendor format but no expanding directions
369 // specified, or expanding directions is specified, but the vendor format is
371 INCONSISTENT_EXPANDABLE_SETTINGS = 104;
374 INVALID_FORMAT = 105;
376 // The text of this field did not match a pattern of allowed values.
377 INVALID_FIELD_TEXT = 106;
379 // Template element is mising
380 ELEMENT_NOT_PRESENT = 107;
382 // Error occurred during image processing
385 // The value is not within the valid range
386 VALUE_NOT_IN_RANGE = 109;
388 // Template element field is not present
389 FIELD_NOT_PRESENT = 110;
391 // Address is incomplete
392 ADDRESS_NOT_COMPLETE = 111;
395 ADDRESS_INVALID = 112;
397 // Error retrieving specified video
398 VIDEO_RETRIEVAL_ERROR = 113;
400 // Error processing audio
403 // Display URL is incorrect for YouTube PYV ads
404 INVALID_YOUTUBE_DISPLAY_URL = 115;
406 // Too many product Images in GmailAd
407 TOO_MANY_PRODUCT_IMAGES = 116;
409 // Too many product Videos in GmailAd
410 TOO_MANY_PRODUCT_VIDEOS = 117;
412 // The device preference is not compatible with the ad type
413 INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE = 118;
415 // Call tracking is not supported for specified country.
416 CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 119;
418 // Carrier specific short number is not allowed.
419 CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 120;
421 // Specified phone number type is disallowed.
422 DISALLOWED_NUMBER_TYPE = 121;
424 // Phone number not supported for country.
425 PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 122;
427 // Phone number not supported with call tracking enabled for country.
428 PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 123;
430 // Premium rate phone number is not allowed.
431 PREMIUM_RATE_NUMBER_NOT_ALLOWED = 124;
433 // Vanity phone number is not allowed.
434 VANITY_PHONE_NUMBER_NOT_ALLOWED = 125;
436 // Invalid call conversion type id.
437 INVALID_CALL_CONVERSION_TYPE_ID = 126;
439 // Cannot disable call conversion and set conversion type id.
440 CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID = 127;
442 // Cannot set path2 without path1.
443 CANNOT_SET_PATH2_WITHOUT_PATH1 = 128;
445 // Missing domain name in campaign setting when adding expanded dynamic
447 MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME = 129;
449 // The associated ad is not compatible with restriction type.
450 INCOMPATIBLE_WITH_RESTRICTION_TYPE = 130;