InMobi ads not displaying correctly on iPad
Posted on Thu, 2013-02-28 13:51
I have the following code in my app which I use to display InMobi ads...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | if MODEL == "iPad" or MODEL == "iPad Simulator" then adType = "banner728x90" bannerWidth = 728 bannerHeight = 85--90 adVerticalPos = display.contentHeight - AD_BANNER_HEIGHT / 2 adHorzPos = -math.abs((bannerWidth - (display.contentWidth*2 + display.screenOriginX) ) / 8) else adType = "banner320x48" bannerHeight = 48 bannerWidth = 320 adVerticalPos = (display.contentHeight + (math.abs(display.screenOriginY) * 2) - AD_BANNER_HEIGHT) adHorzPos = 0 end ads.show( adType, { x=adHorzPos, y=adVerticalPos, testMode = not globalProp.IS_RELEASE, interval=AD_ROTATION_INTERVAL } ) |
When I run my app the ads display correctly on all iphone/itouch devices. But on iPad it displays it incorrectly as you can see below
http://i.imgur.com/hhOqieA.png
Any idea as to why this is happening? As you can see from above I'm passing in the correct values for the adType.