gpt4 book ai didi

iphone - iPhone 上的 iAds 插页式广告?

转载 作者:行者123 更新时间:2023-12-03 18:22:40 26 4
gpt4 key购买 nike

我和我的开发人员之前曾尝试在 iPhone 和 iPad 上加载插页式广告,但只在 iPad 上成功。

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

但是我找不到任何关于此的像样的文档。这个堆栈问题让我再次想知道iAd & Admob Interstitial Integration on iPhone

那么,使用 iAds 在 iPhone 上可以实现全屏插页式广告吗?

最佳答案

我也一直在等待 iAd 为 iPhone 提供的插页式广告。我终于将其实现到我的一个应用程序中,并且它正在运行并正常显示测试广告。该应用程序目前正在审核中,一旦获得批准,我将更新我的答案,并且我可以测试是否正在转换任何实际广告。同时,这是我用来实现 iAd 插页式广告的代码:

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

编辑:2014 年 1 月 3 日该应用程序更新已获得批准,现已上线 12 小时。截至目前,我仍未收到任何插页式 iAd。这可能是由于 iPhone 上的插页式广告库存不足,也可能与我在 iTunes Connect 上的 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 程序。

如果我开始接收插页式 iAd,我将再次更新答案。同时您可以在我的应用程序上自行测试 +Quotes 。一旦用户在应用内通过 Facebook 分享,就会调用上述代码,并且应显示插页式广告。

编辑:2014 年 1 月 7 日直接联系 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 及更高版本,但目前填充率较低。

关于iphone - iPhone 上的 iAds 插页式广告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20741622/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com