Admob shows Test ads but not real ads












25















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 the real banner ads are not showing up. My java code is



private InterstitialAd interstitial;    
interstitial = new InterstitialAd(MainActivity.this);

interstitial.setAdUnitId("ca-app-pub-********");

AdView adView = (AdView) this.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder()

// Add a test device to show Test Ads
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")
.build();

// Load ads into Banner Ads
adView.loadAd(adRequest);

// Load ads into Interstitial Ads
//interstitial.loadAd(adRequest);


The Layout file is



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-********" />

</LinearLayout>









share|improve this question























  • Post AndroidManifest.xml. Post build.gradle.

    – Jared Burrows
    Mar 10 '15 at 0:00






  • 4





    Did you ever find a solution as I'm having the exact same problem?

    – Shredder2794
    Jun 3 '16 at 23:27











  • finally hows you solved your issue?

    – himCream
    Dec 1 '16 at 11:12













  • Could you resolve the issue?

    – Azrael94
    Mar 3 '17 at 19:16











  • I think you don't need to add anything to your layout file, if you are using intersitial ads.

    – Piotr Sagalara
    Mar 15 '17 at 0:16
















25















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 the real banner ads are not showing up. My java code is



private InterstitialAd interstitial;    
interstitial = new InterstitialAd(MainActivity.this);

interstitial.setAdUnitId("ca-app-pub-********");

AdView adView = (AdView) this.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder()

// Add a test device to show Test Ads
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")
.build();

// Load ads into Banner Ads
adView.loadAd(adRequest);

// Load ads into Interstitial Ads
//interstitial.loadAd(adRequest);


The Layout file is



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-********" />

</LinearLayout>









share|improve this question























  • Post AndroidManifest.xml. Post build.gradle.

    – Jared Burrows
    Mar 10 '15 at 0:00






  • 4





    Did you ever find a solution as I'm having the exact same problem?

    – Shredder2794
    Jun 3 '16 at 23:27











  • finally hows you solved your issue?

    – himCream
    Dec 1 '16 at 11:12













  • Could you resolve the issue?

    – Azrael94
    Mar 3 '17 at 19:16











  • I think you don't need to add anything to your layout file, if you are using intersitial ads.

    – Piotr Sagalara
    Mar 15 '17 at 0:16














25












25








25


5






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 the real banner ads are not showing up. My java code is



private InterstitialAd interstitial;    
interstitial = new InterstitialAd(MainActivity.this);

interstitial.setAdUnitId("ca-app-pub-********");

AdView adView = (AdView) this.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder()

// Add a test device to show Test Ads
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")
.build();

// Load ads into Banner Ads
adView.loadAd(adRequest);

// Load ads into Interstitial Ads
//interstitial.loadAd(adRequest);


The Layout file is



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-********" />

</LinearLayout>









share|improve this question














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 the real banner ads are not showing up. My java code is



private InterstitialAd interstitial;    
interstitial = new InterstitialAd(MainActivity.this);

interstitial.setAdUnitId("ca-app-pub-********");

AdView adView = (AdView) this.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder()

// Add a test device to show Test Ads
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")
.build();

// Load ads into Banner Ads
adView.loadAd(adRequest);

// Load ads into Interstitial Ads
//interstitial.loadAd(adRequest);


The Layout file is



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-********" />

</LinearLayout>






android admob






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 9 '15 at 16:54









Vishal AfreVishal Afre

1832624




1832624













  • Post AndroidManifest.xml. Post build.gradle.

    – Jared Burrows
    Mar 10 '15 at 0:00






  • 4





    Did you ever find a solution as I'm having the exact same problem?

    – Shredder2794
    Jun 3 '16 at 23:27











  • finally hows you solved your issue?

    – himCream
    Dec 1 '16 at 11:12













  • Could you resolve the issue?

    – Azrael94
    Mar 3 '17 at 19:16











  • I think you don't need to add anything to your layout file, if you are using intersitial ads.

    – Piotr Sagalara
    Mar 15 '17 at 0:16



















  • Post AndroidManifest.xml. Post build.gradle.

    – Jared Burrows
    Mar 10 '15 at 0:00






  • 4





    Did you ever find a solution as I'm having the exact same problem?

    – Shredder2794
    Jun 3 '16 at 23:27











  • finally hows you solved your issue?

    – himCream
    Dec 1 '16 at 11:12













  • Could you resolve the issue?

    – Azrael94
    Mar 3 '17 at 19:16











  • I think you don't need to add anything to your layout file, if you are using intersitial ads.

    – Piotr Sagalara
    Mar 15 '17 at 0:16

















