FluidAdManagerBannerAd constructor

FluidAdManagerBannerAd({
  1. required String adUnitId,
  2. required AdManagerBannerAdListener listener,
  3. required AdManagerAdRequest request,
  4. OnFluidAdHeightChangedListener? onFluidAdHeightChangedListener,
})

Creates a FluidAdManagerBannerAd.

These ads dynamically change their height based on the width. Set onFluidAdHeightChangedListener to get notified of height updates.

Implementation

FluidAdManagerBannerAd({
  required String adUnitId,
  required AdManagerBannerAdListener listener,
  required AdManagerAdRequest request,
  this.onFluidAdHeightChangedListener,
}) : super(
        sizes: [FluidAdSize()],
        adUnitId: adUnitId,
        listener: listener,
        request: request,
      );