Type Function Return value none Revision 2017.3060 Keywords ads, advertising, Peanut Labs, show See also peanutlabs.init() peanutlabs.*
Shows a Peanut Labs survey.
peanutlabs.show()
local peanutlabs = require( "plugin.peanutlabs" ) local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization -- Show a survey peanutlabs.show() end end -- Initialize the Peanut Labs plugin peanutlabs.init( adListener, { userId = "x1", appKey = "YOUR_APP_KEY", appId = 2222 } )