com.google.gwt.maps.client
Class GoogleBarAdsOptions

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

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

Wrapper for GGoogleBarAdsOptions, passed as an argument to constructing the map in order to show ads from the GoogleBar.


Nested Class Summary
static class GoogleBarAdsOptions.AdSafeOption
          Constants to be used to set the AdSafe option.
 
Constructor Summary
protected GoogleBarAdsOptions()
           
 
Method Summary
static GoogleBarAdsOptions newInstance()
          Returns a new instance of GoogleBarAdsOptions.
 GoogleBarAdsOptions setAdSafe(GoogleBarAdsOptions.AdSafeOption adsafe)
          Specifies the ad "safety" level to use for advertising results on your GGoogleBar.
 GoogleBarAdsOptions setAdSafe(java.lang.String adsafe)
          Specifies the ad "safety" level to use for advertising results on your GGoogleBar.
 GoogleBarAdsOptions setChannel(java.lang.String channel)
          Specifies the channel number of your Google AdSense for Search account, if you've previously set up such a channel.
 GoogleBarAdsOptions setClient(java.lang.String client)
          Specifies the Client ID of your Google AdSense for Search account.
 GoogleBarAdsOptions setLanguage(java.lang.String language)
          Specifies the language in which to serve advertising results.
 
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

GoogleBarAdsOptions

protected GoogleBarAdsOptions()
Method Detail

newInstance

public static GoogleBarAdsOptions newInstance()
Returns a new instance of GoogleBarAdsOptions.

Returns:
a new instance of GoogleBarAdsOptions.

setAdSafe

public final GoogleBarAdsOptions setAdSafe(GoogleBarAdsOptions.AdSafeOption adsafe)
Specifies the ad "safety" level to use for advertising results on your GGoogleBar. Ad Safety levels indicate the level of adult content filtering applied to search results.

Parameters:
adsafe - one of the MapUIOptions.AdSafeOptions constant values. Any other values are ignored.

setAdSafe

public final GoogleBarAdsOptions setAdSafe(java.lang.String adsafe)
Specifies the ad "safety" level to use for advertising results on your GGoogleBar. Ad Safety levels indicate the level of adult content filtering applied to search results.

Parameters:
adsafe - one of the AdSafe constant values ("none", "low", "medium", "high".) Any other values are ignored.

setChannel

public final GoogleBarAdsOptions setChannel(java.lang.String channel)
Specifies the channel number of your Google AdSense for Search account, if you've previously set up such a channel. AdSense channels allow you to track advertising campaigns and determine which sources provide revenue. Note that channels are tied to client IDs, so you must also pass a client parameter if you wish to specify a channel.

Parameters:
channel - the adsense channel name.

setClient

public final GoogleBarAdsOptions setClient(java.lang.String client)
Specifies the Client ID of your Google AdSense for Search account. Specifying this parameter allows you to gain revenue from the ads displayed in GoogleBar search results.

Parameters:
client - the client id for your AdSense account.

setLanguage

public final GoogleBarAdsOptions setLanguage(java.lang.String language)
Specifies the language in which to serve advertising results. Languages are specified in BCP 47 language codes (for example 'en' for English or 'pt-BR' for Brazilian Portugese).

Parameters:
language - BCP 47 lanugage code specifying the language for which to serve advertising results.