扑.带中介的 Admob 广告 [英] Flutter. Admob ads with mediation

查看:16
本文介绍了扑.带中介的 Admob 广告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I've integrated https://pub.dev/packages/firebase_admob into my app and implemented 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.

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?

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?

解决方案

You can use firebase_admob and that dependency supports mediation. 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

You can select the ad network you would like to integrate and read the steps on how to do so. 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.

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.

这篇关于扑.带中介的 Admob 广告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