Search packages, repositories and app categories

Package detailsv0.0.5

admanager_web

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

AndroidiOSmacOSWindowsLinux
30-day downloads
191
Likes
31
Pub points
140

Install package

flutter pub add admanager_web

Package Overview

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

A simple Flutter package for displaying Ad Manager ads on Flutter Web, specifically designed to integrate Google AdSense ads. It provides a straightforward way to serve and manage web-based advertisements within Flutter applications, enabling developers to monetize their web apps with minimal setup. The package is tailored for web platforms and supports seamless integration with existing Ad Manager configurations.

Use cases

  • Monetizing Flutter web applications
  • Displaying AdSense ads in web apps
  • Integrating Ad Manager banners on web
  • Embedding responsive ad units in web UI
  • Serving targeted ads in web Flutter apps

Key features

  • Easy integration with Ad Manager
  • Support for AdSense ads
  • Responsive ad rendering
  • Minimal configuration required
  • Web-only ad serving

Suitable for

  • Flutter web developers seeking monetization
  • Apps targeting desktop web users
  • Projects using AdSense for revenue
  • Developers wanting simple ad implementation
  • Web-focused Flutter applications

Considerations

  • Limited to web platform only
  • Requires Ad Manager account setup
  • Depends on external ad network availability
  • Not compatible with mobile platforms
  • May require compliance with ad policies

Original README

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

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.

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.