I implemented a very simple iAd banner in totally new project and when I run it I'm getting the error ERROR: unable to get the receiver data from the DB!
The code is pretty basic, so I don't think the problem is code related, but I will add it just in case:
#import <iAd/iAd.h>
@interface MainViewController : UIViewController <ADBannerViewDelegate>
{ADBannerView *adView;}
@property (retain, nonatomic) IBOutlet ADBannerView *adView;
@end
@implementation MainViewController
@synthesize adView;
- (void)viewDidLoad
{
[super viewDidLoad];
adView.delegate = self;
[adView setHidden:YES];
}
-(void)bannerViewDidLoadAd:(ADBannerView *)banner{
[adView setHidden:NO];
NSLog(@"is laoding");
}
-(void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error{
[adView setHidden:YES];
NSLog(@"is NOT loading");
}
@end
Anyone else getting this error? Any help on this matter?