AdSize
يتوفر إصدار أحدث لهذه الفئة. يرجى التحقق أحدث إصدار.

AdSize is the dimension of the ad control. All units are in density-independent pixel (dp).

الإضافات:Enum
الحزمة:ads
طرق الفئات
values()
public static AdSize values()
valueOf(String)
public static AdSize valueOf(String name)
المعلمةالوصف
name
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