Add the Audience Network SDK to your iOS App

Prepare now for iOS 14 changes

All publishers will need to use Audience Network SDK 6.2.1+ in order to monetize with iOS 14 users when Apple introduces their new requirements. Within this version there are two requirements:

  • Implement the setAdvertiserTrackingEnabled flag, irrespective of the use of mediation, to inform us whether to use the data to deliver personalized ads.
  • Add the suggested SKAdNetwork IDs to the Xcode project’s Info.plist in order for advertisers to measure the success of ad campaigns.

Read more on our Facebook for Developers post

Upgrade to the latest version of the SDK before onboarding your app for monetization.

This guide explains how to include the Audience Network SDK in your iOS app so that you can call Audience Network APIs. The preferred method is to use CocoaPods to manage the dependencies; however, download locations for manual integration are also provided.

CocoaPods (Preferred Download Method)

Add the following line to your project's Podfile.

pod 'FBAudienceNetwork'

Run the following command.

pod install

Manual Download

If using CocoaPods is not an option, you can download the Audience Network SDK from one of the locations in the following table.

After you download the Audience Network SDK, do the following steps to complete the integration:

  1. Download FBSDKCoreKit_Basics from GitHub.
  2. Open your project in XCode.
  3. Drag and drop both FBAudienceNetwork.framework and FBSDKCoreKit.framework into your project in XCode.