Chartboost integration

OK, here are some more findings:

  1. I got real ads on my iPhone, they look really nice and proffesional

  2. The ads are not perfect positioned inside the frame (nor the default nor the green one from example), they are about 10 px to much “down” - think that could be fixed by moving the frame in Photoshop a bit down

  3. This one is a game breaker - if you change orientation, the ad goes away but the grey area covering the whole screen stays and it is unresponsive (have to remove the game from memory)

I have set orientation “landscape” in their dashboard.

  1. after some time ads stop showing - maybe they have some kind of protection to not spam the system

OK, managed to position the ad inside the frame by editing the frame picture in Photoshop (moved it a bit down).

Good catch @ubj3d.android on your #3.  I can reproduce that error in the Simulator too.  The issue is a run-time error being generated by the module.  The following is printed to the terminal.

onOrientationChange

Error creating layout for impression: chartboostlibrary.lua:3773: attempt to cal

l local ‘frameImage’ (a nil value)

I’ve emailed ChartBoost about it.

  • Andrew

Found a solution for this, although it is not perfect.

  1. Enable both orientations in their dashboard

  2. Upload frames for both orientations

My game is landscape only.

If I turn the phone portrait, the ad is shown in portrait but with 90 degrees rotation.

At least it doesn’t crash or freeze. I can leave with that for now :slight_smile:

Regards,

Damir.

@aukStudios

if you go to their github page you can see that I have logged this bug (under “issues”) and chartboost has acknowledged it. Strange that it isn’t fixed yet considering there have been a few checkins. 

Like ubj3d.android I also found that uploading a custom frame and allowing Portrait or Landscape in chartboost works (some more details on page one of this thread:)). 

Hey, @ubj3.android and @hgbrian (and anyone else who can help), for the life of me, I cannot find where I am to upload the custom frame.   Where on dashboard can it be?  I must be missing something simple, but I just don’t see it.  Please help.

Naomi

Edit your app, open “Promote other apps”…

Regards,

Damir.

Hey, Damir @ubj3d.android, thank you so much.  I appreciate it.

Naomi

Is this orientation bug only on Android? It is working fine for me on IOS (ipad2 and iphone5) I did not have to upload any frame graphic. The only thing i see is that the change from landscape (my app is) to portrait seems to be very sensitive and kind of annoying! Still the ad change to portrait and back, it does not crash the app…

Mo

Hi Mo,

the issue with orientation change is there on iOS, not sure about Android as I have no tested there.

It occurs if you enable only “landscape” orientation in their dashboard.

And yes, the change from landscape to portrait is very sensitive and happanes even when you do not turn the phone to portrait.

Not perfect, but at least it works…

I just tried their wall, but it look very bad.

Anyone else tried the wall ?

@ubj3d.android  THANKS. I did not realize that I had checked both orientations on the Chartboost dashboard. Thank you also for confirming that the orientation is very sensitive. Not too much of a big deal at this point. Just more like annoyance! I did not try the wall yet. Is that bad!?

Mo

Well, the wall is not working for me.

Better said, it looks unusable…

Regards,

Damir.

THANKS! Fantastic share. I am assuming this will work the same way on IOS. Yes let’s hope they can fix the glitch on orientation very soon. I am hoping to integrate Charboost as soon as I get some time. Your post will help tremendously! I do not know if your app is also on the ios store but I will think you would make more money with Charboost with ios. Just a guess on my part of course!

Thanks again.

Mo

Thank you for sharing, @hgbrian!  I look forward to working on it, hopefully soon.

Cheers,

Naomi

On the github page they say feedback is welcome at support@chartboost.com, so they may be interested to hear that people are excited to use the plugin (especially relevant since applovin just decided to stop supporting corona).

@LairdGames, yes the app is also on iOS but since it makes no money on Google Play I thought I could safely experiment there. I have tested it on iPad and it works fine (the orientation bug excepted.)

Cool! Thank you. I will experiment as soon as possible!

Mo

Another update…

The above code works when using the appId and appSignature supplied in chartboost’s example code, so it’s not a universal issue.

The difference seems to be that chartboost’s appId/appSignature has its own visible custom frame where mine has no frame. It could be that when it tries to create the frameImage object it fails because there is no available graphic. 

I have spent a bunch of time trying to add custom frame graphics to my app but I can’t find instructions on how to do it that work – frustrating! I don’t even know if the custom frame is uploaded to chartboost, or if the graphics live in my build.


I found where to upload custom frames (it’s under “promote other apps” in the app description pane) and I added a chartboost’s default green frame (I had to upload the portrait and landscape frames, and check the boxes for portrait and landscape in chartboost, even though my app is portrait only.)

Now it appears to work!

Super cool! Can’t wait to try it. I am surprised there are not much reaction to this since many of us were waiting this to happen… In any event, thank you for sharing this great news :slight_smile: Mo

I finally got a little bit of time today to experiment with Charboost and Corona. It seems that the test app on Github seems to work on the simulator but it seems to show so canned images rather than actual ads. I tried your main.lua above (with changing to my app ID from Chartboost) but unfortunately I am getting something like:

Chartboost: network reachability not supported on this platform  — ****In the simulator only ***  

Chartboost: shouldRequestInterstitial Default?    

nil    

Chartboost: shouldRequestInterstitial Default?    

Chartboost: didFailToLoadInterstitial Default    

Chartboost: didFailToLoadInterstitial Default   

On the device, I see something about “app-environment”  not being correct (I will get the correct error later)

Not sure if you (@hgbrian) had any issue when your were playing around with the code. Please note that i am trying on IOS device since I do not have an android. Were able to test it without an app on the store? I am also assuming the code will not work on the simulator. On the device (iphone4) the screen is blank (no ads) I also try to use my current app on the store (app bundle) and got for it the two ID I need from Charboost but no luck so far!

Thanks for any pointers from anybody who tried this plugin.

Mo 

EDIT1: do I need to deal with the tax/payment issues before testing Charboost? I was just wondering…

EDIT2: I have noticed that you are showing the ad every 4 minutes. Any reason why? That seems to be a long time between shows? I thought it was better to show ads after maybe 2-3 plays. In any event I changed “timed_chartboost_show_ad()” to simply “show_ad()” and no ad so far. I did not use an enterFrame, I simply added show_ad() at the bottom of your code (main.lua) above 

Quick question (not related to the code) Did you have to sign and mail the W-9 to Chartboost or did you simply email them the form? The reason I ask is that it seems that the W-9 has line for signature which would mean that I need to print the document and then send them to them. Sounds a little archaic but who knows.

Thanks for any pointers on that.

Mo