Follow us on GitHub

com.google.gwt.maps.client.adsense
Enum AdFormat

java.lang.Object
  extended by java.lang.Enum<AdFormat>
      extended by com.google.gwt.maps.client.adsense.AdFormat
All Implemented Interfaces:
Serializable, Comparable<AdFormat>

public enum AdFormat
extends Enum<AdFormat>

Identifiers used to specify an AdSense For Content format.

See AdFormats
See AdFormat API Doc

Note: class is $wnd.google.maps.adsense.AdFormat


Enum Constant Summary
BANNER
          A horizontal "banner" ad.
BUTTON
          A small ad.
HALF_BANNER
          A smaller horizontal "banner" ad.
LARGE_RECTANGLE
          A large rectangulare ad.
LEADERBOARD
          A fully horizontal display area.
MEDIUM_RECTANGLE
          A medium rectangular ad.
SKYSCRAPER
          A large vertical ad.
SMALL_RECTANGLE
          A small rectangular ad.
SMALL_SQUARE
          A smaller square ad.
SQUARE
          A square ad with large type.
VERTICAL_BANNER
          A medium-sized vertical ad.
WIDE_SKYSCRAPER
          A wide, vertical ad using larger type.
 
Method Summary
static AdFormat fromValue(String value)
           
 String getName()
           
 String toString()
           
 String value()
           
static AdFormat valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AdFormat[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BANNER

public static final AdFormat BANNER
A horizontal "banner" ad. (468x60px)


BUTTON

public static final AdFormat BUTTON
A small ad. (125x125px)


HALF_BANNER

public static final AdFormat HALF_BANNER
A smaller horizontal "banner" ad. (234x60px)


LARGE_RECTANGLE

public static final AdFormat LARGE_RECTANGLE
A large rectangulare ad. (336x280px)


LEADERBOARD

public static final AdFormat LEADERBOARD
A fully horizontal display area. (728x90px)


MEDIUM_RECTANGLE

public static final AdFormat MEDIUM_RECTANGLE
A medium rectangular ad. (300x250px)


SKYSCRAPER

public static final AdFormat SKYSCRAPER
A large vertical ad. (120x600px)


SMALL_RECTANGLE

public static final AdFormat SMALL_RECTANGLE
A small rectangular ad. (180x150px)


SMALL_SQUARE

public static final AdFormat SMALL_SQUARE
A smaller square ad. (200x200px)


SQUARE

public static final AdFormat SQUARE
A square ad with large type. (250x250px)


VERTICAL_BANNER

public static final AdFormat VERTICAL_BANNER
A medium-sized vertical ad. (120x240px)


WIDE_SKYSCRAPER

public static final AdFormat WIDE_SKYSCRAPER
A wide, vertical ad using larger type. (160x600px)

Method Detail

values

public static AdFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AdFormat c : AdFormat.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AdFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

value

public String value()

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Enum<AdFormat>

fromValue

public static AdFormat fromValue(String value)


Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.