Type Function Return value none Revision 2017.3060 Keywords ads, advertising, Pollfish, show See also pollfish.isLoaded() pollfish.*
Shows the Pollfish survey button, assuming a survey is ready for display. You can check for survey availability using pollfish.isLoaded().
pollfish.show()
local pollfish = require( "plugin.pollfish" ) local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization pollfish.load() elseif ( event.phase == "loaded" ) then pollfish.show() end end -- Initialize the Pollfish plugin pollfish.init( adListener, { apiKey="YOUR_API_KEY" } )