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

outdated

A package to help calling Ad methods.

djalma_ads #

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

How to use #

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

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 testAdunit.

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

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

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

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

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

Native Ads #

For native ads please check the example (native_ad_screen.dart) to understand how native ads works, the widget you'll need to call is

getNativeAdmobBannerView()

App Open Ads #

Testing Flutter brigde to support App Open Beta, it uses the package flutter_admob_app_open. (Not available yet)