showAdIfAvailable

fun showAdIfAvailable(activity: Activity, scope: CoroutineScope)(source)

Displays an ad if one has been loaded.

The check runs inside the provided scope so callers can decide where the asynchronous work should live.