I\'m using admob for showing android ads. The test ads are working fine but real ads are not shown. Also, I\'ve no issue with real interstitial ads as they work fine. Just t
To create a Live Ad unit id
Sign In to
https://apps.admob.com
inside your xml add AdView
<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_unit_id">
</com.google.android.gms.ads.AdView>
inside Strings
<string name="banner_ad_unit_id">your_new_ad_unit</string>
in your java code
AdView mAdView = (AdView) v.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
Below is the official answer for time required to pass in order to display live ads.
How long does it take for ads to begin appearing after the first ad request?
When apps are newly registered with AdMob, it typically takes up to an hour and a few ad requests to allow inventory to build. Because of this, you may not see live impressions immediately.
Note: In some cases, it may take longer than an hour. Please wait 24 hours before seeking additional help.
Once your app is making more requests, you should see more consistent results. Please note that test ads operate through the same channels as live ads. Being able to return a test ad ensures that your application is communicating properly with our network.
Source: https://support.google.com/admob/answer/2993019?hl=en