AdSize is the dimension of the ad control. All units are in density-independent pixel (dp).
Estende: | Enum |
Pacchetto: | ads |
values()
public static AdSize values()
valueOf(String)
public static AdSize valueOf(String name)
Parametro | Descrizione |
---|---|
name |
fromWidthAndHeight(int, int)
public static AdSize fromWidthAndHeight(int width, int height)
Parametro | Descrizione |
---|---|
width | |
height |
getWidth()
Gets the width of the ad control.
public int getWidth()
getHeight()
Gets the height of the ad control.
public int getHeight()
BANNER_320_50
public static final AdSize BANNER_320_50
INTERSTITIAL
public static final AdSize INTERSTITIAL
BANNER_HEIGHT_50
public static final AdSize BANNER_HEIGHT_50
BANNER_HEIGHT_90
public static final AdSize BANNER_HEIGHT_90
RECTANGLE_HEIGHT_250
public static final AdSize RECTANGLE_HEIGHT_250