djalma_ads 0.2.8 copy "djalma_ads: ^0.2.8" to clipboard
djalma_ads: ^0.2.8 copied to clipboard

A package to help calling AdMob Ads.

djalma_ads #

Djalma Ads is a package to make easier the implementation of calling methods from firebase_admob.

How to use #

All needed methods are located in the class called Ads, all methods are static so you call them directly.

First you have to call Ads.init(), this method initialize Firebase AdMob, all parameters from this method are optional, if you don't pass any parameter, all IDs will be Test Ad Unit.

  await Ads.init(); // Normally called on main.dart

Before showing the ads for the first time it's necessary to load them except for banner. (I call them on main.dart)

  await Ads.loadInterstitial();
  await Ads.loadRewardedVideo();

After that you can call Ads.show... to show your ads.

  Ads.showBanner();
  Ads.showInterstitialAd();
  Ads.showRewarded();

getMargin #

Method to get the height of smart banner for different devices.

Container(margin: EsdgeInsets.only(bottom: getMargin(context)))
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

A package to help calling AdMob Ads.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

firebase_admob, flutter

More

Packages that depend on djalma_ads