在混乱中,如何将Facebook受众作为中介网络与Admob集成? [英] In flutter, how to integrate facebook audience as mediation network with Admob?

查看:637
本文介绍了在混乱中,如何将Facebook受众作为中介网络与Admob集成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是广告中介的新手。我有一个flutter应用程序,并且使用以下admob_flutter插件集成了admob,它在Android和iOS上都可以正常工作。


https://pub.dev/packages/admob_flutter


现在,我想添加Facebook受众作为中介网络。我已按照Google提供的以下教程中的步骤操作,以在Admob门户中设置受众群体帐户和集成。


> https://developers.google.com/admob/android/mediation/facebook


我的困惑是要整合Facebook受众sdk。我应该添加哪一个:


  1. facebook_audience flutter插件
    - https://pub.dev/packages/facebook_audience_network


  2. 实现'com .google.ads.mediation:facebook:5.8.0.0'-Google教程要求添加开源中介适配器。


  3. 实现'com.facebook.android:audience-network -sdk:5. +'-Facebook听众教程要求集成此sdk。

betweek sdk和适配器有什么区别?我们是否应该同时拥有Facebook受众SDK和中介适配器(第2点和第3点)?
如果仅sdk就足够了,那么包括flutter插件对Android和iOS都足够了吗?



谢谢

解决方案

您不需要添加 facebook_audience 依赖项。如果您只是将
实现'com.google.ads.mediation:facebook:5.8.0.0'添加到build.gradle中,它将自动在您的适配器中安装适配器应用程式。
如果您将第2点& 3在build.gradle中,它将集成适配器和SDK。
您需要SDK才能在应用中展示广告,类似于Admob SDK( admob_flutter ),并且使用适配器将其链接到您的Admob中介。 / p>

I am new to ad mediation. I have a flutter app and I have integrated admob using following admob_flutter plugin and its working fine on both Android and iOS.

https://pub.dev/packages/admob_flutter

Now I want to add facebook audience as mediation network. I have followed the steps in following tutorial provided by google to setup audience account and integration in Admob portal.

https://developers.google.com/admob/android/mediation/facebook

My confusion is about facebook audience sdk to integrate. Which one should I add :

  1. facebook_audience flutter plugin -https://pub.dev/packages/facebook_audience_network.

  2. implementation 'com.google.ads.mediation:facebook:5.8.0.0' - google tutorial ask to add open source mediation adapter.

  3. implementation 'com.facebook.android:audience-network-sdk:5.+' - facebook audience tutorial ask to integrate this sdk.

What is the difference betweek sdk and adapter? Should we have both facebook audience sdk and mediation adapter (Point 2 and 3)? If only sdk is enough, then including flutter plugin is enough for both android and iOS?

Thanks

解决方案

You don't need to add the facebook_audience dependency. If you simply add implementation 'com.google.ads.mediation:facebook:5.8.0.0' to your build.gradle it will automatically install the adapter in your app. If you put point 2 & 3 both in your build.gradle it will integrate the adapter as well as the SDK. You require the SDK to show ads in your app, similar to your Admob SDK (admob_flutter) and the adapter is used to link it to your Admob Mediation.

这篇关于在混乱中,如何将Facebook受众作为中介网络与Admob集成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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