title: AdMob Facebook Mediation in Android
body: <p>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:</p>
  
  <ol>
  <li>Integrated Admob in Android app. This is working fine. </li>
  <li>Created a new developer account in facebook. </li>
  <li>Added a new app (application id) in facebook. </li>
  <li>Added two publishers id in facebook (one for banner and other for interstitial)</li>
  <li>Included the adapter jar in the eclipse and added it to build path</li>
  <li>Downloaded facebook sdk and added the classes.jar in eclipse. Added this to build path.</li>
  <li>Added meta-data for facebook app id in Android Manifest</li>
  <li>Project is compiled without any errors</li>
  <li>Made proguard changes as per the instruction available at: <a href="https://firebase.google.com/docs/admob/android/mediation#include_network_adapters_and_sdks" rel="nofollow">https://firebase.google.com/docs/admob/android/mediation#include_network_adapters_and_sdks</a></li>
  <li>Added mediation entries in Admob with ecpm 0.01 and 5.00. </li>
  </ol>
  
  <p>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. </p>
  
  <p>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? </p>
  
  <p>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.</p>
  
  <p>The code is driving me crazy.. and there is no single documentation available on how to make admob and FAN work in android code.. </p>