Type Function Return value none Revision 2017.3060 Keywords ads, advertising, KIDOZ, load See also kidoz.show() kidoz.*
Preloads a KIDOZ ad. Once loaded, You can call kidoz.show() to show it.
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"
.
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 "feedView"
and the options
table should be omitted.
This ad type is currently only supported on Android.
This is a small interactive view which hovers over the screen content. For this ad type, adType
should be "flexiView"
and the options
table accepts these
String. The position of the view. Valid values include "top"
, "bottom"
, "left"
, "right"
, and "center"
.
String. The alignment of the view. Only applies when adPosition
is not set to "center"
.
adPosition
of "top"
, this can be either "left"
, "center"
, or "right"
. Default is "center"
.adPosition
of "bottom"
, this can be either "left"
, "center"
, or "right"
. Default is "center"
.adPosition
of "left"
, this can be either "top"
, "center"
, or "bottom"
. Default is "center"
.adPosition
of "right"
, this can be either "top"
, "center"
, or "bottom"
. Default is "center"
.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( "feedView" )
kidoz.load( "flexiView", { adPosition = "left", align = "top" } )
kidoz.load( "interstitial" )
kidoz.load( "rewardedVideo" )