Search packages, repositories and app categories

Package detailsv0.6.12

vungle

The Vungle plugin for Flutter applications to enable ad monetization across iOS and Android.

AndroidiOS
30-day downloads
28
Likes
19
Pub points
130

Install package

flutter pub add vungle

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The Vungle Flutter plugin enables ad monetization for mobile applications on both Android and iOS platforms. It integrates seamlessly with Flutter apps, allowing developers to display video and rewarded ads to generate revenue. The plugin supports native ad formats and provides tools for managing ad requests, tracking performance, and optimizing user engagement. With a straightforward setup via pub.dev, it's designed for developers seeking reliable, cross-platform ad integration. The open-source code is available on GitHub for transparency and customization.

Use cases

  • Monetizing mobile games
  • Displaying video ads in apps
  • Rewarding users with in-app content
  • Integrating native ad formats
  • Tracking ad performance
  • Cross-platform ad deployment

Key features

  • Cross-platform support (iOS & Android)
  • Video and rewarded ad integration
  • Native ad format support
  • Performance analytics
  • Easy pub.dev integration
  • Open-source code on GitHub

Suitable for

  • Flutter developers
  • Mobile game publishers
  • Apps seeking ad revenue
  • Developers using Vungle SDK
  • Projects requiring native ad experiences
  • Teams wanting transparent, customizable solutions

Considerations

  • Requires Vungle account setup
  • Ad frequency management needed
  • Potential impact on user experience
  • Depends on network connectivity
  • Compliance with ad policies
  • Testing required before production release

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

vungle

A plugin for Flutter that supports loading and displaying interstitial and rewarded video ads using the Vungle SDK API.

Note: This plugin is in beta, and may still have a few issues and missing APIs. Feedback and Pull Requests are welcome.

Getting Started

Please go to the Vungle website to create account for your apps at first. You need add your apps there and you will get the app id and placement ids, then use this plugin in your flutter app to do the monetization.

Initialize the plugin
if (Platfrom.isAndroid) {
  Vungle.init('[vungle_android_app_id]');
} else {
  // for iOS
  Vungle.init('[vungle_ios_app_id]');
}

// You need wait until the plugin initialized to load and show ads
Vungle.onInitializeListener = () {
  // The plugin initialized, can load ads for now
}

Load Interstitial or rewarded video ads
Vungle.loadAd('[vungle_placement_id]');

// To know if the ad loaded
Vungle.onAdPlayableListener = (placementId, playable) {
  if(playable) {
    // The ad has been loaded, could play it for now.
  }
}
Play Interstitial or rewarded video ads
if(Vungle.isAdPlayable('[your_placement_id]') {
  Vungle.playAd(placementId);
}

Vungle.onAdStartedListener = (placementId) {
  // Ad started to play
}

// Deprecated. Please use OnAdEndListener
Vungle.onAdFinishedListener = (placementId, isCTAClicked, isCompletedView) {
  // Ad finished to play
  // isCTAClicked - User has clicked the `download` button
  // isCompletedView - User has viewed the video ad completely
  
}

Vungle.OnAdEndListener = (placementId) {
  // If implemented, this method gets called when a Vungle Ad Unit has been completely dismissed.
}

Vungle.OnAdViewedListener = (placementId) {
  // If implemented, this will be called when the ad is first rendered for the specified placement.
}

Vungle.OnAdClickedListener = (placementId) {
  // If implemented, this method gets called when user clicks the Vungle Ad.
}

Vungle.OnAdRewardedListener = (placementId) {
  // This method is called when the user should be rewarded for watching a Rewarded Video Ad.
  // At this point, it's recommended to reward the user.
}

Vungle.OnAdLeftApplicationListener = (placementId) {
  // If implemented, this method gets called when user taps the Vungle Ad
  // which will cause them to leave the current application(e.g. the ad action
  // opens the iTunes store, Mobile Safari, etc).
}

Categories

Source repository

Projects using this package

No data available yet.