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