1 // Copyright 2018 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.v0.errors;
20 option csharp_namespace = "Google.Ads.GoogleAds.V0.Errors";
21 option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors";
22 option java_multiple_files = true;
23 option java_outer_classname = "ImageErrorProto";
24 option java_package = "com.google.ads.googleads.v0.errors";
25 option objc_class_prefix = "GAA";
26 option php_namespace = "Google\\Ads\\GoogleAds\\V0\\Errors";
27 option ruby_package = "Google::Ads::GoogleAds::V0::Errors";
29 // Proto file describing image errors.
31 // Container for enum describing possible image errors.
32 message ImageErrorEnum {
33 // Enum describing possible image errors.
38 // The received error code is not known in this version.
41 // The image is not valid.
44 // The image could not be stored.
47 // There was a problem with the request.
50 // The image is not of legal dimensions.
53 // Animated image are not permitted.
54 ANIMATED_NOT_ALLOWED = 6;
56 // Animation is too long.
57 ANIMATION_TOO_LONG = 7;
59 // There was an error on the server.
62 // Image cannot be in CMYK color format.
63 CMYK_JPEG_NOT_ALLOWED = 9;
65 // Flash images are not permitted.
66 FLASH_NOT_ALLOWED = 10;
68 // Flash images must support clickTag.
69 FLASH_WITHOUT_CLICKTAG = 11;
71 // A flash error has occurred after fixing the click tag.
72 FLASH_ERROR_AFTER_FIXING_CLICK_TAG = 12;
74 // Unacceptable visual effects.
75 ANIMATED_VISUAL_EFFECT = 13;
77 // There was a problem with the flash image.
80 // Incorrect image layout.
83 // There was a problem reading the image file.
84 PROBLEM_READING_IMAGE_FILE = 16;
86 // There was an error storing the image.
87 ERROR_STORING_IMAGE = 17;
89 // The aspect ratio of the image is not allowed.
90 ASPECT_RATIO_NOT_ALLOWED = 18;
92 // Flash cannot have network objects.
93 FLASH_HAS_NETWORK_OBJECTS = 19;
95 // Flash cannot have network methods.
96 FLASH_HAS_NETWORK_METHODS = 20;
98 // Flash cannot have a Url.
101 // Flash cannot use mouse tracking.
102 FLASH_HAS_MOUSE_TRACKING = 22;
104 // Flash cannot have a random number.
105 FLASH_HAS_RANDOM_NUM = 23;
107 // Ad click target cannot be '_self'.
108 FLASH_SELF_TARGETS = 24;
110 // GetUrl method should only use '_blank'.
111 FLASH_BAD_GETURL_TARGET = 25;
113 // Flash version is not supported.
114 FLASH_VERSION_NOT_SUPPORTED = 26;
116 // Flash movies need to have hard coded click URL or clickTAG
117 FLASH_WITHOUT_HARD_CODED_CLICK_URL = 27;
119 // Uploaded flash file is corrupted.
120 INVALID_FLASH_FILE = 28;
122 // Uploaded flash file can be parsed, but the click tag can not be fixed
124 FAILED_TO_FIX_CLICK_TAG_IN_FLASH = 29;
126 // Flash movie accesses network resources
127 FLASH_ACCESSES_NETWORK_RESOURCES = 30;
129 // Flash movie attempts to call external javascript code
130 FLASH_EXTERNAL_JS_CALL = 31;
132 // Flash movie attempts to call flash system commands
133 FLASH_EXTERNAL_FS_CALL = 32;
135 // Image file is too large.
138 // Image data is too large.
139 IMAGE_DATA_TOO_LARGE = 34;
141 // Error while processing the image.
142 IMAGE_PROCESSING_ERROR = 35;
144 // Image is too small.
145 IMAGE_TOO_SMALL = 36;
147 // Input was invalid.
150 // There was a problem reading the image file.
151 PROBLEM_READING_FILE = 38;