Reputation: 52
Is admob blocked my account when I check ads in Emulator.
How invalid clicks made in Emulator ?
Pls help me
Upvotes: 0
Views: 2956
Reputation: 788
Currently, Android emulators get automatically configured as Admob test devices, so you don't need to call addTestDevice()
.
However, if you also want to test your ads on a real device, you will need to add it as a test device. This can be done either through Admob UI(Settings
-> Test Devices
-> Add test device
) or programmatically, as described by @Jova.
Docs: https://developers.google.com/admob/android/test-ads#enable_test_devices
Upvotes: 0
Reputation: 499
If you do that so often. to avoid that use test ad.
AdRequest req = new AdRequest();
req.addKeyword("game");
req.addTestDevice(AdRequest.TEST_EMULATOR);
Add a test device before load ad. You also may add you phone as test device. look in logcat, adView activity will send you an info abut how to run only test ads on your phone
Upvotes: 4