Is there a way to integrate iAd and AdMob in one project so that if iAd is not being served, AdMob will be served?
I really appreciate an example code if there is any.
Is there a way to integrate iAd and AdMob in one project so that if iAd is not being served, AdMob will be served?
I really appreciate an example code if there is any.
You can use the method bannerView:didFailToReceiveAdWithError
which is called when the banner view fails to load a new iAd advertisement:
- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error
{
// Load AdMob ad
}
Admob currently have a beta running with a mediation SDK in it that will handle this automatically. Give it a few weeks and it should be out of beta.
https://www.adwhirl.com/ is an easy way to do just that, I use it with iAd's and AdMob and it works very well.