admanager_web
एक सरल पैकेज जो हमें फ्लटर वेब में एड मैनेजर से विज्ञापन प्रदर्शित करने की अनुमति देता है। इसका मुख्य उद्देश्य फ्लटर वेब पर एडसेंस विज्ञापन प्रदर्शित करना है।
Flutter Web में AdManager से विज्ञापन प्रदर्शित करने के लिए सरल प्लगइन
{"sdk":"flutter"}^0.4.0+2^2.2.1{"sdk":"flutter"}^2.0.0यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Simple package that allow us display ads from Ad Manager in Flutter Web. This was primarily created to display Adsense ads on Flutter Web.
Add admanager_web as a dependency in your pubspec.yaml file.
Import the packeage:
import 'package:admanager_web/admanager_web.dart';
Initialize our plugin to load all JS things (Need be called before the first ad request):
AdManagerWeb.init();
Just add the AdBlock widget to show the ad where you like:
[...]
AdBlock(
size: [AdBlockSize.largeRectangle],
adUnitId: "/6355419/Travel/Europe",
)
[...]
Load Rewarded Ad:
[...]
AdRewarded().load(
adUnitId: '/22639388115/rewarded_web_example',
onAdLoaded: (){},
)
[...]
Show Rewarded Ad:
[...]
AdRewarded().show(
onAdClosed: (){},
onGranted: (int amount){},
);
[...]
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>
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.
It was made in Brazil by Nathanael Ferreira.