Admob Mediation MoPub

159 views
Skip to first unread message

Jeremie

unread,
Apr 6, 2016, 4:36:47 AM4/6/16
to Google Mobile Ads SDK Developers
Hi everyone,

I’m working on a project and I have to include Mediation for ads.
I’ve followed the steps to include AdMob and now I can see ads in the banner without problems. But when I try to include Mediation, I only get AdMob's ads.

Here’s what I’ve done :
- Integration of AdMob : works perfectly
- Added MoPub SDK and adapter in my project.
- set up apps.admob.com and app.mopub.com (as required)

Did I miss something ?


Thanks :)

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Apr 6, 2016, 11:40:41 AM4/6/16
to Google Mobile Ads SDK Developers
Hi Jeremie,

It could be due to your eCPM values. I would suggest you to increase the eCPM value for your Mediation network and decrease it for the AdMob network. Basically the ad network which has the highest eCPM value would be served first. You can also specify country targeting to disable AdMob network just to test whether ads are being served from the Mediation network. I would also suggest you to go through this guideline to set up Mediation. You could also send us your Ad Unit ID by replying to me privately.

Thanks,
Veer Busani
Mobile Ads SDK Team

Jeremie

unread,
Apr 6, 2016, 11:45:52 AM4/6/16
to Google Mobile Ads SDK Developers
Thank you, I'll test with the country targeting. I'll let you know :) 

Jeremie

unread,
Apr 7, 2016, 9:21:51 AM4/7/16
to Google Mobile Ads SDK Developers
Hi Veer,

IT WORKS !! Thank you !!! 
I have a question though : In my project, I would like to put the mediation part in a pod. When I test the mediation, it doesn't work when the adapters and the SDK are in the pod project . Is it possible to do this? :)

Have a nice day,
Jeremie

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Apr 7, 2016, 11:05:23 AM4/7/16
to Google Mobile Ads SDK Developers
Hi Jeremie,

Pods project is maintained by CocoaPods and is meant only for those frameworks that are being installed over pods. Even if you find a way to manually override that projects Build Settings, I would suggest you not to do this and currently, we are not hosting any mediation adaptors over pods either.

Thanks,
Veer Busani
Mobile Ads SDK Team

Jeremie

unread,
Apr 7, 2016, 11:45:51 AM4/7/16
to Google Mobile Ads SDK Developers
Ok I understand. 

Thank you again !
One last thing, MoPub sends me an HTML ads but it doesn't show up. is the banner size can be the problem? I tried with an Android phone with the same mopub settings and it works perfectly. Do you have any ideas about this ?   

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Apr 7, 2016, 1:47:47 PM4/7/16
to Google Mobile Ads SDK Developers
Hi Jeremie,

When you mean doesn't show up, do you mean MoPub through the mediation adaptor is not working? Certain banner sizes may not be supported from MoPub. If that is the case, you can always enable AdMob as it would give a much higher chance of fills. Also you could send us your implementation code or a sample app for us to look at.

Thanks,
Veer Busani
Mobile Ads SDK Team

Jeremie

unread,
Apr 8, 2016, 4:34:50 AM4/8/16
to Google Mobile Ads SDK Developers
Hi Veer,

I mean in adViewDidReceiveAd:(GADBannerView *)bannerView I receive a MoPub banner but with a different size than i had set (375x50 instead of 320x50)
My code :

- (void)requestBannerAdMob {

   
self.bannerAdMobView = [[GADBannerView alloc] initWithAdSize:GADAdSizeFromCGSize(CGSizeMake(320, 50))];

   
self.bannerAdMobView.adUnitID ="MY_KEY";

   
self.bannerAdMobView.delegate = self;

   
self.bannerAdMobView.rootViewController = self.parentBannerView;

   
[self.bannerAdMobView loadRequest:[GADRequest request]];

}

- (void)adViewDidReceiveAd:(GADBannerView *)bannerView {

   
NSLog(@"bannerViewFrame %@", self.bannerAdMobView.frame.size); <= here I have 375x50

   
self.bannerAdMobView.hidden = NO;

}


Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Apr 8, 2016, 10:47:25 AM4/8/16
to Google Mobile Ads SDK Developers
Hi Jeremie,

Banner AdSizes can vary with AdMob and other Mediation networks. You can always make sure that the constraints on your BannerView has enough space to show ads in such cases. I would suggest you to get the AdSize from adViewDidReceiveAd and update your BannerView constraints to fit that size.

Thanks,
Veer Busani
Mobile Ads SDK Team

Jeremie

unread,
Apr 11, 2016, 8:33:26 AM4/11/16
to Google Mobile Ads SDK Developers
Hi Veer,

I find a solution , when we show the banner view , we add an animation but someone has added an update constraint to the view... that's why I get the wrong width. Now everything works !

Thank you again for all the replies.
Have a nice day

Jeremie
Reply all
Reply to author
Forward
0 new messages