ChartboostSDK 9.7.0

ChartboostSDK 9.7.0

测试已测试
语言语言 Obj-CObjective C
许可证 商业
发布最后发布2024年3月

Gonzalo AlsinaGeoff HeerenArnau MartiJose PadillaDaniel BarrosJavier SerranoHelium ServiceIvan Bella 维护。



  • Chartboost

Chartboost for iOS

版本 7.0.2

Chartboost iOS SDK 是 Chartboost 网络的基石。它
提供了展示横幅广告、更多应用页面和
追踪应用内购买收入的功能。

使用方法

  1. 开始之前
  1. 将 Chartboost.framework 拖放到您的 Xcode 项目中。

提示:如果需要,请选中“如果需要则复制项目”选项。这会在您的项目中创建框架本地副本,从而保持项目的整洁。

  1. 链接 StoreKitFoundationCoreGraphicWebKitUIKit 框架。

  2. 将导入头文件 #import <Chartboost/Chartboost.h> 添加到您的 AppDelegate.m 文件中。

  3. didFinishLaunchingWithOptions 方法中初始化 Chartboost。

(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.
  1. 添加您的应用 ID 和应用签名。

  2. 要展示静态或视频横幅广告

    • [Chartboost showInterstitial:CBLocationHomeScreen]; 在主屏幕位置展示横幅广告。有关可用的位置选项,请参阅 Chartboost.h。
    • 为了更细心地控制广告在游戏中的行为,Chartboost SDK 还提供了更多功能,例如缓存、代理方法和命名位置。
    • [了解更多关于 Chartboost 视频广告的详情。](https://answers.chartboost.com/hc/en-us/articles/201220275)
    • 重要:Chartboost 调用始终应从主线程而不是后台线程中发出,否则这些调用可能会超时!
  3. 要展示奖励视频广告

    • [Chartboost showRewardedVideo:CBLocationMainMenu]; 在主菜单位置展示奖励视频的前置消息和视频广告。有关可用的位置选项,请参阅 Chartboost.h。
    • 为了更细心地控制广告在游戏中的行为,Chartboost SDK 还提供了更多功能,例如缓存、代理方法和命名位置。
    • 了解更多关于 Chartboost 视频广告。
    • 重要:Chartboost 调用始终应从主线程而不是后台线程中发出,否则这些调用可能会超时!
  4. 测试您的集成。

  5. 检查Chartboost仪表板中的SDK图标。

    • 转到您的应用的“应用设置”>“基本设置”,可以在您的仪表板中找到。
    • 当我们的服务器成功接收到使用您的应用ID的SDK启动调用时,您应用图标下的SDK图标将从灰色变为绿色。

深入了解

有关更多常见用例,请访问我们的在线文档

查看我们的头文件Chartboost.h获取完整的API规范。

如果您遇到任何问题,请毫不犹豫地联系我们的快乐支持团队:[email protected]