extension_setting_error.proto 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. // Copyright 2022 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. syntax = "proto3";
  15. package google.ads.googleads.v12.errors;
  16. option csharp_namespace = "Google.Ads.GoogleAds.V12.Errors";
  17. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/errors;errors";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "ExtensionSettingErrorProto";
  20. option java_package = "com.google.ads.googleads.v12.errors";
  21. option objc_class_prefix = "GAA";
  22. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Errors";
  23. option ruby_package = "Google::Ads::GoogleAds::V12::Errors";
  24. // Proto file describing extension setting validation errors.
  25. // Container for enum describing validation errors of extension settings.
  26. message ExtensionSettingErrorEnum {
  27. // Enum describing possible extension setting errors.
  28. enum ExtensionSettingError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // A platform restriction was provided without input extensions or existing
  34. // extensions.
  35. EXTENSIONS_REQUIRED = 2;
  36. // The provided feed type does not correspond to the provided extensions.
  37. FEED_TYPE_EXTENSION_TYPE_MISMATCH = 3;
  38. // The provided feed type cannot be used.
  39. INVALID_FEED_TYPE = 4;
  40. // The provided feed type cannot be used at the customer level.
  41. INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING = 5;
  42. // Cannot change a feed item field on a CREATE operation.
  43. CANNOT_CHANGE_FEED_ITEM_ON_CREATE = 6;
  44. // Cannot update an extension that is not already in this setting.
  45. CANNOT_UPDATE_NEWLY_CREATED_EXTENSION = 7;
  46. // There is no existing AdGroupExtensionSetting for this type.
  47. NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE = 8;
  48. // There is no existing CampaignExtensionSetting for this type.
  49. NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE = 9;
  50. // There is no existing CustomerExtensionSetting for this type.
  51. NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE = 10;
  52. // The AdGroupExtensionSetting already exists. UPDATE should be used to
  53. // modify the existing AdGroupExtensionSetting.
  54. AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS = 11;
  55. // The CampaignExtensionSetting already exists. UPDATE should be used to
  56. // modify the existing CampaignExtensionSetting.
  57. CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS = 12;
  58. // The CustomerExtensionSetting already exists. UPDATE should be used to
  59. // modify the existing CustomerExtensionSetting.
  60. CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS = 13;
  61. // An active ad group feed already exists for this place holder type.
  62. AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 14;
  63. // An active campaign feed already exists for this place holder type.
  64. CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 15;
  65. // An active customer feed already exists for this place holder type.
  66. CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 16;
  67. // Value is not within the accepted range.
  68. VALUE_OUT_OF_RANGE = 17;
  69. // Cannot simultaneously set specified field with final urls.
  70. CANNOT_SET_FIELD_WITH_FINAL_URLS = 18;
  71. // Must set field with final urls.
  72. FINAL_URLS_NOT_SET = 19;
  73. // Phone number for a call extension is invalid.
  74. INVALID_PHONE_NUMBER = 20;
  75. // Phone number for a call extension is not supported for the given country
  76. // code.
  77. PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 21;
  78. // A carrier specific number in short format is not allowed for call
  79. // extensions.
  80. CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 22;
  81. // Premium rate numbers are not allowed for call extensions.
  82. PREMIUM_RATE_NUMBER_NOT_ALLOWED = 23;
  83. // Phone number type for a call extension is not allowed.
  84. DISALLOWED_NUMBER_TYPE = 24;
  85. // Phone number for a call extension does not meet domestic format
  86. // requirements.
  87. INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 25;
  88. // Vanity phone numbers (for example, those including letters) are not
  89. // allowed for call extensions.
  90. VANITY_PHONE_NUMBER_NOT_ALLOWED = 26;
  91. // Country code provided for a call extension is invalid.
  92. INVALID_COUNTRY_CODE = 27;
  93. // Call conversion type id provided for a call extension is invalid.
  94. INVALID_CALL_CONVERSION_TYPE_ID = 28;
  95. // For a call extension, the customer is not on the allow-list for call
  96. // tracking.
  97. CUSTOMER_NOT_IN_ALLOWLIST_FOR_CALLTRACKING = 69;
  98. // Call tracking is not supported for the given country for a call
  99. // extension.
  100. CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 30;
  101. // App id provided for an app extension is invalid.
  102. INVALID_APP_ID = 31;
  103. // Quotation marks present in the review text for a review extension.
  104. QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 32;
  105. // Hyphen character present in the review text for a review extension.
  106. HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 33;
  107. // A blocked review source name or url was provided for a review
  108. // extension.
  109. REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE = 34;
  110. // Review source name should not be found in the review text.
  111. SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 35;
  112. // Field must be set.
  113. MISSING_FIELD = 36;
  114. // Inconsistent currency codes.
  115. INCONSISTENT_CURRENCY_CODES = 37;
  116. // Price extension cannot have duplicated headers.
  117. PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 38;
  118. // Price item cannot have duplicated header and description.
  119. PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 39;
  120. // Price extension has too few items
  121. PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 40;
  122. // Price extension has too many items
  123. PRICE_EXTENSION_HAS_TOO_MANY_ITEMS = 41;
  124. // The input value is not currently supported.
  125. UNSUPPORTED_VALUE = 42;
  126. // Unknown or unsupported device preference.
  127. INVALID_DEVICE_PREFERENCE = 43;
  128. // Invalid feed item schedule end time (for example, endHour = 24 and
  129. // endMinute != 0).
  130. INVALID_SCHEDULE_END = 45;
  131. // Date time zone does not match the account's time zone.
  132. DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 47;
  133. // Overlapping feed item schedule times (for example, 7-10AM and 8-11AM) are
  134. // not allowed.
  135. OVERLAPPING_SCHEDULES_NOT_ALLOWED = 48;
  136. // Feed item schedule end time must be after start time.
  137. SCHEDULE_END_NOT_AFTER_START = 49;
  138. // There are too many feed item schedules per day.
  139. TOO_MANY_SCHEDULES_PER_DAY = 50;
  140. // Cannot edit the same extension feed item more than once in the same
  141. // request.
  142. DUPLICATE_EXTENSION_FEED_ITEM_EDIT = 51;
  143. // Invalid structured snippet header.
  144. INVALID_SNIPPETS_HEADER = 52;
  145. // Phone number with call tracking enabled is not supported for the
  146. // specified country.
  147. PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 53;
  148. // The targeted adgroup must belong to the targeted campaign.
  149. CAMPAIGN_TARGETING_MISMATCH = 54;
  150. // The feed used by the ExtensionSetting is removed and cannot be operated
  151. // on. Remove the ExtensionSetting to allow a new one to be created using
  152. // an active feed.
  153. CANNOT_OPERATE_ON_REMOVED_FEED = 55;
  154. // The ExtensionFeedItem type is required for this operation.
  155. EXTENSION_TYPE_REQUIRED = 56;
  156. // The matching function that links the extension feed to the customer,
  157. // campaign, or ad group is not compatible with the ExtensionSetting
  158. // services.
  159. INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION = 57;
  160. // Start date must be before end date.
  161. START_DATE_AFTER_END_DATE = 58;
  162. // Input price is not in a valid format.
  163. INVALID_PRICE_FORMAT = 59;
  164. // The promotion time is invalid.
  165. PROMOTION_INVALID_TIME = 60;
  166. // Cannot set both percent discount and money discount fields.
  167. PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT = 61;
  168. // Cannot set both promotion code and orders over amount fields.
  169. PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 62;
  170. // This field has too many decimal places specified.
  171. TOO_MANY_DECIMAL_PLACES_SPECIFIED = 63;
  172. // The language code is not valid.
  173. INVALID_LANGUAGE_CODE = 64;
  174. // The language is not supported.
  175. UNSUPPORTED_LANGUAGE = 65;
  176. // Customer hasn't consented for call recording, which is required for
  177. // adding/updating call extensions. See
  178. // https://support.google.com/google-ads/answer/7412639.
  179. CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 66;
  180. // The UPDATE operation does not specify any fields other than the resource
  181. // name in the update mask.
  182. EXTENSION_SETTING_UPDATE_IS_A_NOOP = 67;
  183. // The extension contains text which has been prohibited on policy grounds.
  184. DISALLOWED_TEXT = 68;
  185. }
  186. }