pangle_global_flutter 0.1.0 pangle_global_flutter: ^0.1.0 copied to clipboard
Pangle global for flutter.(Beta)
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();