类型 函数 返回值 无 修订版本 版本 2024.3703 关键词 广告, 广告, AdMob, 隐藏 另请参阅 admob.showConsentForm() admob.*
此函数加载同意表单以供显示(如果需要)
admob.loadConsentForm()
local admob = require( "plugin.admob" ) -- Initialize the AdMob plugin local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization local formStatus, consentStatus = admob.getConsentFormStatus() if(formStatus == "available")then -- recommend (not required) admob.loadConsentForm() end end end admob.init( adListener, { appId="YOUR_ADMOB_APP_ID" } )