穿山甲-全球开发者成长平台|接入文档
搜索
知识中心
本文尚无当前语言版本,相关翻译工作正在进行中,感谢您的理解!

Initialize Pangle SDK

Prior to loading Pangle ads, initializing Pangle SDK is necessary and should ideally be done only once during the App Launch stage, preferably in the AppDelegate method.

Include header file

Initialize the SDK

PAGConfig.Builder

description

@property (nonatomic, assign) PAGPAConsentType PAConsent;

Indicates whether the user agrees to the delivery of personalized ads. If not passed, it is assumed to be agreed.(v7.1.0.4 added)

PAGPAConsentTypeNoConsent = 0, ///< User doesn't grant consent ,

PAGPAConsentTypeConsent = 1, ///< User has granted the consent.

@property (nonatomic, assign) PAGGDPRConsentTypeConsent GDPRConsent;

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

@property (nonatomic, assign) PAGChildDirectedTypeNonChild childDirected;

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

@property (nonatomic, assign) PAGDoNotSellTypeSell doNotSell;

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)

To set PAGConfig, please utilize the method outlined below.

The meaning of PAGConfig value

You also could check the initialization status with the method PAGSdk.SDKVersion