google_mobile_ads_adapter 0.0.1 copy "google_mobile_ads_adapter: ^0.0.1" to clipboard
google_mobile_ads_adapter: ^0.0.1 copied to clipboard

An adapter package for the google_mobile_ads plugin, designed to simplify ads integration and management.

example/google_mobile_ads_adapter_example.dart

import 'package:google_mobile_ads/google_mobile_ads.dart';
import 'package:google_mobile_ads_adapter/google_mobile_ads_adapter.dart';

void main() async {
  // Initialize the AdsController
  AdsController adsController = AdsController();
  adsController.init();

  // Choose an ad to load
  InterstitialAdAdapter interstitialAdAdapter = InterstitialAdAdapter('AD_ID');

  // Load the ad
  InterstitialAd? ad =
      await adsController.load<InterstitialAd>(interstitialAdAdapter);

  // Show the ad
  ad?.show();
}
2
likes
140
points
33
downloads

Publisher

verified publisherxeertz.com

Weekly Downloads

An adapter package for the google_mobile_ads plugin, designed to simplify ads integration and management.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, gma_mediation_liftoffmonetize, google_mobile_ads, logging, meta

More

Packages that depend on google_mobile_ads_adapter