我有addmobview,它在模拟器中工作正常,但是当我在设备中测试它没有显示。
布局::
<?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®ion=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.)
答案 0 :(得分: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集成的有用信息