public class MaxAdFormat
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static MaxAdFormat |
BANNER
Represents a 320x50 banner advertisement.
|
static MaxAdFormat |
INTERSTITIAL
Represents a full-screen advertisement.
|
static MaxAdFormat |
LEADER
Represents a 728x90 leaderboard advertisement (for tablets).
|
static MaxAdFormat |
MREC
Represents a 300x250 rectangular advertisement.
|
static MaxAdFormat |
NATIVE
Represents a native advertisement.
|
static MaxAdFormat |
REWARDED
Similar to
INTERSTITIAL, except that users are given a reward at the end of the advertisement. |
static MaxAdFormat |
REWARDED_INTERSTITIAL
Represents a fullscreen ad which the user can skip and be granted a reward upon successful completion of the ad.
|
| Modifier and Type | Method and Description |
|---|---|
AppLovinSdkUtils.Size |
getAdaptiveSize(android.app.Activity activity)
Get the adaptive banner size for the screen width at the current orientation.
|
AppLovinSdkUtils.Size |
getAdaptiveSize(int widthDp,
android.app.Activity activity)
Get the adaptive banner
AppLovinSdkUtils#Size for the provided width at the current orientation. |
java.lang.String |
getLabel() |
AppLovinSdkUtils.Size |
getSize() |
boolean |
isAdViewAd() |
boolean |
isFullscreenAd() |
java.lang.String |
toString() |
public static final MaxAdFormat BANNER
public static final MaxAdFormat MREC
public static final MaxAdFormat LEADER
public static final MaxAdFormat INTERSTITIAL
public static final MaxAdFormat REWARDED
INTERSTITIAL, except that users are given a reward at the end of the advertisement.public static final MaxAdFormat REWARDED_INTERSTITIAL
public static final MaxAdFormat NATIVE
public java.lang.String getLabel()
public AppLovinSdkUtils.Size getSize()
public AppLovinSdkUtils.Size getAdaptiveSize(android.app.Activity activity)
NOTE: The height is currently the only "adaptive" dimension and the width will span the screen. NOTE: Only AdMob / Google Ad Manager currently has support for adaptive banners and the maximum height is 15% the height of the screen.
public AppLovinSdkUtils.Size getAdaptiveSize(int widthDp,
android.app.Activity activity)
AppLovinSdkUtils#Size for the provided width at the current orientation.
NOTE: The height is currently the only "adaptive" dimension and the provided width will be passed back in the returned AppLovinSdkUtils#Size.
NOTE: Only AdMob / Google Ad Manager currently has support for adaptive banners.
widthDp - The width in density-independent pixels to retrieve the adaptive banner size for.activity - The Activity in which the banner will be shown.public boolean isFullscreenAd()
true if the ad format is an interstitial, rewarded, or rewarded interstitial.public boolean isAdViewAd()
true if the ad format is a banner, leader, or MREC.public java.lang.String toString()
toString in class java.lang.Object