iOS SDK

AotterTrekSDK 5.x · iOS 15+

Get my keys

Install

Swift Package Manager

.package(url: "https://github.com/aotter/AotterTrekSDK-iOS", from: "5.0.0")
// product: AotterTrekSDK

CocoaPods

source 'https://github.com/aotter/AotterTrekSpecs-iOS.git'
source 'https://cdn.cocoapods.org/'
pod 'AotterTrekSDK', '~> 5.0'
CocoaPods trunktrunk becomes read-only in December 2026 and new versions ship only to Aotter's specs repo, so keep the source line above.

Initialise

AotterTrekSDK.sharedInstance().initSDK("<your client id>")

Native ads

let loader = ATKAdLoader(placeID: "<PlaceUid>", listener: nil)
loader.delegate = self
loader.load(nil)

func adLoader(_ loader: ATKAdLoader, didReceive ad: ATKNativeAdData) {
  adView.nativeAd = ad   // ATKNativeAdView containing an ATKMediaView
}

Fields: title, text, advertiserName, sponsor, callToAction, imgIcon. The placement decides standard or multimedia native; read it via adType from 5.0.1.

banner.placeID = "<Banner PlaceUid>"
banner.rootViewController = self
banner.delegate = self
banner.load(nil)

Parallax creatives

From 5.0.1, call AotterTrekSDK.notifyAdScrolled() in scrollViewDidScroll so parallax creatives move with the page.

Test keys

ItemValue
clientId21tgwWwuzFYiD4ko5Klr
Nativebc47b614-7b24-4eb1-aae2-65e8de8e96de
Native Multimediaadcb5212-0453-4594-932a-104be11e521a
Banner669bad6a-27ec-487a-a583-7b5305732ff7

IAB Open Measurement (OMSDK_Aotternet) is built in for third-party viewability.