Please enable JavaScript.
Coggle requires JavaScript to display documents.
ADMOB ANDROID - Coggle Diagram
ADMOB ANDROID
ENABLE TEST ADS
REF
https://www.youtube.com/watch?v=Gsd26EuSg4g&t=241s
It's important to enable test ads during development so that you can click on them without charging Google advertisers.
If you click on too many ads without being in test mode, you risk your account being flagged for invalid activity.
Demo ad units
These ad units are not associated with your AdMob account, so there's no risk of your account generating invalid traffic when using these ad units.
native
ca-app-pub-3940256099942544/2247696110
interstitial
ca-app-pub-3940256099942544/1033173712
adaptive banner
ca-app-pub-3940256099942544/9214589741
Enable Test Devices
If you want to do more rigorous testing with production-looking ads, you can now configure your device as a test device and use your own ad unit IDs that you've created in the AdMob UI.
test device
RequestConfiguration.Builder.setTestDeviceIds(Arrays.asList("33BE2250B43518CCDA7DE426D04EE231"))
You can optionally check isTestDevice() to confirm that your device was properly added as a test device.
MobileAds.initialize()
This method initializes the SDK and calls a completion listener once both the Google Mobile Ads SDK and adapter initializations have completed, or after a 30-second timeout. This needs to be done only once, ideally at app launch.
REF