I could see there is some test id for testing the AdMob ads in Android devices. I know how to get the test id from log cat.
What is the difference in testing the ads in Android devices with the statement adRequest.addTestDevice("TEST_DEVICE_ID");
and without it? Because on both the scenarios I am able to get the ads without any problem.
The code:
AdRequest adRequest = new AdRequest();
adRequest.addTestDevice("TEST_DEVICE_ID");
"TEST_DEVICE_ID" is just a placeholder for your device unique ID.
It should be replaced with something like:
adRequest.addTestDevice("3E4409D3BCF2XXXXX5D87F53CD4XXXXX");
To find your device ID: Run your app with adRequest.addTestDevice("TEST_DEVICE_ID");
in your code, this would print your device ID to the log. Search the logcat trace for an INFO message containing the text:
adRequest.addTestDevice
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With