AdMob test device ID Unity3D

5,625 views
Skip to first unread message

Biuro SKDE

unread,
Mar 12, 2016, 12:49:20 PM3/12/16
to Google Mobile Ads SDK Developers
Hello and Welcome first time!
I have important question.

How can I set up (find) test device ID for my AdMob account.
Im using Unity3D and was looking for it for few days.
I dont want break the rules and not to click my own ads but I have to test it also.

So I just try to find that ID.
Im using AdMob plugin VNTIS witch works fine and there is even place where I can write test ID

BUT WHERE I CAN FIND MY TEST DEVICE ID ?  - I get stuck, yes I am.

Please help if somebody knows already.
Thank you friends!


Biuro SKDE

unread,
Mar 12, 2016, 12:51:39 PM3/12/16
to Google Mobile Ads SDK Developers
Im not using Android Studio nor Eclipse.

Veer Arjun Busani

unread,
Mar 14, 2016, 11:22:03 AM3/14/16
to Google Mobile Ads SDK Developers
Hi there,

You need to run the build on your device. While listening to the logs on, let's say - Android Studio, the SDK would print the device ID. Another quick way would to be download our sample app in Android, build and run it, to know your device ID. Make sure that you are building on your device and not on the emulator.

Thanks,
Veer Busani
Mobile Ads SDK Team
Message has been deleted
Message has been deleted

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jun 14, 2016, 11:41:08 AM6/14/16
to Google Mobile Ads SDK Developers
Hi Chaduranga,

You must add your own device id for test ads to be served. The one in the sample app is exactly that, a sample. You can retrieve your device id when you build the sample app on your device and load Android Studio. It will output your device id in the logs. Also note that you can only enable test mode when trying to make an AdRequest by adding your device id as a test device.

Thanks,
Veer Busani
Mobile Ads SDK Team

On Tuesday, June 14, 2016 at 3:34:17 AM UTC-4, Chaduranga C wrote:
Hi Admob,

I was running the demo 'Hello World' app and trying to click on the Request Banner button I clicked the Ad.
Inside my Admob console it registered that click

I i see this








AdMob Network requests
Matched requests
Match rate
Impressions
Clicks
Impression CTR
Impression RPM
Estimated earnings
19
19
100.00%
19
1
5.26%
€2.15
€0.04

Is your supplied app not in testmode?   
Message has been deleted

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jun 15, 2016, 11:40:51 AM6/15/16
to Google Mobile Ads SDK Developers
Hi Chaduranga,

The main idea is for you, as a developer, never to create false impressions or clicks on live ads. For this reason, we recommend all pubs to enable test mode when the project is under development. The way you have modified the test device to add your device id is exactly how you would do it. Once you are in test mode, you can test your app to see how it reacts to clickthroughs among others. 

As to your final question, where you want to click on ads of an app, which is already in prod, I will suggest you to contact the AdMob Product Support team. They will be able to help you for any policy related questions. Personally however, I will never click on any live ads if they are being served through my Ad Unit ID.

Thanks,
Veer Busani
Mobile Ads SDK Team

On Wednesday, June 15, 2016 at 1:38:14 AM UTC-4, Chaduranga C wrote:
Hi Veer,

I can see two outputs to the sample app.  If i leave the given project only modified to include my ad unit ids then I see test ads working fine.

How ever if I modify the following

.AddTestDevice("0123456789ABCDEF0123456789ABCDEF")

To my device id reported in catlog I see actual ads being show

So is it necessary to put that in only to safe guard me as the developer from accidental clicks?  This goes on further to following:

If I have an app with ads on google play, I then download it onto my device, and the ads will be show.  What happens If i click on ads inside my own app that Ive published.
I already have one app, on google play. It has no ads, but i download it and play on my developer android device.

I'm still new, and the documentation is quite complicated.

Chaduranga
Reply all
Reply to author
Forward
Message has been deleted
0 new messages