简体   繁体   English

iAd Banner未在已批准的iPhone App中显示

[英]iAd Banner is not showing in the approved iPhone App

as I got my app approved I recognized that the iAd Banners don't show up unfortunately. 当我的应用程序获得批准时,我认识到i​​Ad横幅不会出现。 I decided to contact the iAd Support and their answer is: 我决定联系iAd支持,他们的答案是:

...After investigating this issue we found your app is not sending ad requests to the iAd App Network. ...在调查此问题后,我们发现您的应用未向iAd App Network发送广告请求。 We need to see ad requests so that the iAd App Network can attempt to fill them with an ad. 我们需要查看广告请求,以便iAd App Network可以尝试使用广告填充广告。 Please review and confirm you have the proper iAd code implementation in place as found in the useful resources below.... 请查看并确认您已在适当的iAd代码实施中使用,如以下有用资源中所示....

I answered that the banners show up in the actual app when I run and build it from Xcode. 我回答说,当我从Xcode运行并构建它时,横幅显示在实际的应用程序中。

Here's the code I use. 这是我使用的代码。 I followed different tutorials so I can't understand why there should be a problem with the code. 我遵循了不同的教程,所以我无法理解为什么代码会出现问题。

I call createiAdBanner in viewDidLoad in the view I want the ad to be displayed. 我在viewDidLoad中调用createiAdBanner,我希望在视图中显示广告。

    #pragma mark - iAd Banner

- (void)createiAdBanner {

    // iAd Banners
    if ([ADBannerView instancesRespondToSelector:@selector(initWithAdType:)]) {
        adView = [[ADBannerView alloc] initWithAdType:ADAdTypeBanner];
    } else {
        adView = [[ADBannerView alloc] init];
    }
    [adView setAutoresizingMask:UIViewAutoresizingFlexibleWidth];

    [adView setFrame:CGRectMake(0, 0, 320, 50)];

    [adView setFrame:CGRectOffset([adView frame], 0, -50)];
    [adView setDelegate:self];

    [self.view addSubview:adView];
}

//
- (void)fixAdView {

    if (adView == nil) {
        return;
    }

    // Je nachdem, ob gerade ein Banenr angeigt wird
    if (adBannerViewIsVisible) {

        NSLog(@"ease in");
        [UIView animateWithDuration:0.3 animations:^{

            // Endpunkt
            adView.frame = CGRectMake(0, 64, adView.frame.size.width, adView.frame.size.height);
            [tvInfoView setFrame:CGRectMake(0, 110, tvInfoView.frame.size.width, tvInfoView.frame.size.height)];

        }];

    }
    else {

        NSLog(@"ease out");

        [UIView animateWithDuration:0.3 animations:^{

            // Endpunkt
            adView.frame = CGRectMake(0,-adView.frame.size.height, adView.frame.size.width, adView.frame.size.height);
            [tvInfoView setFrame:CGRectMake(0, 64, tvInfoView.frame.size.width, tvInfoView.frame.size.height)];

        }];

    }

}

#pragma mark  ADBannerViewDelegate

// Banner wird vom Netzwerk zur Verfügung gestellt
- (void)bannerViewDidLoadAd:(ADBannerView *)banner {
    NSLog(@"load banner");

    if (!adBannerViewIsVisible) {
        adBannerViewIsVisible = YES;
        [self fixAdView];
    }


}

// Banner wurde entfernt
- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error {
    NSLog(@"dismiss banner");

    if (adBannerViewIsVisible)
    {
        NSLog(@"dismiss banner 222");

        adBannerViewIsVisible = NO;
        [self fixAdView];
    }

}

    - (void)bannerViewActionDidFinish:(ADBannerView *)banner {

        // Ad Banner Zustand aktualiseren, falls die Action vielleicht gerade ausgefüht wurde
        [self fixAdView];
    }

Hope you guys can help me 希望你们能帮助我

If you look in the iAd workbench (click the iAd icon in iTunes Connect), you can see the stats for your app, including "Requests." 如果您查看iAd工作台(单击iTunes Connect中的iAd图标),您可以查看应用程序的统计信息,包括“请求”。 If this is zero, then your app is ( presumably ) not asking Apple for ads -- irrespective of the fill rate. 如果这是零,那么您的应用程序( 可能 )不会向Apple询问广告 - 无论填充率如何。

I just ran into the same situation where banners would appear fine in my developer version, but after submitting, nothing was appearing the iTunes version. 我刚遇到横幅在我的开发者版本中看起来很好的情况,但在提交后,iTunes版本没有出现任何内容。 When I logged into iTunes Connect, it said I had zero requests, and I was listed as "Live Ads," so I assumed the problem was with my app. 当我登录iTunes Connect时,它说我没有请求,而且我被列为“实时广告”,所以我认为问题在于我的应用程序。 I emailed Apple, and they were less than helpful. 我通过电子邮件向Apple发送电子邮件,但它们并没有帮助

... But, lo and behold, 4 days after my app was submitted, ads just magically started appearing. ...但是,在我的应用程序提交4天后,广告才神奇地开始出现。 They've gotta have some internal process where even after your app is submitted, it needs to be cleared by some iAd person. 他们必须有一些内部流程,即使你的应用程序提交后,也需要由一些iAd人员清除。 It would be nice if they listed the status as "Pending Review" instead of "Live Ads" so that people won't freak out like I did. 如果他们将状态列为“待审核”而不是“直播广告”,这将是一件好事,这样人们就不会像我一样惊慌失措。

