djalma_ads

Creator: coderz1093

Last updated:

0 purchases

djalma_ads Image
djalma_ads Images

Languages

Categories

Add to Cart

Description:

djalma 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
copied to clipboard
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();
copied to clipboard
After that you can call Ads.show... to show your ads.
Ads.showBanner();
Ads.showInterstitialAd();
Ads.showRewarded();
copied to clipboard
getMargin #
Method to get the height of smart banner for different devices.
Container(margin: EsdgeInsets.only(bottom: getMargin(context)))
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.