public class AppLovinAdSize
extends java.lang.Object
BANNER, MREC, INTERSTITIAL)| Modifier and Type | Field and Description |
|---|---|
static AppLovinAdSize |
BANNER
Represents a 350x50 banner advertisement.
|
static AppLovinAdSize |
INTERSTITIAL
Represents a full-screen advertisement.
|
static AppLovinAdSize |
LEADER
Represents a 728x90 leaderboard advertisement indented for tablets.
|
static AppLovinAdSize |
MREC
Deprecated.
MRECs have been deprecated and will be removed in a future SDK version.
|
static AppLovinAdSize |
NATIVE
Deprecated.
Native ads have been deprecated and will be removed in a future SDK version.
|
static int |
SPAN |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<AppLovinAdSize> |
allSizes()
Obtain a set of all available Ad Sizes.
|
static AppLovinAdSize |
fromString(java.lang.String sizeName)
Create a size object from a string representation
|
int |
getHeight()
Get requested ad height
|
java.lang.String |
getLabel()
Get a name of the ad size
|
int |
getWidth()
Get requested ad width
|
java.lang.String |
toString()
Simply calls
getLabel(). |
public static final int SPAN
public static final AppLovinAdSize BANNER
public static final AppLovinAdSize LEADER
public static final AppLovinAdSize INTERSTITIAL
@Deprecated public static final AppLovinAdSize MREC
@Deprecated public static final AppLovinAdSize NATIVE
public int getWidth()
public int getHeight()
public java.lang.String getLabel()
public java.lang.String toString()
getLabel().toString in class java.lang.Objectpublic static AppLovinAdSize fromString(java.lang.String sizeName)
sizeName - Name of the size.public static java.util.Set<AppLovinAdSize> allSizes()