Re: Nexus 7 can't display IAB_LEADERBOARD ad

319 views
Skip to first unread message

Kunal Verma

unread,
Apr 4, 2013, 3:42:46 PM4/4/13
to Google AdMob Ads Developers
I faced the same issue while optimising my App for Nexus 7 and a 10 inch tablet with 1280*800 resolution. We notice that the Nexus 7's resolution is same as the 10 inch tablet. BUT
When I created the layout for both in the layout-sw720dp, Nexus 7 didnt supported it.Instead Nexus 7 used layout_sw600dp.
This is a thing to notice as Nexus 7's width is > 720. Technically it should have gone with layout_sw720dp.
Conclusion ( which satisfies me ) is that the Nexus 7 is tvdpi ( and the 10 inch tablet in this case is mdpi) which optimises layout differently.
Similar as your concern, I couldnt display IAB_LEADERBOARD ads on the Nexus 7 but as the layout files for Nexus 7 and 10 inch tablet are not same. It was fine for me as I used IAB_BANNER for every 7 inch tablet ( as they are all using layout_sw600dp) and IAB_LEADERBOARD for the 10 inch tablet.

I am not sure if this is a AdView issue or not. As I think all 7 inch tablets cant display IAB_LEADERBOARD. 




On Thu, Apr 4, 2013 at 1:26 PM, Marcin Mikosik <marcin....@gmail.com> wrote:
Hi,

I'm trying to display IAB_LEADERBOARD ad on my Nexus 7 device without any luck.

Nexus 7 has 1280x800 screen, I'm forcing portrait orientation so I have 800x1280 screen (after subtracting space for software buttons 800x1205 is left for content).
According to documentation IAB_LEADERBOARD ad size is 728x90. It should fit on Nexus 7 in potrait mode.
Actually nothing is shown.

Device log (pasted below with important part in bold) shows that admob client lib sends correct screen width (800) when requesting ad.
However size of returned ad is 969x119 which is too big for Nexus 7 screen.
It looks to me like a bug on server side.

Is there known workaround for this problem?

I'm using latest admob sdk version 6.3.1.