Post AndroidManifest.xml. Post build.gradle.

– Jared Burrows
Mar 10 '15 at 0:00





Post AndroidManifest.xml. Post build.gradle.

– Jared Burrows
Mar 10 '15 at 0:00




4




4





Did you ever find a solution as I'm having the exact same problem?

– Shredder2794
Jun 3 '16 at 23:27





Did you ever find a solution as I'm having the exact same problem?

– Shredder2794
Jun 3 '16 at 23:27













finally hows you solved your issue?

– himCream
Dec 1 '16 at 11:12







finally hows you solved your issue?

– himCream
Dec 1 '16 at 11:12















Could you resolve the issue?

– Azrael94
Mar 3 '17 at 19:16





Could you resolve the issue?

– Azrael94
Mar 3 '17 at 19:16













I think you don't need to add anything to your layout file, if you are using intersitial ads.

– Piotr Sagalara
Mar 15 '17 at 0:16





I think you don't need to add anything to your layout file, if you are using intersitial ads.

– Piotr Sagalara
Mar 15 '17 at 0:16












10 Answers
10






active

oldest

votes


















12














When apps are newly registered with AdMob, it takes some time and a few ads requests to allow inventory to build. Because of this, you may not see live impressions immediately. Once your app starts 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. Be patience it will work after some days.






share|improve this answer
























  • I have the same issue and its been 2 days my real ads (banner ad) is not displayed .. how many days do i have to wait more ? Here is my published app url:play.google.com/store/apps/…

    – Usman lqbal
    Jan 20 at 7:14





















14














Remove the line that says



.addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")


Also, when you use a virtual device, it shows the test ads no matter what. Are you testing it on a real device?






share|improve this answer
























  • Yeah, I'm testing on real device... If I keep that line then I get a test ad on my real device... But no ad when I remove the line

    – Vishal Afre
    Mar 9 '15 at 18:55











  • Have you added all that is needed to your manifest?

    – Marshall
    Mar 9 '15 at 18:59






  • 1





    Of course... Had I not added them in my manifest then how could have I got real interstitial ads

    – Vishal Afre
    Mar 10 '15 at 3:43





















8














"It could be that you have only recently created a new Ad Unit ID and requesting for live ads. It could take a few hours for ads to start getting served if that is that case."



I faced the same problem, if you can show test ads, it's fine, live ads will be showed soon (of course after you removed .addTestDevice(...) ).



I guess that google need time to collect some information (location, age, gender...) to show properly ads that can interest user.



May be you know but NEVER forget: DON NOT touch the live ads, you will be banned soon.



https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/android/fBe3YL3ffpo






