Add the Audience Network SDK to your iOS App

Act now on iOS 14.5 changes

All publishers must use Audience Network SDK 6.2.1 or later in order to monetize with iOS 14.5 users. (We also recommend Audience Network SDK 6.2.1 for iOS 14 users.) 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.

Package Date Change Log

iOS Audience Network SDK 6.9.0

November 8, 2021

6.9.0 Change Log

iOS Audience Network SDK 6.8.0

October 11, 2021

6.8.0 Change Log

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.