Type Function Return value none Revision Release 2024.3703 Keywords ads, advertising, KIDOZ, load See also kidoz.show() kidoz.*
Preloads a KIDOZ ad. Once loaded, You can call kidoz.show() to show it.
Before calling this function, you must call kidoz.init() and wait for the "init"
event phase.
kidoz.load( adType, options )
String. The ad type to load — see the following sections for details.
Table. Options for the ad type — see the following sections for details.
This is a special customized view which can slide in/out of the screen (both in horizontal and vertical layout) with minimal interference to the user experience. For this ad type, adType
should be "panelView"
and the options
table accepts these
String. The position of the panel. Valid values include "top"
and "bottom"
. Default is "bottom"
.
String. The position of the handle. Valid values are "left"
, "right"
, "center"
, or "none"
. Default is "center"
. If handlePosition
is set to "none"
, the user will not have a
This is a adType
should be "interstitial"
and the options
table should be omitted.
This is a adType
should be "rewardedVideo"
and the options
table should be omitted.
kidoz.load( "panelView", { adPosition = "bottom", handlePosition = "left" } )
kidoz.load( "interstitial" )
kidoz.load( "rewardedVideo" )