Admob & iAds banner positioning issue on iPad

Hi all,

Here is how I show the banner:

ads.show(“banner”, {interval = 30, x = 0, y = 0, appId = adMobAppIDBanner});

it works fine on iPhone5 in both portrait and landscape mode:

TV0gNos.png

E6W0e2D.png

but not in correct position on iPad mini:

OjZNYuE.png

y7n2Bmi.png

If you adjust position via display.screenOriginX and display.screenOriginY to correct it on iPad mini, it will be fine but leave the positioning issue on iPhone 5.

Don’t have iPad for test so don’t if it only happens on iPad mini or on all iPads.

Anyone has idea?

Thanks in advance

Two seperate issues, possibly. The second one might be because the space at the top is unused to keep the aspect ration correct ; if your background rectangle is goes negative it will still show. The positioning problems - are you assuming a constant advert height ? It isn’t - there is a height() or something like that method available.

Two seperate issues, possibly. The second one might be because the space at the top is unused to keep the aspect ration correct ; if your background rectangle is goes negative it will still show. The positioning problems - are you assuming a constant advert height ? It isn’t - there is a height() or something like that method available.