Member-only story
Setting up Mediation Test Suite in Flutter
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 -
- At-least 2 AdNetwork accounts (preferable are Admob and Facebook Audience Network). These accounts should be fully setup.
- 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 —
- Import google_mobile_ads: ^1.0.0 in your pubspec.yaml.
- 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"…