Skip to content

A thin wrapper around the Facebook Audience Network Android and iOS SDK

License

Notifications You must be signed in to change notification settings

Heyzap/facebook-audience-network-ane

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebook Audience Network ANE

A thin wrapper around the Facebook Audience Network Android and iOS SDK for use on Heyzap's mediation.

The latest release can be found in Releases.

Pull requests and issues are welcome.

Facebook Audience Network Versions

  • iOS: 4.25.0
  • Android: 4.25.0

Adding to your project

  • Add the FacebookAudienceNetwork.ane to your Adobe Flex Builder or Adobe Flash project.

  • If on Android, follow the integration instructions on Heyzap or add the following permissions and activities to your Android Manifest in your application descriptor:

     <uses-permission android:name="android.permission.INTERNET"/>
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <activity android:name="com.facebook.ads.AudienceNetworkActivity" android:configChanges="keyboardHidden|orientation|screenSize" />
  • If not done automatically, add the follow extension context to your application descriptor:

     <extensions>
         <extensionID>com.heyzap.sdk.extensions.facebook.audiencenetwork</extensionID>
     </extensions>

Updating Facebook Audience Network

For iOS:

  • Replace FBAudienceNetwork.framework in ios/Vendor with a newer version.
  • Update ios/platform.xml with any new iOS frameworks that the newer version might be dependent on. Built-in iOS SDK frameworks can be added within the linkerOptions tag. Custom iOS frameworks can be added under the packagedDependencies tag and their respective .framework directories can be added to ios/Vendor. Drag and drop these .framework directories into the FacebookANE.xcodeproj project in XCode under the Vendor group.

For Android:

  • Replace AudienceNetwork.jar in android/libs with a newer version. Get the newer version from an .aar by unzipping it and renaming classes.jar to AudienceNetwork.jar.
  • Update android/platform.xml with any new android libraries that the newer version might be dependent on. Android libraries can be added under the packagedDependencies tag. The actual .jar files can be added to the andorid/libs directory.

After making the necessary modifications, build the new ANE by following the building instructions below.

Building

Requirements:
Building:
  • Make a build.config by copying build.config.dist (your local config file)
  • Add the path to your AIR SDK in build.config (under air.sdk)
  • From the root of the repository, run ant.

After build completes, the native extension will be in bin/FacebookAudienceNetwork.ane.