UnityBannerAd constructor

const UnityBannerAd({
  1. Key? key,
  2. required String placementId,
  3. BannerSize size = BannerSize.standard,
  4. void onLoad(
    1. String placementId
    )?,
  5. void onClick(
    1. String placementId
    )?,
  6. void onShown(
    1. String placementId
    )?,
  7. void onFailed(
    1. String placementId,
    2. UnityAdsBannerError error,
    3. String errorMessage
    )?,
})

This widget is used to contain Banner Ads.

Implementation

const UnityBannerAd({
  Key? key,
  required this.placementId,
  this.size = BannerSize.standard,
  this.onLoad,
  this.onClick,
  this.onShown,
  this.onFailed,
}) : super(key: key);