Quick question on "test device".

40 views
Skip to first unread message

Erbin Lim

unread,
Apr 23, 2014, 1:53:37 PM4/23/14
to google-adm...@googlegroups.com
I'm very new to this and only started putting in ads in my app, so please bear with me. I'm trying to stay within the guidelines and terms of use. I just have two quick questions


1. I sometimes have two devices, can I simply use the code for eg:

AdRequest adRequest = new AdRequest.Builder()
    .addTestDevice("AC98C820A50B4AD8A2106EDE96FB87D4") // My Galaxy Nexus test phone
    .addTestDevice("AC98C80571ABCDEF5157070707070707") // Tablet
    .build();
in order to register both devices as a test device?

2. Is it "safe" to leave the test devices lines of code in a release version to by published on google play. Sometimes I forget to remove the code when exporting to google play.

Thanks.

Kunal Verma

unread,
Apr 23, 2014, 2:29:27 PM4/23/14
to Google AdMob Ads Developers
Yes, you are doing it the correct way for registering both devices. 
Also, if you test on Emulator, you can add

.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)

Secondly, It is completely safe to leave the test devices lines of code in a release version. You don't need to remove it. I have seen, that whenever I download my app from Google play on that particular device ( which I have added as test device), only test ads are shown. So, I can use my apps without worrying.
And on other devices, real Ads are shown.



--

---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages