pangle_global_flutter
Pangle Global Ads by flutter.
Project structure reference google_mobile_ads.
This is not an official plugin.
Support:
-
android:
- InterstitialAd
- AppOpenAd
-
ios:
- coming soon
Getting Started
1. initialize the sdk
PangleGlobalFlutter.instance.initialize("8025677");
2. star load ads
PAGInterstitialAd
PAGInterstitialAd.load(
adUnitId: "980088188",
adLoadCallback: PAGInterstitialAdLoadListener(
onError: (code, message) {
//todo ads load error
},
onAdLoaded: (ad) {
//todo adloaed,ready to show
}));
PAGAppOpenAd
PAGAppOpenAd.load(
adUnitId: "890000078",
adLoadCallback: PAGAppOpenAdLoadListener(
onError: (code, message) {
//todo ads load error
},
onAdLoaded: (ad) {
//todo adloaed,ready to show
}));
3. show
ad.show();