AdSize
이 클래스의 최신 버전을 사용할 수 있습니다. 확인해보세요 최신 버전.

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()
Returns
Width of the ad control in DP
getHeight()

Gets the height of the ad control.

public int getHeight()
Returns
Height of the ad control in DP
INTERSTITIAL
A full screen interstitial size.
public static final AdSize INTERSTITIAL
RECTANGLE_HEIGHT_250
Represents a flexible rectangle ad size, where width depends on its container width, and height is fixed as 250dp.
public static final AdSize RECTANGLE_HEIGHT_250