iOS SDK Integration
Integrate the iOS SDK | Checklist
✔ Add Your App
Log in to the ironSource 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 and Offerwall.
✔ Add the SDK to Your Project
Add the ironSource 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 ironSource platform
✔ Set UserID
If serving the Offerwall ad unit or using server-to-server callbacks to reward your users (for Rewarded Video or Offerwall), 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 ironSource 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];