The Audience Network allows you to monetize your iOS apps with Facebook ads. This guide explains how to integrate the Audience Network SDK in an iOS app.
Ensure that you have the latest Xcode installed.
Please see the FAQ for minimum OS version supported by Audience Network SDK.
Events that your app collects and sends to Facebook may require you to disclosed these data types in the App Store Connect questionnaire. It is your responsibility to ensure this is reflected in your application’s privacy policy. Visit the Apple App Store Privacy Details article to learn more about the data types you will need to disclose.
The Audience Network SDK can be downloaded using Cocoapods or manually. Follow these steps to download and include it in your project:
pod 'FBAudienceNetwork'
pod install
.AudienceNetworkTutorial
. Enter your organization name and organization identifier.
Note that XCode will create a bundle identifier for your project. In this example, the bundle identifier is com.yourcompany.AudienceNetworkTutorial
. You will use this bundle identifier later when you submit your app for approval as explained in Submit For Review.
FBAudienceNetwork.framework
to your app directory in XCode. Select "Copy Items if needed" and click Finish.
Now You have an empty project with FBAudienceNetwork.framework
integrated.
NativeAdSample
is available as part of the SDK and can be found under the FBAudienceNetwork/samples
folder. Open the project with Xcode and run it either on a device or the simulator.