Admob - smart ad image sizes

Monkey Targets Forums/Android/Admob - smart ad image sizes

silentshark(Posted 2012) [#1]
I saw that from version 6 of the SDK, Admob supports the idea of "smart" sized adverts - ads which size according to your screen size.

I've been using Rich's (excellent) Admob module for Monkey for a while, and although I need to do more testing, it looks like a simple hack to the java file can enable smart ads. In the admob.android.java file, I just replaced the terms AdSize.IAB_LEADERBOARD and AdSize.BANNER with AdSize.SMART_BANNER. Then recompiled.

A very quick test showed smart ads appearing on my Samsung Galaxy S2 in landscape mode. Thought this might be of interest to someone.


benmc(Posted 2012) [#2]
Cool, thanks, I will try this too. Here's the Google page that shows what Smart Banners will do for those wondering:

https://developers.google.com/mobile-ads-sdk/docs/smartbanners

IMO, the awesome part of this is the new 480x32 landscape banner size! This makes it much more possible to keep displaying banner ads throughout the entire game without being a major screen real-estate hog.