public enum AdFormat
- Object
- Enum<AdFormat>
- AdFormat
ImplementsComparable<AdFormat>
The ad formats supported by the modern advertising API. Not every
AdProvider supports every format; query
AdManager.isSupported(AdFormat) before requesting one.Enum constants
BANNER | A small rectangular ad that lives inside the component hierarchy. |
INTERSTITIAL | A full screen ad shown at a natural break (e.g. between game levels). |
REWARDED | An opt-in full screen ad that grants the user a reward for watching. |
REWARDED_INTERSTITIAL | A full screen ad shown on a transition that may grant a reward but is not strictly opt-in. |
APP_OPEN | A full screen ad shown when the application is brought to the foreground. |
NATIVE | An ad whose assets are rendered by the application using its own components. |
Methods
public static AdFormat[] values() | |
public static AdFormat valueOf(String name) |
Inherited methods
Enum constant details
BANNER
BANNERA small rectangular ad that lives inside the component hierarchy. See
BannerAd.INTERSTITIAL
INTERSTITIALA full screen ad shown at a natural break (e.g. between game levels). See
InterstitialAd.REWARDED
REWARDEDAn opt-in full screen ad that grants the user a reward for watching. See
RewardedAd.REWARDED_INTERSTITIAL
REWARDED_INTERSTITIALA full screen ad shown on a transition that may grant a reward but is not strictly opt-in.
See
RewardedInterstitialAd.APP_OPEN
APP_OPENA full screen ad shown when the application is brought to the foreground. See
AppOpenAd.NATIVE
NATIVEAn ad whose assets are rendered by the application using its own components. See
NativeAd.Method details
values
public static AdFormat[] values()valueOf
public static AdFormat valueOf(String name)