Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.31 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.31 KB

FacebookAds

An Android app that displays all the Facebook Mobile Ads based on Audience Network SDK. Replace the existing adunits from ActivityConfig.java class. Facebook offer some extra tips on how to implement the ads for Android on this page.

Implementation

Add the audience network sdk dependency to build.gradle(Module: app)

implementation 'com.facebook.android:audience-network-sdk:5.9.1'

Initialize the AudienceNetworkAds class.

AudienceNetworkAds.initialize(this);

Ads Implemented in the app

The ads may not be displaying on Android Emulators so try to run the app on a real Android Phone or Tablet:

Ad Types

- Banner Ad (50 & 90 Sized)
- Interstitial Ad
- Rectangle Banner Ad
- Reward Ad (Require approval to request ad)



Now grab a cup of hot or cold coffee☕ and let's get started. Feel free to give a star, fork and play around the ads.

This app make it easy for you to implement Facebook ads very easily into your Android App and it is very similar to how we used to implement the Google AdMob Ads.