AdMob banner ad not showing AdMob banner ad not showing android android

AdMob banner ad not showing


Use below lines of code

AdView mAdView = (AdView) findViewById(R.id.adView);AdRequest request = new AdRequest.Builder().addTestDevice(AdRequest.DEVICE_ID_EMULATOR)        // All emulators.addTestDevice("AC98C820A50B4AD8A2106EDE96FB87D4")  // My Galaxy Nexus test phone.build();mAdView.loadAd(request );

instead of using this

AdRequest adRequest = new AdRequest.Builder().build();

because this line will be used when your application would be ready for publish on Google Play Store.

You can place your device's id in place of "AC98C820A50B4AD8A2106EDE96FB87D4". Code to get device id:

String android_id = Settings.Secure.getString(getContext().getContentResolver(),            Settings.Secure.ANDROID_ID);

Please read these carefully:

https://developers.google.com/admob/android/targeting#test_ads

https://developers.google.com/admob/android/quick-start

See this

enter image description here

enter image description here


This problem is solved by uninstalling the app manually and reinstalling again without making any changes!!


Check if you have latest versions of adMob and GooglePlayServices lib.