performTrackingCustomEvent

abstract suspend fun performTrackingCustomEvent(name: String, url: String): AdResult<Unit>

Processes custom tracking events.

Processes a custom tracking URL and passes its name and processed URL to the application using AdEventListener.customTrackingEventProcessed if it succeeds, or AdEventListener.customTrackingEventProcessingFailed if it fails.

Useful in cases where you want to send your own custom tracking events. An example would be a tap on an element inside an ad, or the progress of a viewing the ad. In this case, the SDK will make a request to the URL you specify.

Note: If an error occurs, the renderer should not attempt to call this method again. It is the responsibility of the application to retry the execution. The renderer can use the error to change the display state or for debugging purposes.

Return

The result of the custom tracking event processing.

Parameters

name

The name of the custom tracking event.

url

The URL where the SDK will make the request.