質問

I want to show InMobi ad in my app. When InMobi ad is not showing (InMobi not success) I want to show adMob ad. How can I check that InMobi is success. Also is showing ad.

I know that Madvertise has a Callbacklistener.

 madView = (MadvertiseView) findViewById(R.id.layoutMadView);
 madView.setMadvertiseViewCallbackListener(new MadvertiseViewCallbackListener() {
 @Override 
 public void onLoaded(boolean success, MadvertiseView arg1) {
    if (success) {
       // Madvertise ad
    } else {
       // adMob ad
    }
 }}

I tried to change this to InMobi, but its not working.

役に立ちましたか?

解決

What do you mean by MAdvertise ? I don't see any official documentation either for this class.

If you want to show ads from multiple providers, you can use Ad Network Mediation. It also allows you to set preference order of advertisers.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top