Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-09-2011, 03:16 AM   #1 (permalink)
Registered Member
 
sacha1996's Avatar
 
Join Date: Mar 2011
Posts: 415
sacha1996 is on a distinguished road
Post iAds working in simulator and debug , but not in app store download

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 :
Code:
#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
Code:
- (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];
}
sacha1996 is offline   Reply With Quote
Reply

Bookmarks

Tags
ads, app store, framework, iad

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 358
13 members and 345 guests
dansparrow, dre, ilmman, LezB44, michelle, Nobbsy, Objective Zero, samdanielblr, Sami Gh, shagor012, sledzeppelin, thephotographer, tinamm64
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,119
Posts: 402,896
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:42 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0