You must initialize Pangle SDK before loading Pangle ads. This needs to be done only once, ideally at App Launch stage(in AppDelegate method).
Pangle provides a new asynchronize sdk initialization method starting from v126.96.36.199,, 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.We recommand to set allowModifyAudioSessionSetting to
true to not interrupt the background's audio playback.
setAppID still works in the new sdk.
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.
BUAdSDKManager provides the following class methods.
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).
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.