flutter_ads_plugin 0.0.6
flutter_ads_plugin: ^0.0.6 copied to clipboard
Create ads quickly and conveniently
flutter_ads_plugin β Simple Google Ads for Flutter #
π Quickly and Easily Integrate Google Ads with Flutter! #
flutter_ads_plugin
is a Flutter plugin that enables seamless deployment of Google Ads in your app with minimal effort. No complex configurations required.
β¨ Key Features: #
- π Quick Integration β Deploy ads in just a few minutes.
- π― Optimized Display β Ads automatically adjust to the best position and type.
- π οΈ Easily Customizable β Supports multiple ad formats:
- Banner Ads
- Interstitial Ads
- Rewarded Ads
β Why Choose flutter_ads_plugin
? #
- β³ Time-Saving β Skips manual setup steps.
- π§© Simplified β Clean, easy-to-understand code, perfect for beginners.
π½οΈ Demo #
π¦ Installation #
Add the plugin to your pubspec.yaml
file:
fire_auth_quick: <latest-version>
Then run:
flutter pub get
βοΈ Configuration #
For detailed setup instructions, refer to the official guides:
π§βπ» Example #
import 'package:flutter/material.dart';
import 'package:flutter_ads_plugin/flutter_ads_plugin.dart';
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
void showRewardedAd() {
FlutterAdsRewarded.show(
onUserEarnedReward: (view, item) {
// TODO: Handle reward
},
onError: (e) {
// TODO: Handle error
},
onClose: () {
// TODO: Handle ad close
},
);
}
void showInterstitialAd() {
FlutterAdsInterstitial.show(
onError: (e) {
// TODO: Handle error
},
onAdClosed: () {
// TODO: Handle ad close
},
);
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin Example App'),
),
body: Column(
mainAxisSize: MainAxisSize.max,
children: [
const SizedBox(height: 24),
const FlutterAdsBanner(),
const SizedBox(height: 24),
const FlutterAdsNative(),
ElevatedButton(
onPressed: showRewardedAd,
child: const Text('Show Rewarded Ad'),
),
const SizedBox(height: 24),
ElevatedButton(
onPressed: showInterstitialAd,
child: const Text('Show Interstitial Ad'),
),
],
),
),
);
}
}
π₯ YouTube Video Guide #
For a detailed guide on how to integrate and use the Ad Plugin, check out the video tutorial.
π€ Contribute #
We welcome community contributions. Feel free to submit pull requests or report issues.
π License #
MIT License β Free to use and modify as needed.
Made with β€οΈ by mxgk