TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | Commercial |
ReleasedLast Release | Oct 2024 |
Maintained by Gonzalo Alsina, Geoff Heeren, Arnau Marti, Jose Padilla, Daniel Barros, Javier Serrano, Helium Service, Ivan Bella.
Version 7.0.2
The Chartboost iOS SDK is the cornerstone of the Chartboost network. It
provides the functionality for showing interstitials, More-Apps pages, and
tracking in-app purchase revenue.
startWithAppId:appSignature:delegate:
must always be called during hard and soft bootups, no matter what other actions your app is taking.PRO TIP: Checkmark the Copy items if needed option. This creates a local copy of the framework for your project, which keeps your project organized.
Link the StoreKit
, Foundation
, CoreGraphic
s, WebKit
and UIKit
frameworks.
Add the import header #import <Chartboost/Chartboost.h>
to your AppDelegate.m file.
Initialize Chartboost in your didFinishLaunchingWithOptions
method.
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Initialize the Chartboost library
[Chartboost startWithAppId:@"YOUR_CHARTBOOST_APP_ID"
appSignature:@"YOUR_CHARTBOOST_APP_SIGNATURE"
delegate:self];
return YES;
}
**Please note:**
- `startWithAppId:appSignature:delegate:` must always be called during hard and soft bootups, no matter what other actions your app is taking.
- You might receive a warning when passing an object as a delegate into the `startWithAppID:appSignature:delegate:` method. You can usually ignore this warning, but you can also resolve it by ensuring that the object you're passing conforms to the ChartboostDelegate protocol.
Add your app ID and app signature.
YOUR_CHARTBOOST_APP_ID
and YOUR_CHARTBOOST_APP_SIGNATURE
with your app ID and app signature.To show a static or video interstitial ad:
[Chartboost showInterstitial:CBLocationHomeScreen];
shows the interstitial at location HomeScreen. See Chartboost.h for available location options.To show a rewarded video ad:
[Chartboost showRewardedVideo:CBLocationMainMenu];
shows the rewarded video pre-roll message and video ad at location MainMenu. See Chartboost.h for available location options.Test your integration.
Check the SDK icon in the Chartboost dashboard.
For more common use cases, visit our online documentation.
Check out our header file Chartboost.h
for the full API specification.
If you encounter any issues, do not hesitate to contact our happy support team at [email protected].