简体   繁体   English

Flutter。 Admob 带中介的广告

[英]Flutter. Admob ads with mediation

I've integrated https://pub.dev/packages/firebase_admob into my app and implemented rewarded ads .我已将https://pub.dev/packages/firebase_admob集成到我的应用程序中并实施rewarded ads My problem now is that I'd like to use mediation via this plugin.我现在的问题是我想通过这个插件使用中介。 The only thing is that I know (from developing Android apps and also it says in the Admob docs) that one needs to include the mediated networks' SDKs in the app.唯一的事情是我知道(通过开发 Android 应用程序以及 Admob 文档中的说明)需要在应用程序中包含中介网络的 SDK。

Does this plugin even support mediation?这个插件甚至支持中介吗? I wasn't able to find anything relating to this.我找不到与此相关的任何内容。 Or does the mediation only come from the admob dashboard, just by setting up the add-unit with mediation and you're not really required to add the SDKs?或者中介是否仅来自 admob 仪表板,只需设置带有中介的添加单元,而您实际上并不需要添加 SDK?

I couldn't find any adapters for this plugin, so... don't really have anything to integrate in the app.我找不到这个插件的任何适配器,所以......真的没有任何东西可以集成到应用程序中。

I'm very confused.我很困惑。 Does anyone know how to use mediation or if it even works with the current firebase_admob` flutter plugin?有谁知道如何使用中介,或者它是否可以与当前的 firebase_admob` flutter 插件一起使用?

You can use firebase_admob and that dependency supports mediation.您可以使用firebase_admob并且该依赖项支持中介。 You you would like to add mediation there is a guide over here:您想添加调解,这里有一个指南:

Android - https://developers.google.com/admob/android/mediate iOS - https://developers.google.com/admob/ios/mediate Android - https://developers.google.com/admob/android/mediate iOS - https://developers.google.com/admob/ios/mediate

You can select the ad network you would like to integrate and read the steps on how to do so.您可以 select 您想要集成的广告网络并阅读有关如何执行此操作的步骤。 Sometimes the documentation can be outdated so just make sure you cross-check the steps with the ad network you want to integrate on their github repo.有时文档可能已过时,因此只需确保您在 github 存储库中与要集成的广告网络进行交叉检查。

If you are integrating it for Android you have to add the dependencies in your app level build.gradle file and it will automatically install that particular ad networks SDK in your Flutter app. If you are integrating it for Android you have to add the dependencies in your app level build.gradle file and it will automatically install that particular ad networks SDK in your Flutter app.

If you are adding the same for iOS just install the Cocoapod for the ad network at the end of your Podfile .如果您要为 iOS 添加相同的内容,只需在Cocoapod末尾安装广告网络的Podfile

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

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