开发者

admob says "Server replied that no ads are available"

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,"xxxx开发者_Python百科xxxxxxxxxxxxxxxxxxxxx",});

             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)


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.


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:

admob says "Server replied that no ads are available"


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


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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