title: How to integrate InMobi ads to android App (Using AdMob)
body: <p>I'm new at advertising stuff, I'm using AdMob to publish advertising with my app. Now i want to add InMobi advertising, but i'm little confused, i registered InMobi and it has android integration informations. Should i integrate the code to my app or is it enough to write <code>App Id</code>, <code>Login Name</code>, <code>Passoword</code>, <code>Secret Key</code> in AdMob <code>Edit Mediation</code> section. if it is enough how can i get these informations. Hope I could explain myself. Thanks in advance.</p>
  
  <p>I use these codes to show advertising :</p>
  
  <pre><code>    adView = new AdView(MainActivity.this);
      adView.setAdSize(AdSize.SMART_BANNER);
      adView.setAdUnitId("MY_ID");
      LinearLayout layout = (LinearLayout) findViewById(R.id.adv);
      layout.addView(adView);
  
      final TelephonyManager tm = (TelephonyManager) getBaseContext()
              .getSystemService(Context.TELEPHONY_SERVICE);
  
      String deviceid = tm.getDeviceId();
      AdRequest adRequest = new AdRequest.Builder()
              .addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
              .addTestDevice(deviceid).build();
  
      // Start loading the ad in the background.
      adView.loadAd(adRequest);
  </code></pre>