positioning ADMOB banner...arghhh

Ok, so I have decided to use Admob as one the of advertisers for my next app.

I have fullscreen ads working and also banners, very easy.

BUT, Iam pulling my hair out here, I cannot for the life of me get the banner ad centered.

This is what I mean.

The app is in landscape, at he bottom of the screen I have on the left a slider and on the right 2 buttons.

In the middle of this is a nice space to place an add.

So I can position the y axis and get it to the bottom.

When I position the x at say display.contentWidth/2 it places the top left corner of the banner on the centreline, all ok.

Now when I attempt to move it over using display.contentWidth/2 - 160 for instance, the x origin is indeed moved but he banner right side stays as it was. I end up with a long banner.

I believe to centre it in the middle using java they use parent bottom or something.

Any ideas?

Ok, seems in Coronas wisdom its “smart adds only”, I may be wrong ?

Hi @bubblebobble,

Did you read the ads documentation carefully in regards to positioning them? Ads are positioned a bit differently than normal Corona display objects. This might not answer your question or solve the issue, but please check the docs on this.

http://docs.coronalabs.com/api/library/ads/show.html

Thanks,

Brent

Hi Brent,

if you look at the picture.

the red rectangle is the intended position of the banner ad.

If you place the x co-ord at any black dot for example the banner will fill the rest of the y axis.( see the blue dotted rectangles).

green dot width of device.

admob.png

So this is what smart ads do, so do we get no way of positioning a 320X50 banner in the centre ?as with a normal banner ?

It is possible using revmob ads and inneractive( i cant remember).

This is actually an issue as would it not be good to place the ad between scores or interface elements ?

thanks

Hi @bubblebobble,

I don’t see the picture (screenshot) attached. Can you try to post it again?

Thanks,

Brent

HI Brent, pic working here.

here it is again:

admob.png

Hi @bubblebobble,

The forum seems to be fussy with posting images. Please just send me the screenshot to brent [at] coronalabs [dot] com.

Thanks!

Ok, seems in Coronas wisdom its “smart adds only”, I may be wrong ?

Hi @bubblebobble,

Did you read the ads documentation carefully in regards to positioning them? Ads are positioned a bit differently than normal Corona display objects. This might not answer your question or solve the issue, but please check the docs on this.

http://docs.coronalabs.com/api/library/ads/show.html

Thanks,

Brent

Hi Brent,

if you look at the picture.

the red rectangle is the intended position of the banner ad.

If you place the x co-ord at any black dot for example the banner will fill the rest of the y axis.( see the blue dotted rectangles).

green dot width of device.

admob.png

So this is what smart ads do, so do we get no way of positioning a 320X50 banner in the centre ?as with a normal banner ?

It is possible using revmob ads and inneractive( i cant remember).

This is actually an issue as would it not be good to place the ad between scores or interface elements ?

thanks

Hi @bubblebobble,

I don’t see the picture (screenshot) attached. Can you try to post it again?

Thanks,

Brent

HI Brent, pic working here.

here it is again:

admob.png

Hi @bubblebobble,

The forum seems to be fussy with posting images. Please just send me the screenshot to brent [at] coronalabs [dot] com.

Thanks!