如何确保 admob 出现在我的应用程序中

How can I ensure admob will appear in my app(如何确保 admob 出现在我的应用程序中)
本文介绍了如何确保 admob 出现在我的应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们知道,Google 要求我们在开发应用时使用测试设备和测试广告单元 ID.但是,我想知道是否存在我可以看到真实的广告,因为我怕我在发布前更改代码和广告ID后就没有广告了.我成功看到了测试广告,然后我更改了代码和广告id,然后将我的应用程序提交到beta测试,但是测试人员说没有显示任何广告,这是正常的,还是我的代码有错误或广告单元 ID.感谢您的帮助!

As we know, google requires us to use test device and test ad unit id, when we develop the app. However, I want to know that if there exists anyway that I can see the real ad, because I am afraid that no ad will show after I change the code and ad id before release. I have successfully seen test ad, and then I changed the code and ad id, and then submit my app to beta testing, but the tester said that no ad was shown, is it normal, or I have made some mistake in my code or ad unit id. Thank you for your help!

下面是我的广告相关代码,我改了广告id

Below is my ad-related code, and I have changed the ad id

mAdView = (AdView) findViewById(R.id.adView);
        AdRequest adRequest = new AdRequest.Builder().build();
        mAdView.loadAd(adRequest);

推荐答案

您甚至可以使用实际的广告单元 ID 进行开发,但您的测试设备应在构建广告请求时添加到 TEST DEVICES 列表中.

You can use actual ad unit id even for development, but your test devices should be added to the list of TEST DEVICES when you build your ad request.

p>

如果您使用的是有效的广告单元 ID,则可以确保在您发布应用时展示广告.此外,您可以在 Adsense Dashboard 中检查您的广告单元是否获得了点击.

If it's a valid ad unit id that you are using, you can be sure that ads will appear when you publish your apps. Also, you can check if you are getting hits for your ad unit in Adsense Dashboard.

如果你想完全确定,你可以尝试在另一台设备上安装 apk,测试它,然后在看到广告时发布它.

If you want to be dead sure, you can just try to install the apk on another device, test it, and then publish it when you see the ads.

这篇关于如何确保 admob 出现在我的应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)