English 中文(简体)
admob 横幅未能在 samsung 星系笔记中显示
原标题:admob banner failed to display in samsung galaxy note

这是我对日志的回复

05-25 06:32:45.552: I/Ads(408): onFailedToReceiveAd(Ad request successful, but no ad returned due to lack of ad inventory.)
05-25 06:43:37.802: I/Ads(408): adRequestUrlHtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_buildAdURL({"kw":[],"preqs":4,"session_id":"11876839087358837237","u_sd":1.5,"seq_num":"5","slotname":"MY_AD_UNIT_ID","u_w":533,"msid":"oriental.orientalDaily","simulator":1,"cap":"a","adtest":"on","js":"afma-sdk-a-v6.0.0","isu":"B3EEABB8EE11C2BE770B684D95219ECB","cipa":0,"format":"320x50_mb","net":"ed","app_name":"2.android.oriental.orientalDaily","hl":"en","u_h":853,"carrier":"310260","ptime":680039,"u_audio":4});</script></head><body></body></html>
05-25 06:43:37.952: I/Ads(408): To get test ads on this device, call adRequest.addTestDevice(AdRequest.TEST_EMULATOR);
05-25 06:43:38.002: I/Ads(408): adRequestUrlHtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_buildAdURL({"preqs":5,"session_id":"11876839087358837237","u_sd":1.5,"seq_num":"6","slotname":"a14fb2149ab3ccb","u_w":533,"msid":"oriental.orientalDaily","simulator":1,"cap":"a","js":"afma-sdk-a-v6.0.0","isu":"B3EEABB8EE11C2BE770B684D95219ECB","cipa":0,"format":"320x50_mb","net":"ed","app_name":"2.android.oriental.orientalDaily","hl":"en","u_h":853,"carrier":"310260","ptime":680229,"u_audio":4});</script></head><body></body></html>
05-25 06:43:39.202: I/dalvikvm(408): Jit: resizing JitTable from 1024 to 2048
05-25 06:43:39.993: W/webcore(408): Can t get the viewWidth after the first layout
05-25 06:43:42.372: W/webcore(408): Can t get the viewWidth after the first layout
05-25 06:43:42.405: W/Ads(408): Invalid unknown request error: Cannot determine request type. Is your ad unit id correct?
05-25 06:43:42.405: D/webviewglue(408): nativeDestroy view: 0x4e5768
05-25 06:43:42.412: I/Ads(408): onFailedToReceiveAd(Invalid Ad request.)
05-25 06:43:42.672: I/Ads(408): Received ad url: <url: "http://googleads.g.doubleclick.net:80/mads/gma?preqs=5&session_id=11876839087358837237&u_sd=1.5&slotname=a14fb2149ab3ccb&u_w=533&msid=oriental.orientalDaily&cap=a&js=afma-sdk-a-v6.0.0&isu=B3EEABB8EE11C2BE770B684D95219ECB&cipa=0&format=320x50_mb&net=ed&app_name=2.android.oriental.orientalDaily&hl=en&u_h=853&carrier=310260&ptime=680229&u_audio=4&u_so=p&output=html&region=mobile_app&u_tz=0&ex=1&client_sdk=1&askip=0&caps=interactiveVideo_clickTracking_sdkAdmobApiForAds&jsv=24" type: "admob" afmaNotifyDt: "null">
05-25 06:43:43.044: D/webviewglue(408): nativeDestroy view: 0x4cc800
05-25 06:43:43.044: I/Ads(408): onFailedToReceiveAd(Ad request successful, but no ad returned due to lack of ad inventory.)

没有错误, 但未能在星系注释中显示, 但其它设备可以显示 。

有什么问题?

问题回答

从日志中看,您似乎正在提出两个请求,这有点奇怪。不管怎样,您的第一个请求不起作用,因为您需要指定一个出版人身份来替换 My_AD_UNIT_ID





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签