简体   繁体   English

我正在使用firebase_admob在我的flutter应用中实施广告,但广告在发布版本apk中不起作用

[英]I am using firebase_admob to implement ads in my flutter app, but ads are not working in release build apk

The test ads show with no problem, and even the real ads were appearing on my app when i made an debug build, when i realized the debug build is working fine and made a final release, the ads stopped appearing on my app. 测试广告毫无问题地显示,甚至当我进行调试构建时,甚至真正的广告都出现在我的应用程序上,当我意识到调试构建工作正常并最终发布时,这些广告就停止出现在我的应用程序上。 Even now on my emulator the app shows the test ads, but with the released app, no ads appear. 即使是现在,在我的模拟器上,该应用程序仍会显示测试广告,但是在发布的应用程序中,不会显示任何广告。 I haven't received any communication either as to why this is happening. 我也没有收到任何关于为什么发生这种情况的信息。 Any help would be much appreciated 任何帮助将非常感激

Thanks 谢谢

i have already tried to install released app on real device but no ads on real device(even ads are loading on real device with debug and profile mode) 我已经尝试在实际设备上安装发布的应用程序,但是在实际设备上没有广告(即使广告通过调试和配置文件模式也在实际设备上加载)

Example for android native app. Android本机应用程序示例。

Please test the production admobid , admod unit with the admob sample at https://github.com/googlesamples/android-ads/tree/master/admob/BannerExample Replace existing admob ids and admob units, please check it the ads are getting served . 请在https://github.com/googlesamples/android-ads/tree/master/admob/BannerExample中使用admob示例测试生产admobid和admod单元,替换现有的admob ID和admob单元,请检查广告是否已投放。

If no , then there might be some issue with you admob unit , or its not been fully approved for ads. 如果不是,则您的admob单元可能存在问题,或者该单元尚未完全批准用于广告。

If you have created admob unit , recently , please wait for some time . 如果您最近创建了admob单元,请等待一段时间。

Hope that helps. 希望能有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM