asset_error.proto 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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.v10.errors;
  16. option csharp_namespace = "Google.Ads.GoogleAds.V10.Errors";
  17. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v10/errors;errors";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "AssetErrorProto";
  20. option java_package = "com.google.ads.googleads.v10.errors";
  21. option objc_class_prefix = "GAA";
  22. option php_namespace = "Google\\Ads\\GoogleAds\\V10\\Errors";
  23. option ruby_package = "Google::Ads::GoogleAds::V10::Errors";
  24. // Proto file describing asset errors.
  25. // Container for enum describing possible asset errors.
  26. message AssetErrorEnum {
  27. // Enum describing possible asset errors.
  28. enum AssetError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // The customer is not is not on the allow-list for this asset type.
  34. CUSTOMER_NOT_ON_ALLOWLIST_FOR_ASSET_TYPE = 13;
  35. // Assets are duplicated across operations.
  36. DUPLICATE_ASSET = 3;
  37. // The asset name is duplicated, either across operations or with an
  38. // existing asset.
  39. DUPLICATE_ASSET_NAME = 4;
  40. // The Asset.asset_data oneof is empty.
  41. ASSET_DATA_IS_MISSING = 5;
  42. // The asset has a name which is different from an existing duplicate that
  43. // represents the same content.
  44. CANNOT_MODIFY_ASSET_NAME = 6;
  45. // The field cannot be set for this asset type.
  46. FIELD_INCOMPATIBLE_WITH_ASSET_TYPE = 7;
  47. // Call to action must come from the list of supported values.
  48. INVALID_CALL_TO_ACTION_TEXT = 8;
  49. // A lead form asset is created with an invalid combination of input fields.
  50. LEAD_FORM_INVALID_FIELDS_COMBINATION = 9;
  51. // Lead forms require that the Terms of Service have been agreed to before
  52. // mutates can be executed.
  53. LEAD_FORM_MISSING_AGREEMENT = 10;
  54. // Asset status is invalid in this operation.
  55. INVALID_ASSET_STATUS = 11;
  56. // The field cannot be modified by this asset type.
  57. FIELD_CANNOT_BE_MODIFIED_FOR_ASSET_TYPE = 12;
  58. // Ad schedules for the same asset cannot overlap.
  59. SCHEDULES_CANNOT_OVERLAP = 14;
  60. // Cannot set both percent off and money amount off fields of promotion
  61. // asset.
  62. PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF = 15;
  63. // Cannot set both promotion code and orders over amount fields of promotion
  64. // asset.
  65. PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 16;
  66. // The field has too many decimal places specified.
  67. TOO_MANY_DECIMAL_PLACES_SPECIFIED = 17;
  68. // Duplicate assets across operations, which have identical Asset.asset_data
  69. // oneof, cannot have different asset level fields for asset types which are
  70. // deduped.
  71. DUPLICATE_ASSETS_WITH_DIFFERENT_FIELD_VALUE = 18;
  72. // Carrier specific short number is not allowed.
  73. CALL_CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 19;
  74. // Customer consent required for call recording Terms of Service.
  75. CALL_CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 20;
  76. // The type of the specified phone number is not allowed.
  77. CALL_DISALLOWED_NUMBER_TYPE = 21;
  78. // If the default call_conversion_action is not used, the customer must have
  79. // a ConversionAction with the same id and the ConversionAction must be call
  80. // conversion type.
  81. CALL_INVALID_CONVERSION_ACTION = 22;
  82. // The country code of the phone number is invalid.
  83. CALL_INVALID_COUNTRY_CODE = 23;
  84. // The format of the phone number is incorrect.
  85. CALL_INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 24;
  86. // The input phone number is not a valid phone number.
  87. CALL_INVALID_PHONE_NUMBER = 25;
  88. // The phone number is not supported for country.
  89. CALL_PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 26;
  90. // Premium rate phone number is not allowed.
  91. CALL_PREMIUM_RATE_NUMBER_NOT_ALLOWED = 27;
  92. // Vanity phone number is not allowed.
  93. CALL_VANITY_PHONE_NUMBER_NOT_ALLOWED = 28;
  94. // PriceOffering cannot have the same value for header and description.
  95. PRICE_HEADER_SAME_AS_DESCRIPTION = 29;
  96. // AppId is invalid.
  97. MOBILE_APP_INVALID_APP_ID = 30;
  98. // Invalid App download URL in final URLs.
  99. MOBILE_APP_INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL = 31;
  100. // Asset name is required for the asset type.
  101. NAME_REQUIRED_FOR_ASSET_TYPE = 32;
  102. // Legacy qualifying questions cannot be in the same Lead Form as
  103. // custom questions.
  104. LEAD_FORM_LEGACY_QUALIFYING_QUESTIONS_DISALLOWED = 33;
  105. // Unique name is required for this asset type.
  106. NAME_CONFLICT_FOR_ASSET_TYPE = 34;
  107. }
  108. }