PanlgeCommon.Image.Alt.LogoPangleText|통합 문서
지식센터
해당 글은 현재 중국어 및 영어로만 제공됩니다. 빠른 시일 내에 번역을 완료하도록 최선을 다하겠습니다. 이해해 주셔서 감사합니다!

Initialize SDK

You must initialize Pangle SDK before loading Pangle ads. This needs to be done only once, ideally at the App Launch stage (in AppDelegate method).

Create object of PAGConfig

PAGConfig.Builder

Description

-PAGConfig.Builder setChildDirected(PAGChildDirectedType childDirected)

Set the configuration of COPPA, 0:adult, 1:child

-PAGConfig.Builder SetGDPRConsent(PAGGDPRConsentType DPRConsent)

Set the configuration of GDPR, 0:User doesn't grant consent, 1: User has granted the consent

-PAGConfig.Builder SetDoNotSell(PAGDoNotSellType ccpa)

Set the configuration of CCPA, 0: "sale" of personal information is permitted, 1: user has opted out of "sale" of personal information

-PAGConfig.Builder SetAppId(string appId)

Set the APP ID

-PAGConfig.Builder SetAppIconName(string appIconId)

If you use the format of Open Ad, you should set the app's icon

-PAGConfig.Builder SetSupportMultiProcess(bool supportMultiProcess)

If your app is a multi-process app, set this value to true.

-PAGConfig.Builder SetPackageName(string packageName)

If you use the AAB function and configure the SDK to the feature module, you need to set the package name of the feature module

-PAGConfig.Builder SetDebugLog(bool debugLog)

Set whether to open log debugging

Setting callback of SDK initialization

If you want to change the value of COPPA/GDPR/CCPA after initializing Pangle SDK, you can call the following method, as shown below:

The meaning of PAGConstant value

You also could check the initialization status with the method PAGSdk.isInitSuccess()