google-services.json for Google-play-services:ads - 我应该生成吗?

google-services.json for Google-play-services:ads - should I generate?

我在我的旧应用程序中使用 Google 播放服务(广告),更新库后我遇到了问题

FAILURE: Build failed with an exception.

在这个 link https://developers.google.com/mobile/add 我可能会生成必要的 json 文件,但我必须选择 google 播放服务:登录、分析、云消息。

没有'Ads'单机,我应该怎么选?

我认为您在 link 中没有看到广告的原因是 AdMob is now being handled by Firebase。他们简化了文档中所述的步骤:

The best way to use AdMob is with Firebase. Firebase is a mobile platform that helps you quickly develop high-quality apps, grow an engaged user base, and earn more money. Since AdMob is now a part of Firebase, we've made it simpler to use AdMob along with other Firebase services such as Analytics.

检查实施部分的 Integrate Firebase and the Mobile Ads SDK。请查看他们的指南以获取更多信息。希望这 post 对您有所帮助。