interstitialAd不会显示 [英] interstitialAd will not show up

查看:258
本文介绍了interstitialAd不会显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个带有一个viewController的SK游戏,想要查看全屏广告但是它们没有出现。

i´ve created a SK Game with one viewController and want to view full screen ads but they don´t show up.

在ViewController.m中:(viewWillAppear )

in ViewController.m: (viewWillAppear)

self.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual;
[self requestInterstitialAdPresentation];

inAppDelegate.m:

inAppDelegate.m:

[ViewController prepareInterstitialAds];


推荐答案

你的方法看起来是正确的,你说对了只需要那些方法调用,你可能只需要移动:

Your approach looks correct, and you are right that you only need those method calls, You may just need to move:

[self requestInterstitialAdPresentation];

进入viewDidAppear,而不是viewWillAppear。

into viewDidAppear, rather than viewWillAppear.

可能是您要求在视频控制器上显示广告,该视频控制器尚未完全在屏幕上,因此无效。

It could be that you are asking for an ad to be shown over a view controller that isn't fully on screen yet and hence it doesn't work.

这篇关于interstitialAd不会显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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