Pangle: A global platform dedicated to developer growth.|통합 문서
검색
지식센터
해당 글은 현재 중국어 및 영어로만 제공됩니다. 빠른 시일 내에 번역을 완료하도록 최선을 다하겠습니다. 이해해 주셔서 감사합니다!

Integration

Important Notice: A combined Pangle SDK and TikTok App Events SDK is now available.

  1. The SDK version 7.7.0.0 (and above), available through this article, is a combined SDK that includes both the TikTok Pangle Ad Monetization SDK as a module and the TikTok App Events SDK as a module, that operate independently of each other.
  2. Use of the TikTok Pangle Ad Monetization module is subject to separate legal terms including as published on the Pangle Publisher Platform or otherwise provided to you. Use of the TikTok App Events module is governed by the TikTok For Business Commercial Terms of Service.
  3. To learn more about the TikTok Pangle Ad Monetization module, please visit About Pangle Ad Monetization SDK. To learn more about the TikTok App Events module, please visit About TikTok App Events SDK.
  4. You may choose to integrate only the TikTok Pangle Ad Monetization SDK and remove the TikTok App Events module by following the instructions provided under Import Pangle SDK through CocoaPods.
  • IOS 12.0 and higher;
  • SDK compilation environment Xcode 15;
  • Supporting architecture: x86-64, arm64

Swift Package Manager:

We have supported Swift Package Manager since 5.2.0.6(release version,SPM version is 5.2.0-release.6) or 5.3.0.2(beta version, SPM version is 5.3.0-beta.2).

If you prefer to integrate using Swift Package Manager, follow the instructions here.

Import Pangle SDK through CocoaPods:

Add this Specs repository before the official CocoaPods CDN source in your Podfile:

复制

Then run:

复制

This repository provides CocoaPods podspecs for multiple Pangle iOS business integrations, including stable SDK releases, beta releases, and mediation-related packages. Choose the pod that matches your integration path and pin a version in production builds when deterministic dependency resolution is required:

复制

The SDK version 7.7.0.0 (and above), is a combined SDK that includes both the Pangle SDK module and the TikTok App Events SDK module. To learn more about TikTok App Events integration, please see the TikTok App Events SDK integration documentation for details. If you need to remove the TikTok App Events SDK module, you can refer to the following steps:

First, download the corresponding version of the podspec and place it into your project folder, then modify it (using 8210 as an example):

复制

Download Pangle SDK Manually:

Download and unzip the SDK framework from Pangle Platform directly, and import the following frameworks and bundles into your Xcode project manually:

  • PAGAdSDK.xcframework 
  • PAGAdSDK.bundle 

Note: When you upgrade the SDK, you need to update all frameworks and bundle files.

Please make sure that Copy Bundle Resource contains PAGAdSDK.bundle 

Xcode Compiler Option Settings

Add Permissions

Add the parameter -ObjC to Other Linker Flags in build settings

Detailed Steps:

Add Dependency Libraries

The project needs to find Link Binary With Libraries in TARGETS - > Build Phases, click "+", and then add the following dependent libraries in order.

  • AppTrackingTransparency.framework
  • StoreKit.framework
  • MobileCoreServices.framework
  • WebKit.framework
  • MediaPlayer.framework
  • CoreMedia.framework
  • AVFoundation.framework
  • CoreTelephony.framework
  • SystemConfiguration.framework
  • AdSupport.framework
  • CoreMotion.framework
  • Accelerate.framework
  • libresolv.9.tbd
  • libc++.tbd
  • libz.tbd
  • libsqlite3.tbd
  • libbz2.tbd
  • libxml2.tbd
  • libiconv.tbd
  • libc++abi.tbd
  • Security.framework
  • JavaScriptCore.framework
  • AudioToolbox.framework
  • CoreGraphics
  • DeviceCheck
  • CoreML

Note: Add the ImageIO.framework if the above dependency library is still reporting errors.

Detailed Steps:

Add language configuration

Advanced topics

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.