1

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.

Jan
  • 747
  • 1
  • 10
  • 29
  • I have just found the answer here: http://stackoverflow.com/questions/3384028/iad-or-admob-for-iphone-ipad-development – Jan Mar 31 '12 at 16:03

3 Answers3

2

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
}
sch
  • 27,436
  • 3
  • 68
  • 83
  • Thanks, good to know..what happen if there is new iAD ready to show and an admob is still showing? – Mat Mar 31 '12 at 07:56
  • 1
    You can remove the existing admob when the new iAd is available in the method `bannerViewDidLoadAd:`. – sch Mar 31 '12 at 08:01
1

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.

Lee Armstrong
  • 11,420
  • 15
  • 74
  • 122
0

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.

dacopenhagen
  • 2,414
  • 2
  • 23
  • 29