GitHub 저장소nathanael540/admanager_web

admanager_web

Flutter Web에서 AdManager 광고를 표시하기 위한 간단한 플러그인

admanager_web 프로젝트 이미지
스타
15
포크
5
최근 푸시(UTC)
2025. 5. 4.
프로젝트 상태
활성

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

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.

Nathanael Ferreira GitHub avatar
GitHub 작성자

Nathanael Ferreira ↗

Solion TecMinas Gerais, Brasil공식 웹사이트 ↗
언어DartJavaScriptHTML

분류

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 5 개

프로젝트에 맞는 저장소를 선택하려면?

사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.

  1. 이름, 작성자 또는 설명으로 검색하고 기술 주제로 범위를 좁힙니다.
  2. 스타, 포크, 최근 푸시를 함께 비교하세요. 스타는 관심의 지표이며 품질을 보장하지 않습니다.
  3. 사용하기 전에 GitHub에서 README, 라이선스, Issues를 확인하세요.

출처 및 관리

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