我正在使用带有 Corona 1137 的内部活动插件,我可以显示横幅、文字和全屏广告,但这些广告不会调用我的回调函数。
我想做的是查看用户是否关闭了全屏广告,然后立即加载横幅广告。
我使用这个代码块:
function showAd( t )
if t == "fsc" then
print( "Ad call with fsc" )
native.setActivityIndicator( true )
ads.show( "fullscreen", { x = 0, y = 0, interval = 60, testMode = false } )
elseif t == "n" then
print( "Ad call with n" )
ads.show( "banner", { x = 0, y = display.actualContentHeight - 48, interval = 30 }, 20 )
else
ads.hide()
end
end
local function adListener( event )
print( "Ad event : ", event )
native.setActivityIndicator( false )
if event.isError then
print( "Failed to receive an add." )
end
end
-- Inner-Active
ads.init( "inneractive", "*******ID********", adListener )
showAd( "n" )
有什么要我检查广告是否关闭的吗?谢谢...