applovin 1.0.3 copy "applovin: ^1.0.3" to clipboard
applovin: ^1.0.3 copied to clipboard

discontinued

plugin ad network applovin

AppLovin #

Note: Currently only Android platform is supported.

Note: only show interstitial and video rewarded ads.

Getting Started #

  1. Initialization

Call Applovin.init(); during app initialization.

  Applovin.init();

Add inside the <application> tag

<meta-data android:name="applovin.sdk.key"
    android:value="xxxx"  />

2. Request Interstitial Ad and Rewarded Video Ad #

AppLovin.requestInterstitial((AppLovinAdListener event) => listener(event, false), interstitial: true)

3. Show Interstitial Ad and Rewarded Video Ad #

listener(AppLovinAdListener event){
    if(event == AppLovinAdListener.adReceived) AppLovin.showInterstitial(interstitial: true);
  }

4. Show Banner Widget #

BannerView((AppLovinAdListener event) => print(event), BannerAdSize.banner),
BannerView((AppLovinAdListener event) => print(event), BannerAdSize.mrec),
BannerView((AppLovinAdListener event) => print(event), BannerAdSize.leader),

true for interstitial false for Rewarded

Events #

enum AppLovinAdListener {
  adReceived,
  failedToReceiveAd,
  adDisplayed,
  adHidden,
  adClicked,
  adOpenedFullscreen,
  adClosedFullscreen,
  adLeftApplication,
  adFailedToDisplay
}

Banners Sizes #

enum BannerAdSize {
  banner,
  mrec,
  leader,
}

Future Work #

Implement for iOS platform, NativeAds.

19
likes
30
pub points
21%
popularity

Publisher

unverified uploader

plugin ad network applovin

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on applovin