Hi,
Thank you for contacting the Mobile Ads SDK Support team.
Yes, the AdRequest.isTestDevice API availability only for code. AdRequest.isTestDevice() describes the request only. It is true if you set up test devices programatically. If you add the test device in the AdMob UI then AdRequest.isTestDevice = false is expected because SDK may not know that the device is a test request at the time that API is called. When that API was first designed, the UI didn't have a way to enable test devices and it was only checking the SDK-enabled version.
I hope this helps! Let me know if you have any other questions.
![]() |
Mobile Ads SDK Team |