iPhone 上的 iAds 插页式广告? [英] iAds interstitial adverts on iPhone?

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

问题描述

我和我的开发人员之前曾尝试在 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.

但是我找不到任何相关的文档.这个堆栈问题让我再次疑惑 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

那么,是否可以使用 iAd 在 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 添加参考

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 小时.到目前为止,我还没有收到任何插页式 iAd.这可能是由于 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

当您提交您的应用 [应用名称] 以供批准时,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.

如果我开始接收插页式 iAd,我将再次更新答案.同时,您可以在我的应用程序上自行测试 +引用.上面的代码被调用,一旦用户在应用内通过 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

你好,丹尼尔,初始填充率将反映最近在 iOS 7 上推出的插页式广告.感谢您在我们增加广告投放时的耐心等待.如果您还没有,我们建议您在您的应用程序中集成标准纵向和横向 iAd 横幅,以利用所有可用类型的广告库存.最后,为了将来参考,当您提交应用以供批准时,iAd 也会对其进行审核,以确定其是否适合接收来自 iAd 广告商的广告.因此,您的新启用 iAd 的应用程序可能需要几天时间才能开始接收广告展示.最好的祝福, 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 上的 iAds 插页式广告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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