简体   繁体   English

iAd非页内广告:确定是否显示广告?

[英]iAd Interstitial: Determining if ad was shown?

I'm showing interstitials by using destinationVC.interstitialPresentationPolicy = ADInterstitialPresentationPolicy.Automatic before I actually show the destintion view controller. 在实际显示目标视图控制器之前,我通过使用destinationVC.interstitialPresentationPolicy = ADInterstitialPresentationPolicy.Automatic显示插页式广告。

How am I supposed to detect if an interstitial loaded? 我应该如何检测插页式广告是否已加载? I need to know so I can know if I should reset a timer that let's me show interstitials every few minutes. 我需要知道,所以我可以知道是否应该重置计时器,让我每隔几分钟显示一次插页式广告。

It's weird - even with 100% fill rate enabled in my developer settings, my interstitial doesn't always show... 很奇怪-即使在我的开发人员设置中启用了100%填充率,插页式广告也不会始终显示...

I tried implementing ADInterstitialDelegate but it seems interstitialDidLoad doesn't actually execute? 我尝试实现ADInterstitialDelegate,但似乎interstitialDidLoad并未真正执行?

For the fillrate, are you talking about test ads or live ads? 对于填充率,您是在谈论测试广告还是实时广告? iAd has a very low live ads fill rate and is even not supported at all in many countries... iAd的实时广告填充率非常低,在许多国家甚至根本不支持。

For the delegate, did you assign the delegate eg 对于代表,您是否分配了代表,例如

self.interstitial.delegate = self;

Assign it and do an NSLog for example in the delegate methods like in interstitialDidLoad to test if it s called... 分配它,然后在诸如interstitialDidLoad之类的委托方法中执行NSLog,以测试它是否被称为...

PS A timer to fire ads isn t really a good idea... Ads should be fired after an action by a user, at a specific time regarding the app lifecycle / usage and should not interrupt, what would obviously happen if you use a timer... PS触发广告的计时器并不是一个好主意...广告应在用户操作后在特定时间针对应用的生命周期/使用情况而被触发,并且不应中断,如果您使用计时器会明显发生...

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

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