> For the complete documentation index, see [llms.txt](https://adpopcornssp.gitbook.io/ssp-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adpopcornssp.gitbook.io/ssp-sdk/undefined-1/ap/ap-ios/ios-2.x.x/pangle.md).

# Pangle

#### Pangle

{% embed url="<https://www.pangleglobal.com/integration/integrate-pangle-sdk-for-ios>" %}

## 사용방법

{% hint style="warning" %}
**2) 초기 셋팅,  3) 초기화 진행은 위 링크에 들어가서 직접 설정하시는 것을 권장드립니다**
{% endhint %}

### 1) 설치

{% content-ref url="/pages/IP2R7MXm9WlEBdvJxfnZ" %}
[iOS 2.x.x (구버전)](/ssp-sdk/undefined-1/ap/ap-ios/ios-2.x.x.md)
{% endcontent-ref %}

### 2) 초기화

{% tabs %}
{% tab title="Objective-C" %}

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

{% endtab %}

{% tab title="Swift" %}

```swift
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)
        {
            
        }
    }
}
```

{% endtab %}
{% endtabs %}
