Ads
Banner & Interstitial
Implement 4 Ad network type ( admob, fan, unity, applovin ) You can switch ad network on the go from Firebase Remote Config
AdConfig.java
From this file you can change default ad network, unit id, interval interstitial, and disable or enable ad
OPEN BIDDING FAN ( Facebook Audience Network )
AdMob as a Bidding Mediation Partner for Audience Network : Official documentation https://developers.facebook.com/docs/audience-network/bidding/partner-mediation/admob AdMob documentation how to set up ( Follow step 1 & 2 ) https://developers.google.com/admob/android/mediation/facebook
AppLovin as a Bidding Mediation Partner for Audience Network : Official documentation
https://developers.facebook.com/docs/audience-network/bidding/partner-mediation/max AppLovin guidance on how to set up https://dash.applovin.com/documentation/mediation/android/mediation-setup/facebook
Remote Config - Change Ad on The Go (Optional)
After publish your app to market you can change ad network from Firebase Remote Config, so you no need update your app,
How to change config?
1. Go to your firebase console https://console.firebase.google.com/, select your project
3. Add Key Value , key is the lowercase name variable at advertise/AdConfig.java this is remote config form
4. This is AdConfig.java, orange line is key, blue line is value
Disable Locally
this flag not fetch with remote config, so when you disable from this value, your data will not replace by remote config
GDPR
To comply GDPR regulation you must configure some data
1. Admob publisher ID.
Here how you can found your admob publisher id : https://support.google.com/admob/answer/2784578?hl=en
Then change publisher Id in AdConfig.java
2. Privacy Policy Url.
To meet GDPR regulation you also must provide your own privacy and policy url, you can use generator like this : https://app-privacy-policy-generator.firebaseapp.com/ or you can use other tools, after generate you can upload into your hosting or anywhere so user can view it.
Then please change privacy_policy_url in res/value/string.xml
Last updated