Follow us on GitHub

com.google.gwt.maps.client.adsense
Class AdUnitOptions

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.adsense.AdUnitOptions

public class AdUnitOptions
extends JavaScriptObject

ad unit options

See AdUnitOptions API Doc


Constructor Summary
protected AdUnitOptions()
          use newInstance();
 
Method Summary
 String getChannelNumber()
          The AdSense For Content channel number for tracking the performance of this AdUnit.
 AdFormat getFormat()
          The Format of the AdUnit.
 MapWidget getMap()
          The map associated with this AdUnit.
 ControlPosition getPosition()
          The position of the AdUnit.
 String getPublisherId()
          Your AdSense for Content publisher ID.
static AdUnitOptions newInstance()
          creates options for adunit
 void setChannelNumber(String channelNumber)
          set The AdSense For Content channel number for tracking the performance of this AdUnit.
 void setFormat(AdFormat format)
          the Format of the AdUnit.
 void setMap(MapWidget mapWidget)
          The map associated with this AdUnit.
 void setPosition(ControlPosition position)
          The position of the AdUnit.
 void setPublisherId(String publisherId)
          Your AdSense for Content publisher ID.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdUnitOptions

protected AdUnitOptions()
use newInstance();

Method Detail

newInstance

public static final AdUnitOptions newInstance()
creates options for adunit


getChannelNumber

public final String getChannelNumber()
The AdSense For Content channel number for tracking the performance of this AdUnit. It must be stored as a string as it will typically be a large UINT64. (Optional)


getFormat

public final AdFormat getFormat()
The Format of the AdUnit.

See AdFormats


getMap

public final MapWidget getMap()
The map associated with this AdUnit. Ads will be targeted to the location the map's viewport. (Required)


getPosition

public final ControlPosition getPosition()
The position of the AdUnit. If specified, the AdUnit will be displayed at this position. Otherwise, it will not be added to the map. (Optional)


getPublisherId

public final String getPublisherId()
Your AdSense for Content publisher ID. Required and must be set at the time of initialization. (Required)


setChannelNumber

public final void setChannelNumber(String channelNumber)
set The AdSense For Content channel number for tracking the performance of this AdUnit. It must be stored as a string as it will typically be a large UINT64. (Optional)

Parameters:
channelNumber -

setFormat

public final void setFormat(AdFormat format)
the Format of the AdUnit.

See AdFormats

Parameters:
format -

setMap

public final void setMap(MapWidget mapWidget)
The map associated with this AdUnit. Ads will be targeted to the location the map's viewport. (Required)

Parameters:
mapWidget -

setPosition

public final void setPosition(ControlPosition position)
The position of the AdUnit. If specified, the AdUnit will be displayed at this position. Otherwise, it will not be added to the map. (Optional)

Parameters:
position -

setPublisherId

public final void setPublisherId(String publisherId)
Your AdSense for Content publisher ID. Required and must be set at the time of initialization. (Required)

Parameters:
publisherId -


Follow us on GitHub

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