I have the following code in my app which I use to display InMobi ads…
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. [import]uid: 136747 topic_id: 36425 reply_id: 336425[/import]