Pangle

Pangle

사용방법

1) 설치

미디에이션

2) 초기화

#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
        }
    }];
}

Last updated

Was this helpful?