interstitialAd will not show up

天涯浪子 提交于 2019-12-12 04:54:47

问题


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

in ViewController.m: (viewWillAppear)

self.interstitialPresentationPolicy = ADInterstitialPresentationPolicyManual;
[self requestInterstitialAdPresentation];

inAppDelegate.m:

[ViewController prepareInterstitialAds];

回答1:


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

[self requestInterstitialAdPresentation];

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.



来源:https://stackoverflow.com/questions/28643756/interstitialad-will-not-show-up

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!