| Known Direct Subclasses |
An object returned for a native ad request.
| class | NativeAd.AdChoicesInfo | An object used to represent the attribution info. | |
| class | NativeAd.Image | An object used to represent an image. | |
| String | ASSET_ADCHOICES_CONTAINER_VIEW | The ad choices asset ID. |
|
NativeAd()
|
| abstract void | |
| abstract boolean | |
| abstract void |
The ad choices asset ID.
This method is deprecated.
Use
performClick(Bundle).
Call when the user has clicked on the ad. The ad unit must be whitelisted to be able to use this api.
| clickData | bundle of the app environment when the click happens. For details to construct
the click data Bundle, see
NativeAdConstants. |
|---|
This method is deprecated.
Use
recordImpression(Bundle).
Call when the ad is first displayed. The ad unit must be whitelisted to be able to use this api.
| impressionData | bundle of the app environment when the impression happens. For details to
construct the click data Bundle, see
NativeAdConstants. |
|---|
This method is deprecated.
Use
reportTouchEvent(Bundle).
Call when a touch event happens on the ad. The ad unit must be whitelisted to be able to use this api. If you are interested in using this feature, reach out to your account manager.
| touchEventData |
bundle of touch event coordinates and duration.
Example JSON representation of touchEventData Bundle:
{
"x": "100", // The x-coordinate of the touch event relative to the window.
"y": "50", // The y-coordinate of the touch event relative to the window.
"duration_millis": "500", // The amount of millisecond the user pressed on the asset.
}
|
|---|