com.google.gwt.maps.client
Class AdsManager

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

public class AdsManager
extends com.google.gwt.core.client.JavaScriptObject

Wrapper for the GAdsManager class which allows advertisements to be displayed in your map.


Nested Class Summary
static class AdsManager.AdsManagerOptions
          Optional parameters to use when creating an AdsManager.
 
Constructor Summary
protected AdsManager()
           
 
Method Summary
static AdsManager newInstance(MapWidget map, java.lang.String publisherId)
          Create a new AdsManager instance.
static AdsManager newInstance(MapWidget map, java.lang.String publisherId, AdsManager.AdsManagerOptions options)
          Create a new AdsManager instance.
 void setEnabled(boolean enabledValue)
          Enable or disable fetching of ads.
 
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

AdsManager

protected AdsManager()
Method Detail

newInstance

public static AdsManager newInstance(MapWidget map,
                                     java.lang.String publisherId)
Create a new AdsManager instance.

Parameters:
map - The map to associate the AdsManager with.
publisherId - An AdSense publisher Id (e.g. "pub-1234567890123456".)
Returns:
A new AdsManager object.

newInstance

public static AdsManager newInstance(MapWidget map,
                                     java.lang.String publisherId,
                                     AdsManager.AdsManagerOptions options)
Create a new AdsManager instance.

Parameters:
map - The map to associate the AdsManager with.
publisherId - An AdSense publisher Id (e.g. "pub-1234567890123456".)
options - Optional arguments to initialize the AdsManager.
Returns:
A new AdsManager object.

setEnabled

public final void setEnabled(boolean enabledValue)
Enable or disable fetching of ads. Ads are not enabled by default.

Parameters:
enabledValue - Pass true to enable fetching of ads.