Help Center/Details/

Initialize Pangle SDK

Pass Appid to initialize Pangle SDK

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

//pass appid to initialize pangle sdk
[BUAdSDKManager setAppID:@"Your_Pangle_App_Id"];

Pangle provides a new sdk initialization method starting from v3.6.0.0, the old initialization method still works in the new sdk, in the new initialization flow, there is a BUAdSDKConfiguration class, any setups should be passed through BUAdSDKConfiguration class. When Pangle SDK is initialized successfully, you will get the notification from the init callback.

BUAdSDKConfiguration *configuration = [BUAdSDKConfiguration configuration];
configuration.territory = BUAdSDKTerritory_NO_CN;
configuration.coppa = @(0);
configuration.logLevel = BUAdSDKLogLevelDebug;
configuration.appID = @"Your App Id";
[BUAdSDKManager startWithAsyncCompletionHandler:^(BOOL success, NSError *error) {
    if (success) {
       //Pangle SDK has been successfully initialized


Warning: Ads may be preloaded by the Pangle Ads SDK or mediation partner SDKs after initialization. If you need to obtain consent from users under age 13, please ensure you do so before initializing the Pangle Ads SDK.

Interface Instruction

Currently, the BUAdSDKManager provides the following class methods.

@property (nonatomic, copy, readonly, class) NSString *SDKVersion;

/// Register the App key that’s already been applied before requesting an ad from Pangle Plarform.                                                       @param appID : the unique identifier of the App
+ (void)setAppID:(NSString *)appID;

///This property should be set when integrating non-China areas at the same time, otherwise it does not need to be set.you‘d better set Territory first,  if you need to set them.                                                      @param territory : Regional value: 1.BUAdSDKTerritory_CN  2.BUAdSDKTerritory_NO_CN
+ (void)setTerritory:(BUAdSDKTerritory)territory;

 ///Configure development mode.                                            @param level : default BUAdSDKLogLevelNone
+ (void)setLoglevel:(BUAdSDKLogLevel)level;

///Set the COPPA of the user, COPPA is the short of Children's Online Privacy Protection Rule, the interface only works in the United States.              @params Coppa 0 adult, 1 child
+ (void)setCoppa:(NSUInteger)Coppa;

/// Set the user's keywords, such as interests and hobbies, etc.
/// Must obtain the consent of the user before incoming.
+ (void)setUserKeywords:(NSString *)keywords;

/// set additional user information.
+ (void)setUserExtData:(NSString *)data;

/// get appID
+ (NSString *)appID;

See SDK Demo Project or GitHub for more details.


Pangle also compliances with Children’s Online Privacy Protection Act (COPPA), Pangle SDK provides setCoppa method for publishers. At the moment, Pangle won't return ads for Children (Under the age of 13).

Redirect Readme

All the rootViewController parameters in Ad APIs must be provided to process ad redirects. In the SDK, all redirects use the present method. Therefore, make sure that the passed rootViewController parameters are not null and do not have other present controllers. Otherwise the present will fail because presentedViewController already exists.

Did the content solve your problem?