admob.show()


Type Function

Return value none

See also admob.*


Overview

Displays a loaded ads. Use admob.load() to load an ad before calling this method.

You can check if an ad has been loaded with admob.is_loaded() method or you can listen to the admob event with a loaded phase:

-- Inside admob listener.
if event.type == 'interstitial' and event.phase == 'loaded' then
	admob.show('interstitial')
end

Banners don’t need this method because they are displayed automatically when loaded.

Syntax

admob.show(type)

type required

String. Which adverstiment type to display: 'interstitial' or 'rewarded'.

Example

admob.show('rewarded')