Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

admob positioning problem
Started by sparrowdrunken Aug 15 2013 07:17 AM

* * * * * 5 votes
68 replies to this topic
admob problem positioning zoomeven android
[TOPIC CONTROLS]
Page 3 of 3 1 2 3
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#51

joe528

[GLOBAL: userInfoPane.html]
joe528
  • Contributor

  • 800 posts
  • Corona SDK

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.



[TOPIC: post.html]
#52

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,779 posts
  • Enterprise

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



[TOPIC: post.html]
#53

joe528

[GLOBAL: userInfoPane.html]
joe528
  • Contributor

  • 800 posts
  • Corona SDK

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.



[TOPIC: post.html]
#54

juan.csdc

[GLOBAL: userInfoPane.html]
juan.csdc
  • Enthusiast

  • 69 posts
  • Corona SDK

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

 

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



[TOPIC: post.html]
#55

tarun9

[GLOBAL: userInfoPane.html]
tarun9
  • Observer

  • 9 posts
  • Corona SDK

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

 

Works on LG optimus pro and Nexus 7 (2013)



[TOPIC: post.html]
#56

ubj3d.android

[GLOBAL: userInfoPane.html]
ubj3d.android
  • Contributor

  • 741 posts
  • Corona SDK

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!



[TOPIC: post.html]
#57

tarun9

[GLOBAL: userInfoPane.html]
tarun9
  • Observer

  • 9 posts
  • Corona SDK

Merry Christmas.. Have a great new year ahead... 



[TOPIC: post.html]
#58

ubj3d.android

[GLOBAL: userInfoPane.html]
ubj3d.android
  • Contributor

  • 741 posts
  • Corona SDK

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.



[TOPIC: post.html]
#59

petrsvar

[GLOBAL: userInfoPane.html]
petrsvar
  • Enthusiast

  • 53 posts
  • Corona SDK

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

For me this:

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


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


or this:
ads.show("banner", {x=0, y=0 })


or this:
ads.show("banner", {x=0, y=20 })


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

This:
ads.show("banner", {x=0, y= -20 })


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.



[TOPIC: post.html]
#60

joe528

[GLOBAL: userInfoPane.html]
joe528
  • Contributor

  • 800 posts
  • Corona SDK

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.

 

+1



[TOPIC: post.html]
#61

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,779 posts
  • Enterprise

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

 

Rob



[TOPIC: post.html]
#62

petrsvar

[GLOBAL: userInfoPane.html]
petrsvar
  • Enthusiast

  • 53 posts
  • Corona SDK

@Rob:

ads.show("banner", {x=0, y=0 })

puts the ad to the bottom

ads.show("banner", {x=0, y=30 })

puts the ad to the bottom
ads.show("banner", {x=0, y= -30 })

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:
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 })


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?



[TOPIC: post.html]
#63

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,779 posts
  • Enterprise

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



[TOPIC: post.html]
#64

joe528

[GLOBAL: userInfoPane.html]
joe528
  • Contributor

  • 800 posts
  • Corona SDK

Hope everyone can vote on this admob feature:

 

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/5245292-implement-banner-height-as-api-call-for-the-ads-mo

 

in order to get the ad height so that the space left can be perfectly utilized.

 

I have been waiting for this feature to be implemented in order to show admob ad in Android devices. No revenue at all from my Android users. Corona please do put bugs/features related to ads with higher priority. It's very important for some of the Corona developers I believe.



[TOPIC: post.html]
#65

ubj3d.android

[GLOBAL: userInfoPane.html]
ubj3d.android
  • Contributor

  • 741 posts
  • Corona SDK

Hope everyone can vote on this admob feature:

 

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/5245292-implement-banner-height-as-api-call-for-the-ads-mo

 

in order to get the ad height so that the space left can be perfectly utilized.

 

I have been waiting for this feature to be implemented in order to show admob ad in Android devices. No revenue at all from my Android users. Corona please do put bugs/features related to ads with higher priority. It's very important for some of the Corona developers I believe.

 

Unfortunately, I am out of votes, otherwise I would give this max.votes.

 

This is a must as many have already stated.

 

And just to add again, "normal" banners support for admob please! (by "normal" I mean "no-smartbanners")



[TOPIC: post.html]
#66

ubj3d.android

[GLOBAL: userInfoPane.html]
ubj3d.android
  • Contributor

  • 741 posts
  • Corona SDK

Can someone from Corona PLEASE give us some info if the "ad height" will be added to admob plugin?

(anyway we can get the ad height returned)

 

This is really crucial for most of the apps.

 

Thank you.



[TOPIC: post.html]
#67

BenM

[GLOBAL: userInfoPane.html]
BenM
  • Contributor

  • 141 posts
  • Corona SDK

Any update on this?

 

Specifically interested in the Normal Banners as smart banners are next to useless in a landscape game.

 

 

Edit:

Maybe that was a bit harsh. I'm sure they might suit someone, but they are not useful in for us and most of the time I see a banner ad in a landscape game they are the standard 320x50 type size, which of course we can't select when we only get smart banners.



[TOPIC: post.html]
#68

joe528

[GLOBAL: userInfoPane.html]
joe528
  • Contributor

  • 800 posts
  • Corona SDK

I think there is no update although we have been asking it for a long time. I am not really sure why Corona doesn't really care about ad while it's the main source of our income. I gave it up and let the ad run on top of my webView that the user must endure even though it's hurting my app quality I still need a way to make some money.



[TOPIC: post.html]
#69

BenM

[GLOBAL: userInfoPane.html]
BenM
  • Contributor

  • 141 posts
  • Corona SDK

hmmm. That's not good to hear that your app is out there in the wild with such an obvious issue. 

 

I'm afraid I do not have that option because I have a contractual obligation to deliver a working app with working and visually correct 320x50 admob banners specifically.

 

It would be great if this could get some attention to get the admob implementation fully functioning, not just smart banners..




[topic_controls]
Page 3 of 3 1 2 3
 
[/topic_controls]