public enum ImageErrorReason extends Enum<ImageErrorReason>
Java class for ImageError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ImageError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="INVALID_IMAGE"/>
<enumeration value="INVALID_SIZE"/>
<enumeration value="UNEXPECTED_SIZE"/>
<enumeration value="OVERLAY_SIZE_TOO_LARGE"/>
<enumeration value="ANIMATED_NOT_ALLOWED"/>
<enumeration value="ANIMATION_TOO_LONG"/>
<enumeration value="CMYK_JPEG_NOT_ALLOWED"/>
<enumeration value="FLASH_NOT_ALLOWED"/>
<enumeration value="FLASH_WITHOUT_CLICKTAG"/>
<enumeration value="ANIMATED_VISUAL_EFFECT"/>
<enumeration value="FLASH_ERROR"/>
<enumeration value="LAYOUT_PROBLEM"/>
<enumeration value="FLASH_HAS_NETWORK_OBJECTS"/>
<enumeration value="FLASH_HAS_NETWORK_METHODS"/>
<enumeration value="FLASH_HAS_URL"/>
<enumeration value="FLASH_HAS_MOUSE_TRACKING"/>
<enumeration value="FLASH_HAS_RANDOM_NUM"/>
<enumeration value="FLASH_SELF_TARGETS"/>
<enumeration value="FLASH_BAD_GETURL_TARGET"/>
<enumeration value="FLASH_VERSION_NOT_SUPPORTED"/>
<enumeration value="FILE_TOO_LARGE"/>
<enumeration value="SYSTEM_ERROR"/>
<enumeration value="UNEXPECTED_PRIMARY_ASSET_DENSITY"/>
<enumeration value="DUPLICATE_ASSET_DENSITY"/>
<enumeration value="MISSING_DEFAULT_ASSET"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
ANIMATED_NOT_ALLOWED
Animated images are not allowed.
|
ANIMATED_VISUAL_EFFECT
Animated visual effect is not allowed.
|
ANIMATION_TOO_LONG
Animation length exceeded the allowed policy limit.
|
CMYK_JPEG_NOT_ALLOWED
Images in CMYK color formats are not allowed.
|
DUPLICATE_ASSET_DENSITY
Two or more assets have the same image density.
|
FILE_TOO_LARGE
The uploaded file is too large.
|
FLASH_BAD_GETURL_TARGET
Flash file contains a bad geturl target.
|
FLASH_ERROR
An error was encountered in the flash file.
|
FLASH_HAS_MOUSE_TRACKING
Flash files with mouse tracking are not allowed.
|
FLASH_HAS_NETWORK_METHODS
Flash files with network methods are not allowed.
|
FLASH_HAS_NETWORK_OBJECTS
Flash files with network objects are not allowed.
|
FLASH_HAS_RANDOM_NUM
Flash files that generate or use random numbers are not allowed.
|
FLASH_HAS_URL
Flash files with hard-coded click thru URLs are not allowed.
|
FLASH_NOT_ALLOWED
Flash files are not allowed.
|
FLASH_SELF_TARGETS
Flash files with self targets are not allowed.
|
FLASH_VERSION_NOT_SUPPORTED
Flash or ActionScript version in the submitted file is not supported.
|
FLASH_WITHOUT_CLICKTAG
If
BaseFlashCreative.clickTagRequired is true, then the flash
file is required to have a click tag embedded in it. |
INVALID_IMAGE
The file's format is invalid.
|
INVALID_SIZE
Size.width and Size.height cannot be negative. |
LAYOUT_PROBLEM
Incorrect image layout.
|
MISSING_DEFAULT_ASSET
The creative does not contain a primary asset.
|
OVERLAY_SIZE_TOO_LARGE
The size of the asset is larger than that of the overlay creative.
|
SYSTEM_ERROR
A system error occurred, please try again.
|
UNEXPECTED_PRIMARY_ASSET_DENSITY
The image density for a primary asset was not one of the expected image densities.
|
UNEXPECTED_SIZE
The actual image size does not match the expected image size.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static ImageErrorReason |
fromValue(String v) |
String |
value() |
static ImageErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImageErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageErrorReason INVALID_IMAGE
public static final ImageErrorReason INVALID_SIZE
Size.width and Size.height cannot be negative.public static final ImageErrorReason UNEXPECTED_SIZE
public static final ImageErrorReason OVERLAY_SIZE_TOO_LARGE
public static final ImageErrorReason ANIMATED_NOT_ALLOWED
public static final ImageErrorReason ANIMATION_TOO_LONG
public static final ImageErrorReason CMYK_JPEG_NOT_ALLOWED
public static final ImageErrorReason FLASH_NOT_ALLOWED
public static final ImageErrorReason FLASH_WITHOUT_CLICKTAG
BaseFlashCreative.clickTagRequired is true, then the flash
file is required to have a click tag embedded in it.public static final ImageErrorReason ANIMATED_VISUAL_EFFECT
public static final ImageErrorReason FLASH_ERROR
public static final ImageErrorReason LAYOUT_PROBLEM
public static final ImageErrorReason FLASH_HAS_NETWORK_OBJECTS
public static final ImageErrorReason FLASH_HAS_NETWORK_METHODS
public static final ImageErrorReason FLASH_HAS_URL
public static final ImageErrorReason FLASH_HAS_MOUSE_TRACKING
public static final ImageErrorReason FLASH_HAS_RANDOM_NUM
public static final ImageErrorReason FLASH_SELF_TARGETS
public static final ImageErrorReason FLASH_BAD_GETURL_TARGET
public static final ImageErrorReason FLASH_VERSION_NOT_SUPPORTED
public static final ImageErrorReason FILE_TOO_LARGE
public static final ImageErrorReason SYSTEM_ERROR
public static final ImageErrorReason UNEXPECTED_PRIMARY_ASSET_DENSITY
public static final ImageErrorReason DUPLICATE_ASSET_DENSITY
public static final ImageErrorReason MISSING_DEFAULT_ASSET
public static final ImageErrorReason UNKNOWN
public static ImageErrorReason[] values()
for (ImageErrorReason c : ImageErrorReason.values()) System.out.println(c);
public static ImageErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static ImageErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.