搜尋套件、儲存庫與 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).
}

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。