Apple

Example App


  1. Import the Adrop

  2. Initialize an Adrop shared instance in your app delegate's application(_:didFinishLaunchingWithOptions:) method:

import UIKit
import AdropAds

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
  var window: UIWindow?

  func application(_ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions:
      [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        
    // true for production
    // If you are using this SDK in specific countries, 
    // pass an array of ISO 3166 alpha-2 country codes.
    Adrop.initialize(production: false, targetCountries: [])
    return true
  }
}

When production is false, you can check error logs.

Display ad units

Last updated