Skip to content

Latest commit

 

History

History
 
 

ios

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Samples for iOS

Facebook Audience Network allows you to monetize your iOS apps with Facebook ads. Here we have a list of sample apps that implements different ad placements for your reference.

Please make sure that you have completed the Audience Network Getting Started and iOS Getting Started guides before you proceed.

The sample projects are setup with Cocoa Pods. You would need to run pod install in the project folder from command line to download the latest Audience Network SDK.

Sample list

This examples shows how to load and show banner ad. Here is the doc to explain Banner Ad example.

This examples shows how to load and show interstitial ad. Here is the doc to explain Interstitial Ad example.

This examples shows how to load and show native ad. Here is the doc to explain Native Ad example.

When using mediation platforms, in order to get the most value out from Facebook Audience Network, it is recommended to use a placement ID optimized for CPM, as well as another placement ID optimized for fill rate in the same waterfall as fall back. When using AdMob as a mediation platform, you could only specify one placement ID from Audience Network for an AdMob ad unit. However by utilizing the AdMob Custom Events you can add a second Audience Network placement ID for one ad unit. This sample demonstrates how you can do that by adding a custom event and implement the wrapper yourself.

This sample includes demonstration for different placement formats including Banner, Interstitial, Rewarded Video, in-stream video and native ads.