share|improve this answer































    8














    You might be using the sample unit id: ca-app-pub-3940256099942544/6300978111



    If you use above then you will see test ads.



    Make sure you change to your own unit id before releasing the app.






    share|improve this answer































      5














      If you have removed:



      .addTestDevice()


      Then, make sure you are using the same ID that AdMob gave you in your string.xml file



      AdMob ID page






      share|improve this answer































        3














        Look at your logcat. It will say why real ads are not being shown.



        It's probably because there are none available to show for your device, in your location, right now.






        share|improve this answer
























        • May be... Or is it so that I've just created ca-pub id for the ad and it takes some time to make the ads available???

          – Vishal Afre
          Mar 10 '15 at 3:46











        • That's the same scenario.

          – William
          Mar 10 '15 at 7:52











        • I checked the Logcat. It says "No fill from ad server". What could that mean??

          – Vishal Afre
          Mar 10 '15 at 9:05






        • 1





          That means that the ad server currently has no ads to show for you. Exactly what I said it might. This is an expected state. It will happen from time to time.

          – William
          Mar 11 '15 at 10:28






        • 1





          No. Whether ads are served is totally orthogonal to whether your app has been published on Google Play.

          – William
          Mar 12 '15 at 1:36



















        2














        To create a Live Ad unit id



        Sign In to



        https://apps.admob.com




        1. in the left side menu click on ->Apps

        2. add app

        3. choose whether you have published your app on Google Play or the App Store

        4. if no -> Enter your app information

        5. Create Ad unit

        6. replace the test Ad unit with the new Ad unit.

        7. you get to see the AD once the app is published to playstore!


        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);





        share|improve this answer

































          0














          If you chose the Native Express template then use this link. NativeExpressAdView won't work with AdView. https://firebase.google.com/docs/admob/android/native-express



          NativeExpressAdView adView = (NativeExpressAdView)findViewById(R.id.adView);

          <com.google.android.gms.ads.NativeExpressAdView
          android:id="@+id/adView"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          ads:adUnitId="ca-app-123123123123/123123123"
          ads:adSize="320x150">
          </com.google.android.gms.ads.NativeExpressAdView>





          share|improve this answer































            0














            I also was faced with this problem. AdView and IntersitialAd showed me only test advertisements on the simulator. But there were real advertisements on the real device.
            I think that firebase can detect if you use the simulator or the real device. I've used firebase:




            com.google.firebase:firebase-ads:11.0.4







            share|improve this answer































              0














              Actually, I also faced this problem. You have to log in to admob and go to the app you added there. That app has an admob id. Use the id of the app to do these steps.
              Then create a new banner or whatever type of ad in that app (in admob) and use the id of that banner to complete these steps. When you create a banner, it will give you the instructions itself.






              share|improve this answer
























              • Can you add what relevant steps are needed from your links?

                – ivcubr
                Aug 16 '18 at 12:50











              • These are not only steps, it is a full tutorial on developer.google.com so I felt, instead of rewriting it all, one can visit and see it himself.

                – Umer Softwares
                Aug 17 '18 at 12:54



















              10 Answers
              10






              active

              oldest

              votes








              10 Answers
              10






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              12














              When apps are newly registered with AdMob, it takes some time and a few ads requests to allow inventory to build. Because of this, you may not see live impressions immediately. Once your app starts 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. Be patience it will work after some days.






              share|improve this answer
























              • I have the same issue and its been 2 days my real ads (banner ad) is not displayed .. how many days do i have to wait more ? Here is my published app url:play.google.com/store/apps/…

                – Usman lqbal
                Jan 20 at 7:14


















              12














              When apps are newly registered with AdMob, it takes some time and a few ads requests to allow inventory to build. Because of this, you may not see live impressions immediately. Once your app starts 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. Be patience it will work after some days.






              share|improve this answer
























              • I have the same issue and its been 2 days my real ads (banner ad) is not displayed .. how many days do i have to wait more ? Here is my published app url:play.google.com/store/apps/…

                – Usman lqbal
                Jan 20 at 7:14
















              12












              12








              12







              When apps are newly registered with AdMob, it takes some time and a few ads requests to allow inventory to build. Because of this, you may not see live impressions immediately. Once your app starts 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. Be patience it will work after some days.






              share|improve this answer













              When apps are newly registered with AdMob, it takes some time and a few ads requests to allow inventory to build. Because of this, you may not see live impressions immediately. Once your app starts 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. Be patience it will work after some days.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Mar 13 '18 at 6:09









              Mukesh ChauhanMukesh Chauhan

              17215




              17215













              • I have the same issue and its been 2 days my real ads (banner ad) is not displayed .. how many days do i have to wait more ? Here is my published app url:play.google.com/store/apps/…

                – Usman lqbal
                Jan 20 at 7:14





















              • I have the same issue and its been 2 days my real ads (banner ad) is not displayed .. how many days do i have to wait more ? Here is my published app url:play.google.com/store/apps/…

                – Usman lqbal
                Jan 20 at 7:14



















              I have the same issue and its been 2 days my real ads (banner ad) is not displayed .. how many days do i have to wait more ? Here is my published app url:play.google.com/store/apps/…

              – Usman lqbal
              Jan 20 at 7:14







              I have the same issue and its been 2 days my real ads (banner ad) is not displayed .. how many days do i have to wait more ? Here is my published app url:play.google.com/store/apps/…

              – Usman lqbal
              Jan 20 at 7:14















              14














              Remove the line that says



              .addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")


              Also, when you use a virtual device, it shows the test ads no matter what. Are you testing it on a real device?






              share|improve this answer
























              • Yeah, I'm testing on real device... If I keep that line then I get a test ad on my real device... But no ad when I remove the line

                – Vishal Afre
                Mar 9 '15 at 18:55











              • Have you added all that is needed to your manifest?

                – Marshall
                Mar 9 '15 at 18:59






              • 1





                Of course... Had I not added them in my manifest then how could have I got real interstitial ads

                – Vishal Afre
                Mar 10 '15 at 3:43


















              14














              Remove the line that says



              .addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")


              Also, when you use a virtual device, it shows the test ads no matter what. Are you testing it on a real device?






              share|improve this answer
























              • Yeah, I'm testing on real device... If I keep that line then I get a test ad on my real device... But no ad when I remove the line

                – Vishal Afre
                Mar 9 '15 at 18:55











              • Have you added all that is needed to your manifest?

                – Marshall
                Mar 9 '15 at 18:59






              • 1





                Of course... Had I not added them in my manifest then how could have I got real interstitial ads

                – Vishal Afre
                Mar 10 '15 at 3:43
















              14












              14








              14







              Remove the line that says



              .addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")


              Also, when you use a virtual device, it shows the test ads no matter what. Are you testing it on a real device?






              share|improve this answer













              Remove the line that says



              .addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")


              Also, when you use a virtual device, it shows the test ads no matter what. Are you testing it on a real device?







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Mar 9 '15 at 17:42









              MarshallMarshall

              74031335




              74031335













              • Yeah, I'm testing on real device... If I keep that line then I get a test ad on my real device... But no ad when I remove the line

                – Vishal Afre
                Mar 9 '15 at 18:55











              • Have you added all that is needed to your manifest?

                – Marshall
                Mar 9 '15 at 18:59






              • 1





                Of course... Had I not added them in my manifest then how could have I got real interstitial ads

                – Vishal Afre
                Mar 10 '15 at 3:43





















              • Yeah, I'm testing on real device... If I keep that line then I get a test ad on my real device... But no ad when I remove the line

                – Vishal Afre
                Mar 9 '15 at 18:55











              • Have you added all that is needed to your manifest?

                – Marshall
                Mar 9 '15 at 18:59






              • 1





                Of course... Had I not added them in my manifest then how could have I got real interstitial ads

                – Vishal Afre
                Mar 10 '15 at 3:43



















              Yeah, I'm testing on real device... If I keep that line then I get a test ad on my real device... But no ad when I remove the line

              – Vishal Afre
              Mar 9 '15 at 18:55





              Yeah, I'm testing on real device... If I keep that line then I get a test ad on my real device... But no ad when I remove the line

              – Vishal Afre
              Mar 9 '15 at 18:55













              Have you added all that is needed to your manifest?

              – Marshall
              Mar 9 '15 at 18:59





              Have you added all that is needed to your manifest?

              – Marshall
              Mar 9 '15 at 18:59




              1




              1





              Of course... Had I not added them in my manifest then how could have I got real interstitial ads

              – Vishal Afre
              Mar 10 '15 at 3:43







              Of course... Had I not added them in my manifest then how could have I got real interstitial ads

              – Vishal Afre
              Mar 10 '15 at 3:43













              8














              "It could be that you have only recently created a new Ad Unit ID and requesting for live ads. It could take a few hours for ads to start getting served if that is that case."



              I faced the same problem, if you can show test ads, it's fine, live ads will be showed soon (of course after you removed .addTestDevice(...) ).



              I guess that google need time to collect some information (location, age, gender...) to show properly ads that can interest user.



              May be you know but NEVER forget: DON NOT touch the live ads, you will be banned soon.



              https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/android/fBe3YL3ffpo






              share|improve this answer




























                8














                "It could be that you have only recently created a new Ad Unit ID and requesting for live ads. It could take a few hours for ads to start getting served if that is that case."



                I faced the same problem, if you can show test ads, it's fine, live ads will be showed soon (of course after you removed .addTestDevice(...) ).



                I guess that google need time to collect some information (location, age, gender...) to show properly ads that can interest user.



                May be you know but NEVER forget: DON NOT touch the live ads, you will be banned soon.



                https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/android/fBe3YL3ffpo






                share|improve this answer


























                  8












                  8








                  8







                  "It could be that you have only recently created a new Ad Unit ID and requesting for live ads. It could take a few hours for ads to start getting served if that is that case."



                  I faced the same problem, if you can show test ads, it's fine, live ads will be showed soon (of course after you removed .addTestDevice(...) ).



                  I guess that google need time to collect some information (location, age, gender...) to show properly ads that can interest user.



                  May be you know but NEVER forget: DON NOT touch the live ads, you will be banned soon.



                  https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/android/fBe3YL3ffpo






                  share|improve this answer













                  "It could be that you have only recently created a new Ad Unit ID and requesting for live ads. It could take a few hours for ads to start getting served if that is that case."



                  I faced the same problem, if you can show test ads, it's fine, live ads will be showed soon (of course after you removed .addTestDevice(...) ).



                  I guess that google need time to collect some information (location, age, gender...) to show properly ads that can interest user.



                  May be you know but NEVER forget: DON NOT touch the live ads, you will be banned soon.



                  https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/android/fBe3YL3ffpo







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 24 '16 at 6:57









                  Think Twice Code OnceThink Twice Code Once

                  1,7911423




                  1,7911423























                      8














                      You might be using the sample unit id: ca-app-pub-3940256099942544/6300978111



                      If you use above then you will see test ads.



                      Make sure you change to your own unit id before releasing the app.






                      share|improve this answer




























                        8














                        You might be using the sample unit id: ca-app-pub-3940256099942544/6300978111



                        If you use above then you will see test ads.



                        Make sure you change to your own unit id before releasing the app.






                        share|improve this answer


























                          8












                          8








                          8







                          You might be using the sample unit id: ca-app-pub-3940256099942544/6300978111



                          If you use above then you will see test ads.



                          Make sure you change to your own unit id before releasing the app.






                          share|improve this answer













                          You might be using the sample unit id: ca-app-pub-3940256099942544/6300978111



                          If you use above then you will see test ads.



                          Make sure you change to your own unit id before releasing the app.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 2 '17 at 10:57









                          VikasVikas

                          3,13012632




                          3,13012632























                              5














                              If you have removed:



                              .addTestDevice()


                              Then, make sure you are using the same ID that AdMob gave you in your string.xml file



                              AdMob ID page






                              share|improve this answer




























                                5














                                If you have removed:



                                .addTestDevice()


                                Then, make sure you are using the same ID that AdMob gave you in your string.xml file



                                AdMob ID page






                                share|improve this answer


























                                  5












                                  5








                                  5







                                  If you have removed:



                                  .addTestDevice()


                                  Then, make sure you are using the same ID that AdMob gave you in your string.xml file



                                  AdMob ID page






                                  share|improve this answer













                                  If you have removed:



                                  .addTestDevice()


                                  Then, make sure you are using the same ID that AdMob gave you in your string.xml file



                                  AdMob ID page







                                  share|improve this answer












                                  share|improve this answer



                                  share|improve this answer










                                  answered Jan 4 '17 at 4:49









                                  Javier CastroJavier Castro

                                  6326




                                  6326























                                      3














                                      Look at your logcat. It will say why real ads are not being shown.



                                      It's probably because there are none available to show for your device, in your location, right now.






                                      share|improve this answer
























                                      • May be... Or is it so that I've just created ca-pub id for the ad and it takes some time to make the ads available???

                                        – Vishal Afre
                                        Mar 10 '15 at 3:46











                                      • That's the same scenario.

                                        – William
                                        Mar 10 '15 at 7:52











                                      • I checked the Logcat. It says "No fill from ad server". What could that mean??

                                        – Vishal Afre
                                        Mar 10 '15 at 9:05






                                      • 1





                                        That means that the ad server currently has no ads to show for you. Exactly what I said it might. This is an expected state. It will happen from time to time.

                                        – William
                                        Mar 11 '15 at 10:28






                                      • 1





                                        No. Whether ads are served is totally orthogonal to whether your app has been published on Google Play.

                                        – William
                                        Mar 12 '15 at 1:36
















                                      3














                                      Look at your logcat. It will say why real ads are not being shown.



                                      It's probably because there are none available to show for your device, in your location, right now.






                                      share|improve this answer
























                                      • May be... Or is it so that I've just created ca-pub id for the ad and it takes some time to make the ads available???

                                        – Vishal Afre
                                        Mar 10 '15 at 3:46











                                      • That's the same scenario.

                                        – William
                                        Mar 10 '15 at 7:52











                                      • I checked the Logcat. It says "No fill from ad server". What could that mean??

                                        – Vishal Afre
                                        Mar 10 '15 at 9:05






                                      • 1





                                        That means that the ad server currently has no ads to show for you. Exactly what I said it might. This is an expected state. It will happen from time to time.

                                        – William
                                        Mar 11 '15 at 10:28






                                      • 1





                                        No. Whether ads are served is totally orthogonal to whether your app has been published on Google Play.

                                        – William
                                        Mar 12 '15 at 1:36














                                      3












                                      3








                                      3







                                      Look at your logcat. It will say why real ads are not being shown.



                                      It's probably because there are none available to show for your device, in your location, right now.






                                      share|improve this answer













                                      Look at your logcat. It will say why real ads are not being shown.



                                      It's probably because there are none available to show for your device, in your location, right now.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Mar 9 '15 at 23:55









                                      WilliamWilliam

                                      16.6k74078




                                      16.6k74078













                                      • May be... Or is it so that I've just created ca-pub id for the ad and it takes some time to make the ads available???

                                        – Vishal Afre
                                        Mar 10 '15 at 3:46











                                      • That's the same scenario.

                                        – William
                                        Mar 10 '15 at 7:52











                                      • I checked the Logcat. It says "No fill from ad server". What could that mean??

                                        – Vishal Afre
                                        Mar 10 '15 at 9:05






                                      • 1





                                        That means that the ad server currently has no ads to show for you. Exactly what I said it might. This is an expected state. It will happen from time to time.

                                        – William
                                        Mar 11 '15 at 10:28






                                      • 1





                                        No. Whether ads are served is totally orthogonal to whether your app has been published on Google Play.

                                        – William
                                        Mar 12 '15 at 1:36



















                                      • May be... Or is it so that I've just created ca-pub id for the ad and it takes some time to make the ads available???

                                        – Vishal Afre
                                        Mar 10 '15 at 3:46











                                      • That's the same scenario.

                                        – William
                                        Mar 10 '15 at 7:52











                                      • I checked the Logcat. It says "No fill from ad server". What could that mean??

                                        – Vishal Afre
                                        Mar 10 '15 at 9:05






                                      • 1





                                        That means that the ad server currently has no ads to show for you. Exactly what I said it might. This is an expected state. It will happen from time to time.

                                        – William
                                        Mar 11 '15 at 10:28






                                      • 1





                                        No. Whether ads are served is totally orthogonal to whether your app has been published on Google Play.

                                        – William
                                        Mar 12 '15 at 1:36

















                                      May be... Or is it so that I've just created ca-pub id for the ad and it takes some time to make the ads available???

                                      – Vishal Afre
                                      Mar 10 '15 at 3:46





                                      May be... Or is it so that I've just created ca-pub id for the ad and it takes some time to make the ads available???

                                      – Vishal Afre
                                      Mar 10 '15 at 3:46













                                      That's the same scenario.

                                      – William
                                      Mar 10 '15 at 7:52





                                      That's the same scenario.

                                      – William
                                      Mar 10 '15 at 7:52













                                      I checked the Logcat. It says "No fill from ad server". What could that mean??

                                      – Vishal Afre
                                      Mar 10 '15 at 9:05





                                      I checked the Logcat. It says "No fill from ad server". What could that mean??

                                      – Vishal Afre
                                      Mar 10 '15 at 9:05




                                      1




                                      1





                                      That means that the ad server currently has no ads to show for you. Exactly what I said it might. This is an expected state. It will happen from time to time.

                                      – William
                                      Mar 11 '15 at 10:28





                                      That means that the ad server currently has no ads to show for you. Exactly what I said it might. This is an expected state. It will happen from time to time.

                                      – William
                                      Mar 11 '15 at 10:28




                                      1




                                      1





                                      No. Whether ads are served is totally orthogonal to whether your app has been published on Google Play.

                                      – William
                                      Mar 12 '15 at 1:36





                                      No. Whether ads are served is totally orthogonal to whether your app has been published on Google Play.

                                      – William
                                      Mar 12 '15 at 1:36











                                      2














                                      To create a Live Ad unit id



                                      Sign In to



                                      https://apps.admob.com




                                      1. in the left side menu click on ->Apps

                                      2. add app

                                      3. choose whether you have published your app on Google Play or the App Store

                                      4. if no -> Enter your app information

                                      5. Create Ad unit

                                      6. replace the test Ad unit with the new Ad unit.

                                      7. you get to see the AD once the app is published to playstore!


                                      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);





                                      share|improve this answer






























                                        2














                                        To create a Live Ad unit id



                                        Sign In to



                                        https://apps.admob.com




                                        1. in the left side menu click on ->Apps

                                        2. add app

                                        3. choose whether you have published your app on Google Play or the App Store

                                        4. if no -> Enter your app information

                                        5. Create Ad unit

                                        6. replace the test Ad unit with the new Ad unit.

                                        7. you get to see the AD once the app is published to playstore!


                                        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);





                                        share|improve this answer




























                                          2












                                          2








                                          2







                                          To create a Live Ad unit id



                                          Sign In to



                                          https://apps.admob.com




                                          1. in the left side menu click on ->Apps

                                          2. add app

                                          3. choose whether you have published your app on Google Play or the App Store

                                          4. if no -> Enter your app information

                                          5. Create Ad unit

                                          6. replace the test Ad unit with the new Ad unit.

                                          7. you get to see the AD once the app is published to playstore!


                                          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);





                                          share|improve this answer















                                          To create a Live Ad unit id



                                          Sign In to



                                          https://apps.admob.com




                                          1. in the left side menu click on ->Apps

                                          2. add app

                                          3. choose whether you have published your app on Google Play or the App Store

                                          4. if no -> Enter your app information

                                          5. Create Ad unit

                                          6. replace the test Ad unit with the new Ad unit.

                                          7. you get to see the AD once the app is published to playstore!


                                          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);






                                          share|improve this answer














                                          share|improve this answer



                                          share|improve this answer








                                          edited Oct 27 '17 at 10:34

























                                          answered Oct 27 '17 at 10:27









                                          Amrutha SajAmrutha Saj

                                          1,012525




                                          1,012525























                                              0














                                              If you chose the Native Express template then use this link. NativeExpressAdView won't work with AdView. https://firebase.google.com/docs/admob/android/native-express



                                              NativeExpressAdView adView = (NativeExpressAdView)findViewById(R.id.adView);

                                              <com.google.android.gms.ads.NativeExpressAdView
                                              android:id="@+id/adView"
                                              android:layout_width="wrap_content"
                                              android:layout_height="wrap_content"
                                              ads:adUnitId="ca-app-123123123123/123123123"
                                              ads:adSize="320x150">
                                              </com.google.android.gms.ads.NativeExpressAdView>





                                              share|improve this answer




























                                                0














                                                If you chose the Native Express template then use this link. NativeExpressAdView won't work with AdView. https://firebase.google.com/docs/admob/android/native-express



                                                NativeExpressAdView adView = (NativeExpressAdView)findViewById(R.id.adView);

                                                <com.google.android.gms.ads.NativeExpressAdView
                                                android:id="@+id/adView"
                                                android:layout_width="wrap_content"
                                                android:layout_height="wrap_content"
                                                ads:adUnitId="ca-app-123123123123/123123123"
                                                ads:adSize="320x150">
                                                </com.google.android.gms.ads.NativeExpressAdView>





                                                share|improve this answer


























                                                  0












                                                  0








                                                  0







                                                  If you chose the Native Express template then use this link. NativeExpressAdView won't work with AdView. https://firebase.google.com/docs/admob/android/native-express



                                                  NativeExpressAdView adView = (NativeExpressAdView)findViewById(R.id.adView);

                                                  <com.google.android.gms.ads.NativeExpressAdView
                                                  android:id="@+id/adView"
                                                  android:layout_width="wrap_content"
                                                  android:layout_height="wrap_content"
                                                  ads:adUnitId="ca-app-123123123123/123123123"
                                                  ads:adSize="320x150">
                                                  </com.google.android.gms.ads.NativeExpressAdView>





                                                  share|improve this answer













                                                  If you chose the Native Express template then use this link. NativeExpressAdView won't work with AdView. https://firebase.google.com/docs/admob/android/native-express



                                                  NativeExpressAdView adView = (NativeExpressAdView)findViewById(R.id.adView);

                                                  <com.google.android.gms.ads.NativeExpressAdView
                                                  android:id="@+id/adView"
                                                  android:layout_width="wrap_content"
                                                  android:layout_height="wrap_content"
                                                  ads:adUnitId="ca-app-123123123123/123123123"
                                                  ads:adSize="320x150">
                                                  </com.google.android.gms.ads.NativeExpressAdView>






                                                  share|improve this answer












                                                  share|improve this answer



                                                  share|improve this answer










                                                  answered Sep 26 '16 at 9:43









                                                  Adam MendozaAdam Mendoza

                                                  2,78621826




                                                  2,78621826























                                                      0














                                                      I also was faced with this problem. AdView and IntersitialAd showed me only test advertisements on the simulator. But there were real advertisements on the real device.
                                                      I think that firebase can detect if you use the simulator or the real device. I've used firebase:




                                                      com.google.firebase:firebase-ads:11.0.4







                                                      share|improve this answer




























                                                        0














                                                        I also was faced with this problem. AdView and IntersitialAd showed me only test advertisements on the simulator. But there were real advertisements on the real device.
                                                        I think that firebase can detect if you use the simulator or the real device. I've used firebase:




                                                        com.google.firebase:firebase-ads:11.0.4







                                                        share|improve this answer


























                                                          0












                                                          0








                                                          0







                                                          I also was faced with this problem. AdView and IntersitialAd showed me only test advertisements on the simulator. But there were real advertisements on the real device.
                                                          I think that firebase can detect if you use the simulator or the real device. I've used firebase:




                                                          com.google.firebase:firebase-ads:11.0.4







                                                          share|improve this answer













                                                          I also was faced with this problem. AdView and IntersitialAd showed me only test advertisements on the simulator. But there were real advertisements on the real device.
                                                          I think that firebase can detect if you use the simulator or the real device. I've used firebase:




                                                          com.google.firebase:firebase-ads:11.0.4








                                                          share|improve this answer












                                                          share|improve this answer



                                                          share|improve this answer










                                                          answered Aug 5 '17 at 13:08









                                                          MalderMalder

                                                          1,7141833




                                                          1,7141833























                                                              0














                                                              Actually, I also faced this problem. You have to log in to admob and go to the app you added there. That app has an admob id. Use the id of the app to do these steps.
                                                              Then create a new banner or whatever type of ad in that app (in admob) and use the id of that banner to complete these steps. When you create a banner, it will give you the instructions itself.






                                                              share|improve this answer
























                                                              • Can you add what relevant steps are needed from your links?

                                                                – ivcubr
                                                                Aug 16 '18 at 12:50











                                                              • These are not only steps, it is a full tutorial on developer.google.com so I felt, instead of rewriting it all, one can visit and see it himself.

                                                                – Umer Softwares
                                                                Aug 17 '18 at 12:54
















                                                              0














                                                              Actually, I also faced this problem. You have to log in to admob and go to the app you added there. That app has an admob id. Use the id of the app to do these steps.
                                                              Then create a new banner or whatever type of ad in that app (in admob) and use the id of that banner to complete these steps. When you create a banner, it will give you the instructions itself.






                                                              share|improve this answer
























                                                              • Can you add what relevant steps are needed from your links?

                                                                – ivcubr
                                                                Aug 16 '18 at 12:50











                                                              • These are not only steps, it is a full tutorial on developer.google.com so I felt, instead of rewriting it all, one can visit and see it himself.

                                                                – Umer Softwares
                                                                Aug 17 '18 at 12:54














                                                              0












                                                              0








                                                              0







                                                              Actually, I also faced this problem. You have to log in to admob and go to the app you added there. That app has an admob id. Use the id of the app to do these steps.
                                                              Then create a new banner or whatever type of ad in that app (in admob) and use the id of that banner to complete these steps. When you create a banner, it will give you the instructions itself.






                                                              share|improve this answer













                                                              Actually, I also faced this problem. You have to log in to admob and go to the app you added there. That app has an admob id. Use the id of the app to do these steps.
                                                              Then create a new banner or whatever type of ad in that app (in admob) and use the id of that banner to complete these steps. When you create a banner, it will give you the instructions itself.







                                                              share|improve this answer












                                                              share|improve this answer



                                                              share|improve this answer










                                                              answered Aug 16 '18 at 12:23









                                                              Umer SoftwaresUmer Softwares

                                                              62




                                                              62













                                                              • Can you add what relevant steps are needed from your links?

                                                                – ivcubr
                                                                Aug 16 '18 at 12:50











                                                              • These are not only steps, it is a full tutorial on developer.google.com so I felt, instead of rewriting it all, one can visit and see it himself.

                                                                – Umer Softwares
                                                                Aug 17 '18 at 12:54



















                                                              • Can you add what relevant steps are needed from your links?

                                                                – ivcubr
                                                                Aug 16 '18 at 12:50











                                                              • These are not only steps, it is a full tutorial on developer.google.com so I felt, instead of rewriting it all, one can visit and see it himself.

                                                                – Umer Softwares
                                                                Aug 17 '18 at 12:54

















                                                              Can you add what relevant steps are needed from your links?

                                                              – ivcubr
                                                              Aug 16 '18 at 12:50





                                                              Can you add what relevant steps are needed from your links?

                                                              – ivcubr
                                                              Aug 16 '18 at 12:50













                                                              These are not only steps, it is a full tutorial on developer.google.com so I felt, instead of rewriting it all, one can visit and see it himself.

                                                              – Umer Softwares
                                                              Aug 17 '18 at 12:54





                                                              These are not only steps, it is a full tutorial on developer.google.com so I felt, instead of rewriting it all, one can visit and see it himself.

                                                              – Umer Softwares
                                                              Aug 17 '18 at 12:54



                                                              Popular posts from this blog

                                                              Guess what letter conforming each word

                                                              Port of Spain

                                                              Run scheduled task as local user group (not BUILTIN)