搜索插件、代码仓与 APP 分类

插件详情v0.6.12

vungle

Vungle 插件用于 Flutter 应用程序,以在 iOS 和 Android 上实现广告变现。

AndroidiOS
近 30 天下载
28
喜欢数
19
Pub 分数
130

安装插件

flutter pub add vungle

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Vungle Flutter 插件可为 Android 和 iOS 平台上的移动应用实现广告变现。它与 Flutter 应用无缝集成,使开发者能够展示视频和激励广告以产生收入。该插件支持原生广告格式,并提供管理广告请求、跟踪性能和优化用户参与度的工具。通过 pub.dev 进行简单设置,专为寻求可靠、跨平台广告集成的开发者设计。开源代码可在 GitHub 上获取,确保透明度并支持自定义。

适合场景

  • 移动游戏变现
  • 在应用中显示视频广告
  • 奖励用户应用内内容
  • 集成原生广告格式
  • 跟踪广告表现
  • 跨平台广告投放

主要特点

  • 跨平台支持(iOS 和 Android)
  • 视频和激励广告集成
  • 原生广告格式支持
  • 性能分析
  • 轻松集成 pub.dev
  • GitHub 上的开源代码

适合对象

  • Flutter 开发者
  • 移动游戏发行商
  • 寻求广告收入的应用程序
  • 使用 Vungle SDK 的开发者
  • 需要原生广告体验的项目
  • 希望获得透明、可定制解决方案的团队

使用建议

  • 需要设置 Vungle 账户
  • 需要广告频率管理
  • 对用户体验的潜在影响
  • 依赖网络连接
  • 遵守广告政策
  • 发布到生产环境前需要测试

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

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).
}

所属分类

源码仓库

使用此插件的项目

暂无相关数据。