Contents

facebook/fbaudiencenetwork

Meta Audience Network allows you to monetize your iOS apps with Facebook ads.

Installation

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

Once you have your Swift package set up, adding FBAudienceNetwork as a dependency is as easy as adding it to the dependencies value of your Package.swift or the Package list in Xcode.

Package.swift
dependencies: [
    .package(url: "https://github.com/facebook/FBAudienceNetwork", .upToNextMajor(from: "6.21.0"))
]
Xcode
  1. Open your project in Xcode
  2. Go to File > Add Package Dependencies...
  3. Enter the package repository URL: https://github.com/facebook/FBAudienceNetwork
  4. Select the version rule (e.g., "Up to Next Major Version" from 6.21.0)
  5. Click Add Package
  6. Select the FBAudienceNetwork library and add it to your target

CocoaPods (deprecated)

Note: CocoaPods trunk is becoming readonly so Swift Package Manager is the recommended way to install the SDK.

Add the following to your Podfile:

pod 'FBAudienceNetwork'

Then run pod install in the project folder from command line to download the latest Audience Network SDK.

Requirements

  • iOS 13.0+
  • Swift 5.3+
  • Xcode 26 or newer

Documentation

  • [Audience Network Getting Started][1]
  • [iOS Getting Started][2]
  • [Banner Ads][3]
  • [Interstitial Ads][4]
  • [Native Ads][5]
  • [In-stream Video][8]
  • [Rewarded Video][9]
  • [Native Banner Ads][10]

License

See the LICENSE file for more info.

[1]: https://developers.facebook.com/docs/audience-network/getting-started [2]: https://developers.facebook.com/docs/audience-network/ios [3]: https://developers.facebook.com/docs/audience-network/ios-banners [4]: https://developers.facebook.com/docs/audience-network/ios-interstitial [5]: https://developers.facebook.com/docs/audience-network/ios-native [7]: https://cocoapods.org/ [8]: https://developers.facebook.com/docs/audience-network/ios/instream-video [9]: https://developers.facebook.com/docs/audience-network/ios/rewarded-video [10]: https://developers.facebook.com/docs/audience-network/ios-native-banner

Package Metadata

Repository: facebook/fbaudiencenetwork

Default branch: main

README: README.md