mediation_test 0.0.3
mediation_test: ^0.0.3 copied to clipboard
A Plugin to present Admob Mediation Test Suite for flutter app
example/lib/main.dart
import 'package:google_mobile_ads/google_mobile_ads.dart';
import 'package:flutter/material.dart';
import 'package:mediation_test/mediation_test.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
MobileAds.instance.initialize();
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Sample App'),
),
body: Center(
child: ElevatedButton(
child: Text("Present Test Suite"),
onPressed: () {
MediationTest.presentTestSuite();
}),
),
),
);
}
}