Maybe I’m just being a complete noob but I signed up to MoPub and learnt how to put an advert into my android app, I managed that just fine. Before with AdMob I could define a “SMART_BANNER” in the XML. This would solve the whole tablet/phone issue. I wouldn’t have to worry about making sure the banner advert fits the screen correctly because AdMob sort that all out.
With MoPub you have a different Ad unit ID for each advert, so I have two ID’s, one for phones and one for tablets. How do I implement this in my code? I mean I can only input one Id… can’t I?
mAdView = (MoPubView) findViewById(R.id.Advert);
mAdView.setAdUnitId("ONE AD UNIT ID HERE");
mAdView.loadAd();
Does anyone know what I should do? If a user opens my app on a phone or tablet they should both get banner ads that fit correctly.
Found the solution, probably something I should have known already. A simple conditional statement will solve this.