title: Did I implement iAd shared banner wrongly?
body: <p>Besides, adding the iAd and AdMob code to get banner to appear on screen, is the following code the correct way to set up a shared banner?</p>
  
  <p>In AppDelegate.h </p>
  
  <pre><code>@import GoogleMobileAds;
  #import &lt;UIKit/UIKit.h&gt;
  #import &lt;iAd/iAd.h&gt;
  #import &lt;GoogleMobileAds/GoogleMobileAds.h&gt;
  
  @interface AppDelegate : UIResponder &lt;UIApplicationDelegate&gt;
  @property (strong, nonatomic) UIWindow *window;
  
  @property(nonatomic, strong) ADBannerView *iAdView;
  @property(nonatomic, strong) GADBannerView *adMobView;
  @end
  </code></pre>
  
  <p>AppDelegate.m</p>
  
  <pre><code>#import "AppDelegate.h"
  #import &lt;iAd/iAd.h&gt;
  
  @implementation AppDelegate
  @synthesize iAdView;
  @synthesize adMobView;
  
  -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
   iAdView= [[ADBannerView alloc]init];
   return YES;
   }
  </code></pre>
  
  <p>iPhone6.m</p>
  
  <pre><code> #import "iPhone6.h"
   #import &lt;iAd/iAd.h&gt;
   #import "AppDelegate.h"
  
   -(AppDelegate *) appdelegate {
  return (AppDelegate *)[[UIApplication sharedApplication] delegate];
   }
  
  -(void)viewDidLoad{
  
  iAdView =[[self appdelegate] iAdView];
  }
  </code></pre>