|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.mvc.MVCObject<AdUnitImpl>
com.google.gwt.maps.client.adsense.AdUnitImpl
public class AdUnitImpl
Implements AdSense for Content advertising on an associated map. To use an
AdUnit, you must obtain and specify an AdSense for Content publisher ID
within the AdUnit's constructor options. This class extends MVCObject.
See AdUnit API Doc
Constructor Summary | |
---|---|
protected |
AdUnitImpl()
use newInstance(); |
Method Summary | |
---|---|
HandlerRegistration |
addChannelNumberChangeHandler(ChannelNumberChangeMapHandler handler)
This event is fired when the AdUnit's channelNumber property changes. |
HandlerRegistration |
addFormatChangeHandler(FormatChangeMapHandler handler)
This event is fired when the AdUnit's format property changes. |
HandlerRegistration |
addMapChangeHandler(MapChangeMapHandler handler)
This event is fired when the AdUnit's map property changes. |
HandlerRegistration |
addPositionChangeHandler(PositionChangeMapHandler handler)
This event is fired when the AdUnit's position property changes. |
String |
getChannelNumber()
Returns the channel number in use by this AdUnit. |
Element |
getContainer()
Returns the containing element of the AdUnit. |
AdFormat |
getFormat()
Returns the format in use by this AdUnit. |
MapWidget |
getMap()
Returns the map to which this AdUnit's ads are targeted. |
ControlPosition |
getPosition()
Returns the ControlPosition at which this AdUnit is displayed on the map. |
String |
getPublisherId()
Returns the specified AdSense For Content publisher ID. |
static AdUnitImpl |
newInstance(Element container,
AdUnitOptions options)
Creates an AdSense for Content display ad on the associated map. |
void |
setChannelNumber(String channelNumber)
Specifies the channel number for this AdUnit. |
void |
setFormat(AdFormat format)
Specifies the display format for this AdUnit. |
void |
setMap(MapWidget mapWidget)
Associates this AdUnit with the specified map. |
void |
setPosition(ControlPosition position)
Sets the ControlPosition at which to display the AdUnit on the map. |
Methods inherited from class com.google.gwt.maps.client.mvc.MVCObject |
---|
bindTo, bindTo, bindTo, changed, createInstanceOfMVCObject, get, notify, set, setValues, unbind, unbindAll |
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 |
---|
protected AdUnitImpl()
Method Detail |
---|
public static final AdUnitImpl newInstance(Element container, AdUnitOptions options)
options
- public final HandlerRegistration addChannelNumberChangeHandler(ChannelNumberChangeMapHandler handler)
handler
- public final HandlerRegistration addFormatChangeHandler(FormatChangeMapHandler handler)
handler
- public final HandlerRegistration addMapChangeHandler(MapChangeMapHandler handler)
handler
- public final HandlerRegistration addPositionChangeHandler(PositionChangeMapHandler handler)
handler
- public final String getChannelNumber()
public final Element getContainer()
public final AdFormat getFormat()
public final MapWidget getMap()
public final ControlPosition getPosition()
public final String getPublisherId()
public final void setChannelNumber(String channelNumber)
channelNumber
- public final void setFormat(AdFormat format)
format
- public final void setMap(MapWidget mapWidget)
mapWidget
- public final void setPosition(ControlPosition position)
position
- ControlPosition
|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |