Enum Constant and Description |
---|
DISPLAY
Requests image or rich media (strongly recommended)
|
IMAGE
Requests any image format
|
MULTI_AD_FORMAT_INTERSTITIAL
Requests a multi-ad format interstitial (display or video)
|
NATIVE
Requests a native ad.
|
REWARDED
Requests a video banner.
|
RICH_MEDIA
Requests rich media.
|
VAST
Requests a Vast video banner.
|
VIDEO
Requests a video banner.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRequestString()
The string to be used in a SOMA request
|
java.lang.String |
getType() |
static AdType |
getValueForString(java.lang.String string) |
boolean |
isVideo() |
static AdType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AdType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdType DISPLAY
public static final AdType IMAGE
public static final AdType RICH_MEDIA
public static final AdType VIDEO
public static final AdType MULTI_AD_FORMAT_INTERSTITIAL
public static final AdType NATIVE
public static final AdType REWARDED
public static final AdType VAST
public static AdType[] values()
for (AdType c : AdType.values()) System.out.println(c);
public static AdType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getType()
public java.lang.String getRequestString()
public boolean isVideo()
public static AdType getValueForString(java.lang.String string)