image_error.proto 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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.v11.errors;
  16. option csharp_namespace = "Google.Ads.GoogleAds.V11.Errors";
  17. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v11/errors;errors";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "ImageErrorProto";
  20. option java_package = "com.google.ads.googleads.v11.errors";
  21. option objc_class_prefix = "GAA";
  22. option php_namespace = "Google\\Ads\\GoogleAds\\V11\\Errors";
  23. option ruby_package = "Google::Ads::GoogleAds::V11::Errors";
  24. // Proto file describing image errors.
  25. // Container for enum describing possible image errors.
  26. message ImageErrorEnum {
  27. // Enum describing possible image errors.
  28. enum ImageError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // The image is not valid.
  34. INVALID_IMAGE = 2;
  35. // The image could not be stored.
  36. STORAGE_ERROR = 3;
  37. // There was a problem with the request.
  38. BAD_REQUEST = 4;
  39. // The image is not of legal dimensions.
  40. UNEXPECTED_SIZE = 5;
  41. // Animated image are not permitted.
  42. ANIMATED_NOT_ALLOWED = 6;
  43. // Animation is too long.
  44. ANIMATION_TOO_LONG = 7;
  45. // There was an error on the server.
  46. SERVER_ERROR = 8;
  47. // Image cannot be in CMYK color format.
  48. CMYK_JPEG_NOT_ALLOWED = 9;
  49. // Flash images are not permitted.
  50. FLASH_NOT_ALLOWED = 10;
  51. // Flash images must support clickTag.
  52. FLASH_WITHOUT_CLICKTAG = 11;
  53. // A flash error has occurred after fixing the click tag.
  54. FLASH_ERROR_AFTER_FIXING_CLICK_TAG = 12;
  55. // Unacceptable visual effects.
  56. ANIMATED_VISUAL_EFFECT = 13;
  57. // There was a problem with the flash image.
  58. FLASH_ERROR = 14;
  59. // Incorrect image layout.
  60. LAYOUT_PROBLEM = 15;
  61. // There was a problem reading the image file.
  62. PROBLEM_READING_IMAGE_FILE = 16;
  63. // There was an error storing the image.
  64. ERROR_STORING_IMAGE = 17;
  65. // The aspect ratio of the image is not allowed.
  66. ASPECT_RATIO_NOT_ALLOWED = 18;
  67. // Flash cannot have network objects.
  68. FLASH_HAS_NETWORK_OBJECTS = 19;
  69. // Flash cannot have network methods.
  70. FLASH_HAS_NETWORK_METHODS = 20;
  71. // Flash cannot have a Url.
  72. FLASH_HAS_URL = 21;
  73. // Flash cannot use mouse tracking.
  74. FLASH_HAS_MOUSE_TRACKING = 22;
  75. // Flash cannot have a random number.
  76. FLASH_HAS_RANDOM_NUM = 23;
  77. // Ad click target cannot be '_self'.
  78. FLASH_SELF_TARGETS = 24;
  79. // GetUrl method should only use '_blank'.
  80. FLASH_BAD_GETURL_TARGET = 25;
  81. // Flash version is not supported.
  82. FLASH_VERSION_NOT_SUPPORTED = 26;
  83. // Flash movies need to have hard coded click URL or clickTAG
  84. FLASH_WITHOUT_HARD_CODED_CLICK_URL = 27;
  85. // Uploaded flash file is corrupted.
  86. INVALID_FLASH_FILE = 28;
  87. // Uploaded flash file can be parsed, but the click tag can not be fixed
  88. // properly.
  89. FAILED_TO_FIX_CLICK_TAG_IN_FLASH = 29;
  90. // Flash movie accesses network resources
  91. FLASH_ACCESSES_NETWORK_RESOURCES = 30;
  92. // Flash movie attempts to call external javascript code
  93. FLASH_EXTERNAL_JS_CALL = 31;
  94. // Flash movie attempts to call flash system commands
  95. FLASH_EXTERNAL_FS_CALL = 32;
  96. // Image file is too large.
  97. FILE_TOO_LARGE = 33;
  98. // Image data is too large.
  99. IMAGE_DATA_TOO_LARGE = 34;
  100. // Error while processing the image.
  101. IMAGE_PROCESSING_ERROR = 35;
  102. // Image is too small.
  103. IMAGE_TOO_SMALL = 36;
  104. // Input was invalid.
  105. INVALID_INPUT = 37;
  106. // There was a problem reading the image file.
  107. PROBLEM_READING_FILE = 38;
  108. // Image constraints are violated, but details like ASPECT_RATIO_NOT_ALLOWED
  109. // can't be provided. This happens when asset spec contains more than one
  110. // constraint and different criteria of different constraints are violated.
  111. IMAGE_CONSTRAINTS_VIOLATED = 39;
  112. // Image format is not allowed.
  113. FORMAT_NOT_ALLOWED = 40;
  114. }
  115. }