我在iPhone上播放插页式广告? [英] iAds interstitial adverts on iPhone?

查看:113
本文介绍了我在iPhone上播放插页式广告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和我的开发人员曾尝试在iPhone和iPad上加载插页式广告,但只是设法在iPad上运行。

My developer and I had previously tried to get interstitial adverts loading on iPhone and iPad, however only managed to get this working on iPad.

在我们的测试过程中,我们发现iPhone上不支持插页式广告,但自iOS7发布以来,有些人现在说这是可能的。

During our testing we discovered that interstitials weren't supported on iPhone, but since the release of iOS7 some people now say this is possible.

但是我找不到任何体面的文档。这个Stack问题再次让我想知道 iAd& iPhone上的Admob插页式整合

However I can't find any decent documentation on this. This Stack question has got me wondering again though iAd & Admob Interstitial Integration on iPhone

那么,使用iAds的iPhone上是否可以使用全屏插页式广告?

So, are full screen interstitials possible on iPhone using iAds?

推荐答案

我一直在等待iAd的iPhone插页式广告。我终于将它实现到我的一个应用程序中,它正在运行并显示测试广告。该应用目前正在审核中,一旦获得批准我会更新我的答案,我可以测试是否有任何实际的广告投放。与此同时,以下是我用于实现iAd插页式广告的代码:

I've also been waiting for interstitial ads for iPhone from iAd. I finally have it implemented into one of my apps and it is running and showing test ads just fine. The app is currently in review and I will update my answer once it is approved and I can test if any actual ads are being served. In the meantime, here is the code I used to implement iAd interstitials:

ViewController.h

@interface ViewController : UIViewController <ADInterstitialAdDelegate> {
    ADInterstitialAd *interstitial;
    BOOL requestingAd;
}

-(void)showFullScreenAd;

ViewController.m

-(void)viewDidLoad {
    requestingAd = NO;
}

// Interstitial iAd
-(void)showFullScreenAd {
    // Check if already requesting ad
    if (requestingAd == NO) {
        [ADInterstitialAd release];
        interstitial = [[ADInterstitialAd alloc] init];
        interstitial.delegate = self;
        self.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual;
        [self requestInterstitialAdPresentation];
        NSLog(@"interstitialAdREQUEST");
        requestingAd = YES;
    }
}

-(void)interstitialAd:(ADInterstitialAd *)interstitialAd didFailWithError:(NSError *)error {
    interstitial = nil;
    [interstitialAd release];
    [ADInterstitialAd release];
    requestingAd = NO;
    NSLog(@"interstitialAd didFailWithERROR");
    NSLog(@"%@", error);
}

-(void)interstitialAdDidLoad:(ADInterstitialAd *)interstitialAd {
    NSLog(@"interstitialAdDidLOAD");
    if (interstitialAd != nil && interstitial != nil && requestingAd == YES) {
        [interstitial presentFromViewController:self];
        NSLog(@"interstitialAdDidPRESENT");
    }
}

-(void)interstitialAdDidUnload:(ADInterstitialAd *)interstitialAd {
    interstitial = nil;
    [interstitialAd release];
    [ADInterstitialAd release];
    requestingAd = NO;
    NSLog(@"interstitialAdDidUNLOAD");
}

-(void)interstitialAdActionDidFinish:(ADInterstitialAd *)interstitialAd {
    interstitial = nil;
    [interstitialAd release];
    [ADInterstitialAd release];
    requestingAd = NO;
    NSLog(@"interstitialAdDidFINISH");
}

我只是致电 - (void)showFullScreenAd 用户执行某项操作后。有关更多信息,请参阅 UIViewController iAd Additions Reference

I just call -(void)showFullScreenAd after the user performs a certain action. For more information refer to UIViewController iAd Additions Reference

编辑:01/03/14
应用程序更新已获批准且已生效现在12个小时。到目前为止,我仍然没有收到任何插页式广告。这可能是因为iPhone上的插页式广告缺少广告资源,或者可能与我在iTunes Connect上的iAd模块中收到的以下消息有关。消息显示

01/03/14 The app update was approved and has been live for 12 hours now. I still have not received any interstitial iAds as of this moment. It may be due to the lack of inventory for interstitial ads on iPhone or it may have something to do with the following message I've received in my iAd module on iTunes Connect. The message reads


当您提交应用程序[app name]以供审批时,iAd也会对其进行审核以供使用应用广告网络可确定其是否适合接收来自iAd广告客户的广告。一旦您的应用获得批准,您就可以开始为在您的应用中投放的广告赚取收入。

When you submit your app, [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. Once your app is approved, you will be ready to start earning revenue for ads that run in your app.

我从未收到过此消息之前,我通常会在App Store中发布更新时收到您的应用现在有资格接收广告消息。这可能是因为我的应用中新增了插页式广告,或者Apple更新了部分iAd程序。

I've never received this message before, I usually receive the "Your app is now eligible to receive ads" message as soon as the update is released in the App Store. It's either because of the new implementation of interstitial ads in my app or Apple has updated some of its iAd procedures.

如果我开始接收插页式广告,会再次更新答案网络成瘾者。在此期间,您可以在我的应用程序上自行测试 +行情的。一旦用户通过Facebook在应用内共享,就会调用上述代码并显示插页式广告。

Will update answer again if and when I do start receiving interstitial iAds. In the meantime you may test it yourself on my app +Quotes. The above code is invoked and an interstitial ad should show once a user shares via Facebook within the app.

编辑:01/07/14
直接联系iAd今天收到回复

01/07/14 Contacted iAd directly and received a response today


Hello Daniel,
初始填写率将反映iOS 7上最近推出的插页式广告。谢谢为了您的耐心,我们提高了广告投放率。
如果您还没有,我们建议您在应用中集成标准纵向和横向iAd横幅,以利用所有可用类型的广告资源。
最后,为了将来参考,当您提交申请以供审批时,iAd也会对其进行审核,以确定其是否适合接收来自iAd广告客户的广告。因此,您的新启用iAd的应用可能需要几天时间才能开始接收广告展示次数。
最好的问候,$ b $biAd应用网络支持

Hello Daniel, Initial fill rates will reflect the recent launch of interstitials on iOS 7. Thank you for your patience as we ramp up ad serving. If you haven't already, we recommend you integrate standard portrait and landscape iAd banners in your app to take advantage of all available types of advertising inventory. Finally, for future reference, when you submit your app for approval, it will also be reviewed by iAd to determine its appropriateness for receiving ads from iAd advertisers. Therefore, it may take a few days for your new iAd enabled app to begin receiving ad impressions. Best Regards,  iAd App Network Support

因此,iPhone的插页式iAds可以与iOS 7.0一起使用以上,但目前填充率较低。

So, interstitial iAds for iPhone do work with iOS 7.0 and above but have a low fill rate currently.

这篇关于我在iPhone上播放插页式广告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