vungle-v4.isAdAvailable()

Type Function
Return value Boolean
Revision Release 2024.3703
Keywords ads, advertising, vungle
See also vungle-v4.*

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-v4.isAdAvailable()

Example

local ads = require( "ads" )

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

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