I/Ads     (12800): adRequestUrlHtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_buildAdURL({"preqs":73,"session_id":"11430330090821193922","seq_num":"74","slotname":"a150599f437880f","u_w":600,"msid":"com.perunlabs.app.plex","js":"afma-sdk-a-v6.3.1","prnl":383,"bas_off":0,"net":"wi","app_name":"10.android.com.perunlabs.app.plex","hl":"en","gnt":0,"u_audio":1,"u_sd":1.3312501,"ms":"yF_-AWgpgAmf2QBQCRNKZ-aGCp1WQGbTv69cnzjoqQvL8WcPnoanGshx3cB2_FwTxTtIgc-GmUs1QB8_bHz9RR2eU60Yf0TqXZnsgost_Aw-opwHHdes4Nz18NB1gZdrVKfPxETGaLL9Wy4BLSRJkb9IjwKtr9gOOr5by704sWyzRmuFMmtKG93tVgkvADPf9ovPbIGT8RpUYJ2ur7s0iUcJxgV_rU2T_DhZ0s0U47DWpkkGt2wCFhdrqlMxsqVPdpE3JUalllp0jQHM99KDlq9C_70rnmS9TVugLAZp02VJkMFa9umntOXm_gFRA0-qxEF65WwCGNagf2Zzn1EJ8w","mv":"8016014.com.android.vending","isu":"37E49399A91B06E8F270CCF78EFB1792","format":"728x90_as","oar":0,"ad_pos":{"height":0,"visible":0,"y":0,"x":0,"width":800},"u_h":905,"pt":0,"bas_on":0,"ptime":57363840,"prl":498});</script></head><body></body></html>
D/dalvikvm(12800): GC_CONCURRENT freed 387K, 8% free 8466K/9124K, paused 5ms+7ms, total 73ms
I/Ads     (12800): Received ad url: <url: "http://googleads.g.doubleclick.net:80/mads/gma?preqs=73&session_id=11430330090821193922&seq_num=74&u_w=600&msid=com.perunlabs.app.plex&js=afma-sdk-a-v6.3.1&prnl=383&bas_off=0&net=wi&app_name=10.android.com.perunlabs.app.plex&hl=en&gnt=0&u_audio=1&u_sd=1.3312501&ms=yF_-AWgpgAmf2QBQCRNKZ-aGCp1WQGbTv69cnzjoqQvL8WcPnoanGshx3cB2_FwTxTtIgc-GmUs1QB8_bHz9RR2eU60Yf0TqXZnsgost_Aw-opwHHdes4Nz18NB1gZdrVKfPxETGaLL9Wy4BLSRJkb9IjwKtr9gOOr5by704sWyzRmuFMmtKG93tVgkvADPf9ovPbIGT8RpUYJ2ur7s0iUcJxgV_rU2T_DhZ0s0U47DWpkkGt2wCFhdrqlMxsqVPdpE3JUalllp0jQHM99KDlq9C_70rnmS9TVugLAZp02VJkMFa9umntOXm_gFRA0-qxEF65WwCGNagf2Zzn1EJ8w&mv=8016014.com.android.vending&isu=37E49399A91B06E8F270CCF78EFB1792&format=728x90_as&oar=0&u_h=905&bas_on=0&ptime=57363840&prl=498&u_so=p&cap=t&output=html&region=mobile_app&u_tz=120&client_sdk=1&ex=1&slotname=a150599f437880f&askip=3&caps=inlineVideo_interactiveVideo_mraid1_th_autoplay_mediation_sdkAdmobApiForAds_di&jsv=46" type: "admob" afmaNotifyDt: "null" activationOverlayUrl: "null" useWebViewLoadUrl: "false">
I/Ads     (12800): Request scenario: Online server request.
D/webviewglue(12800): nativeDestroy view: 0x64c961f0
I/Ads     (12800): onReceiveAd()
E/Ads     (12800): Not enough space to show ad! Wants: <969, 119>, Has: <800, 1205>

--
 
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Eric Leichtenschlag

unread,
Apr 4, 2013, 5:42:31 PM4/4/13
to google-adm...@googlegroups.com
The AdView's AdSize is specified in density-independent pixels, so it'll look the same size on all devices regardless of density. Nexus 7 is 1280x800 with a tvdpi (~1.33) pixel density. This means that the Nexus 7 only has 962x601 screen size in density pixels. The 728dp wide IAB_LEADERBOARD is wider than the 601dp width of the Nexus 7 in portrait mode, so IAB_LEADERBOARD does not fit.

Eric Leichtenschlag

unread,
Apr 4, 2013, 5:44:05 PM4/4/13
to google-adm...@googlegroups.com
The other way to think about it is the 728x90 dp ad is really 969x119 pixels wide based on the Nexus 7 screen density, and 969 pixels is greater than the 800 pixel width on the device.

Manoj kumar

unread,
Nov 8, 2013, 12:38:52 PM11/8/13
to google-adm...@googlegroups.com
Hi all,

Even I am facing the same problem. in Nexus 7, no IAB_LEADERBOARD ads are shown.

I am getting the below error in my logcat:
E/Ads(3959): Not enough space to show ad! Wants: <969, 119>, Has: <800, 1097>

Please help in resolving the problem.
Thanks,
Manoj

On Tuesday, 16 April 2013 15:17:13 UTC+5:30, Marcin Mikosik wrote:
That solved the problem.
Thanks for  help.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
 
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

Eric Leichtenschlag

unread,
Nov 8, 2013, 10:48:30 PM11/8/13
to google-adm...@googlegroups.com
Hi Manoj,

That is expected behavior. IAB_LEADERBOARD does not fit on a Nexus 7 in portrait mode.

Thanks,
Eric

Manoj kumar

unread,
Nov 9, 2013, 8:22:04 AM11/9/13
to google-adm...@googlegroups.com
Thanks Eric for the confirmation.
Reply all
Reply to author
Forward
0 new messages