|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.gadgets.client.impl.AdsFeatureImpl
public class AdsFeatureImpl
Provides access to the Ads APIs provided by the container.
| Method Summary | |
|---|---|
void |
clickDestinationUrl(java.lang.String destUrl)
Reports a clickthrough and redirect to the destination URL. |
void |
reportInteraction()
Reports a single user-interaction. |
void |
reportInteraction(java.lang.String name)
Reports a named user-interaction. |
void |
reportInteraction(java.lang.String name,
java.lang.String value)
Reports a named user-interaction that you want summed-up. |
void |
reportInteractionClick(java.lang.String destUrl,
java.lang.String name,
java.lang.String value)
Reliably reports an interaction followed by a clickthrough and redirect to the destination URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void clickDestinationUrl(java.lang.String destUrl)
AdsFeatureIn order to enable clickthrough tracking on this link, you must use this method to initiate the redirect. When this method is called, a clickthrough hit is received and then redirected to the destination.
clickDestinationUrl in interface AdsFeaturedestUrl - Final destination URL you want to report and be redirected
topublic void reportInteraction()
AdsFeatureUse this when your gadget contains only a single user-interaction that needs to be tracked. For example, this could be a click-to-play button which starts video playback or a start button to load in a Flash game. Each time this function is called, a generic hit is sent to the tracking server. These hits are grouped into "Primary Interactions" in the interaction reports.
reportInteraction in interface AdsFeaturepublic void reportInteraction(java.lang.String name)
AdsFeatureUse this function when your gadget needs to track multiple user interaction types.
reportInteraction in interface AdsFeaturename - The name of the reported interaction. It must match one from
the supported list of interactions
public void reportInteraction(java.lang.String name,
java.lang.String value)
AdsFeatureUse this function when you want pass in a value for a specific interaction type to be summed up in the reports.
reportInteraction in interface AdsFeaturename - The name of the reported interaction. It must match one from
the supported list of interactionsvalue - value to sum up for the reported interaction. It must be a
positive number
public void reportInteractionClick(java.lang.String destUrl,
java.lang.String name,
java.lang.String value)
AdsFeature
This function is a combination of two methods:
AdsFeature.clickDestinationUrl(String) and
AdsFeature.reportInteraction(String, String). All three parameters are
analogous to the parameters passed into each individual function.
reportInteractionClick in interface AdsFeaturedestUrl - final destination URL you want to report and be redirected
toname - The name of the reported interaction. It must match one from
the supported list of interactions. This parameter is optional,
null is acceptedvalue - value to sum up for the reported interaction. It must be a
positive number This parameter is optional, null is
accepted
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||