Android Tutorial AdMob mediation with Meta - Facebook and 20+ other networks (not tested)

This tutorial assumes that you already have FirebaseAdMob2 implemented in your app.

Implementation is tested in native Android app, not in B4A. You can test it if you want.

You need to have approved partnership with Meta - Facebook. You can set up a partnership directly in your AdMob account.
Bidding is supported. Waterfall is not supported.

First you need to follow Step 1 and Step 2 in this tutorial:

Download addition libraries:

Unzip files in B4A additional libraries folder.

In B4A app add:
B4X:
#AdditionalJar: facebook-6.12.0.0.aar
#AdditionalJar: AudienceNetwork.aar

Add in app manifest:
B4X:
AddApplicationText(<activity
            android:name="com.facebook.ads.AudienceNetworkActivity"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:exported="false"
            android:theme="@android:style/Theme.Translucent.NoTitleBar" />

        <provider
            android:name="com.facebook.ads.AudienceNetworkContentProvider"
            android:authorities="${applicationId}.AudienceNetworkContentProvider"
            android:exported="false" />)

You can show in your app: Banner, Interstitial and Rewarded Ads.


BONUS:
Except few, you will receive payments for most networks in mediation directly from Google.
You can also make partnership with a lot more networks (20+), without changing any code in your app.
Networks in "No third-party SDKs required" (without changing code in app) :
For some network you need to wait 10 minutes to get approved partnership, for some waiting time is few months. So be patient.
For these networks, in section "No third-party SDKs required", you don't even need to upload new version of your app, as you don't need to change any code.

Bidding FAQ:

If anyone wants to test, please post your results.
 
Last edited:

Pendrush

Well-Known Member
Licensed User
Longtime User
Did anyone ever test anything from this tutorial?
I don't want to waist my time to update Facebook/Meta library if no one use it.
 

FrostCodes

Active Member
Licensed User
Longtime User
I will try the Meta library again this week.
The last time I tried registering, I got this so I didn't bother.

1685917429792.png
 
Top