I had the same problem after updating my app to start using iAd (first week of january). 更新我的应用程序以开始使用iAd(1月的第一周)后,我遇到了同样的问题。 On day one 6 requests then 3 days of 0 requests. 在第一天6请求3天0请求。 I mailed support and they gave me the same reply that the app is not sending requests. 我邮寄了支持,他们给了我同样的答复,即应用程序没有发送请求。 But miraculously on the same day everything was ok and I am now receiving a few thousand requests per day, without changing anything. 但奇迹般地在同一天一切都很好,我现在每天收到几千个请求,没有改变任何东西。

So I guess there was some problem at their side…. 所以我猜他们身边有一些问题......

Just check "Messages" on iAd Network site. 只需在iAd网站上查看“消息”即可。 Apple sends an automatic message after your app is approved. Apple会在您的应用获得批准后发送自动消息。 The message says: 消息说:

When you submit your app, ##YOUR APP NAME##, for approval, it will also be reviewed by iAd for use on the App Network to determine its appropriateness for receiving ads from iAd advertisers. 当您提交应用程序##您的应用名称##以供审批时,iAd也会对其进行审核,以便在应用网络上使用,以确定其是否适合接收来自iAd广告客户的广告。 Once your app is approved, you will be ready to start earning revenue for ads that run in your app. 一旦您的应用获得批准,您就可以开始为在您的应用中投放的广告赚取收入。

When I use iAd in my apps, I use this great library called JTCAdBaseViewController(Github: https://github.com/tomohisa/JTCAdBaseViewController ). 当我在我的应用程序中使用iAd时,我使用了名为JTCAdBaseViewController的这个很棒的库(Github: https//github.com/tomohisa/JTCAdBaseViewController )。 This library implements iAd properly and uses a simple view controller and has lots of options. 该库正确实现了iAd并使用了一个简单的视图控制器,并有很多选项。

It seems that Apple have changed the way , they approve things. 似乎Apple改变了方式,他们批准了一些事情。 In my case they approved the App first and App, became live on store, but there were no iAD displaying at all. 在我的情况下,他们首先批准了App和App,在商店上线,但根本没有iAD显示。

After I have reviewed the ituens connect, iAD section, I figured out they now have different review separately if they will be making your App display iAd or Not. 在我查看了ituens connect,iAD部分之后,我发现他们现在分别进行了不同的评论,如果他们将使你的应用程序显示iAd或Not。

Really very very stupid. 真非常非常愚蠢。

iOS 9.3, Xcode 7.3, ARC enabled iOS 9.3,Xcode 7.3,ARC启用

iAd App Network will be discontinued June 30th, 2016. Apps that were submitted after January 15th, 2016 will not receive ads. iAd App Network将于2016年6月30日停止使用。2016年1月15日之后提交的应用将不会收到广告。

Please see: https://developer.apple.com/news/?id=01152016a . 请参阅: https//developer.apple.com/news/?id = 01152016a

For apps. 对于应用程序 submitted before January 15th, 2016 deadline: 2016年1月15日之前提交截止日期:

Short answer: You must first wait for iAd review team to approve ad placement in your app. 简短回答:您必须先等待iAd审核小组批准您应用中的广告展示位置。

This is straight from iTunes Connect, Resource and Help FAQ : 这可以直接来自iTunes Connect,Resource和Help FAQ

Note: The most important part is in bold. 注意:最重要的部分是粗体。

How do I start generating revenue with the iAd App Network? 如何通过iAd App Network开始创收?

To join the iAd App Network, you must: 要加入iAd App Network,您必须:

  • Be a member of iOS Developer Program 成为iOS开发人员计划的成员
  • Agree to the iAd App Network Contract, found in Agreements, Tax, and Banking 同意在协议,税务和银行业务中找到的iAd App网络合同
  • Complete the required tax forms in Agreements, Tax, and Banking 在协议,税务和银行业务中填写所需的税表
  • Set up your banking information in Agreements, Tax, and Banking 在协议,税务和银行业务中设置您的银行信息
  • Integrate the iAd Framework into your app and submit it for review 将iAd Framework集成到您的应用中并提交以供审核

After your app has been approved and is in the Ready for Sale state, it also will be reviewed by iAd to determine the app's appropriateness for receiving ads from iAd advertisers. 在您的应用获得批准并处于待售状态后,iAd也会对其进行审核,以确定应用是否适合接收来自iAd广告客户的广告。 After your app has been approved by iAd, you can start earning revenue for ads that run in your app. 在您的应用获得iAd批准后,您可以开始为在您的应用中投放的广告赚取收入。

To see the ad performance of your app and the revenue generated by iAd, go to the iAd section. 要查看应用的广告效果和iAd产生的收入,请转到iAd部分。 On the iAd page that opens, in the Monetize section, click View Your iAd Reports. 在打开的iAd页面上,在“获利”部分中,单击“查看您的iAd报告”。

I agree that "Live: This app is receiving live ads." 我同意“直播:此应用正在接收实时广告。” is a bit misleading. 有点误导。

这取决于应用程序的审核率,您的应用程序下载或审核的次数越多,它们就越有可能获得添加。

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

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