सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
Easy Ads Flutter लोकप्रिय विज्ञापन एकीकरण पैकेज का एक लेपर है, जो Android और iOS पर Flutter ऐप में विज्ञापन जोड़ने की प्रक्रिया को सरल बनाता है। यह जटिल कॉन्फ़िगरेशन को अब्स्ट्रैक्ट करता है और बैनर, इंटरस्टिशियल और रिवार्डेड विज्ञापन लागू करने के लिए एक एकीकृत, आसान उपयोग वाला इंटरफ़ेस प्रदान करता है। विज्ञापन SDK के गहन ज्ञान के बिना अपने एप्लिकेशन को मोनेटाइज़ करने के लिए त्वरित और विश्वसनीय तरीके की तलाश करने वाले डेवलपर्स के लिए डिज़ाइन किया गया है, यह बॉयलरप्लेट कोड को कम करता है और सेटअप को सुविधाजनक बनाता है। इस पैकेज को एक स्थिर API के माध्यम से प्रमुख विज्ञापन नेटवर्क का समर्थन करता है, जिससे क्रॉस-प्लेटफ़ॉर्म विज्ञापन प्रबंधन कार्यक्षम और उपलब्ध हो जाता है।
उपयोग
एप्प में एड्स के साथ मोबाइल ऐप्स को मनीज़ाइज़ करना
प्लेटफॉर्म के आसपास विज्ञापन एकीकरण को सरल बनाना
त्वरित बैनर, इंटरस्टिशियल और प्रोत्साहन विज्ञापन जोड़ें
विज्ञापन कार्यक्षमता के साथ तेज़ प्रोटोटाइपिंग सक्षम करना
एक इंटरफेस के माध्यम से कई विज्ञापन नेटवर्क का प्रबंधन करना
मुख्य विशेषताएँ
कई नेटवर्क के लिए एकीकृत विज्ञापन API
बैनर, इंटरस्टिशियल और रिवार्डेड विज्ञापनों के लिए समर्थन
न्यूनतम सेटअप और कॉन्फ़िगरेशन
क्रॉस-प्लेटफॉर्म संगतता (Android और iOS)
एम्बेडेड त्रुटि संभाल और फॉलबैक
इनके लिए उपयुक्त
Flutter विकासकर्ता विज्ञापन एकीकरण के लिए नए
त्वरित विज्ञापन कार्यान्वयन की आवश्यकता वाले ऐप्स
बहुत विज्ञापन प्रदाताओं का उपयोग करने वाले प्रोजेक्ट
कम बॉलरप्लेट कोड चाहने वाले डेवलपर्स
मुद्रीकरण गति पर केंद्रित स्टार्टअप
विचार योग्य बातें
पूर्ण कार्यक्षमता के लिए नीचे के विज्ञापन SDK पर निर्भर करता है
सीधे SDK के उपयोग की तुलना में सीमित कस्टमाइज़ेशन
उन्नत विज्ञापन सेटिंग्स के लिए अतिरिक्त कॉन्फ़िगरेशन की आवश्यकता हो सकती है
अत्यधिक विशेषज्ञता वाले विज्ञापन कार्य प्रवाह के लिए आदर्श नहीं है
广告诉求网络政策 का पालन करने की आवश्यकता है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
Easy Ads Flutter
Show some 💙, 👍 the package & ⭐️ the repo to support the project
A plugin to easily integrate AdMob ads into your Flutter app.
⚠ Note
From version 26.3.12, this package supports AdMob only.
If you need Facebook, AppLovin, or Unity ads, you can use the alternative branches:
All Ad Networks (AdMob + Facebook + AppLovin + Unity)
https://github.com/nooralibutt/easy-ads/tree/feature/all-ads-support
AdMob + Facebook Only
https://github.com/nooralibutt/easy-ads/tree/feature/admob-facebook
New Feature: autoLoadAds
We've introduced a new autoLoadAds field in EasyAds initialization:
Purpose: Control whether ads are loaded automatically or not.
Default:true (ads are loaded automatically on initialization)
Usage:
awaitEasyAds.instance.initialize(
adIdManager,
autoLoadAds: false, // disables automatic ad loading
);```
If set to false, ads will not be loaded automatically.
You must manually load ads using:
Before loading ads, have your app initialize the Mobile Ads SDK by calling EasyAds.instance.initialize() which initializes the SDK and returns a Future that finishes once initialization is complete (or after a 30-second timeout). This needs to be done only once, ideally right before running the app.
Ad is automatically loaded after being displayed or first time when you call initialize.
But on safe side, you can call this method. This will load both rewarded and interstitial ads.
If a particular ad is already loaded, it will not load it again.
EasyAds.instance.loadAd();
Show interstitial or rewarded ad
EasyAds.instance.showAd(AdUnitType.rewarded);
Show appOpen ad
EasyAds.instance.showAd(AdUnitType.appOpen)
Show Banner Ads
This is how you may show banner ad in widget-tree somewhere:
This package supports JIT (Just-in-Time) ad loading for Interstitial, App Open, and Rewarded ads.
You can show ads on demand, with callbacks for success, failure, and dismissal.
This ensures native ads are properly loaded and displayed within your UI.
Listening to the callbacks
Declare this object in the class
StreamSubscription? _streamSubscription;
We are showing InterstitialAd here and also checking if ad has been shown.
If true, we are canceling the subscribed callbacks, if any.
Then, we are listening to the Stream and accessing the particular event we need
if (EasyAds.instance.showInterstitialAd()) {
// Canceling the last callback subscribed
_streamSubscription?.cancel();
// Listening to the callback from showInterstitialAd()
_streamSubscription =
EasyAds.instance.onEvent.listen((event) {
if (event.adUnitType == AdUnitType.interstitial &&
event.type == AdEventType.adDismissed) {
_streamSubscription?.cancel();
goToNextScreen(countryList[index]);
}
});
}