Re: Automatically resize banners according to screen density on iOS

631 views
Skip to first unread message

Eric Leichtenschlag

unread,
Jan 24, 2013, 7:06:40 PM1/24/13
to google-adm...@googlegroups.com
Hi Yagero,

The Android and iOS SDKs behave the same way - they account for screen density, but not for screen size. On Android, requesting a 320x50 on the Galaxy Nexus with density 2.0 looks to be the same size on the device as a 320x50 request on an old Android phone with ldpi running Donut. The same goes for iOS - a 320x50 will look the same on an iPhone 5 with retina display as it does on the 3GS without a retina display.

However, even on Android, a 320x50 will look small on an Android tablet. For tablets, you would request a bigger size, such as a 728x90. On Android, you could perform this logic in XML if you have layout files, and just place them in layout/ or layout-xlarge/ folders. In iOS,  your code should detect whether or not the device is a tablet, and request the bigger GADSize for tablets (assuming you're making a universal app).

Cheers,
Eric 


On Mon, Jan 21, 2013 at 11:10 AM, yagero <yag...@gmail.com> wrote:
Hi,

I have already used admobs on android. On Android, banners are automatically resized according to the screen density: this means that if I used the "standard banner" (the smallest one) by 320x50 on a little phone, the ad can appear smaller than 320x50. If I try the same banner size on a large android tablet, the ad can be larger than 320x50. This is very convenient because the actual displayed size of the banner on the tiny phone will not appear very large compared to the same banner on the large tablet: the ratio of the banner size relative to the screen size are pretty much the same.

So I tried to use admobs on iOS too, and it seems that this not work in the same way than on android: if I use the 320x50 on my iPhone 4, the banner will be displayed very large on it, but will be very small on an iPad. Check the screenshots linked with this post: the red rectangle is the ad banner size. You can see that the ratio of the banner size relative to the screen size is much more big on the iPhone than on the iPad.

So is there a way to automatically resize ads banners on iOS like it works on android?

Thanks

--
 
 
  

James

unread,
Apr 15, 2013, 3:17:04 AM4/15/13
to google-adm...@googlegroups.com
Hi Yagero,

Are you using AdMob Smart Banner? I have tried it in my app. I just found that I can not specify the size of the ad banner, otherwise it will not return the correct ad because of "not enough space to show ad!" error.

Best Regards
James


On Tue, Jan 22, 2013 at 3:10 AM, yagero <yag...@gmail.com> wrote:
Hi,

I have already used admobs on android. On Android, banners are automatically resized according to the screen density: this means that if I used the "standard banner" (the smallest one) by 320x50 on a little phone, the ad can appear smaller than 320x50. If I try the same banner size on a large android tablet, the ad can be larger than 320x50. This is very convenient because the actual displayed size of the banner on the tiny phone will not appear very large compared to the same banner on the large tablet: the ratio of the banner size relative to the screen size are pretty much the same.

So I tried to use admobs on iOS too, and it seems that this not work in the same way than on android: if I use the 320x50 on my iPhone 4, the banner will be displayed very large on it, but will be very small on an iPad. Check the screenshots linked with this post: the red rectangle is the ad banner size. You can see that the ratio of the banner size relative to the screen size is much more big on the iPhone than on the iPad.

So is there a way to automatically resize ads banners on iOS like it works on android?

Thanks

--
 
 
 



--
Personal Website: http://jmsliu.com
Reply all
Reply to author
Forward
0 new messages