Welcome to inneractive

Hey, Ken, I’m wondering if you could share your code that enabled your own full screen ad. I’d very much interested in seeing it.

Naomi [import]uid: 67217 topic_id: 19981 reply_id: 78844[/import]

Hey Ken,

Can you please send me the code to my email - orly@inner-active.com
It will be great to see it and test it here.

Thank you very much! [import]uid: 109623 topic_id: 19981 reply_id: 78885[/import]

Hi,

I’m having the same problem as Ben, did anyone find a solution?
This is only a problem with Android.

Quote:
"I am trying out Inneractive ads in a corona game which runs in landscape mode.

I have it set like this:
ads.show( “banner”, { x=0, y=0, interval=60 } )

Unfortunately it seems to ignore the location data and instead displays the ad centered in a black bar at the top of the screen. Is there a way to get rid of the the black bar as this just does not look right or good?" [import]uid: 88922 topic_id: 19981 reply_id: 78905[/import]

@dirtyBit - I have not heard any response on here or from the email that I sent.

@Orly, is this being looked at? Some response would be nice.

Ben [import]uid: 28534 topic_id: 19981 reply_id: 79057[/import]

@Orly,

I’ll post a solution to the hanging full screen issue when I get home tonight. I’ll also email you a copy per your request.

Ken [import]uid: 16734 topic_id: 19981 reply_id: 79062[/import]

Hey, Ken, thank you so much for sharing!

Naomi [import]uid: 67217 topic_id: 19981 reply_id: 79226[/import]

@Orly,

I just updated the above code to properly handle gobbling up the input for the background.

I’ve sent you a new .lua file.

Ken [import]uid: 16734 topic_id: 19981 reply_id: 79227[/import]

I’ve implemented inneractive in the exact way described but the ads don’t show in my test build for iPad.

Does the app name that shows under the icon name on iPad need to be exactly the same used for adding it and getting the app id in inneractive?

If for example I used Sample as app name for innercative appID registration, must my app also be called Sample in the iPad build or could it be called SampleA?

thanks, Luciane [import]uid: 32063 topic_id: 19981 reply_id: 79345[/import]

@Luciane,

Did you register with Inneractive and set up your app? You will be given an app ID from them to use. Basically it’s a string based on whatever name you give it, with spaces changed to underscore characters.

So if you register and set up an app named “Sample” for iPad your app ID might be:

“YourCompany_Sample_iPad”

Hope that helps.

Ken [import]uid: 16734 topic_id: 19981 reply_id: 79351[/import]

Thanks Ken. yes I did it all like that and got an appId like that. However with so many builds it gets very confusing with version names, so to make it easier we call each build a different name that actually appears under the app icon on iPad.
That name is different from the name I registered the app with.
So let’s say:
name under the app icon on iPad: SampleA
inneractive appID: CompanyName_Sample_iPad

could that be the issue?
does inneractive look for the name Sample somewhere and finds SampleA instead and therefore does not deliver the ads?
Should I be defining the app name somewhere in the build settings?
Or always call it Sample when building?

thanks. Luciane [import]uid: 32063 topic_id: 19981 reply_id: 79356[/import]

I have three different app id’s for Inneractive.

MyCompanyName_MyAppName_iOS
MyCompanyName_MyAppName_KindleFire
MyCompanyName_MyAppName_Other

You can find the app id’s in your account info once you log into http://www.Inner-active.com

When initializing the “ads” system I would do something like this:

[lua]if ( sysModel == “iPad” or sysModel == “iPhone” ) then
APP_ID = “MyCompanyName_MyAppName_iOS”
elseif ( sysModel == “Kindle Fire” ) then
APP_ID = “MyCompanyName_MyAppName_KindleFire”
else
APP_ID = “MyCompanyName_MyAppName_Other”
end

ads.init( “inneractive”, APP_ID )[/lua]

The reason Inneractive creates different app id’s is so it can provide you with the correct size ad for your platform. [import]uid: 16734 topic_id: 19981 reply_id: 79357[/import]

Does ads.show behave like any other display object?
Will it be hidden if other display objects are loaded after it? [import]uid: 32063 topic_id: 19981 reply_id: 79491[/import]

@Luciane,

Using your above info you would call the function like this at the start (or close to the start) of your app:

