搜尋套件、儲存庫與 APP 分類

套件詳情v0.0.5

admanager_web

一個簡單的套件,可讓我們在 Flutter Web 中顯示 Ad Manager 的廣告。此套件主要用於在 Flutter Web 上顯示 AdSense 廣告。

AndroidiOSmacOSWindowsLinux
近 30 天下載
149
喜歡數
31
Pub 分數
140

安裝套件

flutter pub add admanager_web

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個簡單的 Flutter 套件,用於在 Flutter Web 上顯示 Ad Manager 廣告,專門設計用於整合 Google AdSense 廣告。它提供了一種直接的方式,在 Flutter 應用中呈現和管理基於網路的廣告,讓開發者能以最少的設定來 monetize 他們的網頁應用。此套件專為 Web 平台設計,支援與現有 Ad Manager 設定的無縫整合。

適用情境

  • monetizing Flutter web applications
  • 在網頁應用中顯示AdSense廣告
  • 在網頁上整合 Ad Manager 橫幅
  • 在網頁UI中嵌入響應式廣告單元
  • 在Web Flutter應用中投放定向廣告

主要特色

  • 與Ad Manager的輕鬆整合
  • AdSense 廣告支援
  • 響應式廣告渲染
  • 最小設定需求
  • 僅限網路的廣告投放

適合對象

  • 尋求變現的Flutter網頁開發者
  • 面向桌面網絡用戶的應用
  • 使用AdSense獲取收入的專案
  • 希望實現簡單廣告的開發者
  • 面向網路的 Flutter 應用

使用建議

  • 僅限網頁平台
  • 需要廣告管理器帳戶設定
  • 依賴外部廣告網絡的可用性
  • 不相容移動平台
  • 可能需要遵守廣告政策

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

AdManager Web Flutter

Simple package that allow us display ads from Ad Manager in Flutter Web. This was primarily created to display Adsense ads on Flutter Web.

Features

  • Request ad from Ad Manager Network
  • Can run Adsense ad in a Flutter Web App

Usage

Add admanager_web as a dependency in your pubspec.yaml file.

Import the packeage:

import 'package:admanager_web/admanager_web.dart';

Initialize our plugin to load all JS things (Need be called before the first ad request):

AdManagerWeb.init();

Just add the AdBlock widget to show the ad where you like:

[...]
 AdBlock(
     size: [AdBlockSize.largeRectangle],
     adUnitId: "/6355419/Travel/Europe",
 )
[...]

Load Rewarded Ad:

[...]
 AdRewarded().load(
    adUnitId: '/22639388115/rewarded_web_example',
    onAdLoaded: (){},
 )
[...]

Show Rewarded Ad:

[...]
 AdRewarded().show(
    onAdClosed: (){},
    onGranted: (int amount){},
 );
[...]

Additional information

For more performance add the GPT.js Library directly in your head in index.html file:

<script
  async
  src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"
></script>

This package was made in order to show Google Adsense ads on Flutter Web in a simple way. Its still in its infancy, and any help to make it better and more efficient will be appreciated.

Made with ♥ from Brazil 🇧🇷

It was made in Brazil by Nathanael Ferreira.

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。