AdMob testing key

247 views
Skip to first unread message

Alex Erne

unread,
Jul 9, 2016, 8:43:53 AM7/9/16
to Google Mobile Ads SDK Developers
I remember when I started using AdMobs there was a testing key in one of the packages I used at the time. And as time goes and old/obsolete packages are deleted from my system, so also that testing key...

Anyone still knows where to find/get that testing key? I really need it because of an upcoming project where I want to implement a lot of extra options (get rewards for watching a daily video ad and such - is that even allowed?) which I need to test if they work as intended..

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jul 11, 2016, 8:55:59 AM7/11/16
to Google Mobile Ads SDK Developers
Hi Alex,

I assume that you mean the Device ID, which is you can use to add as a testing device to only load test ads. To get this - 
  • For Android, you need to build the app on your device and open up Android Studio and look into the logcat. On boot of the app, the SDK would log the connected device's ID, which you can use while making the AdRequest here.
  • The same goes for iOS, where you would get your connected Device ID, when you launch the app with Xcode.
The format would be like  - addTestDevice("XXXX - YOUR DEVICE ID - XXXXX");

Thanks,
Veer Busani
Mobile Ads SDK Team

Alex Erne

unread,
Jul 12, 2016, 4:45:00 AM7/12/16
to Google Mobile Ads SDK Developers
Thanks Veer.
One more question though. The YOUR DEVICE ID you're referring to, that's the SystemInfo.deviceUniqueIdentifier (from .NET/C#) or can I just drop ANY string there that I'd like?

Alex Erne

unread,
Jul 12, 2016, 5:46:52 AM7/12/16
to Google Mobile Ads SDK Developers
nvm... got it working with the SystemInfo.deviceUniqueIdentifier in place there.
Reply all
Reply to author
Forward
0 new messages