HOW TO SET UP FACEBOOK AUDIENCE NETWORK USING GOOGLE MEDIATION

How to set up Facebook Audience Network using Google mediation

WHAT IS THE FACEBOOK AUDIENCE NETWORK?

Since 2014, Facebook Audience Network (FAN) monetizes third-party apps and sites by showing ads to users who visit these other sites. FACEBOOK AUDIENCE NETWORK USING GOOGLE MEDIATION, The network itself refers to all the sites where Facebook ads can be displayed. This includes other Facebook-owned products like Instagram and Messenger as well as third-party websites.

Once approved by Facebook to run Audience Network ads, these sites and apps can show ads from campaigns that have been set up to run on Facebook itself. If an advertiser wants to run a campaign to encourage more downloads of their app, increase traffic to their site or convert more sales, they can opt to run their Facebook campaign across the entire network or specifically-targeted parts of it.

It’s this targeting that means conversion rates on campaigns running on FAN comfortably outstrip those where the campaign was only shown on Facebook. These higher conversion rates mean more demand from advertisers and more revenue for publishers.

IS IT OPEN TO EVERYONE?

It is, although much like with Google Adsense, the domain or app has to be approved to ensure compliance with Facebook policies.

HOW DOES IT WORK?

Firstly you or the developer of your app or site installs the Audience Network Software Development Kit (SDK), which is then set up with all the required details; the domain, the ad type you want to show, etc. When a user goes to your app or site, the SDK checks to see whether the owner of the device is also a Facebook user. If they are, they are shown the ads in much the same way as the user would be shown advertisements on their newsfeed, with all the same targeting criteria.

AWESOME. I HAVE GOOGLE AD MANAGER, HOW CAN I ADD FAN TO MY SITE AND DOMAIN?

Firstly, create a Facebook Business Manager account at https://business.facebook.com/pub/start(or sign in to your existing account). Fill in all the requested information to create the account if necessary.

You’ll then see the following screen:

add your first app or website

Once you’ve entered the name of your first website or app, click ‘Go to Monetisation Manager.’

(Properties are how Facebook allows you to organize your apps and products. For example, if you had a version of your mobile game in both iOs and Android, you can add them to the same property to see combined stats.)

You’ll see the following screen:

select platform

You can add all of these platforms to your property. For the web, you need to be invited to monetize your site by a Facebook representative, so we’ll concentrate on iOS and Android for this article. You can see details of how to monetize Instant Articles here: https://www.facebook.com/help/publisher/270023970201463/.

Click ‘+ Add’ next to iOS or Android. First, add the Play Store link in Section 1 and click submit (or indicate if the app is not yet live).

You can then choose your chosen ad format, as shown:

create ad placement

We’re going to select a medium rectangle for this article. Fill in the instructions on how to find the ad (as many details as possible), optionally upload an mp4 or mov file for the placement (you don’t have to add anything at this step), and click ‘Create placement.’

In Step 3, check the box labeled with ‘This app is using mediation’ and click the button underneath to generate a system access token. Make a note of the placement ID and system access token.

Scroll down to step 4 and enter your bank account details to receive payments. After this is done, you can scroll to the bottom and click ‘add more platforms’ and add an iOS or Android platform (depending on whether your app is available as both, and which one you did first; remember, you can only have one platform of each type per property).

Adding the app to Facebook

Log into or create a Facebook for Developers account and go to the apps page (https://developers.facebook.com/apps). You’ll need to create an instance of your app here so that Facebook can send ads to it. Click ‘create app.’

create new app ID

Add the display name you want for your app and your contact email. You’ll then be taken to the main app dashboard. Your app ID will be shown in the top left corner:

Facebook for developers app ID

Next, go to https://business.facebook.com/settings and go to ‘System Users’ in the left menu. You should see the ‘MediationSystemUser’ that you created earlier in the process when you requested the system user access token. If you don’t, you’ll need to create one.

mediation user

After you’ve verified you have a system user, go to ‘Apps’ under ‘Accounts’ in the left menu. Verify your app is on this screen (if it shows the ‘You have no apps’ screen, something is wrong).

Now head to Data Sources -> Properties in the left menu. Click ‘Add people,’ add the system user and grant them admin access:

add people and set permissions

Then click ‘Add assets’ and add your app:

add assets

Head back to System Users, and click ‘Generate access token’:

generate new token

After selecting your app, scroll down the resultant list and click ‘read_audience_network_insights,’ and then ‘Generate token.’ Make a note of the token generated.

GOOGLE AD MANAGER STEPS

So you’re done with Facebook for a while, but what do you need to do in Google Ad Manager? Firstly, sign in and go to Delivery -> Yield groups and click ‘Add new yield group.’

new yield group

Enter an appropriate name, change the status to active, select the ad format, and then scroll down and add targeting as required.

At the bottom of the page, if you have FAN as a partner already, you can select it as the yield partner. Otherwise, click ‘Add new yield partner.’ In the new window, click to choose a yield partner then click ‘Create a new yield partner.’

create new yield partner

Type a name such as ‘Facebook Yield Partner,’ enter Facebook as the ad network. When it pops up, click to enable mediation and then enable Automatic data collection. Enter the Property ID and system access user token from the previous step. Ignore the App Access Token. You can then save the yield partner.

Back in the New yield partners section, choose ‘Mobile SDK Integration’ for the Integration type, Android, or iOS as the platform, change the status to Active, and set a default CPM. The placement ID comes from way back and is the very long number with an underscore midway through it that we saved earlier. Make sure you don’t mix up the Android and iOS tokens.

IMPORTING THE FACEBOOK SDK

You can either use the manual or automatic method for this. For automatic, add the following dependencies with the latest version of the FAN SDK and adapter in the build.gradle file as shown:

Facebook SDK code

For manual, download the latest version of the SDK from https://developers.facebook.com/docs/audience-network/download#android, extract the AudienceNetwork.aar file, and add it to your project.

Follow Facebook’s network security guide (https://developers.facebook.com/docs/audience-network/android-network-security-config) to modify your file to support media caching, and make sure to test your implementation: there is a testing guide at https://developers.facebook.com/docs/audience-network/testing and a test suite at https://developers.google.com/admob/android/mediation-test-suite.

Read More

Leave a Reply