简体   繁体   中英

How do i know my iAd will work after release in AppStore?

I am finishing my AppStore Game with an iAd Banner. I already included the iAd framework. In my Game ViewController I placed a iAd BannerView. The following is my code:

in Game.h

#import <iAd/iAd.h>

in Game.m

- (void)viewDidLoad
{
[...]
[super viewDidLoad];
self.canDisplayBannerAds = YES;
}

In simulator and on my iPhone I get this result on the following photo:

http://s1.directupload.net/images/140506/scgmg5nf.png (Sorry - I need at least 10 reputations to post images directly.)

I think every things looking fine, but will this iAd BannerView display real adverts after release? I don't know whats an indicator for working without problems.

Thanks

It looks as though you are on the right track. The test iAd is displaying properly. On a device it will look green if the frame is set fine too. Just remember that after your app gets approved it will take a couple days for the ads to appear. My last app took 3 days for ads to start. Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM