I followed the exact guidelines given in firebase docs to show admob ads in my app. I added both emulator and my device ID as test devices in the AdBuilder. So the AdBuilder.isTestAd() is returning true after loading the ad. But on the screen am getting real ads.
- Is this expected in new admob?
- How can I differentiate test ad and real ad?
My code:
AdRequest request = new AdRequest.Builder()
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("MY_DEVICE_ID")
.build();
Firebase docs: https://firebase.google.com/docs/admob/android/targeting
Thank you