(EN) iOS_Swift Getting Started - adxcorp/ADXLibrary_Integration GitHub Wiki

Getting started with ADXLibrary

In order to get started, please send a registration request to [email protected]

0) Latest ADXLibrary

Version : 1.4.4

Release Date : 2018/05/23

1) Using Cocoapods

Podfile

pod 'ADXLibrary', :git => 'https://please:[email protected]/adxcorp/ADXLibrary_iOS.git', :tag => '1.4.4'

Install git-lfs

1) git-lfs install
brew install git-lfs

2) please put this command at your project folder
git lfs install

2) Project Setting

Info.plist

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

Build Settings

Enable Bitcode = NO

Pods ADXLibrary Target Build Settings

Other Linker Flags = add -ObjC 

Framework 포함

In your project targets settings under Link Binary With Libraries option, add all libraries except FBAudienceNetwork.framework from the list of Frameworks under ADXLibrary.

3) Using Rewarded Video Ads

When serving Rewarded Video Ads, you must use either MoPub or AdMob mediation but do not use both. If both mediations are used for serving Rewarded Video Ads, delegate method may not get called.

4) Add test device

When serving AdMob Rewarded Video Ads, you must register your test device. Testing without registering your test device may lead to your account being banned. Follow the following instructions:

When you run your application and load Rewarded Video Ads using AdMob, you will see the following log:

- iOS

 <Google> To get test ads on this device, call:
 request.testDevices = @[ "2077ef9a63d2b398840261c8221a0c9b" ];

Copy the Device ID and register it as test device.

let request = GADRequest()
request.testDevices = ["2077ef9a63d2b398840261c8221a0c9b"]
⚠️ **GitHub.com Fallback** ⚠️