Google奖励视频广告跳过按钮关闭ViewController

时间:2018-11-19 00:49:05

标签: swift admob adsense admob-rewardedvideoad

我使用GADRewardBasedVideoAd。如果我看完视频,效果很好,但是当我在5秒钟后按“跳过视频”按钮时。视频广告将被关闭,但呈现添加内容的视图也将被关闭。任何帮助,将不胜感激。我没什么特别的,我只是这样添加内容:

func rewardBasedVideoAdDidReceive(_ rewardBasedVideoAd: GADRewardBasedVideoAd) {
    print(rewardBasedVideoAd)
    if GADRewardBasedVideoAd.sharedInstance().isReady == true {
        GADRewardBasedVideoAd.sharedInstance().present(fromRootViewController: self)
    }
}

0 个答案:

没有答案