Chartboost Plugin released!

We will look into that function issue. Have you followed all the steps i listed two posts back? That’s important.

We have no control over the display, that is just how they are provided to us. We will ask Chartboost if there is anything we can do to control the transitions however, but I wouldn’t think that they would expose that.

The iOS version is unchanged, bar the new didDisplay event and the new hasCached function additions.

We know of several people who have integrated the Android version fine during our beta testing phase, so please go over that post i mentioned and ensure you have done each and every one of the steps listed.

Cheers

I have implemented the iOS and Android versions, and they work just fine so far.

However I do not use the hasCached() functions as I use the callbacks to determine cache status myself.

As for the Android animations, there’s nothing they can do about that. Android doesn’t have any backwards compatible fancy UIImage 3D transform matrixes as iOS has. For me, the Android version looks similar to Chartboost’s own Lua SDK counterpart while animating in/out though. 

NOTE:

If you’re testing Chartboost for an Amazon app, make sure you have the Amazon App Store app installed on the device. I was getting unusual behavior on my Nexus 7 while testing, but after installing the Amazon app everything started to work as expected.

It’s disconcerting right now as I’m testing with live ads that have been working for over a month and I get odd results at times, especially with more apps not working anymore, but working in my last release.   I supposed I could switch to a testmode ID, and setup up test devices, but I not sure how to get a MacID or android Id for the test devices, are there any quick tools for this?

This is just how it is from my experience. Until you add your test devices and device lists etc. When you do that you get consistent test results.

On the android app store, look for an app called “adid”. That prints/emails your android id for you.

Just remember, adding test devices alone is not enough. You have to also add them to a device list and add that device list to your inclusion list in your campaign.

 this is

menu.lua

local chartboost = require( “plugin.chartboost” );

 

–The ChartBoost listener function

local function chartBoostListener( event )

for k, v in pairs( event ) do

print( k, “:”, v )

end

end

 

– Your ChartBoost app id

 

 

 

local yourAppID = “sfsfsfsfffffffffffffsf”;

– Your ChartBoost app signature

local yourAppSignature = “fsfsfsfsfsfsssssssssssssss”;

 

 

chartboost.init(

{

licenseKey = “ccccccccccccccccccccccc”,

testMode = false,

appID = yourAppID,

appSignature = yourAppSignature, 

listener = chartBoostListener ,

}

);

 chartboost.cache();

function scene:exitScene( event )

        local group = self.view

 chartboost.show( “interstitial” );

        –      INSERT code here (e.g. stop timers, remove listeners, unload sounds, etc.)

end

is this set up right?

I test without internet ,

When I move to another scene, it delays about 6 or more seconds.

***------------------**********************************************************************

I test with internet , it delays about 2 or more seconds.

Calling chartboost.cache() doesn’t guarantee that an ad will be cached.

You should test for this by adding chartboost.hasCachedInterstitial() before calling show().

if chartboost.hasCachedInterstitial() then chartboost.show("interstitial") end

so I have to put it

this is

menu.lua

local chartboost = require( “plugin.chartboost” );

 

–The ChartBoost listener function

local function chartBoostListener( event )

for k, v in pairs( event ) do

print( k, “:”, v )

end

end

 

– Your ChartBoost app id

 

 

 

local yourAppID = “sfsfsfsfffffffffffffsf”;

– Your ChartBoost app signature

local yourAppSignature = “fsfsfsfsfsfsssssssssssssss”;

 

 

chartboost.init(

{

licenseKey = “ccccccccccccccccccccccc”,

testMode = false,

appID = yourAppID,

appSignature = yourAppSignature, 

listener = chartBoostListener ,

}

);

 

 chartboost.cache();

 

 

 

 

 

function scene:exitScene( event )

        local group = self.view

if chartboost.hasCachedInterstitial() then                      ----------------------  So I have to place here…
chartboost.show(“interstitial”)
end

 

 

        –      INSERT code here (e.g. stop timers, remove listeners, unload sounds, etc.)

end

 

is this set up right?

I test without internet ,

When I move to another scene, it delays about 6 or more seconds.

 

***------------------**********************************************************************

I test with internet , it delays about 2 or more seconds.

I’m not sure why it takes a few seconds for the ad to show up. In my experience it shows up quickly.

I suspect since you do it in an exitScene that the app is busy loading the other scene before it has time to show the ad. I’d recommend changing your ad logic to show the ad before exiting the scene.

Also, ads will not work without Internet. I guess that if the ad is cached it might show up, however you will not be able to generate any revenue without an internet connection. I’d recommend checking for an Internet connection from time-to-time in your app and set a flag if a connection exists, and also only show an ad if the flag is true.

