iOS SDK Integration
Adstronomic iOS SDK.zip
121KB
Binary
Download iOS SDK

Installation

Download the zip file for the iOS SDK and extract it. Open your project with Xcode and drag & drop the AdstronomicFramework.framework folder into the root of your project. And voila!
In order to be sure, check in your project setup -> General -> Linked Frameworks and Libraries, AdstronomicFramework.framework need to be visible and yellow.

Setup

Open your main ViewController.swift and 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 ID with your ID available on the dashboard.
You're now ready to load and show ads.

How to use

You can load all ads after the setup with this method Adstronomic.loadAdsData().
​
Last modified 10mo ago