vungle.isAdAvailable()

Type function
Return value Boolean
Revision 2017.3060
Keywords ads, advertising, vungle
See also vungle.*

Overview

Vungle downloads and caches the next video ad for optimal user experience. This function returns true or false depending on the availability of a cached ad.

Syntax

vungle.isAdAvailable()

Example

local ads = require( "ads" )

ads.init( "vungle", "myAppId" )

if ( ads.isAdAvailable() ) then
    ads.show( "interstitial" )
end