|
@@ -52,10 +52,10 @@ class AdMobRewardedAdManager: RewardedAdManager {
|
|
}
|
|
}
|
|
|
|
|
|
override fun onRewardedVideoAdLoaded() {
|
|
override fun onRewardedVideoAdLoaded() {
|
|
|
|
+ rewardedAdDataMap[adUnitId]?.status = RewardedAdStatus.LOADED
|
|
adListeners.forEach {
|
|
adListeners.forEach {
|
|
it.onRewardedAdLoaded(adUnitId)
|
|
it.onRewardedAdLoaded(adUnitId)
|
|
}
|
|
}
|
|
- rewardedAdDataMap[adUnitId]?.status = RewardedAdStatus.LOADED
|
|
|
|
}
|
|
}
|
|
|
|
|
|
override fun onRewardedVideoAdOpened() {
|
|
override fun onRewardedVideoAdOpened() {
|
|
@@ -84,10 +84,10 @@ class AdMobRewardedAdManager: RewardedAdManager {
|
|
}
|
|
}
|
|
|
|
|
|
override fun onRewardedVideoAdFailedToLoad(errorCode: Int) {
|
|
override fun onRewardedVideoAdFailedToLoad(errorCode: Int) {
|
|
|
|
+ rewardedAdDataMap[adUnitId]?.status = RewardedAdStatus.FAILED
|
|
adListeners.forEach {
|
|
adListeners.forEach {
|
|
it.onRewardedAdFailedToLoad(adUnitId, errorCode)
|
|
it.onRewardedAdFailedToLoad(adUnitId, errorCode)
|
|
}
|
|
}
|
|
- rewardedAdDataMap[adUnitId]?.status = RewardedAdStatus.FAILED
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|