I am unable to mediate between admob and facebook audience network (FAN) in android app. The app is only serving ads from Admob network. The mediation between Admob and FAN is not working. Below is the process I have followed:
- Integrated Admob in Android app. This is working fine.
- Created a new developer account in facebook.
- Added a new app (application id) in facebook.
- Added two publishers id in facebook (one for banner and other for interstitial)
- Included the adapter jar in the eclipse and added it to build path
- Downloaded facebook sdk and added the classes.jar in eclipse. Added this to build path.
- Added meta-data for facebook app id in Android Manifest
- Project is compiled without any errors
- Made proguard changes as per the instruction available at: https://firebase.google.com/docs/admob/android/mediation#include_network_adapters_and_sdks
- Added mediation entries in Admob with ecpm 0.01 and 5.00.
When I run the code, I only get test ads from admob. On facebook, i see no ad requests. Till facebook doesn't recieves the ad request, it won't validate the app and ads.
Not sure if I need to make any change to android code. I am using the same code that worked for admob. It is just that I have now included the facebook jars and made changes to manifest file. No change is made to java code files or xml files?
Also, does facebook need activity context in adview request? I have adview defined in XML so I don't knw how to pass the activity context.
The code is driving me crazy.. and there is no single documentation available on how to make admob and FAN work in android code..