Admob for Flutter

A GoogleAdmob plugin for Flutter. Currently supports interstitial ads in both iOS and Android.

Getting Started

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

BTC Address:13JN3yubwaPzyuBpj4MtKqirVfweq1b6Sc

Libraries

admob

dart:async

Support for asynchronous programming, with classes such as Future and Stream.

dart:collection

Classes and utilities that supplement the collection support in dart:core.

dart:convert

Encoders and decoders for converting between different data representations, including JSON and UTF-8.

dart:core

Built-in types, collections, and other core functionality for every Dart program.

dart:developer

Interact with developer tools such as the debugger and inspector.

dart:io

File, socket, HTTP, and other I/O support for server applications.

dart:isolate

Concurrent programming using isolates: independent workers that are similar to threads but don't share memory, communicating only via messages.

dart:math

Mathematical constants and functions, plus a random number generator.

dart:typed_data

Lists that efficiently handle fixed sized data (for example, unsigned 8 byte integers) and SIMD numeric types.

dart:ui

Built-in types and core primitives for a Flutter application.