hosted_ad_banner 0.1.1
hosted_ad_banner: ^0.1.1 copied to clipboard
A Flutter package that implements ad banner widget for self hosted ads
Hosted Ad Banner #
A Flutter package that implements ad banner widget for self hosted ads
Our top sponsors #
Check out these amazing sponsors that support my work!
Invertase |
Installation 💻 #
❗ In order to start using Hosted Ad Banner you must have the Flutter SDK installed on your machine.
Install via flutter pub add:
dart pub add hosted_ad_banner
Motivation #
To add ads to a mobile application, your application needs to be published in the store so AdMob can verify your app and review it.
This means that during a time, your app will not be able to show ads.
Releasing an app that is marketed as "contains ad" but not having any for a moment, and then adding them afterwards might lead to a confusing and weird experience to users.
To address that, this package provides a widget that can show ads from a self hosted source, which can be used while that review process is under way.
Additionally, this package can be used as simple solution for apps that want to show ads about their own content, services or products.
How to use #
HostedAdBanner(
hostedAdds: const [
HostedAdd(
targetUrl: 'http://g4me.info/mine',
imageUrls: [
'https://cherrybitstudio.wordpress.com/wp-content/uploads/2025/10/mco-2.png',
],
),
HostedAdd(
targetUrl: 'http://g4me.info/doug',
imageUrls: [
'https://cherrybitstudio.wordpress.com/wp-content/uploads/2025/10/gd-1.png',
],
),
],
width: MediaQuery.sizeOf(context).width,
height: 100,
),