showBannerAd static method

Future<String?> showBannerAd(
  1. String adId, {
  2. BannerPosition bannerPosition = BannerPosition.top,
  3. Callback? onAdImpression,
  4. Callback? onAdClicked,
  5. Callback? onAdRewarded,
  6. FailureCallback? onAdFailed,
  7. CloseCallback? onAdClosed,
})

Implementation

static Future<String?> showBannerAd(String adId,
    {BannerPosition bannerPosition = BannerPosition.top,
    Callback? onAdImpression,
    Callback? onAdClicked,
    Callback? onAdRewarded,
    FailureCallback? onAdFailed,
    CloseCallback? onAdClosed}) {
  return ShowPlatform.instance.showBannerAd(adId, bannerPosition,
      onAdImpression: onAdImpression,
      onAdClicked: onAdClicked,
      onAdClosed: onAdClosed,
      onAdFailed: onAdFailed);
}