-1

In iPhone Programmer presently I am working with iAds in xcode 3.1.3 but in my Project this kind of errors are occurred. please tell me it is possible to work in iAds in xcode 3.1.3? My error is

ADBannerView.h:88: error: expected ')' before 'ADBannerView'
             ADBannerView.h:97: error: expected ')' before 'ADBannerView'
            ADBannerView.h:102: error: expected ')' before 'ADBannerView'
            ADBannerView.h:110: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__AVAILABILITY_INTERNAL__IPHONE_4_0_DEP__IPHONE_4_2'
             ADBannerView.h:111: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__AVAILABILITY_INTERNAL__IPHONE_4_0_DEP__IPHONE_4_2'
             ADBannerView.h:112: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__AVAILABILITY_INTERNAL__IPHONE_4_2'
             ADBannerView.h:113: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__AVAILABILITY_INTERNAL__IPHONE_4_2'
    /Users/girishramdas/Desktop/iAds sample/iAdSuite/BasicAdBanner/Classes/TextViewController.h:59: error: expected specifier-qualifier-list before 'ADBannerView'
Cœur
  • 37,241
  • 25
  • 195
  • 267
Durga
  • 933
  • 1
  • 9
  • 12
  • You can refer to my answer over here. http://stackoverflow.com/questions/6927209/how-to-work-with-iads-using-x-code-3-1-3/6927247#6927247 Thanx..... – SJS Aug 04 '11 at 04:29

2 Answers2

1

Make sure you have error handeling for if an ad cannot be displayed. If you dont have this it may cause a crash like this.

something like:

    - (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error
        if (self.bannerIsVisible) {
             /* set banner not visible here
        }
BlueMeanie
  • 148
  • 1
  • 1
  • 10
0

This one has explained the step by step implementation of iAds...

alloc_iNit
  • 5,173
  • 2
  • 26
  • 54