adcolony.isLoaded()

Type Function
Return value Boolean
Revision 2018.3450
Keywords ads, advertising, AdColony, isLoaded
See also adcolony.show()

Overview

Returns whether an ad is loaded or not.

Syntax

adcolony.isLoaded( zoneName )
zoneName (required)

String. The user-defined AdColony zone name to be checked for availability. Zone names should be specified in the call to adcolony.init().

Example

local adcolony = require( "plugin.adcolony" )

-- Check if default interstitial is loaded
print( adcolony.isLoaded( "interstitial" ) )