Admob says: "The server replied that there is no ad"

I added the admob test in my application, as the setup guide was directed and everything works well (in the emulator and on my device). To stop the test mode and upload my new apk to the market, I need to erase the test code from my .java file, right? I tried it and I downloaded my .apk file on my device (from mass storage), but I can not see any comments ... what am I wrong?

TEST CODE:

 AdManager.setTestDevices( new String[] { 
                   AdManager.TEST_EMULATOR,"xxxxxxxxxxxxxxxxxxxxxxxxx",});

             AdView adView=(AdView)findViewById(R.id.ad);
             adView.requestFreshAd();

I checked the LogCAT view:

01-20 14:13:38.938: INFO/AdMobSDK(19582): No fill.  Server replied that no ads are available (373ms)
+3
source share
4 answers

You yourself answered the question

01-20 14: 13: 38,938: INFO / AdMobSDK (19582): do not fill out. the server replied that there was no advertisement (373ms)

. , , .

+4

AdMob . AdMob , :

alt text

+2

. :) . AdManager.TEST_EMULATOR,"xxxxxxxxxxxxxxxxxxxxxxxxx",});. .

+1

Make sure the ad has enough space around it, otherwise its container must be at least 320dp. I discussed this in detail here: http://cupcake-and-beyond.blogspot.com/2011/05/why-is-my-admob-ad-not-showing-up.html

(I also show a neat trick with new ad sizes)

+1
source

Source: https://habr.com/ru/post/1786657/


All Articles