Type Function Return value none Revision Release 2022.3683 Keywords ads, advertising, AdColony, load See also adcolony.init() adcolony.isLoaded()
Loads an AdColony video interstitial or rewarded video.
Before calling this function, you must call adcolony.init() and ensure that the "init"
event phase occurs.
adcolony.load( zoneName [, params ] )
String. The user-defined AdColony zone name to be loaded. Zone names should be specified in the call to adcolony.init().
Table. Table containing params for rewarded videos — see the next section for details.
The params
table includes parameters for rewarded videos.
Boolean. If true
, displays a confirmation popup prior to displaying a rewarded video. Default is false
.
Boolean. If true
, displays a popup with reward info after displaying a rewarded video. Default is false
.
local adcolony = require( "plugin.adcolony" ) -- AdColony listener function local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization -- Load an interstitial ad adcolony.load( "interstitial" ) end end -- Initialize the AdColony plugin adcolony.init( adListener, { appId = "YOUR_ADCOLONY_APP_ID", adZones = { interstitial = "YOUR_ADCOLONY_ZONE_ID_1", rewardedVideo = "YOUR_ADCOLONY_ZONE_ID_2" } })