Chartboost integration

IT WORKS!!! I forgot to start a campaign! The ad showed on my device AND on the simulator :slight_smile:   (windows machine) The ads look fantastic.i did not have to upload a new frame for some reason. i just selected both portrait and landscape (and set the default to landscape) I need to do more test on that point but maybe the difference is ios versus android?

The only things i need to figure out are:

1- How to integrate into my upcoming app (using storyboard) I will assume most code above will go into my main.lua and then use show_ad() on any module when needed

2- Why the dashboard not showing any $$ even so i downloaded and run an app. Delay?, test mode? my app not being on the app store yet?

3- Figure out if I need to actually sign the W-9 and physically send it to Chartboost? I hope not :slight_smile: Maybe simply scanning my signature and send the form by email…

Other than that I am ready to go:) THANK YOU so much for the tutorial above. It really helped. I hope more people could try this plugin (very easy!) so we can get more experience with it. I am going to use it with Revmob (when Revmob has low $$ ads or did not load for some reason)

Cheers guys!

Mo

Ok, I figured out 1 and 2. I got my first “$1”

Cheers.

Mo

EDIT: actually $2.88 for two installs…

Hi Mo, 

I didn’t do anything with tax forms yet – I will wait until it goes above $10 before I worry about that:)

I am surprised you didn’t see the issue I saw. I would do a quick check that rotating your device while showing a non-test ad doesn’t cause a crash. If the non-test ad doesn’t have a frame I would expect you to see the same problem…

I’ll reevaluate the 4 minute thing too:) Probably too much time.

Brian

Thanks for the info. Yes you are right, the minimum seems to be $300 so there is time:) I do not seems to get the issue you got for some reason. Did you try it on iOS device? When I change orientation, the ad change orientation. The only issue seems to be that the orientation looks very sensitive. Will switch between landscape and portrait very quickly with small change in orientation. It seems that there is setting to lock the app in one direction but not sure it works yet. The main issue is that I do not seems to get ads all the time so it is hard to test. Maybe it has to do about the test devices settings. I tried to set the $$ to zero so to accept all ads during the test phase. But not much luck. Still I can see live ads and they seems to be popular ones so that 's great! So far so good. Need more time test but I am getting impressions, installs and $. Thanks again! Mo.

I just gave it a try on android and it really works. The layout is a bit messed up though.

to fix the rotation issue, i simply set the orientation to my app’s orientation. the ad now still rotates, but it does not crash.

I can live with that.

I have contacted them about the bug and got an answer they are aware of it and will push a fix.

Regards,

Damir.

I’m getting didFailToLoadInterstitial.  When this happens, it fails to show Chartboost ad and my app hangs.  If I add something like showMyOtherAds and cb.cacheInterstitial to this delegate, it goes haywire for me.  Basically, it gets trapped in the loop – keep failing to cache the ad and hitting didFailToLoadInterstitial over an over.

For now, I decided not to use didFailToLoadInterstitial at all, and when cb.hasCachedInterstitial() is true, I call cb.showInterstitial(), otherwise, I simply call showMyOtherAds() and cb.cacheInterstitial().  

But the problem is, once my device started getting didFailToLoadInterstitial, it doesn’t seem to cache any ad at all any more, which results in not showing Chartboost ad at all.

Would it correct itself eventually?

Naomi

Edit:  It corrected itself – meaning, I see the Chartboost ads again.

Hey guys. I can use some help. I am only getting the following error:

2013-07-11 21:15:03.282 Corona Simulator[74606:707] Chartboost: shouldRequestInterstitial Default? 2013-07-11 21:15:03.469 Corona Simulator[74606:707] Chartboost: didFailToLoadInterstitial Default  

I already created an app and used the appID and appSignature in the code and also started an campaign.

If I use the same code but using the appID and appSignature of the Chartboost example it works fine. I don’t know why it is not working with my app info. I also see in the dashboard the bootups and “install delivered” but in the device the add does not show.

I tested in Android and iOS and both give me the same error.

Best,

Renato

Hi Renato.

Thanks for trying the plugin. We need more people to experiment with it. You could get that message ( i do not believe it is an error message but more like a status report)  for two reasons 

1- There are no ads available at this time

