Admob for Flutter
A GoogleAdmob plugin for Flutter. Currently supports interstitial ads in both iOS and Android.
Contains two methods for loading and showing interstitial ads.
The plugin's loadInterstitial method accepts an APP_ID, AD_UNIT_ID, DEVICE_ID, and TESTING. The loadInterstitial method should be called in an init method to load an ad as the app starts. After that the ads will reload themselves whenever you close the previous one..
APP_ID = The app id given to you by admob
AD_UNIT_ID = The ad unit id given to you by admob when you create an interstitial ad
DEVICE_ID: Include the device id for testing purposes if you plan to test ads on a specific device
TESTING: A Boolean value indicating whether the ad units should be live or used for testing
The plugin's showInterstitial method accepts no variables, and as the name implies shows the ad you loaded with loadInterstitial.
View the example code included with the plugin in the example folder to see usage. The main.dart file included in the example folder shows an implementation of the plugin.
SUPPORT THE DEVELOPER
Support for asynchronous programming, with classes such as Future and Stream.
Classes and utilities that supplement the collection support in dart:core.
Encoders and decoders for converting between different data representations, including JSON and UTF-8.
Built-in types, collections, and other core functionality for every Dart program.
Interact with developer tools such as the debugger and inspector.
File, socket, HTTP, and other I/O support for server applications.
Concurrent programming using isolates: independent workers that are similar to threads but don't share memory, communicating only via messages.
Mathematical constants and functions, plus a random number generator.
Lists that efficiently handle fixed sized data (for example, unsigned 8 byte integers) and SIMD numeric types.
Built-in types and core primitives for a Flutter application.