com.google.ads
Class AdSize

java.lang.Object
  extended by com.google.ads.AdSize

public class AdSize
extends Object

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

BANNER

public static final AdSize BANNER
Size of MMA standard banner ad.


IAB_MRECT

public static final AdSize IAB_MRECT
Side of IAB standard medium rectangle ad.


IAB_BANNER

public static final AdSize IAB_BANNER
Size of IAB standard full banner ad.


IAB_LEADERBOARD

public static final AdSize IAB_LEADERBOARD
Size of IAB standard leaderboard ad.

Constructor Detail

AdSize

public AdSize(int width,
              int height)
Constructs a custom AdSize. DO NOT USE THIS CONSTRUCTOR UNLESS YOU HAVE DIRECT-SOLD ADS IN UNUSUAL SIZES. Use the predefined sizes instead.

Parameters:
width - the width of the AdSize.
height - the height of the AdSize.
Method Detail

getWidth

public int getWidth()
Returns the width of the AdSize.

Returns:
the width of the AdSize.

getHeight

public int getHeight()
Returns the height of the AdSize.

Returns:
the height of the AdSize.

toString

public String toString()
Returns the AdSize as a String.

Overrides:
toString in class Object
Returns:
the AdSize as a String.