IAd appears in the simulator but not on the device

When I launch my application, I can see my iAd in the simulator, which is pre-populated with "Test Advertisement"

However, when I launch the application on my device, the iAd area is empty, without a 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 
0
source share
2 answers

Edit after the questionnaire added additional information:

Apple will reject your application if the iAd is inside a table cell. iAds should be in a static position on the page, and not in any type of scrolling (including tables). This is due to the fact that iAds pays for the impression, as well as a click, so the presence of iAd in the table view cell will restart it whenever it scrolls again on the screen, which can be many times. This is similar to click fraud or similar behavior. Apple will not allow this.


Perhaps because your request is not working. Put a breakpoint or some message in the failure delegation message that is sent when requests fail and you can see if it will be called.

IAd requests may not work for several reasons, including iAds are not available in your country, there are not enough resources to complete the request, an ad has already been shown after this session, etc.

Perhaps this displays on the Simulator because the Simulator does not have any concept of its location (for example, Maps always show your location as the Apple HQ in Cupertino).

+1
source

If the same problem, then to solve this problem for me was just to uninstall the application from your device and reinstall from Xcode.

0
source

All Articles