media_upload_error.proto 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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 = "MediaUploadErrorProto";
  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 media uploading errors.
  25. // Container for enum describing possible media uploading errors.
  26. message MediaUploadErrorEnum {
  27. // Enum describing possible media uploading errors.
  28. enum MediaUploadError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // The uploaded file is too big.
  34. FILE_TOO_BIG = 2;
  35. // Image data is unparseable.
  36. UNPARSEABLE_IMAGE = 3;
  37. // Animated images are not allowed.
  38. ANIMATED_IMAGE_NOT_ALLOWED = 4;
  39. // The image or media bundle format is not allowed.
  40. FORMAT_NOT_ALLOWED = 5;
  41. // Cannot reference URL external to the media bundle.
  42. EXTERNAL_URL_NOT_ALLOWED = 6;
  43. // HTML5 ad is trying to reference an asset not in .ZIP file.
  44. INVALID_URL_REFERENCE = 7;
  45. // The media bundle contains no primary entry.
  46. MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY = 8;
  47. // Animation has disallowed visual effects.
  48. ANIMATED_VISUAL_EFFECT = 9;
  49. // Animation longer than the allowed 30 second limit.
  50. ANIMATION_TOO_LONG = 10;
  51. // The aspect ratio of the image does not match the expected aspect ratios
  52. // provided in the asset spec.
  53. ASPECT_RATIO_NOT_ALLOWED = 11;
  54. // Audio files are not allowed in bundle.
  55. AUDIO_NOT_ALLOWED_IN_MEDIA_BUNDLE = 12;
  56. // CMYK jpegs are not supported.
  57. CMYK_JPEG_NOT_ALLOWED = 13;
  58. // Flash movies are not allowed.
  59. FLASH_NOT_ALLOWED = 14;
  60. // The frame rate of the video is higher than the allowed 5fps.
  61. FRAME_RATE_TOO_HIGH = 15;
  62. // ZIP file from Google Web Designer is not published.
  63. GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED = 16;
  64. // Image constraints are violated, but more details (like
  65. // DIMENSIONS_NOT_ALLOWED or ASPECT_RATIO_NOT_ALLOWED) can not be provided.
  66. // This happens when asset spec contains more than one constraint and
  67. // criteria of different constraints are violated.
  68. IMAGE_CONSTRAINTS_VIOLATED = 17;
  69. // Media bundle data is unrecognizable.
  70. INVALID_MEDIA_BUNDLE = 18;
  71. // There was a problem with one or more of the media bundle entries.
  72. INVALID_MEDIA_BUNDLE_ENTRY = 19;
  73. // The asset has an invalid mime type.
  74. INVALID_MIME_TYPE = 20;
  75. // The media bundle contains an invalid asset path.
  76. INVALID_PATH = 21;
  77. // Image has layout problem.
  78. LAYOUT_PROBLEM = 22;
  79. // An asset had a URL reference that is malformed per RFC 1738 convention.
  80. MALFORMED_URL = 23;
  81. // The uploaded media bundle format is not allowed.
  82. MEDIA_BUNDLE_NOT_ALLOWED = 24;
  83. // The media bundle is not compatible with the asset spec product type.
  84. // (For example, Gmail, dynamic remarketing, etc.)
  85. MEDIA_BUNDLE_NOT_COMPATIBLE_TO_PRODUCT_TYPE = 25;
  86. // A bundle being uploaded that is incompatible with multiple assets for
  87. // different reasons.
  88. MEDIA_BUNDLE_REJECTED_BY_MULTIPLE_ASSET_SPECS = 26;
  89. // The media bundle contains too many files.
  90. TOO_MANY_FILES_IN_MEDIA_BUNDLE = 27;
  91. // Google Web Designer not created for "Google Ads" environment.
  92. UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT = 28;
  93. // Unsupported HTML5 feature in HTML5 asset.
  94. UNSUPPORTED_HTML5_FEATURE = 29;
  95. // URL in HTML5 entry is not SSL compliant.
  96. URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT = 30;
  97. // Video file name is longer than the 50 allowed characters.
  98. VIDEO_FILE_NAME_TOO_LONG = 31;
  99. // Multiple videos with same name in a bundle.
  100. VIDEO_MULTIPLE_FILES_WITH_SAME_NAME = 32;
  101. // Videos are not allowed in media bundle.
  102. VIDEO_NOT_ALLOWED_IN_MEDIA_BUNDLE = 33;
  103. // This type of media cannot be uploaded through the Google Ads API.
  104. CANNOT_UPLOAD_MEDIA_TYPE_THROUGH_API = 34;
  105. // The dimensions of the image are not allowed.
  106. DIMENSIONS_NOT_ALLOWED = 35;
  107. }
  108. }