iAd not showing in Downloaded version of my app

社会主义新天地 提交于 2019-12-08 05:13:48

问题


I have made an app with iAd. It appeared both in simulator and my device when I deploy it. However, after the app is approved and up on store I downloaded it and cannot see the iAd. Anyone had this issue before?

Some of the iAd related code:

#pragma mark iAd delegate methods
-(void)bannerViewDidLoadAd:(ADBannerView *)banner {
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:1.0];
    [banner setAlpha:0.5];
    [UIView commitAnimations];
}

-(void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error {
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:1.0];
    [banner setAlpha:0.0];
    [UIView commitAnimations];
}

In viewDidLoad():

adView = [[[ADBannerView alloc] initWithFrame:CGRectMake(0, adY, 0, 0)] autorelease];
adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifierPortrait;
adView.backgroundColor = [UIColor blackColor];
[self.view addSubview:adView];
adView.delegate=self;

adY is just a value based on the size of the screen.


回答1:


It takes four days after for release for Apple to start filling advertisements in iAd.

Also, iAd only works in certain countries. It doesn't work all around the world. The only countries that iAd will show advertisements in are:

Australia, Canada, France, Germany, Hong Kong, Ireland, Italy, Japan, Mexico, New Zealand, Spain, Taiwan, United Kingdom and United States.

Source: https://developer.apple.com/iad/resources/

Some very large markets are missing from this list. If you are not in one of these countries you will not see advertisements.



来源:https://stackoverflow.com/questions/23710487/iad-not-showing-in-downloaded-version-of-my-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!