You can read this thread for some ideas:

http://forums.coronalabs.com/topic/33356-check-for-internet-connection/

I have place this code

level1.lua

[lua]

local chartboost = require( “plugin.chartboost” );

if chartboost.hasCachedInterstitial() then

    chartboost.show(“interstitial”)

local myText = display.newText( “cache”, math.random(20,100), math.random(200,300), native.systemFont, 16 )

          myText:setFillColor( 1, 0, 0 )

else

local myText1 = display.newText( “nocache”, math.random(20,100), math.random(200,300), native.systemFont, 16 )

          myText1:setFillColor( 1, 0, 0 )

     --group:insert( myText1 )

chartboost.init(

{

licenseKey = “jjjjjjjjjjjjjjjjjjjjjjj”,

testMode = true,

appID = yourAppID,

appSignature = yourAppSignature, 

listener = chartBoostListener ,

}

      );

    end

[/lua]

I see the test interstitial  in the device , but  What happened if the add is not cached, it calls again?

I put the init code in the main.lua .

I don’t know if the code when the add is not cached is right.

Hi guys,

I too is receiving the “failed” message when show an interstial (ios) I think I have the correct setting since it use to work few days when I was working on it. I since then send the app to apple for approval but I found that I left “testMode = true”!!! So as Gremlin suggested, I decide to reject my binary and change the testMode = false. Unfortunately I cannot get the ads to show to make sure everything is ok (it used to be ok)

Next I decided that maybe I need to add a test device so I can see “fake” ads all the time. I did add my iphone 5 as a test device but I used the link on step 2 above to add my test device so I am kind of confused on to really add a test device and make the test ads shows up all the time. I do not understand the “via csv file”  step? I look at the inclusion section and all I can see is that I can set device type like ipad, iphone… I try the search function to look for my “iphone5” device and of course nothing show up for that.

I guess I would love for someone to explain how to really add test device to Chartboost. I look at Chartboost  help and did not really help ;(

Thank you for any suggestions!

Mo

ps. The “test mode” on Chatboost goes back to live every time i set it up to “test” My guess is because i got more than 20 ads so far.

pps: The funny part is am also using the Chartboost plugin on the same app but for Android, and on that device the ads (fullscreen/more) shows up fine. Actually too “fine” since each time I close the fullscreen ad, another one shows up, and when I close that one, another one shows up :)??? I did not need to add my Nexus 7 to the test list or anything like that…

Got It! Sorry very stupid mistake (wrong UUID) All I had to do is to correct that and start getting ads. I am not sure they are test ads since they seems to be different each time and they do not say anything about being test ads. But still, I am happy since I can see the app is getting ads.

I rejected the binary (because of the tesMode = true issue) and uploaded the new version. This is the first time I upload a game with this Chartboost plugin so I can wait to see the app in the store! (another week to wait)

Thanks, I will let you know.

Mo

Firstly the Chartboost plugin behaves correctly for me with both iOS and Android. I just tested now to make sure.

Ads show up, and only one ad is shown. No repeating ads after closing.

Secondly it’s important that you register the IFA and not the UDID of your iOS device. You can use apps like the following to find your device identifiers:

https://itunes.apple.com/us/app/the-identifiers/id564618183?l=en&mt=8

To register a test device:

  1. Log in to Chartboost

  2. Hover over the round icon that looks like a person’s silhouette, select Company Info

  3. Select the “Test devices” tab

  4. Add your devices

One thing though. Even after registering a test device I see no difference in behavior. However, I suspect that Chartboost ignore clicks for devices registered in the list.

Sorry, my bad… You said UUID, I read UDID… I guess that the UUID should work :slight_smile:

I use the IFA when I register though…

Thanks so much ingemar!! Yes I cannot see any difference either on the look of the ads so i am sure you are right (ie: they may just not count clicks from test devices)

For the issue on my android version, I am sure it is me! I need to work on that. I am just happy I was able to finally send my app to Apple :slight_smile:

THANKS!

Mo

ps: I finally found the help about the device list that was talked about earlier. Here the link for anybody interested (but not sure why I i will need to use that  device list…) 

https://answers.chartboost.com/hc/en-us/articles/201219985#device

That device list is different than the Test Device list.

The list you reference is meant for advanced targeting. Something I think only a few developers use.

Got it!

Thank you.

Mo

Right guys, I’m going to close this thread now, as it’s original purpose was not intended to answer people’s Chartboost integration questions :wink:

If anyone has a problem or question pertaining to Chartboost, please post your own new thread in this forum section. Will be much easier for us to see new questions and replies this way.

Thanks!