Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Admob Mediation with Facebook

1. add following to build.gradle file


implementation 'com.google.android.gms:play-services-ads:11.8.0'
implementation 'com.facebook.android:audience-network-sdk:4.27.0'
implementation 'com.google.ads.mediation:facebook:4.27.0.0'

2. add following line to main gradle file


maven {
url "https://maven.google.com"
}

3. Now setup your Facebook audience network and create ad spaces.

Link : https://developers.facebook.com/apps/

4. Add adNetwork to your admob adUnit Id

5. Congratulations!. No other coding to required.

Admob Mediation with Unity Ads


1. add following to build.gradle file

implementation 'com.unity3d.ads:unity-ads:2.1.2'

implementation 'com.google.ads.mediation:unity:2.1.2.0'

2. Now setup your UnityAds and create ad spaces.

Link: https://operate.dashboard.unity3d.com/

3. Add adNetwork to your admob adUnit Id

4. Congratulations!. No other coding to required.

Android manifest code :

<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|
screenSize|smallestScreenSize" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />

BADR RESKIN ARAB

You might also like