admob says “Server replied that no ads are availab

2019-07-05 06:10发布

i have added the admob test in my app as the pdf instructions were directing and everything works nice(in emulator and in my device).In order to stop the test mode and upload my new apk at the market i have to erase the test code from my .java file,right?i have tried it and i uploaded my .apk file in my device (from mass storage)but i cant see any admob...what is my wrong ?

TEST CODE:

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

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

i checked my LogCAT view:

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

标签: android admob
4条回答
你好瞎i
2楼-- · 2019-07-05 06:20

You have to disable test mode from your AdMob account manually. So just login to your AdMob Account and go to settings of that application and there you can find a option like this:

alt text

查看更多
孤傲高冷的网名
3楼-- · 2019-07-05 06:27

Make sure the ad has enough space around it, aka its container should be atleast 320dp wide. I discussed this at length 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 the new ad sizes)

查看更多
孤傲高冷的网名
4楼-- · 2019-07-05 06:31

I observed same results. Just be patient :) BTW. You don't have to remove AdManager.TEST_EMULATOR,"xxxxxxxxxxxxxxxxxxxxxxxxx",});. It affects only your device.

查看更多
Anthone
5楼-- · 2019-07-05 06:37

You yourself answered the question

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

Everything is alright. Server has nothing to send you, when it will, you will see the ads.

查看更多
登录 后发表回答