-
Notifications
You must be signed in to change notification settings - Fork 0
1.1 Guide and install AotterTrek SDK
superwave edited this page Aug 14, 2019
·
6 revisions
- AotterTrek iOS SDK contains tracking and native advertising service.
- minion iOS version: 9.0.
- In Podfile
//Podfile
pod 'AotterTrek-iOS-SDK', '~> 3.0'
pod install
- pull&drag
AotterTrek-iOS-SDK
to your project. - link
AotterTrek-iOS-SDK
if it's not auto-linked. - adding linked frameworks and librarires to your target
- SystemConfiguration
- CoreMedia
- WebKit
- CoreTelephony
- AdSupport
- AVKit
- AVFoundation
- Foundation
- UIKit
- install
Google-IMA-iOS-SDK
, reference: https://developers.google.com/interactive-media-ads/docs/sdks/ios/
// AppDelegate.m
#import <AotterTrek-iOS-SDK/AotterTrek-iOS-SDK.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
//required
[[AotterTrek sharedAPI] initTrekServiceWithClientId:@"<client id>"
secret:@"<client secret>"];
//optional
[[AotterTrek sharedAPI] enableLoggerWithLevel:TKLoggerLevelDetail];
return YES;
}
- test key
- CLIENT_ID :
21tgwWwuzFYiD4ko5Klr
- CLIENT_SECRET :
fD8P20gzWYrlbuwWklRkicYcNwlWZSZwV+iHj3TzGSzzyfgTWmVR5trs5F1Dp+x9tX2jxq44
- CLIENT_ID :
- initService with your clientId and clientSecrete
- enable logger if needed
- TKLoggerLevel:
-
TKLoggerLevelNone
: no log will shown. -
TKLoggerLevelNormal
: nessary logs or warning/error logs will shown. -
TKLoggerLevelDetail
: all logs include verbose logs will shown.
-