ios - 不遵守 Admob 上限
问题描述
我正在开展一个项目,其中实施了 Admob,上限设置为每 5 分钟每位用户不超过 1 次展示(对于我的测试)。
但是广告是垃圾邮件。
我已经按照这里的文档:
https://developers.google.com/admob/ios/interstitial
但不尊重上限。
之前的开发者在 interstitialDidReceiveAd 中实现了调用,文档强烈不推荐
- (void)interstitialDidReceiveAd:(GADInterstitial *)ad {
NSLog(@"interstitialDidReceiveAd");
if (self.interstitial.isReady) {
[self.interstitial presentFromRootViewController:self];
}
}
我试图做的是从我的 viewDidAppear 方法拨打电话,但现在我的广告从未显示
-(void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:YES];
[newtopicsBtn.titleLabel setFont:PANTON_SEMIBOLD([UniversalMethod setFontsize:12])];
[newtopicsBtn.titleLabel setTextColor:[UIColor whiteColor]];
[newtopicsBtn.titleLabel setText:NSLocalizedString(@"home_newtopics_title", @"")];
if(self.interstitial.isReady) {
[self.interstitial presentFromRootViewController:self];
}
}
你们有没有遇到过这样的问题?
解决方案
推荐阅读
- c++ - OpenMP 仅使用一个线程
- python - 当数据为每组的行而不是每组一行时,如何将数据集拆分/分区为训练和测试集
- java - 在Linux下,Java使用Rxtx串口出现异常,但Windows是可以的
- broadcast - Android O 上的隐式广播接收器
- angular - Angular Material 6 - 来自服务的垫表数据
- vb.net - Group by two columns in linq
- javascript - 如何在下面的 onClick 方法中运行 RowDataBound 方法?
- visual-studio-code - 更改 VSCode 小地图颜色
- arrays - 如何在python中将.dat文件转换为数组
- c# - c# File.Exists 总是使用 value 属性返回 false