Test Devices for Reward Videos ONLY

98 views
Skip to first unread message

Jason

unread,
May 3, 2018, 9:17:07 AM5/3/18
to google-adm...@googlegroups.com
Hi

I can get test devices working for banner & Interstitial ads, but not for reward videos..  How does it work for apps that just what reward videos 


below is the code for both interstitial and reward , but if I call Interstitial and then reward , no error , but reward by itself errors with "<Google> To get test ads on this device, call: request.testDevices = @"

let adMobRewardBasedVideoAdUnitId = "ca-app-pub-3940256099942544/1712485313" // Google Test AD ID

let adMobInterstitialAdUnitId = "ca-app-pub-3940256099942544/5135589807"


fileprivate var rewardBasedVideo: GADRewardBasedVideoAd?

fileprivate var interstitial: GADInterstitial!


 func createAndLoadInterstitial() {

    interstitial = GADInterstitial(adUnitID: adMobInterstitialAdUnitId)

    interstitial.delegate = self

    let request = GADRequest()

    request.testDevices = [ adMobMyDeviceUUID ]

    interstitial.load(request)

  }


func createAndLoadRewardBasedVideoAd() {

    rewardBasedVideo = GADRewardBasedVideoAd.sharedInstance()

    rewardBasedVideo?.delegate = self

    let request = GADRequest()

    request.testDevices = [ adMobMyDeviceUUID ]

    if !rewardBasedVideoAdRequestInProgress && rewardBasedVideo?.isReady == false {

      rewardBasedVideo?.load(request, withAdUnitID: adMobRewardBasedVideoAdUnitId)

      rewardBasedVideoAdRequestInProgress = true

    }

  }

mobileadssdk-a...@google.com

unread,
May 3, 2018, 3:03:27 PM5/3/18
to Jason, Google Mobile Ads SDK Developers
Hi there,

Thanks for reaching out to us. Can you please confirm whether you were able to load test ad unit Id/s or your own Ad unit Id with our sample apps? Also, I can confirm that I was able to load our test rewarded videos with our samples without any issues on my test device. Please go through this documentation on adding a test device and give a try on different device and let us know if you still have an issue with it and send us the complete device logs.

Regards,
Deepika Uragyaala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 05/03/18 09:17:07 in...@precisethings.com wrote:
Hi

I can get test devices working for banner & Interstitial ads, but not for reward videos..  How does it work for apps that just what reward videos 


below is the code for both interstitial and reward , but if I call Interstitial and then reward , no error , but reward by itself errors with "<Google> To get test ads on this device, call: request.testDevices = @"



 func createAndLoadInterstitial() {

    interstitial = GADInterstitial(adUnitID: adMobInterstitialAdUnitId)

    interstitial.delegate = self

    let request = GADRequest()

    request.testDevices = [ adMobMyDeviceUUID ]

    interstitial.load(request)

  }


func createAndLoadRewardBasedVideoAd() {

    rewardBasedVideo = GADRewardBasedVideoAd.sharedInstance()

    rewardBasedVideo?.delegate = self

    let request = GADRequest()

    request.testDevices = [ adMobMyDeviceUUID ]

    if !rewardBasedVideoAdRequestInProgress && rewardBasedVideo?.isReady == false {

      rewardBasedVideo?.load(request, withAdUnitID: adMobRewardBasedVideoAdUnitId)

      rewardBasedVideoAdRequestInProgress = true

    }

  }

--

---
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/632f5e70-9a5a-42de-a8a8-5a17c5f4e8ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jason

unread,
May 3, 2018, 3:09:43 PM5/3/18
to Google Mobile Ads SDK Developers

Hi

The documentation or the sample app , doesn't not show how to do test "DEVICES" on reward ads.. I can load both test ADs and my ADs but I get the message in the log

"<Google> To get test ads on this device, call: request.testDevices = @"........"


How do you add test devices to the Reward video call without using banner or  banner & Interstitial ads ?

mobileadssdk-a...@google.com

unread,
May 3, 2018, 4:00:48 PM5/3/18
to Jason, Google Mobile Ads SDK Developers
Hi there,

It is the same as Interstitial/Banner/other Ad Types when making a test Ad Request. You are already calling this using: 


let request = GADRequest()
request.testDevices = [ adMobMyDeviceUUID]

If the adMobMyDeviceUUID matches the device's UUID, then a test ad will be served to the specific device. You can read more on this here.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

--

---
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.

Jason

unread,
May 3, 2018, 4:21:46 PM5/3/18
to Google Mobile Ads SDK Developers
Based on that, it doesn’t seem to work... as you say I am calling the right command.. same command works on banner & Interstitial ads,.. but on a rewards only project it doesn’t work..

Can you test this and confirm you don’t get the warning message... and if works share the code ?

Thanks

mobileadssdk-a...@google.com

unread,
May 4, 2018, 3:06:26 PM5/4/18
to Jason, Google Mobile Ads SDK Developers
Hi Jason,

Were you able to notice test ads label on the top of the served creative when requesting for reward video ads? The ad request is properly done and I don’t see any issue with the integration.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
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.
Reply all
Reply to author
Forward
0 new messages