admob.is_loaded()


Type Function

Return value Boolean

See also admob.*


Overview

Returns true if the specified ad type has been loaded.

Syntax

admob.is_loaded(type)

type required

String. Which adverstiment type to check: 'banner', 'interstitial' or 'rewarded'.

Example

print('Is an interstitial ad loaded? ' .. (admob.is_loaded('interstitial') and 'Yes' or 'No'))