Android phone Inneractive banner centering

Hello folks,
I am having a hard time trying to center the Inneractive banner on the top of my portrait screen. Here is what I had for my config:

content =
{
width = 480,
height = 800,
scale = “zoomStretch”,
imageSuffix =
{
["@1-5"] = 1.5

}
}

this is rather standard.
Now here is where the problem kicks in, I use:
ads.init( “inneractive”, “this is the app name I registered”, adListener )
ads.show( “banner”, { x=0, y=0, interval=30 } )
The ad banner shows up without any problem, but after a couple of iterations, I found out some ad banners are smaller, for those smaller banners, my right side of the banner display area will have nothing and does not look professional at all. I am not sure how to center these smaller banners without first knowing its size. Any pointer will be appreciated. Thanks in advance.

btw, I realize Inneractive supports 2 sizes for Android phone (300 x 50 (XL)-- 320 x 53 (XXL)). I was hoping the ad banner will scale to fill to the display boundary on the right side but it doesn’t. [import]uid: 123046 topic_id: 27986 reply_id: 327986[/import]

This problem is especially visible on tablets. We develop game for Kindle Fire, and generally Inneractive returns phone ads, so we desided to calculate correct position and show small banner on the bottom-center of the screen. But, sometimes Innerective returns tablet-sized banners, in this case, half of the banner shows behind the screen. )= [import]uid: 131398 topic_id: 27986 reply_id: 114174[/import]

There isn’t a nice solution to this problem. inneractive ads were designed to be “docked” to the screen via Android layouts and not via pixel positions. Also, the inneractive SDK library that we use decides what ad banner size to fetch from the server and it may decide to fetch a larger one for larger screens such as tablets, just as you have noted. Even the smaller banners retrieved for phones can slightly vary in size. Neither one of us has any control over this, so it is just something we have to live with. We don’t have a nice way of fetching the retrieved banner’s size on the Java side either (I’ve asked inner-active about this before).

So, my best recommendation is to do one of the following:

  1. Display an ad banner at the top left corner of the screen.
  2. Display an ad starting at the top-center of the screen, but only for landscape apps. Odds are the ad will go off the screen in portrait mode on tablets.
  3. Display a fullscreen (ie: interstitial) ad on app startup, between game levels, etc.
  4. Display a popup view of your own making containing the banner ad after particular app events.
    [import]uid: 32256 topic_id: 27986 reply_id: 114369[/import]

“… Neither one of us has any control over this, so it is just something we have to live with. We don’t have a nice way of fetching the retrieved banner’s size on the Java side either (I’ve asked inner-active about this before)…”

Thanks for the honest answer, I been trying for a long time making sure it is not my coding problem and your reply confirmed that.
Sad that my app was pretty much ready to go with Inneractive but I do not want my app to look half-done. I will switch to something else. Again, thanks for your reply.

[import]uid: 123046 topic_id: 27986 reply_id: 114506[/import]

Just to be super clear, are you saying that showing an ad banner at (0,0) in a portrait app sometimes displays a banner wider than the screen itself?

I ask because originally I thought you were trying to do more fine positioning like centering the banner on screen. I apologize if I misunderstood. [import]uid: 32256 topic_id: 27986 reply_id: 114510[/import]

In some cases, the banner size is smaller. In other cases, banner fits. There is no consistent pattern. Yes, I am trying to fine positioning the banner to the center. [import]uid: 123046 topic_id: 27986 reply_id: 114540[/import]