Inneractive Issue

Hi,

I made my game and Im testing it.

I decided not to sell nymore and I tring to use Inneractive to monetize my app.

My problem is:

  • My app has 320x480 resolution in config.lua

Thats, ok.

I put my ad like that:

ads.init( “inneractive”, “myAppId”, adListener )
ads.show( “banner”, { x=0, y=420, interval=60 } )

because, as far I kwow, the inneractive ad has 60 pixel height.

This works fine in iPhone, but did not working well in iPad, since Inneractive plugin seems ignoring my config.lua and put the ad in the middle of screen (420 y position).

So, there is any general solution for this ? Or I have to check if Im using iphone/ipad/android and put the ad in the correct place?

Thanks

[import]uid: 9133 topic_id: 23840 reply_id: 323840[/import]

It would depending on your scaling.

420px isn’t going to show at the same place on a ipad as it would on the iphone (depending on your scale set up)

You could use something like

y = display.contentHeight - 60

if you wanted the ad to display at the bottom of the screen on all devices [import]uid: 84637 topic_id: 23840 reply_id: 95992[/import]

This does not work.

When we use the scaling in config.lua, no matter the screen resolution, I always get the same value for display.contentHeight. In my case, I always get 480 no matter if I’m on the iphone, ipad or iphone with retina display.

This was his first solution I tried. By ** THIS ** reason I mentioned that the plugin seems to ignore config.lua and has its own configuration coordinates.

This should really happen? Or is it a bug in the plugin? For me, your solution, which was the first one I used, is the best and most logical.

Thanks for any idea or clarification,
Bruno [import]uid: 9133 topic_id: 23840 reply_id: 95995[/import]

Interesting. Could you file a bug report please and give me the number and I will look into it ?

htttp://bugs.anscamobile.com [import]uid: 84637 topic_id: 23840 reply_id: 95997[/import]

Hy Danny,

I open the “bug report” here:
http://bugs.anscamobile.com/default.asp?13148_pv18t0r0

I dont know if I provide all information you need there, Im assuming this post as part of the text. The program is REALLY simple, so I did not put the source code, I only described the problem, and the same code I already putted here.

If you need something else, ask me…

Thanks!
Bruno [import]uid: 9133 topic_id: 23840 reply_id: 96004[/import]

This has been discussed on the Inneractive forum. Someone else suggested this, which worked for me…

local pixelsX = (display.contentWidth - display.screenOriginX\*2) / display.contentScaleX   
local pixelsY = (display.contentHeight - display.screenOriginY\*2) / display.contentScaleY  
  
local iPad = system.getInfo("model") == "iPad"  
local iPadSim = system.getInfo("model") == "iPad Simulator"  
local adBase = display.contentHeight - 48 -- or whatever the normal ad height is   
  
 if (iPad or iPadSim) then  
 ads.show( adType, { x = 0, y = pixelsY - 66, interval=60 } )  
 else  
 ads.show( adType, { x=0, y=adBase, interval=60 } )  
 end  

Both Inmobi and Inneractive implementations leave a lot to be desired. [import]uid: 1560 topic_id: 23840 reply_id: 96021[/import]

Hey Dotnaught

Thanks for your solution. I kwow this is will work, but this is not my point.

If you see my first post, I already foresee I can solve this issue check what kind/model of device im using it. But since the new iPad (and other new devices) I think this solution will be quite complex.

This is not the behavior Im expecting, for this reason Id like someone to clarify me or tell-me “This is a bug, we`re working on it!” :smiley:

Or maybe someone can do something like allow put ads in some group, and then, I can manage x and Y… but THIS behavior I think is a bug :smiley:

Regards,
Bruno
[import]uid: 9133 topic_id: 23840 reply_id: 96022[/import]