[lua] ads.init( “inneractive”, “CompanyName_Sample_iPad” )[/lua] [import]uid: 16734 topic_id: 19981 reply_id: 79501[/import]

Still no ads.
In the example code for inneractive they have this in the mai n file:
ads.show( adType, { x=adX, y=adY, interval=30, testMode=true }

is testMode a parameter for inneractive?
it is not described anywhere?
do we need it while building for testing? [import]uid: 32063 topic_id: 19981 reply_id: 79520[/import]

So I’m implementing inneractive ads in my game, but I’ve had a few issues.

I’m getting the skip problem that everyone else seems to be getting with the iPad. The user gets stuck on full screen ads and is not able to skip them when the timer is done.

Another issue with the full screen ads, at least when I set test mode to false is that when I call a full screen ad it does block out the screen with an inneractive frame, but then it just places a banner ad in the center of the screen over the frame. Needless to say it looks silly, and I’ve heard the click through rates on full screen ads is better so I would prefer to see a fullscreen ad here.

An even bigger issue seems to be that the placement of the banners is not adjusted for with screen size via my config file. When I boot up the game on iPad the banner is in the middle of my playfield, which is obviously unacceptable. I will submit a ticket on this issue.

I can adjust for this manually, but if I want to use inneractive for android this becomes impossible to adjust for every possible Android screen size. [import]uid: 10903 topic_id: 19981 reply_id: 79527[/import]

My ads are called last and are not being obscured, rather they are obscuring the play area.

My UI does is such that the banner is at the bottom of the app. So when I load them on different screen sizes they appear all over the place.

Also, for Amazon, if you are going to have them on the Fire they have to be away from the top as Fire requires there to be a 20px space, which is impossible to calculate with these ads at the moment. [import]uid: 10903 topic_id: 19981 reply_id: 79530[/import]

@crssmn,

You can use the routines I provided earlier in this thread. This basically replaces the Full Screen ad functionality in Ansca with my own code to do the same thing, plus some enhancements.

My function still displays an Inneractive ad on top, but doesn’t have the lock up issue that the current CoronaSDK implementation has.

Assuming you set up your Inneractive App ID’s properly you will get different sized ads sent to you depending on the platform. My code handles this too.

However, if you just set up a single App ID, and use it for both iPad and iPhone then you will have issues since the ad that Inneractive uploads to you is sized for what they think the device is based on your configuration on the Inneractive website; not what the actual device is.

Assuming you know the ad size (based on Platform) you can use this snippet from my function to center it:

[lua] – Center the ad in the background rect
local ad_x = back_x + math.round( 0.5*( back_w - banner_width ) )
local ad_y = back_y + math.round( 0.5*( back_h - banner_height ) )[/lua]

By default back_x, back_y are both 0 and back_w and back_h are display.contentWidth and display.contentHeight.

Ken [import]uid: 16734 topic_id: 19981 reply_id: 79531[/import]

@Luciane,

I just saw your question about the ads. They are NOT like any other display object. You cannot resize them. I do not know if they are guaranteed to be on top, but if you add other images after you call ad show they may be obscuring your ad.

Make you your ads.show call is done after you create all other images for your scene.

Also, if you do not have an internet connection on your device you will NOT see the ads. Make sure you are connected via wifi or GSM. [import]uid: 16734 topic_id: 19981 reply_id: 79529[/import]

@crssmn,

You can handle the Kindle height issue by something simple (like I do) like this:

[lua]local sysModel = system.getInfo(“model”)

local myDisplayHeight = display.contentHeight

if ( sysModel == “Kindle Fire” ) then
myDisplayHeight = myDisplayHeight - 20
end[/lua]

Then use that to scale your images, center the banner, etc. Works like a charm for me. [import]uid: 16734 topic_id: 19981 reply_id: 79533[/import]

I have both app id’s. I will check out your class when I get a chance later tonight.

Will this work for Android devices as well?

Also the banner sizes that Orly posted do not seem correct. The iPhone banner is definitely larger than 100 x 57. Unless they are 100 x 57 points and the iPhone is enlarging them to compensate for the difference between pixels and points. It’s probably a confusion in the units that’s occurring.

Can we get a clarification on ad sizes between all the devices and the units of these sizes Orly? Including Android if possible. [import]uid: 10903 topic_id: 19981 reply_id: 79534[/import]