NativeAd.UnconfirmedClickListener

interface NativeAd.UnconfirmedClickListener


A listener interface apps can use to receive unconfirmed click events when using the Confirmed Click feature.

Summary

Public functions

Unit

Called after onUnconfirmedClickReceived when the user rejects an unconfirmed click.

Unit

Called when a native ad object receives an unconfirmed click.

Public functions

onUnconfirmedClickCancelled

fun onUnconfirmedClickCancelled(): Unit

Called after onUnconfirmedClickReceived when the user rejects an unconfirmed click. Apps should update their ad presentation to return it to the original state.

onUnconfirmedClickReceived

fun onUnconfirmedClickReceived(assetId: String!): Unit

Called when a native ad object receives an unconfirmed click. Apps are then responsible for updating their ad presentation to indicate that the user should confirm or reject the clickthrough (making sure the View set in setClickConfirmingView or setClickConfirmingView is visible).

Parameters
assetId: String!

ID of the asset that received the unconfirmed click.