| java.lang.Object | |
| ↳ | com.applovin.sdk.AppLovinAdSize |
This class defines a size of an ad to be displayed. It is recommended to use default sizes that are declared in this class (BANNER, MREC, INTERSTITIAL)
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | SPAN | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public static final AppLovinAdSize | BANNER | Represents a 350x50 banner advertisement. | |||||||||
| public static final AppLovinAdSize | INTERSTITIAL | Represents a full-screen advertisement. | |||||||||
| public static final AppLovinAdSize | LEADER | Represents a 728x90 leaderboard advertisement indented for tablets. | |||||||||
| public static final AppLovinAdSize | MREC | Represents a 300x250 rectangular advertisement. | |||||||||
| public static final AppLovinAdSize | NATIVE | Represents a native advertisement | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static Set<AppLovinAdSize> |
allSizes()
Obtain a set of all available Ad Sizes.
| ||||||||||
| static AppLovinAdSize |
fromString(String sizeName)
Create a size object from a string representation
| ||||||||||
| int |
getHeight()
Get requested ad height
| ||||||||||
| String |
getLabel()
Get a name of the ad size
| ||||||||||
| int |
getWidth()
Get requested ad width
| ||||||||||
| String |
toString()
Simply calls
getLabel(). | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Represents a 728x90 leaderboard advertisement indented for tablets.
Obtain a set of all available Ad Sizes.
Create a size object from a string representation
| sizeName | Name of the size. |
|---|
Get requested ad height
Get a name of the ad size
Get requested ad width
Simply calls getLabel().