AdMobMediationAdapterFB 4.17.0.0

AdMobMediationAdapterFB 4.17.0.0

TestsTested
LangLanguage Obj-CObjective C
License Custom
ReleasedLast Release Nov 2016

Maintained by Pallop Srisil.



 
Depends on:
Google-Mobile-Ads-SDK>= 0
FBAudienceNetwork>= 0
 

  • By
  • Google Inc.

Facebook Audience Network Mediation Adapter for Google Mobile Ads SDK for iOS

Prerequisites

  • Xcode 6.0 or higher
  • Deployment target of 6.0 or higher
  • Google Mobile Ads SDK 7.12.0 or higher
  • FAN SDK 4.13.1 or higher

Instructions

  • Add the Google Mobile Ads SDK. See the quick start guide for detailed instructions on how to integrate the Google Mobile Ads SDK.
  • Add or drag the adapter .framework into your Xcode project.
  • Add the FAN SDK into your Xcode project. You can find the FAN SDK setup guide here.
  • Add Facebook to the mediation configuration for your AdMob ad unit.
  • Please see the set up guide for detailed instructions on how to set up mediation.

You can optionally register a GADFBNetworkExtras class in the ad request to configure whether or not the FAN AdChoices icon should be expandable:

GADRequest *request = [GADRequest request];
GADFBNetworkExtras *extras = [[GADFBNetworkExtras alloc] init];
extras.adChoicesExpandable = YES;
[request registerAdNetworkExtras:extras];

You can use the sub-title and social context at ad response callback.

NSString *subTitle = nativeAppInstallAd.extraAssets[GADFBSubtitle];
NSString *socialContext = nativeAppInstallAd.extraAssets[GADFBSocialContext];

The latest documentation and code samples for the Google Mobile Ads SDK are available here.