📖
SDKs Integration
  • Quick Start
  • 🤖Android
    • Android SDK Integration
      • Banner Ads
      • Interstitial Ads
      • Rewarded Ads
  • 🍏iOS
    • iOS SDK Integration
      • Banner Ads
      • Interstitial Ads
      • Rewarded Ads
  • Frequently Asked Questions
  • Contact us
  • Documentation
Powered by GitBook
On this page
  • Installation
  • Setup
  • How to use

Was this helpful?

  1. iOS

iOS SDK Integration

PreviousRewarded AdsNextBanner Ads

Last updated 4 years ago

Was this helpful?

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().

🍏
121KB
Adstronomic iOS SDK.zip
archive
Download iOS SDK