【问题标题】:Vungle ads sometimes not caching - CoronaVungle 广告有时不缓存 - Corona
【发布时间】:2014-11-02 12:25:00
【问题描述】:

我已在我的 Corona 游戏中集成了 Vungle 视频广告,它运行良好,但几天前它完全停止缓存视频广告,但几天后它自己盯着它看,没有更改任何代码。现在它再次停止缓存视频广告。我怀疑这个问题来自 Corona 或 Vungle,但我不确定。

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)

【问题讨论】:

    标签: ios lua coronasdk vungle-ads


    【解决方案1】:

    这可能与地理位置或每日查看限制有关。您可以尝试将 vungleTest 作为您的 AppID 吗?此外,如果您还有其他问题,请随时通过 tech-support@vungle.com 给我发送电子邮件

    干杯, Jordyn / Vungle

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-21
      • 1970-01-01
      相关资源
      最近更新 更多