title: iAD Banner View in cocos2d
body: <p>I am implementing the ADbanner view in appdelegate.mm file in cocos2d game. The ads are displaying perfectly but i would like to know where i can implement the iAd banner view delegates. I have added them to appdelegate.mm file but they do not get called.</p>
  
  <p>This is the code to display the ads (they are displayed successfully)</p>
  
  <pre><code>iAdView = [[ADBannerView alloc] initWithFrame:CGRectZero];
      iAdView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierLandscape;
      [[[CCDirector sharedDirector]view]addSubview:iAdView];
  </code></pre>
  
  <p>I now need to implement this </p>
  
  <pre><code>- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error
  - (void)bannerViewDidLoadAd:(ADBannerView *)banner
  </code></pre>
  
  <p>I am not using UIViewController as i am using cocos2d(it has scenes)</p>
  
  <p>Thanks in advance for any help. </p>