广告优化
This commit is contained in:
parent
63448e61ab
commit
ec995a1fd0
@ -179,12 +179,28 @@ extension VPRewardedAdManager: VPRewardedAdDelegate {
|
||||
}
|
||||
///广告展示失败
|
||||
func rewardedAd(ad: VPRewardedAd, didDisplayFail error: Error) {
|
||||
isEnable = false
|
||||
|
||||
self.requestStatAd(type: "show_failed", errorMsg: error.localizedDescription)
|
||||
self.delegate?.rewardedAdManager?(adManager: self, didDisplayFail: error)
|
||||
|
||||
self.isEnable = false
|
||||
self.clean()
|
||||
|
||||
/*
|
||||
if self.adInfo?.platform_key != .google {
|
||||
let adInfo = VPAdInfo()
|
||||
adInfo.platform_key = .google
|
||||
adInfo.ads_id = VPAdManager.google_rewardedAdUnitID
|
||||
|
||||
let ad = VPGoogleRewardedAd()
|
||||
self.rewardedAd = ad
|
||||
ad.loadAd(adInfo: adInfo)
|
||||
|
||||
} else {
|
||||
self.isEnable = false
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
///广告被展示
|
||||
func rewardedAdDidShow(ad: VPRewardedAd) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user