Parameter | Mandatory | Type | Description |
|---|---|---|---|
choicesPosition | No | number | Ad choice icon position. For details about parameter values, please refer to ChoicesPosition. |
Method | Description | Parameter | Return Value |
|---|---|---|---|
registerNativeAd(adData, clickViews, videoView) | Registers an ad asset. |
| - |
registerAppButton(appButton) | Registers an app download button component. | appButton: app download button component. | - |
onAdClose(keyWords) | Called when an ad is closed. | (Optional) keyWords: reason why an ad is closed. | - |
unregister() | Unregisters an ad component. | - | - |
Event | Description | Usage | Description |
|---|---|---|---|
dislike | Triggered when a user clicks the "Dislike this ad" icon. | adsNativeVideoView.addEventListener('dislike', callback) | Parameter in callback: adId: ID of an ad asset. |
adClick | Triggered when a user clicks the ad unit area. | adsNativeVideoView.addEventListener('adClick', callback) |