Ad Source Details:
- Ad Source:
- Ad Formats Supported: aerWall & aerBanner
- Ad Source Type: SDK Adapter
- Website: https://developers.facebook.com/products/app-monetization/audience-network/
- Sign Up Page: https://developers.facebook.com/docs/audience-network
- Support: https://developers.facebook.com/tools-and-support/
How to Set Up the Facebook Audience Network Ad Source
Step 1: Log on to http://platform.aerserv.com/ and click on the Ad Sources link at the top of the page
Step 2:Click the + or the Add New Ad Source button on the page
Step 3: Enter a Name for the ad source (example: Facebook Interstitial)
Step 4: Select Facebook as the ad source
Step 5: Enter the following fields that are specific to the Facebook ad source:
FIELD | DESCRIPTION | REQUIRED/OPTIONAL | EXAMPLE |
---|---|---|---|
Placement ID | Audience Network Placement ID | Required |
839999212758459_841267789298268 |
Banner Ad Size | Select the banner size - leave blank for Interstitial Ads. | Required |
BANNER_HEIGHT_50 |
Test Device ID | Retrieve the ID from the debug log: When testing your app with Facebook's ad units you must specify the device hashed ID to ensure the delivery of test ads. This ID is available from the debug log. | Optional |
Step 6: Enter a CPM (example: 3.50)
Step 7: Select a placement(s) to assign this ad source to
Step 8: Select any desired geo or device targeting
Step 9: Click the Save button
Step 10: Download the AerServ SDK
Locating the Facebook Audience Network Placement ID
- Log on to the Facebook Developer account platform and click on Account
- Click the My Apps Tab
- Click the Audience network
- Copy the Placement ID
Adding the Optional FacebookTestDeviceId
When you run your app on the simulator, test ads will show by default and indicate a successful ad serving call in your app. When testing on a device, however, you must enable test ads by copying the hashed device ID that is printed to the console and set it in code via a dedicated function.
For Android, you can additionally add isDebug(true) to your AerServConfig object to enable test ads.
Optional Banner Ad Size
Banner ad size:
BANNER_HEIGHT_50: (Default) Phone ad size (320x50)
BANNER_HEIGHT_90: Tablet ad size (320x90)
RECTABLE_HEIGHT_250: Medium Rectangle ad size (300x250)
Android
AerServ SDK |
Step 1. Locate the Audience Network files inside network-support/Facebook/
Step 2. Add AudienceNetwork.aar to your app's lib folder, i.e. [Project Name]/app/libs
Step 3. Add the following settings inside your application's build.gradle
:
dependencies {
compile(name:'AudienceNetwork', ext:'aar')
}
Step 4. Add the following permission to your AndroidManifest.xml
:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Step 5. Add the following activity to your AndroidManifest.xml
:
<activity
android:name="com.facebook.ads.AudienceNetworkActivity"
android:configChanges="keyboardHidden|orientation|screenSize" />
iOS
AerServ SDK |
Step 1. Add the Audience Network SDK in the folder network-support/Facebook/FBAudienceNetwork.framework
into your project frameworks.
Add the following libraries and frameworks to Target > Build Phases > Link Binary With Libraries:
AudioToolbox.framework
AVFoundation.framework
CoreGraphics.framework
CoreImage.framework
CoreMedia.framework
CoreMotion.framework (Set to Optional)
FBAudienceNetwork.framework
Foundation.framework
libc++.tbd
libxml.tbd
SafariServices.framework (Set to Optional)
Security.framework
StoreKit.framework
UIKit.framework
WebKit.framework (Set to Optional)
Comments