Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID
Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.

iAds working in simulator and debug , but not in app store download

sacha1996sacha1996 Posts: 482Registered Users
Hello , When I run the app on the iphone simulator all is ok , with test advertisement written , this happens also when i debug it on my ipod touch. When I click on the ads it confrim that the ads are running corretcly. But when I download the app from the app store , no ads are there.
How ?

PS : I'm from Belgium , are the ads disable in Belgium ?

Look at the code please :

In the .h file :
#import <UIKit/UIKit.h>
#import <iAd/iAd.h>

@interface DV : UIViewController {

IBOutlet UITextView *desLabel;
IBOutlet UILabel *titleLabel;
ADBannerView *adBannerView;
}

@property (nonatomic, retain) IBOutlet UITextView *desLabel;
@property (nonatomic, retain) IBOutlet UILabel *titleLabel;
@property (nonatomic, retain) ADBannerView *adBannerView;

@end


- (void)viewDidLoad {
[super viewDidLoad];
adBannerView = [[ADBannerView alloc] initWithFrame:CGRectMake(0.0, 366.0, 320.0, 50.0)];
adBannerView.requiredContentSizeIdentifiers = [NSSet setWithObject:ADBannerContentSizeIdentifier320x50];
adBannerView.currentContentSizeIdentifier = ADBannerContentSizeIdentifier320x50;
[adBannerView setHidden:YES];
adBannerView.delegate = self;
[self.view addSubview:adBannerView];
}

- (void)bannerViewDidLoadAd:(ADBannerView *)banner {
[banner setHidden:NO];
}

- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error {
[banner setHidden:NO];
}

- (void)dealloc {
[adBannerView release];
[super dealloc];
}
Sign In or Register to comment.