Pangle
Last updated
Was this helpful?
Last updated
Was this helpful?
2) 초기 셋팅, 3) 초기화 진행은 위 링크에 들어가서 직접 설정하시는 것을 권장드립니다
#import <PAGAdSDK/PAGAdSDK.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// initialize AD SDK
[self setupPangleSDK];
return YES;
}
- (void)setupPangleSDK {
PAGConfig *config = [PAGConfig shareConfig];
config.appID = @"YOUR_APP_ID";
//If you need to display open ads, you should set the app logo image
config.appLogoImage = [UIImage imageNamed:@"AppIcon"];
#if DEBUG
config.debugLog = YES;
#endif
[PAGSdk startWithConfig:config completionHandler:^(BOOL success, NSError * _Nonnull error) {
if (success) {
//load ad data
}
}];
}
import PAGAdSDK
let config = PAGConfig.share()
config.appID = "pangle_code"
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
setupPangle()
...
return true
}
func setupPangle() {
PAGSdk.start(with: config) {success, error in
if(success)
{
}
}
}