Multiple Reward Videos

934 views
Skip to first unread message

William Voitik

unread,
Apr 10, 2018, 11:45:41 AM4/10/18
to Google Mobile Ads SDK Developers
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!

mobileadssdk-a...@google.com

unread,
Apr 10, 2018, 4:49:54 PM4/10/18
to William Voitik, Google Mobile Ads SDK Developers
Hello William, 

Thank you for contacting us. Since GADRewardBasedVideoAd has a singleton design and can only hold one ad at any given time. It is not possible to load two ads simultaneously and implement their delegate methods. However, you will be able to reload the ad only when the current ad is being closed as mentioned in this guide

Regards,
Bharani Cherukuri
Mobile Ads SDK Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 04/10/18 11:45:41 willia...@gmail.com wrote:
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.

Koray Saglam

unread,
Mar 13, 2019, 6:05:00 PM3/13/19
to google-adm...@googlegroups.com
Dear Bharani Cherukuri,

In Plants & Zombies 2, two different rewards are applied (Ad-Mob) (one for coins and one for gems), when you watch one of it, video starts immediately without waiting any loading. In my iOS app, i have applied one videoAdInstance (due to singleton design), when user wants to gain one of reward, it clicks the button and waiting to load. How i can remove this waiting time as Plants & Zombies did? I have tried to set two different videoAdInstance per AdId, but it did not work.

    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)

    }



10 Nisan 2018 Salı 18:45:41 UTC+3 tarihinde William Voitik yazdı:

mobileadssdk...@google.com

unread,
Mar 14, 2019, 1:53:44 PM3/14/19
to Koray Saglam, Google Mobile Ads SDK Developers
Hello Koray, 

You will be able to preload the rewarded video ads by making your load request call as early as possible. Please refer to this section of the guide for more information. If your concern is different, could you please elaborate?

Thanks,
Bharani Cherukuri
Mobile Ads SDK Team
Reply all
Reply to author
Forward
0 new messages