Starting from version v18.104.22.168, Pangle iOS SDK is divided into
CSJ iOS SDK and
Pangle iOS SDK, here is the details for separated ios sdks. The most important thing is that
CSJ iOS SDK only could be used for China Mainland traffic and
Pangle iOS SDK only could be used for Non China Mainland traffic.
MoPub would only certify
Pangle iOS SDK since v22.214.171.124. This guide is intended for publishers who still want to integrate
CSJ iOS SDK via MoPub mediation. [Not custom event]
Developers should have already imported
Pangle iOS SDK and
Pangle Adapters through MoPub integration tool. For example, as code below:
pod 'MoPub-Pangle-Adapters', '126.96.36.199.0'
Broadly speaking, there are 3 steps to integrate
CSJ iOS SDK via MoPub.
Open your project's Podfile and add the line
pod 'Ads-Global' , '188.8.131.52' :subspecs => ['Domestic'] to your app's target:
pod 'MoPub-Pangle-Adapters', '184.108.40.206.0'//this is the prerequisite pod 'Ads-Global' , '220.127.116.11', :subspecs => ['Domestic']//add this line to your app's target
Note: you must import the same sdk version for CSJ SDK and Pangle SDK, for example, if you have imported v18.104.22.168 Pangle SDK from MoPub Integration Tool, you also need to import the same version of CSJ SDK.
CSJ iOS SDK from the Pangle platform, unzip the file and find the
BUCNAuxiliary.framework, then only import this framework into your iOS project.
Note: you must import the same sdk version for CSJ SDK and Pangle SDK, for example, if you have imported v22.214.171.124 Pangle SDK from MoPub Integration Tool, you also need to import the same version of CSJ SDK. If you can't find the same version of CSJ SDK in your account, please contact your account manager or email us(firstname.lastname@example.org).
This step should be done by developers. We would suggest to locate users with the following ways:
Note: If developers have built a china version for their apps(this version only be used in China mainland), for those apps, step 2 is not needed and could hardcode BUAdSDKTerritory_CN at step 3.
Once the user is located, call
setTerritory method to pass the region to Pangle SDK according to the user location.
//@param territory : Regional value: 1.BUAdSDKTerritory_CN 2.BUAdSDKTerritory_NO_CN [BUAdSDKManager setTerritory: (BUAdSDKTerritory)territory];
Important: This step must be done before initializing MoPub SDK