|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.ads.AdSize
public class AdSize
The different sizes of ads supported.
Field Summary | |
---|---|
static AdSize |
BANNER
Size of MMA standard banner ad. |
static AdSize |
IAB_BANNER
Size of IAB standard full banner ad. |
static AdSize |
IAB_LEADERBOARD
Size of IAB standard leaderboard ad. |
static AdSize |
IAB_MRECT
Side of IAB standard medium rectangle ad. |
Constructor Summary | |
---|---|
AdSize(int width,
int height)
Constructs a custom AdSize . |
Method Summary | |
---|---|
int |
getHeight()
Returns the height of the AdSize . |
int |
getWidth()
Returns the width of the AdSize . |
String |
toString()
Returns the AdSize as a String . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final AdSize BANNER
public static final AdSize IAB_MRECT
public static final AdSize IAB_BANNER
public static final AdSize IAB_LEADERBOARD
Constructor Detail |
---|
public AdSize(int width, int height)
AdSize
.
DO NOT USE THIS CONSTRUCTOR UNLESS YOU HAVE DIRECT-SOLD
ADS IN UNUSUAL SIZES. Use the predefined sizes instead.
width
- the width of the AdSize
.height
- the height of the AdSize
.Method Detail |
---|
public int getWidth()
AdSize
.
AdSize
.public int getHeight()
AdSize
.
AdSize
.public String toString()
AdSize
as a String
.
toString
in class Object
AdSize
as a String
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |