WebViewGold Documentation · iOS
🇺🇸 English
Get WebViewGold

Facebook Audience Network Ads API

Show Facebook Audience Network banner and interstitial ads in your WebViewGold iOS app.

The Facebook Audience Network allows mobile app developers to monetize iOS and Android applications by displaying ads. Through WebViewGold, you can easily incorporate Facebook ads into your WebView-based iOS applications to earn revenue through clicks (CPC) and impressions (CPM).

Step 1: Create a Facebook Audience Network Account

You must create a Facebook Audience Network account and create a property under integration in the Monetization Manager. Then you must connect an iOS app (however, you do not need to link to a published iOS app for testing purposes).

Follow this guide for reference: https://www.facebook.com/business/help/191133327919314

Step 2: Set the Necessary Configuration Variables

  • Open Config.swift and set useFacebookAds to true.
  • Enter your Facebook Placement ID at facebookAdsID.

Facebook Ads configuration screenshot

Step 3: Configure Ad Settings

  • To use timed ads, set useTimedAds to true and set showFBAdsEveryNSeconds to the desired time between ads.
  • You can add URL trigger words to fbadstriggerurls to initialize ads on command.

Further considerations:

Too busy? We set up your app for you.

Our team configures, builds & submits your WebViewGold app — done-for-you, fast turnaround, Made in Germany.

Get your app set up →

Build in your browser

No Mac, no IDE: the WebViewGold Cloud Builder configures, builds & uploads your app online.

Discover Cloud Builder →