Question

I am integrating chart boost Ad into my iOS app. But it is not displaying any Ad. I used the following code in 'applicationDidBecomeActive' method, to display the chart boost.

 Chartboost *cb = [Chartboost sharedChartboost];
cb.appId = "YOUR_CHARTBOOST_APP_ID";
cb.appSignature = "YOUR_CHARTBOOST_APP_SIGNATURE";
// Begin a user session
[cb startSession];
// Show an interstitial
[cb showInterstitial];

What is the problem with this? Is there anything else that I have to do?

Thanking You in Advance

Was it helpful?

Solution

You can refer following links:-

https://help.chartboost.com/downloads/ios

https://github.com/ChartBoost/client-examples

The second link contains example code too, so you can refer that, and your code just need to be written in appdelegate file with proper chartboost_id and chartboost_secret. [cb showInterstitial] should be in the controller you want to display ads.

OTHER TIPS

Is it giving you any error message ? You don't want to show us your appId and appSignature or you are assigning the same appId and appSignature.
If you have not created them yet please go through this link

1.Create an account.
2.Choose Apps tab then Add App

enter image description here


3.Fill all fields.

enter image description here

After that use that appId and appSignature in your code. You will able to show Interstitial popup.

If you want to show More Apps list too then you will have to add a Campaigns. Select Campaigns tab then add Campaigns > Publish in Network and fill the detail. After that edit your app choose More App Page fill the added Campaigns name in that device and click on save. Now you can use [[Chartboost sharedChartboost] showMoreApps]; method too.

Note: If you are testing it on simulator and app is not live your Chartboost's app's test mode should be enabled.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top