@ubj3d.android I don't have many Android devices to test with. It's really great to see your table. Could you add "display.screenOriginX" to your table?
HOW TO POSITION THE ADMOB BANNER AT THE BOTTOM IN LANDSCAPE ?
Exactly my question too (Portrait as well).
Right now my solution is "NOT" to place any ad in Android devices because I don't know how to place admob at the exact bottom. I am waiting for Corona response, but it seems they are very quiet on this issue and I don't know why.
For me, there are many issues I don't have exact answers for:
(1) How to determine exactly if a device is a tablet where taller ads are placed? juan.csdc created a feature request for this,
I voted +3 too.
(2) To calculate the admob ad height (portrait), I use this formula (my configu.lua uses 320x480, letterbox)
if (tablet) then -- as stated in (1), it's a problem to determine for this tablet variable
ret = (display.contentWidth-display.screenOriginX) / 800 * 90 -- not sure 800 or 320
ret = (display.contentWidth-display.screenOriginX) / 320 * 50
a. should I use 800 or 320 in line 2? According to the smart banner document, it should be 800x90, but according to juan.csdc, he uses 320. And I don't really have an Android tablet to test with.
b. When I test Sony Xperia, the admob ads are placed at the exact bottom perfectly. However for my Galaxy Tab, there are 3 pixels space between the ad and the bottom of the screen. I can see my background through this space, which is bad. I am not sure if it's by design due to screen scaling or there is still something wrong with this formula.
c. Although you haven't provided display.screenOriginX in your table, the ad heights you provided are far from the values that would be generated by this formula. So it's now getting more confusing. (How do you calculate the ad heights in your table? By experiments, moving one pixel at a time?)
d. There is one more confusing thing. In order to place admob at the exact bottom for "Apple" devices, I use a different way to calculate the y value. Instead of
adY = display.contentHeight - display.screenOriginY - bannerHeight
I have to use
adY = display.contentHeight - display.screenOriginY - display.screenOriginY
Sounds very strange? Yes, very strange, but this works for iPad 4, iPad air, iPhone 4S/5/5S. I don't know why either.
It is driving me crazy too.