public class AdSize
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static AdSize |
BANNER_320_50
Deprecated.
|
static AdSize |
BANNER_HEIGHT_50
Represents a flexible banner ad size, where banner width depends on
its container width, and banner height is fixed as 50dp.
|
static AdSize |
BANNER_HEIGHT_90
Represents a flexible banner ad size, where banner width depends on
its container width, and banner height is fixed as 90dp.
|
static AdSize |
INTERSTITIAL
A full screen interstitial size.
|
static AdSize |
RECTANGLE_HEIGHT_250
Represents a flexible rectangle ad size, where width depends on
its container width, and height is fixed as 250dp.
|
Constructor and Description |
---|
AdSize(int width,
int height) |
@Deprecated public static final AdSize BANNER_320_50
public static final AdSize INTERSTITIAL
public static final AdSize BANNER_HEIGHT_50
public static final AdSize BANNER_HEIGHT_90
public static final AdSize RECTANGLE_HEIGHT_250
public int getWidth()
public int getHeight()
public static AdSize fromWidthAndHeight(int width, int height)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object