admob positioning problem

Engineering is looking into the problem.

Rob

I hope we get some solution quite soon… We all depends on Admob as a devloper… 

Great to hear. Hopefully we have a solution soon.

Would be beautiful if we get “normal banner” support.

Smartbanners in landscape are only text-based and have lower CTR.

How soon would be oh say… now?

Simply position the Y at something really large like 10000 and it should auto-position to the bottom.  iAds does the same thing.  Since this is done through a plugin, it should be live ready to go.

Rob

Simply position the Y at something really large like 10000 and it should auto-position to the bottom.  iAds does the same thing.  Since this is done through a plugin, it should be live ready to go.

From my testing, admob does not do the same. It will go under the bottom of the screen for Android devices. Besides, I have been saying there is inconsistency for admob between Android & iOS devices (& inconsistency between iAd & admob). With the combinations of these 4 variables, I am totally lost when trying to put the ad at the bottom.

Unless there is some new update for the plugin for the last 10 days because I haven’t (or say gave up) tested them again since 10 days ago.

Besides, getting the correct ad height is also very important.

For example, I want to put an ad at the bottom of the screen and put a webView in the rest of the screen.

If I don’t know the exact ad height, I can’t calculate the exact height for the webView.

I think ad height issue has to be addressed after all.

The plugin was updated this afternoon.  Give it a try.

I tried admob with the Y value Rob suggested,

ads.show("banner", {x=display.screenOriginX, y=display.contentHeight + 10000 })

(1) iPad 4 & iPhone 5S: works!

(2) Galaxy Tab: works! (it used to have a 3-pixels hole. Now it’s placed at the exact bottom)

I think the problem should be solved. Damir can test more with other Android devices.

However, there is one more crucial problem for me. I need to get the height of the ad.

Without the exact height of the ad, how am I going to place a webView for the rest of the screen “seamlessly”? I hope Corona can address this issue too. Thanks.

That’s awesome Rob, thanks for your support on this topic, nevertheless as joe528 said, it is also important to know the banner height, so that we can arrange our UI for a perfect fit.

Thanks, first issue was solved pretty quick

Works on LG optimus pro and Nexus 7 (2013)

OK, I can confirm this works both portrait and landscape (tested on Transformer and Galaxy Tab tablets and Xperia and Nexus phones).

This is a great improvement, thank you for listening and fast response.

But as others already mentioned several times, we would also need to know the ad height (obviously to know where to position some graphics).

And please don’t forget “normal banners”.

Hopefully we would soon have full admob features.

Merry Christmas!

Merry Christmas… Have a great new year ahead… 

Can we please get an info if we will get this two features. This is very important so we can design our screens now.

  1. banner height

  2. “normal banners” (not smartbanners)

Thank you.

Regards,

Damir.

Ok, now it sits on the bottom. But do you manage to move it up?

For me this:
[lua]ads.show(“banner”, {x=display.screenOriginX, y=display.contentHeight - 240 })[/lua]

or this:
[lua]ads.show(“banner”, {x=display.screenOriginX, y=display.contentHeight + 10000 })[/lua]

or this:
[lua]ads.show(“banner”, {x=0, y=0 })[/lua]

or this:
[lua]ads.show(“banner”, {x=0, y=20 })[/lua]

gives the same result: The banner sitting on the bottom of the screen.

This:
[lua]ads.show(“banner”, {x=0, y= -20 })[/lua]

doesn’t show the banner at all. I am obviously missing something somewhere.

config.lua is set to 320 x 480, tested on Samsung Ace 2. To my opinion the banner shoud move up and down when I change y. It moves left and right when I change x.

+1

Please try building again and let us know if you are still having problems positioning the ad.

Rob

@Rob:
[lua]ads.show(“banner”, {x=0, y=0 })[/lua]
puts the ad to the bottom

[lua]ads.show(“banner”, {x=0, y=30 })[/lua]
puts the ad to the bottom
[lua]
ads.show(“banner”, {x=0, y= -30 })[/lua]
puts the ad to the top

Maybe it’s like it is expected to work, but I would call it strange logic. Hard to say, I didn’t find any comprehensive documentation.

Also - I would like to do something like this:
[lua]

ads.init( ‘admob’,  ‘ca-app-pub-XXXXXXXXXXXXXXXXXXXXXXXX’) – initiateAdmob
ads.show(“banner”, {x=0, y=0 })

ads.init( ‘admob’,  ‘ca-app-pub-YYYYYYYYYYYYYYYYYYYYYYY’) – initiateAdmob
ads.show(“banner”, {x=0, y=50 })

ads.init( ‘admob’,  ‘ca-app-pub-ZZZZZZZZZZZZZZZZZZZZZZZZ’) – initiateAdmob
ads.show(“banner”, {x=0, y=100 })

[/lua]

But it seems to me that the only one banner can be shown on one screen?

And customized text and style of my Ad units is ignored. Is that normal?

Per the AdMob Rules:  https://support.google.com/admob/answer/1307237?hl=en

If you are putting the banner at the top or bottom of the screen, you can only have one ad at a time. If the page scrolls, you can only have one ad visible at a time.

Now putting y=0 should put it at the top.  I’ll have engineering verify this.  They did fix something with the plugin yesterday regarding placement, which is why I wanted you to test afterwards.

Rob

I am trying to place Admob ad at the bottom of the screen, and found admob works differently for iOS & Android for the y value.

My config.lua is 320x480, letterbox.

For iOS, with following code, I can put the ad at the exact bottom: (by the way, the calculation of the y value looks strange)

ads.show( "banner", { x=display.screenOriginX, y=display.contentHeight - display.screenOriginY\*2})

I have tested it with iPad 4 & iPhone 5S and they both work well.

However, for Android, the above code does not work, and I still don’t know how to put it at the bottom.

Besides, if admob uses “smart banner”, the size varies depending on devices (https://developers.google.com/mobile-ads-sdk/docs/admob/smart-banners). It’s really hard to determine the right banner size admob uses for the current Android device. For example, Galaxy Tab 3, which one does it belong to? Is it an Android Tablet or Android widescreen devices?

For different devices, the screenOriginY is different, should this be considered into the calculation too?

Anyone knows how to put admob ad at the exact bottom of the screen?

@juan.csdc

Can you explain what is the value of ‘y’ you are passing to showBanner();

What is your content width and height in config file?