no Test Ad Label on my ads when i test them with testDevice

24 views
Skip to first unread message

ash a

unread,
Sep 29, 2018, 11:53:05 AM9/29/18
to Google Mobile Ads SDK Developers
Hello,
i am trying to do some testing on my ads implementation.

i got the device ID from - Device ID Finder for AdMob - on the play store - looks like a valid device ID.

i have added my device as test device to each request - 


AdRequest request = new AdRequest.Builder().AddTestDevice("XXXXXXXXXXXXXXXX").Build();

        if (request.TestDevices.Contains("XXXXXXXXXXX"))
            Debug.Log("Request contains test device id");


i see its contained in the request

BUT the ads i am getting are REAL ads without any Test Ad label - i dont want to get my account banned.

in admob they say to do request.IsTestDevice - but this isnt part of the API in unity - so how can i confirm i am not violating anything.


when i look in the admob console - i do see the requests made and impressions made.

Thanks  a lot

Alon

mobileadssdk-a...@google.com

unread,
Oct 1, 2018, 2:04:37 AM10/1/18
to ash a, Google Mobile Ads SDK Developers
Hi Alon,

We appreciate your initiative on making sure your actions are always compliant to the policies.

Please note that we do not officially support any third party apps that generates the device Id that you will use to set your test device so we can't guarantee that what you've set is correct. It was contained in the AdRequest when you called request.TestDevices.Contains() because you added it to the list of test devices when you called AdRequest.Builder().AddTestDevice but it doesn't mean that what you've set is correct.

As mentioned in this guide, the only way you can retrieve the device Id of your Android device is via a log message thrown in the logcat output when sending an Ad Request (you can use our sample Ad Unit Ids for this purpose) in your device.

Regards,
Ivan Bautista
Mobile Ads SDK Team




--

---
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/dc64eaf9-5032-4f78-98fa-7667ac9253df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages