com.google.gwt.maps.client
Class AdsManager
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
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.
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 |
AdsManager
protected AdsManager()
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.