Home / iOS / Swift / Using the SDK

Swift

Using the SDK

Once integrated the SDK, you are ready to start using it!

Tappx App Key: First of all, you need to create a Tappx account on our website http://www.tappx.com and create an APP in the "My Apps" section. Once created, you will receive an App KEY that you will need in order to request ads. There is one App KEY for each app and operating system, so if you have apps with more than one operating system, you will need to create one app for each.

Tappx initialization

In the AppDelegate file of the Project add the lines in yellow from the following example:

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool {
// Override point for customization after application launch.
TappxFramework.addTappxKey("**YOUR-APP-KEY**")
return true
}
}