类型 函数 返回值 无 版本 版本 2024.3703 关键字 广告、推广、Pollfish、显示 另请参阅 pollfish.isLoaded() pollfish.*
显示 Pollfish 调查按钮(假定一项调查已准备好显示)。你可以使用 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" } )