0

Is it possible to go with alternative ad network if one of AdMob mediation networks does not serve ads?

Something like:

AdRequest request;
request = new AdRequest.Builder()
   .addNetworkExtrasBundle(AdColonyAdapter.class, AdColonyBundleBuilder.build())
   .build();
if (request == null){
 request = new AdRequest.Builder()
   .addNetworkExtrasBundle(Tapjoy.class, TapjoyBundleBuilder.build())
   .build();
}

rewardedInterstitialAd.loadAd(request);
Fresco
  • 343
  • 3
  • 13

1 Answers1

0

I think you might be confused about how mediation works. When you make a request to AdMob for a mediated ad unit ID, the mobile ads SDK receives an ordered list of networks in response from the server. It then goes down the list, trying one network after another until it receives an ad. There's no need to pass empty extras classes as you're doing now.

Have a look at the mediation tutorial video for more information.

RedBrogdon
  • 5,113
  • 2
  • 24
  • 31
  • Obviously it's necessary when you need to pass down something to track user "e.g. `user_id`". Anyway I made it possible. I will post my code when I'm done fixing problems with some Ad networks. – Fresco Mar 03 '18 at 04:23