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 App Id
, Login Name
, Passoword
, Secret Key
in AdMob Edit Mediation
section. if it is enough how can i get these informations. Hope I could explain myself. Thanks in advance.
I use these codes to show advertising :
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);