Facebook Mediation Adapter v2.0.0

Adapter for allowing the Millennial Media SDK to mediate to Facebook for inline, interstitial, and native ads.

Requirements

  • MM Ad SDK v6.6.1
  • Facebook SDK v4.23.0

Compatibility

  Facebook SDK v4.23.0
MM Ad SDK v6.6.1 Facebook Adapter v2.0.0

Integration

Mediation to the Facebook Audience Network SDK for inline, interstitial, and native ads is handled by the MM Ad SDK and mediation adapter. Integrating application needs to update the AndroidManifest.xml file per the standard integration guide from Facebook.

Integrating the Facebook Ad SDK for mediation of native ads involves the following steps:

1. Download the Facebook Ad SDK from the Facebook developers site
2. Include the AudienceNetwork.jar file (included in the Facebook SDK) in your application project
3. If using a test placement, set the test device in the Facebook settings (found in the application log when running the application)
AdSettings.addTestDevice(“<device id>”);
4. (Native ONLY) Specify “facebook” as a native type when creating the NativeAd placement instance
NativeAd.createInstance(PLACEMENT_ID, new String[]{NativeAd.NATIVE_TYPE_INLINE,
 "facebook"});
5. Include the Millennial Media Facebook ad adapter as part of the application’s build.gradle file
dependencies {
  compile('com.millennialmedia:android-mm-facebook-adapter:2.0.0')
}

References

Release Notes

v2.0.0 - September 20, 2017

  • Updated to support MM SDK v6.6.0. Note that this adapter will not work with previous versions of the MM SDK

v1.2.0 - June 5, 2017

  • Updated to support Facebook Audience Network SDK v4.22.0

v1.1.5 - September 27, 2016

  • Fix for native click through on Audience Network SDK v4.15.0

v1.1.4 - June 15, 2016

  • Fix for placement size calculations on certain screen densities

v1.1.3 - June 1, 2016

  • Fix for AppInfo set on MM SDK without COPPA set

v1.1.2 - May 5, 2016

  • Updated to support Facebook Audience Network SDK v4.10.1
  • Updated to support MM SDK v6.2.0

v1.1.1 - October 21, 2015

  • Added logic to ensure that callbacks to the placement adapter occur off the UI thread for initFailed, displayFailed and showFailed

v1.1.0 - September 15, 2015

  • Added inline and interstitial ad functionality

v1.0.0 - July 22, 2015

  • Initial release of the MM to Facebook mediation adapter