android - Is it possible to mediate Interstitial ads using AdMob? -
i have set admob mediation in android app, it's working fine, want admob mediate interstitial ads other providers. unable find or documentation on that, asking here.
this code have banner mediation:
mmsdk.initialize(this); millennialextras = new millennialadapterextras(); inmobiextras = new inmobiadapterextras(); mopubextras = new mopubextras(); flurryagent.init(this, "some id"); flurryextras = new flurryadapterextras(); madview = (adview) findviewbyid(r.id.adview); adrequest = new adrequest.builder() .addnetworkextras(millennialextras) .addnetworkextras(inmobiextras) .addnetworkextras(mopubextras) .build(); madview.loadad(adrequest);
and ads start rolling.
now interstitials, trying this: in oncreate have this:
interstitialad = new interstitialad(mainactivity.this); interstitialad.setadunitid("some id"); adrequestinterstitial = new adrequest.builder() .addnetworkextras(millennialextras) .addnetworkextras(inmobiextras) .addnetworkextras(mopubextras) .build(); interstitialad.loadad(adrequestinterstitial);
and have button showing interstitial:
public void showinterstitial(view v) { interstitialad.show(); }
my problem is, don't know if proper way it. use same adapter objects both admob banner , admob interstitial. have added needed networks , ad spaces in admob dashboard interstitial ad space.
so way correct?
you can mediate interstitials other ad networks using admob mediation. , way have done correct.
Comments
Post a Comment