Show Sidebar

Facebook Audience Network Integration using iOS Unity

ขออภัยรายการนี้จะใช้ได้เฉพาะในภาษาอังกฤษ English. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.

Current Facebook Audience Network Version: 4.11.0

Supported Ad Formats: The VMAX SDK supports in-feed and content stream native ads and interstitial
ads from Facebook’s Audience Network.


  1. When using Facebook as the mediation partner, ensure that users have the Facebook Native App installed on their devices and they are logged in to this app.
  2. As per the Facebook Developer Payments Terms, if you reach the redemption threshold (currently $100) and have not entered your payout details, Facebook’s Audience Network will stop serving ads.

You will need

  1. an active Facebook account
  2. Placement ID
  3. App ID
  4. Secret Key

In Facebook

In your Facebook account

  1. Create a Placement ID
  2. Create a Facebook App ID
  3. On the Developer Dashboard page, the App ID and Secret Key are shown below the App Name.

Note: For Interstitial Ads, it is recommended to use the cacheAd() and showAd() APIs.

Further Integration

Step 1: Integrate the VMAX Library Adapters VMaxFacebookBannerAdapter.h, VMaxFacebookInterstitialAdapter.h, VMaxFacebookBannerAdapter.m, VMaxFacebookInterstitialAdapter.m, VMaxFacebookNativeAdapter.h, and VMaxFacebookNativeAdapter.m from the Adapters .zip folder.

Step 2: Integrate the main framework file FBAudienceNetwork.framework.

Step 3: Integrate the dependent framework files for AdSupport, StoreKit and CoreMotion frameworks to your project.

What would you like to do next?