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.
The Audience Network SDK can be downloaded using Cocoapods or manually. Follow these steps to download and include it in your project:
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.frameworkto your app directory in XCode. Select "Copy Items if needed" and click Finish.
Now You have an empty project with
NativeAdSampleis available as part of the SDK and can be found under the
FBAudienceNetwork/samplesfolder. Open the project with Xcode and run it either on a device or the simulator.