admanager_web

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

admanager web

AdManager Web Flutter #
Simple package that allow us display ads from Ad Manager in Flutter Web. This was primarily created to display Adsense ads on Flutter Web.
Features #

Request ad from Ad Manager Network
Can run Adsense ad in a Flutter Web App

Usage #
Add admanager_web as a dependency in your pubspec.yaml file.
Import the packeage:
import 'package:admanager_web/admanager_web.dart';
copied to clipboard
Initialize our plugin to load all JS things (Need be called before the first ad request):
AdManagerWeb.init();
copied to clipboard
Just add the AdBlock widget to show the ad where you like:
[...]
AdBlock(
size: [AdBlockSize.largeRectangle],
adUnitId: "/6355419/Travel/Europe",
)
[...]
copied to clipboard
Load Rewarded Ad:
[...]
AdRewarded().load(
adUnitId: '/22639388115/rewarded_web_example',
onAdLoaded: (){},
)
[...]
copied to clipboard
Show Rewarded Ad:
[...]
AdRewarded().show(
onAdClosed: (){},
onGranted: (int amount){},
);
[...]
copied to clipboard
Additional information #
For more performance add the GPT.js Library directly in your head in index.html file:
<script
async
src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"
></script>
copied to clipboard
This package was made in order to show Google Adsense ads on Flutter Web in a simple way. Its still in its infancy, and any help to make it better and more efficient will be appreciated.
Made with ♥ from Brazil 🇧🇷 #
It was made in Brazil by Nathanael Ferreira.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.