Pangle: A global platform dedicated to developer growth.|통합 문서
검색
지식센터
해당 글은 현재 중국어 및 영어로만 제공됩니다. 빠른 시일 내에 번역을 완료하도록 최선을 다하겠습니다. 이해해 주셔서 감사합니다!

Initialize Pangle SDK

【IMPORTANT】If you need to call the method getBiddingToken, we strongly recommend that you call it in the background thread, and call it in the success()callback after the SDK is initialized successfully

  1. Create object of PAGConfig

PAGConfig.Builder

description

-PAGConfig.Builder setPAConsent(@PAGConstant.PAGPAConsentType int pa)

Indicates whether the user agrees to the delivery of personalized ads. If not passed, it is assumed to be agreed. The purpose of this api is to modify the value passed in through PAGConfig.Builder.setPAConsent during initialization.

Note: This interface must be called after initialization, otherwise it will not take effect

0:User doesn't grant consent, 1: User has granted the consent.(v7.1.0.4 added)

-PAGConfig.Builder setGDPRConsent(int gdpr)

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

-PAGConfig.Builder setChildDirected(int coppa)

Set the configuration of COPPA, 0:adult, 1:child(v7.1.0.4 removed)

-PAGConfig.Builder setDoNotSell(int ccpa)

Set the configuration of CCPA, 0: "sale" of personal information is permitted, 1: user has opted out of "sale" of personal information(v7.1.0.4 removed)

-PAGConfig.Builder appId(String appId)

Set the APP ID

-PAGConfig.Builder appIcon(int appIconId)

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

-PAGConfig.Builder supportMultiProcess(boolean 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. Please use . to separate the base package name and module name. For example, if your base package name is com.test.123 , the module name is 456, then you should fill in to blank, com.test.123.456. Be careful, we only support Configure install-time delivery and Configure conditional delivery, we don't support Configure on-demand delivery.

-PAGConfig.Builder debugLog(boolean debugLog)

Set whether to open log debugging

  1. Initialize the SDK

Cautionary notice: The Pangle Ads SDK or its associated mediation partner SDKs may preload advertisements subsequent to their initialization.

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

The meaning of PAGConfig value

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