Enum Class AdUnit
The AdFormat describes where the ad is located in your app.
public enum AdUnit
extends Enum<AdUnit>
java.lang.Object ← java.lang.Enum<AdUnit> ← io.justtrack.AdUnit
All Implemented Interfaces
Serializable
, Comparable<AdUnit>
, Constable
Enum.EnumDesc<E extends Enum<E>>
Enum Constants
AppOpen
public static final AdUnit AppOpen
Ad format that appears when users open or switch back to your app. Ad overlays loading screen.
Banner
public static final AdUnit Banner
A basic ad format that appears at the top and bottom of the device screen.
Interstitial
public static final AdUnit Interstitial
Full-page ads appear at natural breaks and transitions, such as level completion.
Native
public static final AdUnit Native
Customizable ad format that matches the look and feel of your app. Ads appear inline with app content.
Rewarded
public static final AdUnit Rewarded
Ads reward users for watching short videos and interacting with playable ads and surveys.
RewardedInterstitial
public static final AdUnit RewardedInterstitial
Full-page ad format that rewards users for viewing ads during natural breaks or transitions.
Methods
valueOf
public static AdUnit valueOf(String name)
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
Parameters
Name | Description |
---|---|
name | the name of the enum constant to be returned. |
Returns
the enum constant with the specified name
Throws
Name | Description |
---|---|
IllegalArgumentException | if this enum class has no constant with the specified name |
NullPointerException | if the argument is null |
values
public static AdUnit[] values()
Returns an array containing the constants of this enum class, in the order they are declared.
Returns
an array containing the constants of this enum class, in the order they are declared