Facebook Audience Network has an ORTB bidder that supports both direct client integrations and server-to-server integrations. This guide describes how you can integrate bidding from a auction server.
In server-to-server integration, an auction server calls Facebook Audience Network bidding endpoint and all other demand sources to get bid responses. Then the auction server runs the auction and picks the winning bid. This auction server could be an in-house server running auction logic that you built or it could be a 3rd party server that is integrated with Audience Network's app bidding. This allows you to utilize the server's resources and available network to call the demand sources' bidding endpoints. It also allows you to make changes to these endpoint integrations without necessarily requiring client updates.
Every bid request that the auction server sends contains a platform ID which identifies the platform. The platform ID is a FB app ID that can be obtained by creating a new app following the instructions below.
Each publisher needs to create an Audience Network business ID, which we will whitelist for bidding. Under this business id you can create multiple properties that utilizes bidding end point.
Our bidder expects an identity token in
user.buyeruid field in the ORTB request. This token is generated in different ways for different platforms.
com.facebook.ads.BidderTokenProvider.getBidderToken() from the Android Audience Network SDK, on a background thread. The token is valid for the lifespan of the application process. Also pass the IDFA in
device.ifa field with
[FBAdSettings bidderToken] from the iOS Audience Network SDK. The token is valid for the lifespan of the application process. Also pass the IDFA in
device.ifa field with
[[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString].
Technical guide to get started with Audience Network
Facebook Audience Network Mobile App Bidding architecture and other Concepts
Step-by-Step tutorial for mobile app server-to-server bidding integration
Step-by-Step tutorial for mobile app client-to-server bidding integration
Latest versions of Audience Network SDK downloads page