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