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 = "ExtensionSettingErrorProto";
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 extension setting validation errors.
32 // Container for enum describing validation errors of extension settings.
33 message ExtensionSettingErrorEnum {
34 // Enum describing possible extension setting errors.
35 enum ExtensionSettingError {
39 // The received error code is not known in this version.
42 // A platform restriction was provided without input extensions or existing
44 EXTENSIONS_REQUIRED = 2;
46 // The provided feed type does not correspond to the provided extensions.
47 FEED_TYPE_EXTENSION_TYPE_MISMATCH = 3;
49 // The provided feed type cannot be used.
50 INVALID_FEED_TYPE = 4;
52 // The provided feed type cannot be used at the customer level.
53 INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING = 5;
55 // Cannot change a feed item field on a CREATE operation.
56 CANNOT_CHANGE_FEED_ITEM_ON_CREATE = 6;
58 // Cannot update an extension that is not already in this setting.
59 CANNOT_UPDATE_NEWLY_CREATED_EXTENSION = 7;
61 // There is no existing AdGroupExtensionSetting for this type.
62 NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE = 8;
64 // There is no existing CampaignExtensionSetting for this type.
65 NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE = 9;
67 // There is no existing CustomerExtensionSetting for this type.
68 NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE = 10;
70 // The AdGroupExtensionSetting already exists. UPDATE should be used to
71 // modify the existing AdGroupExtensionSetting.
72 AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS = 11;
74 // The CampaignExtensionSetting already exists. UPDATE should be used to
75 // modify the existing CampaignExtensionSetting.
76 CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS = 12;
78 // The CustomerExtensionSetting already exists. UPDATE should be used to
79 // modify the existing CustomerExtensionSetting.
80 CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS = 13;
82 // An active ad group feed already exists for this place holder type.
83 AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 14;
85 // An active campaign feed already exists for this place holder type.
86 CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 15;
88 // An active customer feed already exists for this place holder type.
89 CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 16;
91 // Value is not within the accepted range.
92 VALUE_OUT_OF_RANGE = 17;
94 // Cannot simultaneously set specified field with final urls.
95 CANNOT_SET_FIELD_WITH_FINAL_URLS = 18;
97 // Must set field with final urls.
98 FINAL_URLS_NOT_SET = 19;
100 // Phone number for a call extension is invalid.
101 INVALID_PHONE_NUMBER = 20;
103 // Phone number for a call extension is not supported for the given country
105 PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 21;
107 // A carrier specific number in short format is not allowed for call
109 CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 22;
111 // Premium rate numbers are not allowed for call extensions.
112 PREMIUM_RATE_NUMBER_NOT_ALLOWED = 23;
114 // Phone number type for a call extension is not allowed.
115 DISALLOWED_NUMBER_TYPE = 24;
117 // Phone number for a call extension does not meet domestic format
119 INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 25;
121 // Vanity phone numbers (i.e. those including letters) are not allowed for
123 VANITY_PHONE_NUMBER_NOT_ALLOWED = 26;
125 // Country code provided for a call extension is invalid.
126 INVALID_COUNTRY_CODE = 27;
128 // Call conversion type id provided for a call extension is invalid.
129 INVALID_CALL_CONVERSION_TYPE_ID = 28;
131 // For a call extension, the customer is not whitelisted for call tracking.
132 CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING = 29;
134 // Call tracking is not supported for the given country for a call
136 CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 30;
138 // App id provided for an app extension is invalid.
141 // Quotation marks present in the review text for a review extension.
142 QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 32;
144 // Hyphen character present in the review text for a review extension.
145 HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 33;
147 // A blacklisted review source name or url was provided for a review
149 REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE = 34;
151 // Review source name should not be found in the review text.
152 SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 35;
154 // Field must be set.
157 // Inconsistent currency codes.
158 INCONSISTENT_CURRENCY_CODES = 37;
160 // Price extension cannot have duplicated headers.
161 PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 38;
163 // Price item cannot have duplicated header and description.
164 PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 39;
166 // Price extension has too few items
167 PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 40;
169 // Price extension has too many items
170 PRICE_EXTENSION_HAS_TOO_MANY_ITEMS = 41;
172 // The input value is not currently supported.
173 UNSUPPORTED_VALUE = 42;
175 // Unknown or unsupported device preference.
176 INVALID_DEVICE_PREFERENCE = 43;
178 // Invalid feed item schedule end time (i.e., endHour = 24 and
180 INVALID_SCHEDULE_END = 45;
182 // Date time zone does not match the account's time zone.
183 DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 47;
185 // Overlapping feed item schedule times (e.g., 7-10AM and 8-11AM) are not
187 OVERLAPPING_SCHEDULES_NOT_ALLOWED = 48;
189 // Feed item schedule end time must be after start time.
190 SCHEDULE_END_NOT_AFTER_START = 49;
192 // There are too many feed item schedules per day.
193 TOO_MANY_SCHEDULES_PER_DAY = 50;
195 // Cannot edit the same extension feed item more than once in the same
197 DUPLICATE_EXTENSION_FEED_ITEM_EDIT = 51;
199 // Invalid structured snippet header.
200 INVALID_SNIPPETS_HEADER = 52;
202 // Phone number with call tracking enabled is not supported for the
203 // specified country.
204 PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 53;
206 // The targeted adgroup must belong to the targeted campaign.
207 CAMPAIGN_TARGETING_MISMATCH = 54;
209 // The feed used by the ExtensionSetting is removed and cannot be operated
210 // on. Remove the ExtensionSetting to allow a new one to be created using
212 CANNOT_OPERATE_ON_REMOVED_FEED = 55;
214 // The ExtensionFeedItem type is required for this operation.
215 EXTENSION_TYPE_REQUIRED = 56;
217 // The matching function that links the extension feed to the customer,
218 // campaign, or ad group is not compatible with the ExtensionSetting
220 INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION = 57;
222 // Start date must be before end date.
223 START_DATE_AFTER_END_DATE = 58;
225 // Input price is not in a valid format.
226 INVALID_PRICE_FORMAT = 59;
228 // The promotion time is invalid.
229 PROMOTION_INVALID_TIME = 60;
231 // Cannot set both percent discount and money discount fields.
232 PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT = 61;
234 // Cannot set both promotion code and orders over amount fields.
235 PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 62;
237 // This field has too many decimal places specified.
238 TOO_MANY_DECIMAL_PLACES_SPECIFIED = 63;
240 // The language code is not valid.
241 INVALID_LANGUAGE_CODE = 64;
243 // The language is not supported.
244 UNSUPPORTED_LANGUAGE = 65;
246 // Customer hasn't consented for call recording, which is required for
247 // adding/updating call extensions.
248 CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 66;
250 // The UPDATE operation does not specify any fields other than the resource
251 // name in the update mask.
252 EXTENSION_SETTING_UPDATE_IS_A_NOOP = 67;