How can I implement two different rewarded ads(one reward to gain coins and another to gain a second life)? I see I can create two rewarded Ad Unit ID's within adMob, but I can not figure out how to replace/call them using the same delegate method? Any help would be appreciated. Thanks!
--
---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/29bb2d2e-3326-4a8d-9b1d-7f3e728f33e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
let gainCoinAdId = "ca-app-pub-1050"
let gainCashAdId = "ca-app-pub-2050"
var videoAdInstance: GADRewardBasedVideoAd!
videoAdInstance = GADRewardBasedVideoAd.sharedInstance()
videoAdInstance.delegate = self
//Button1
createAndLoadAd(adID: gainCoinAdId)
//Button2
createAndLoadAd(adID: gainCashAdId)
func createAndLoadAd(adID: String) {
videoAdInstance.load(GADRequest(), withAdUnitID: adID)
}