AdSize is the dimension of the ad control. All units are in density-independent pixel (dp).
ขยาย: | Object |
แพ็คเกจ: | ads |
AdSize(int, int)
public AdSize(int width, int height)
พารามิเตอร์ | คำอธิบาย |
---|---|
width | |
height |
fromWidthAndHeight(int, int)
public static AdSize fromWidthAndHeight(int width, int height)
พารามิเตอร์ | คำอธิบาย |
---|---|
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