是否可以这样设置插页式广告?

问题描述 投票:0回答:1

我想在我的Android应用中使用interstitial中的Admob广告,我只想确定我是否<< [确定。

private fun setupFabButton() { //get the fab (don't move from this position) mFab.apply { setOnClickListener { if (mInterstitialAd.isLoaded) { mInterstitialAd.show() } else { Log.d("TAG", "The interstitial wasn't loaded yet.") } //start preview activity ............. ........ }) } startActivity(intent) } } }
感谢任何可以提供帮助的人:)
android kotlin admob interstitial
1个回答
0
投票
可能会引入Admob的违反政策规定。在展示插页式广告时,您不应做任何事情。您的下一个动作应写在广告关闭的回调中。

这里是您可以获得的违规及其修复的完整列表。

http://hackerseve.com/how-to-implement-admob-s-interstitial-ad-the-right-way-in-android-apps/

© www.soinside.com 2019 - 2024. All rights reserved.