文档

iOS SDK integration checklist

Ensure successful integration of the LevelPlay iOS SDK by following the provided checklist and verifying configurations.
阅读时间1 分钟最后更新于 3 天前

Integrate the iOS SDK | Checklist

Add Your App

Log in to the LevelPlay platform and add your app. If your app isn't live yet, make sure to scrape your app after the final submission to the app marketplace!

Set Up Ad Units

Define your ad units and placements on the Ad Units page. Set the item name and reward amount for rewarded ad units like Rewarded Video.

Add the SDK to Your Project

Add the LevelPlay SDK to your project through CocoaPods or Manual Download

Add Frameworks

Add the required frameworks to your project

Configure ATS Settings

Add the dictionary called 'NSAppTransportSecurity' on the 'Top Level Key'. Inside the dictionary, add a Boolean called 'NSAllowsArbitraryLoads' and set it to YES.

Import Necessary Files

For Objective-C, import
"IronSource/IronSource.h"

Set the Delegates

Register to the delegates of the ad units you set up earlier on the LevelPlay platform

Set UserID

If using server-to-server callbacks to reward your users for Rewarded Video, you must set the UserID. In addition, the userID parameter must be set before you make the init request.

Init the SDK

Initialize the SDK using the app key generated on the LevelPlay platform. We recommend referring to the ad units you set up earlier in the ad unit parameter like this
[IronSource initWithAppkey:YOUR\_APP\_KEY adUnits:YOUR\_AD\_UNITS\];
Also refer to our Ad Unit Integration Checklists: