iOS SDK Integration
Adstronomic iOS SDK.zip
Download iOS SDK
Download the zip file for the iOS SDK and extract it. Open your project with Xcode and drag & drop the
AdstronomicFramework.frameworkfolder into the root of your project. And voila!
In order to be sure, check in your project setup -> General -> Linked Frameworks and Libraries,
AdstronomicFramework.frameworkneed to be visible and yellow.
Open your main
ViewController.swiftand add the following include code
import AdstronomicFramework. Inside the
viewDidLoad, you can initalise Adstronomic with this line of code
Adstronomic.initialize(campaignId: "CAMPAIGN ID")and replace
CAMPAIGN IDwith your ID available on the dashboard.
You're now ready to load and show ads.
You can load all ads after the setup with this method