AdFormat

public enum AdFormat


Format of the ad being requested.

Summary

Enum Values

APP_OPEN_AD

App open ad format.

BANNER

Banner ad format.

INTERSTITIAL

Interstitial ad format.

NATIVE

Native ad format.

REWARDED

Rewarded ad format.

REWARDED_INTERSTITIAL

Rewarded interstitial ad format.

Public fields

final int

Public methods

static @Nullable AdFormat
getAdFormat(int adType)

Gets the AdFormat from an integer value.

int

Gets the integer value of the ad format.

static AdFormat

Returns the enum constant of this type with the specified name.

static AdFormat[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

APP_OPEN_AD

AdFormat AdFormat.APP_OPEN_AD

App open ad format.

AdFormat AdFormat.BANNER

Banner ad format.

INTERSTITIAL

AdFormat AdFormat.INTERSTITIAL

Interstitial ad format.

NATIVE

AdFormat AdFormat.NATIVE

Native ad format.

REWARDED

AdFormat AdFormat.REWARDED

Rewarded ad format.

REWARDED_INTERSTITIAL

AdFormat AdFormat.REWARDED_INTERSTITIAL

Rewarded interstitial ad format.

Public fields

value

public final int value

Public methods

getAdFormat

public static @Nullable AdFormat getAdFormat(int adType)

Gets the AdFormat from an integer value.

getValue

public int getValue()

Gets the integer value of the ad format.

valueOf

public static AdFormat valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
AdFormat

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

public static AdFormat[] values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
AdFormat[]

an array containing the constants of this enum type, in the order they're declared