Type Function Return value none Revision Release 2024.3703 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 } )