Facebook Audience Network Interstitial Ads Integration

In this Android Studio article we are going to talk about 

Facebook Audience Network  Interstitial Ads Integration, so in the previous

article we have talked about Banner Ads Integration In Android Studio . if you are an

android developer you will be familiar with Admob, and the FAN has the same process

as Admob, and you can monetize your android application with Facebook Audience Network.

also for good explanation you can watch the video for this at the end of the article.

 

 

 

 

Also you can read more android development articles

1: Android Development Articles

 

 

 

Also you can check Python GUI Development Tutorials in the below link.

1: PyQt5 GUI Development Tutorials

2: TKinter GUI Development Tutorials

3: Pyside2 GUI Development Tutorials 

4: Kivy GUI Development Tutorials

5: wxPython GUI Development Tutorials 

 

 

 

 

What Is Facebook Audience Network (FAN) ?

Audience Network allows advertisers to extend Facebook and Instagram campaigns

across the internet – onto thousands of high-quality websites and apps.

People spend a lot of their time on Facebook and Instagram. But they are also spending

time on other apps and sites. Audience Network helps advertisers reach more of the people

they care about in the other places where they’re spending their time.

In a Facebook ad campaign study, conversion rates were 8x higher among people who

saw ads across Facebook, Instagram and Audience Network than people who only saw

the ads on Facebook. Audience Network ads use the same targeting, auction, delivery

and measurement systems as Facebook ads.

 

 

 

Supported Objectives 

Audience Network currently supports the following objectives:

  • Brand awareness (video only)
  • Reach (video only)
  • Traffic
  • Engagement (video only)
  • App installs
  • Video views (video only)
  • Conversions
  • Catalog sales

 

The behavior of an ad after it’s clicked on depends on the type of ad objective an advertiser chooses. When someone clicks on an ad, depending on the ad objective, what will happen is:

  • The ad will open a link in a new browser window
  • The ad will prompt someone to install an app
  • The ad will launch an existing app on their mobile device
Android Studio Facebook Audience Network
Android Studio Facebook Audience Network

 

 

 

 

Implementation Of FAN Interstitial Ads In Android Studio

 

So now we are going to talk about Interstitial  Ads implementation of Facebook Audience

Network in Android Studio.

 

1: OK first of all you need to create a New Project in Android Studio

2: After that you need to include the SDK for Facebook Audience Network, open build.gradle(Module:app), and in the dependencies section you need to add

this line of code,

 

 

 

 

and after that sync your project,  also in your Manifest.xml file you need to add internet permission.

 

 

 

 

3: Before creating an ad object and loading ads, you should initialize the Audience Network SDK.

It is recommended to do this at app launch.

 

 

 

 

4: Add the following code at the top of your Activity in order to import the Facebook Ads SDK.

 

 

 

 

5: Initialize the InterstitialAd.

 

 

 

 

 

6: Showing Interstitial Ads, set an intertitialAdListener, load the ad and show ad immediately

its loaded successfully.

 

 

 

 

 

7: Finally, add the following code to your Activity’s onDestroy() function to release resources the InterstitialAd uses:

 

 

 

 

 

Run the complete project and this will be the result

 

Facebook Audience Network Interstitial Ads Integration
Facebook Audience Network Interstitial Ads Integration

 

 

 

 

 

Also you can watch the complete video for this article

 

Subscribe and Get Free Video Courses & Articles in your Email

 

11 thoughts on “Facebook Audience Network Interstitial Ads Integration”

  1. I want to use both admob and Fan Interstitial, always i get errors after implementing admob interstitial Facebook interstitial refusing what should i do

  2. Thanks for any other fantastic article. Where else may just anybody get that kind of info in such a perfect way of writing?
    I’ve a presentation subsequent week, and I’m at the search for such info.

    Look at my web site; Royal CBD

  3. Simply desire to say your article is as astonishing.
    The clearness for your post is simply nice and i can suppose
    you’re knowledgeable on this subject. Fine along with
    your permission let me to take hold of your feed to
    keep updated with impending post. Thanks 1,000,000
    and please continue the enjoyable work.

  4. I did every thing and the code is working but the problem is what if i want the interstital show when i go to activity 1 or 2 or 3 how can i control that

Comments are closed.

Share via
Copy link
Powered by Social Snap
×