2- Your “finance” settings are wrong. In the compaign area you can set the minimum CPI and CPC that you will accept. You may want to check those.

I am using my own Chartboost settings and it works fine (both on the windows sim and the devices) I even started integrating it with Revmob on my upcoming app:

1- A start/resume, show full screen Revmob (show Chartboost if revmob fail)

2- After each game over show Chartboost (show Revmob if Chartboost fail) 

It works great so far but need more test.

For your issue, I will suggest you post your code without your Chartboost, maybe we can all have a look?

Good luck!

Mo

Hi Mo.

Thanks for giving some tips. I already checked the CPC and CPI values and nothing… I can post the code but I am using the own Chartboost code. I just changed the appID and appSignature to my app ID/Signature…

What is funny is that the Chartboost dashboard is showing me statistics as I my app bootup and also showed ads, but in the device nothing happen (only that error message).

Renato

@Renato, @LairdGames

I’m testing this Chartboost code in my two iOS apps - one is already available for sale,
the other one is not (although it has an iTunes bundle ID).

In the first app the same code works properly - the ads are being displayed.

In the second app the exact same implementation (w/different id) outputs the message:

 Chartboost: shouldRequestInterstitial Default?
 Chartboost: didFailToLoadInterstitial Default

Could you two confirm that this is the case in your apps?

That Renato’s app is not ready for sale, and LairdGames’ app is already in the App Store?

cheers,

Olaf

EDIT:

the ads in second app (the one which is not yet available) do work in the xcode simulator,
althought they don’t display on the device. @Renato - do your ads work in the simulator?

Hi,

That could be it! I used my app ID that is on sale BUT do not have the Chartboost code. That’s a good point. So maybe using any app ID which is currently live would work. Again I can see ads on device and simulator (windows)
thanks again for your help.

Mo

My app was already in sale and I am receiving the same error message that you are @whammy

Do you call cb.cacheInterstitial() within didFailToLoadInterstitial? I can see that causing a recursive loop when no ads are available. You should be able to call your showMyOtherAds() without a problem though, but cb.cacheInterstitial() should definitely be moved out and put elsewhere.

I’ve tested didFailToLoadInterstitial and I call my RevMob fullscreen function from there and it works fine.

Hey, @ingemar, thank you so much for your feedback.  Yes, I had the cb.cacheInterstitial() within didFailToLoadInterstitial, because I thought if it failed to load from cache, it must need a new one cached.  I also call cb.cacheInterstitial() at the launch of the app, and I do not want to call showMyOtherAds() when it fails to cache at the start of the app.  So, that leaves me two options.  One, do not add showMyOtherAds() in didFailToLoadInterstitial, or two, ad a flag telling it’s at the launch or not, and if it’s at the launch, don’t call showMyOtherAds().  I decided not to use the flag and leave the didFailToLoadInterstitial empty.  

What I do is call cb.hasCachedInterstitial(), and if it returns true, call cb.showInterstitial(), otherwise, I call showMyOtherAds() and cb.cacheInterstitial().

I also call cb.cacheInterstitial() immediately after the Chartboost ad is displayed (thinking it would fetch and cache a new ad.)

Is this a best practice?  (With Vungle, they automatically update the cached ad immediately after the cached version is displayed, but I’m not sure if Chartboost does that, and that’s why I’m calling cb.cacheInterstitial() after it fails to load cached ad or finish showing the cached ad.)

Any thoughts?

Naomi

Hmmm. On my Amazon build I get this in my log:

“Chartboost: network reachability not supported on this platform”

@ingemar, that is odd.  Did you notify Chartboost support?  And if you did, I’d like to hear what they say in response.

Naomi

@naomi

I’m still investigating if it’s my fault or not :slight_smile:

@everybody 

Anybody know the difference between didDismissInterstitial and didCloseInterstitial?

Hi Mo,

What did you figure out?

Also, do I have to set up a campaign even if I’m only interested in revenues and not cross promotion?

Thanks!

@ingemar

didDismissInterstitial will always fire when you tap the ad to view in the app store or close the ad using the close button. 

didCloseInterstitial will fire when the close button is tapped.

didClickInterstitial will fire when the ad is tapped to view in the app store.

I have, experienced the interstitial appear in front of my content although it doesn’t happen often at the moment…

Best,

Martin.