public enum AdFormat

  1. Object
  2. Enum<AdFormat>
  3. 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

BANNERA small rectangular ad that lives inside the component hierarchy.
INTERSTITIALA full screen ad shown at a natural break (e.g. between game levels).
REWARDEDAn opt-in full screen ad that grants the user a reward for watching.
REWARDED_INTERSTITIALA full screen ad shown on a transition that may grant a reward but is not strictly opt-in.
APP_OPENA full screen ad shown when the application is brought to the foreground.
NATIVEAn 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

INTERSTITIAL

INTERSTITIAL
A full screen ad shown at a natural break (e.g. between game levels). See InterstitialAd.

REWARDED

REWARDED
An opt-in full screen ad that grants the user a reward for watching. See RewardedAd.

REWARDED_INTERSTITIAL

REWARDED_INTERSTITIAL
A full screen ad shown on a transition that may grant a reward but is not strictly opt-in. See RewardedInterstitialAd.

APP_OPEN

APP_OPEN
A full screen ad shown when the application is brought to the foreground. See AppOpenAd.

NATIVE

NATIVE
An 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)