ads

fun ads(completion: (AdManager?) -> Unit)

Creates an AdManager instance, or provides the existing instance if one has already been created.

The return value of completion is null if start hasn't been called or if creating the instance fails for any reason, e.g. a network issue.


suspend fun ads(): AdManager

Creates an AdManager instance, or provides the existing instance if one has already been created.

Throws

if start has not been called.

Other error exceptions may also be thrown if creating the AdManager instance fails for any reason, e.g. a network issue.