首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Vungle广告有时不缓存- Corona

问Vungle广告有时不缓存- Corona
EN

Stack Overflow用户
提问于 2014-09-09 15:06:08
回答 1查看 634关注 0票数 1

我已经在我的Corona游戏中集成了Vungle视频广告,它工作得很完美,但几天前它完全停止了缓存视频广告,但几天后它自己盯着它,没有改变代码中的任何东西。现在,它再次停止缓存视频广告。我怀疑这个问题要么来自Corona,要么来自Vungle端,但不确定。

代码语言:javascript
复制
local vungleInterstitial = "540e9681c7ec2b6d4400000e" 
local videoCompletedCallback=nil


videoAddListener=function( event )

    if (event.isError ) then
        --Cached video ad not available for display
        print("problem to show ad")
    elseif event.type == "cachedAdAvailable" then
        print("cachedAdAvailable")
    elseif tostring(event.type) == "adView" then
        print("called when add is viewed")
    elseif  event.type == "adStart" then
        print("Corona ads started")
        audio.pause()
    elseif event.type == "adEnd" then
        print("Corona ads ended")
        videoCompletedCallback()
        audio.resume()
    end
end


    showVideoAd = function(callbackFunc)
        print("showVideoAd function called")
        videoCompletedCallback=callbackFunc;
        if ( vads.isAdAvailable() ) then
            print(" if ( vads.isAdAvailable() ) then, is true")
            print("vads.show")
            vads.show( "interstitial", { isBackButtonEnabled = false } )
        else
             local alert = native.showAlert( "Video Ad", "The Video Ad is not available at the moment. Please Try after some time.", { "OK" } )
        end 
    end

    vads.init("vungle",vungleInterstitial,videoAddListener)
EN

回答 1

Stack Overflow用户

发布于 2014-09-10 03:22:29

这可能与地理或每日视图限制有关。你能试着用vungleTest作为你的AppID吗?另外,如果您有进一步的问题,请随时给我发邮件给tech-support@vungle.com

干杯,乔丹/温格尔

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25738567

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档