Member-only story

Setting up Mediation Test Suite in Flutter

Yash Bansal
4 min readFeb 7, 2024

--

Are you struggling to integrate Google MediationTest Suite in your Flutter App. Worry no more, since this post has everything you need.

What you’ll need -

  1. At-least 2 AdNetwork accounts (preferable are Admob and Facebook Audience Network). These accounts should be fully setup.
  2. Mediation setup in Admob/AdManager network ( it is advisable to use Google’s Network as one AdNetwork). Setting up details can be found here.

Let’s dive right into coding —

  1. Import google_mobile_ads: ^1.0.0 in your pubspec.yaml.
  2. Include these two properties in your app level build.gradle (present at app/build.gradle)

implementation ‘com.google.ads.mediation:facebook:6.8.0.0’
implementation ‘com.google.android.ads:mediation-test-suite:2.0.0’

3. Make sure AndroidManifest.xml contains your AppId (should look something like this) :

<application
android:name="io.flutter.app.FlutterApplication"
android:icon="@mipmap/ic_launcher"
android:label="App Name"
android:roundIcon="@mipmap/ic_launcher_round">
<activity
android:name="com.developer.demo.MainActivity"…

--

--

Yash Bansal
Yash Bansal

Written by Yash Bansal

100K+ views, Principal Engineer, Loves to read and write about latest tech, sometimes about life topics . Find me on Topmate - https://topmate.io/yashbansal042

No responses yet