onAdRequestedToShow

abstract fun onAdRequestedToShow(event: ShowEvent)

Called after a show call, right before an ad is presented. Implement this method to be notified when an ad is about to be presented.

A typical implementation would look like this:

fun onAdRequestedToShow(event: ShowEvent) {
// Pause ongoing processes like video or gameplay.
}

Parameters

event

A show event with information related to the ad to be shown.