简体   繁体   English

iAD横幅 - 未在应用商店中展示

[英]iAD banner - Is not showing in app store

I'm using storyboard, iOS7, xcode 5.1 I'm trying to add the iAD banner. 我正在使用storyboard,iOS7,xcode 5.1我正在尝试添加iAD横幅。 When I try it by developer, testing the xcode project in device or simulator, that works well showing the Test Advertisement! 当我由开发人员尝试它,在设备或模拟器中测试xcode项目时,这很好地展示了测试广告!

But when my app is on the App Store, it doesn't show any banner! 但是,当我的应用程序在App Store上时,它不显示任何横幅! And I had already enable iAd network in the itunes connect. 我已经在itunes connect中启用了iAd网络。 In the overview: Live: This app is receiving live ads. 概述:直播:此应用正在接收实时广告。 What am I missing? 我错过了什么?

In my .h file: 在我的.h文件中:

#import <iAd/iAd.h>
@interface ViewController : UIViewController<SceneDelegate, ADBannerViewDelegate>

In my main file: 在我的主文件中:

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

#pragma mark iAd Delegate Methods

-(void)bannerViewDidLoadAd:(ADBannerView *)banner
{
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:1];
    [banner setAlpha:1];
    [UIView commitAnimations];
}

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

In the storyboard, the delegate is connected! 在故事板中,代表已连接!

iAd may not be displayed on your device if there is no ad available to display targeting your device and your type of application. 如果没有可用的广告定位到您的设备和您的应用类型,iAd可能不会显示在您的设备上。 Even if iAd is available, there may be no advertisers that chose to launch ads that corresponds to your app. 即使iAd可用,也可能没有广告客户选择推出与您的应用相对应的广告。

Of course you have to make sure that you've got iAd Advertising Network Enabled in iTunes Connect 当然,您必须确保在iTunes Connect中启用iAd Advertising Network

You can find out all metrics of iAds serving in your app and make adjustments here . 您可以在应用中找到所有iAd服务指标,并在此处进行调整。 Check there if the status in iAd Network is Live: This app is receiving live ads. 检查iAd网络中的状态是否为实时:此应用正在接收实时广告。 .

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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