In order to optimize the intrgration experience, we will make some big changes of interface in version 4600 and use a new set of integrate methods. This document is an interface comparison for upgrading the old version to version 4600. You can also read the detailed document below for integrating. If you need to integrate the version below 4600, please jump to the old integration document.
This guide is for publishers who only want to monetize an iOS app with the traffic outside of China. If you also want to monetize the traffic in China Mainland with the same build, please follow the guide How to import both Pangle and CSJ
Note: ios 9 is no longer supported starting from v3.5.0.0
The simplest way to import the SDK into an iOS project is to use CocoaPods. Open your project's Podfile and add this line to your app's target:
Download and unzip the SDK framework from Pangle Platform directly, and import the following frameworks and bundles into your Xcode project manually:
BUAdSDK.framework
BUFoundation.framework
(v4.7.0.0 removed)BUAdSDK.bundle
(v4.6.0.0 removed)BUVAAuxiliary.framework
(v4.7.0.0 removed)BURelyFoundation_Global.framework
(v4.3.0.0 added, BURelyFoundation_Global is the underlying basic function library, providing basic functions for Pangle. v4.7.0.0 change name to BURelyFoundation.framework
)BURelyAdSDK.framework
(v4.5.0.0 added)PAGAdSDK.framework
(v4.5.0.0 added, providing basic functions for Pangle.)PAGAdSDK.bundle
(v4.5.0.0 added, providing basic functions for Pangle.)Note: When you upgrade the SDK, you need to update all frameworks and bundle files.
Please make sure that Copy Bundle Resource
contains BUAdSDK.bundle
.
Add the parameter -ObjC
to Other Linker Flags
in build settings, and the SDK before 4.5.0.0 supports - all_ load
Detailed Steps:
Project needs to find Link Binary With Libraries in TARGETS
- > Build Phases
, click "+", and then add the following dependent libraries in order.
Note: Add the ImageIO.framework
if the above dependency library is still reporting errors.
Detailed Steps:
The app-ads.txt project is an initiative of the Interactive Advertising Bureau (IAB) that aims to reduce mobile advertising fraud.Developers need to refer to the documentation to configure app-ads.