When I run my application I can see my iAd in the simulator, that is pre-filled with "Test Advertisement"
However, when I run the application on my device, the iAd area is blank, with no pre-filled ad.
Why is this?
My iAd is in a UITableViewCell:
#import "iAdCell.h"
@implementation iAdCell
@synthesize adView;
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) {
adView = [[ADBannerView alloc] initWithFrame:CGRectZero];
adView.requiredContentSizeIdentifiers = [NSSet setWithObject:ADBannerContentSizeIdentifier320x50];
adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifier320x50;
adView.delegate=self;
[self.contentView addSubview:adView];
}
return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
- (void)dealloc {
[adView release];
[super dealloc];
}
@end