How to setup testing devices to avoid breaking any rules. Unity3d, Android, Admob

121 views
Skip to first unread message

jurassic.r...@gmail.com

unread,
Apr 4, 2017, 9:27:16 AM4/4/17
to Google Mobile Ads SDK Developers
Hi everyone. We are are about to publish our first game to the store. Before doing so we want to implement two types of ads, interstitial and rewarded videos.

Implementing the SDK was easy enough and everything seems ready to be tested. Here's where the problem is, how do we test on our devices (Android phones) without accidentally pressing the ads ourselves.

A few years ago I remember doing so by setting each device as a testing device and the ads retrieved were mere placeholders (back then there was no rewarded video) but now I can't find the option anywhere, nor any guide to do so.

Please help? We don't want to get in trouble before even publishing the game. The game is not published, nor uploaded, we test directly by sending the compiled APK through USB to the testing devices (The personal phones of the developers and other staff).

Deepika Uragayala- MobileAds SDK team

unread,
Apr 4, 2017, 11:37:39 AM4/4/17
to Google Mobile Ads SDK Developers
Hi,

You are certainly able to request test ads via Unity and you can check this method from our sample script to learn more. You need to get your device ID and for that, you would have to build the APK on your Android device and the SDK would log this ID in the Android Studio's log cat. So make sure to run Android Studio when you build and run the APK on your device. But note that test ads are only available for ads requested via our AdMob network. If you want test ads from mediation networks, you need to remove the addTestDevice method and request live ads and enable test mode directly from your mediation network's dashboard.

Let me know if you need any other information. 

Regards,
Deepika Uragayala
Mobile Ads SDK Team

Mobile Dev

unread,
Apr 4, 2017, 12:38:35 PM4/4/17
to Google Mobile Ads SDK Developers
Hi Deepika (lovely and interesting name!)
Thanks for your reply. I don't use Android Studio as I'm working with Unity, C# and Visual Studio, though I think I can manage to make the changes you mention easily.
I've found a "test id" to request a test video reward ("ca-app-pub-3940256099942544/5224354917") but so far I didn't get anything. I'll try your suggestion right now. 

Thanks!

Mobile Dev

unread,
Apr 5, 2017, 1:58:18 PM4/5/17
to Google Mobile Ads SDK Developers
Ok, I have some feedback, as I can't make it work yet.

I watched the "Unity and AdMob Rewarded Video - Mobile Ads Garage #14" (https://www.youtube.com/watch?v=UOptam261Ts) plenty of times.
Using the exact same code as in the video, using the adUnitId shown there for Android ("ca-app-pub-3940256099942544/7325402514") I can load and see an ad. Didn't see what was it about as I'm terrified I get banned if I accidentally click it (fat fingers :( ) so I closed the app right after it showed something (After pressing "Request Rewarded Video" and then "Show Rewarded Video" buttons).

So that example, works.

What it doesn't work:

* Adding ".AddTestDevice("my-id")"
* Using adUnitId found searching (Why there's no id's for testing listed on the admob dashboard?)

A friend told me I have to upload an apk to the store to test it. And that that process would take between 1 to 2 hours. As an in going development, I can't wait hours to test if a single line of code works or not.
Can you or anyone guide me on how to implement ads and test them safely before uploading an alpha test build to the store?

On Tuesday, April 4, 2017 at 12:37:39 PM UTC-3, Deepika Uragayala- MobileAds SDK team wrote:

Deepika Uragayala- MobileAds SDK team

unread,
Apr 5, 2017, 3:14:49 PM4/5/17
to Google Mobile Ads SDK Developers
Hi,

The addTestDevices would not work for Reward Video ads and you can use our test Ad Unit ID until your app goes into production. 

Let me know if you need anything else.

Regards,
Deepika Uragayala
Mobile Ads SDK Team

Jurassic Riders

unread,
Apr 5, 2017, 4:31:48 PM4/5/17
to google-adm...@googlegroups.com
Deepika all I can say is: THANK YOU <3 :)

When I tried that adUnitID I was using addTestDevices also, so that's why it didn't work.

Now I can fully test all the callbacks. THANKS :)

On another note, how would you go about testing interstitials? What would be the ad unit ID for testing?

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/2Zp2k507WYs/unsubscribe.
To unsubscribe from this group and all its topics, 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.
For more options, visit https://groups.google.com/d/optout.

Jurassic Riders

unread,
Apr 6, 2017, 8:37:54 AM4/6/17
to google-adm...@googlegroups.com
I could use test interstitial with this id: ca-app-pub-3940256099942544/1033173712
Everything is working just fine. Thank you for all your help :)

On Wed, Apr 5, 2017 at 5:31 PM, Jurassic Riders <jurassic.r...@gmail.com> wrote:
Deepika all I can say is: THANK YOU <3 :)

When I tried that adUnitID I was using addTestDevices also, so that's why it didn't work.

Now I can fully test all the callbacks. THANKS :)

On another note, how would you go about testing interstitials? What would be the ad unit ID for testing?
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages