|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AdsFeature
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. |
| Method Detail |
|---|
void clickDestinationUrl(java.lang.String destUrl)
In 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.
destUrl - Final destination URL you want to report and be redirected
tovoid reportInteraction()
Use 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.
void reportInteraction(java.lang.String name)
Use this function when your gadget needs to track multiple user interaction types.
name - The name of the reported interaction. It must match one from
the supported list of interactions
void reportInteraction(java.lang.String name,
java.lang.String value)
Use this function when you want pass in a value for a specific interaction type to be summed up in the reports.
name - 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
void reportInteractionClick(java.lang.String destUrl,
java.lang.String name,
java.lang.String value)
This function is a combination of two methods:
clickDestinationUrl(String) and
reportInteraction(String, String). All three parameters are
analogous to the parameters passed into each individual function.
destUrl - 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 | ||||||||