2012-02-17 110 views
0

我有addmobview和它的工作很好的模拟器,但是当我在设备测试它不显示。Android AdMobview不能在设备上显示?

布局::

<?xml version="1.0" encoding="utf-8"?> 
<merge xmlns:android="http://schemas.android.com/apk/res/android"> 
    <RelativeLayout android:id="@+id/admoblayout" 
    android:layout_height="50dp" android:layout_width="fill_parent"></RelativeLayout> 
</merge> 

logcat的是::

02-17 20:37:39.367: I/Ads(15146): Received ad url: <"url": "http://googleads.g.doubleclick.net:80/mads/gma?preqs=13&u_sd=0.75&u_w=240&slotname=a14f3df0f8ed46f&msid=com.votingcard.vcdemocrat&js=afma-sdk-a-v4.0.4&isu=3023B13C2FDE783814C10FF9F2E7A3A2&format=320x50_mb&net=wi&app_name=4.0.4.android.com.votingcard.vcdemocrat&hl=en&u_h=320&testing=1&u_so=p&u_audio=1&output=html&region=mobile_app&u_tz=-330&ex=1&client_sdk=1&askip=3&caps=SdkAdmobApiForAds&jsv=3", "afmaNotifyDt": "null"> 
02-17 20:37:40.992: I/Ads(15146): onFailedToReceiveAd(No ad to show.) 

回答

3

这可能是由于低fill rate.您的填充率为您的应用程序获得更多的流量将增加。您是否已将设备设置为测试设备,以便至少可以接收测试广告?

编辑:要添加测试设备,你可以做到以下几点:

//set up your ad request 
AdRequest request = new AdRequest(); 

//emulator ready for testing 
request.addTestDevice(AdRequest.TEST_EMULATOR); 
//your device ready for testing 
request.addTestDevice("deviceid"); 

Google Code网站对AdMob的整合了很多有用的信息

+0

我怎么可以设置设备作为测试设备和你能否解释你的答案我无法理解.... – 2012-02-17 15:20:29

+0

雅编辑答案 – bschultz 2012-02-17 15:25:26

+0

日Thnx很多的帮助我现在检查.... – 2012-02-17 15:27:56

相关问题