showHorizontalAd abstract method

Widget showHorizontalAd({
  1. required Map<String, dynamic> adData,
  2. NativeAdType? adType,
  3. required double width,
  4. double? height,
  5. String? adLabelText,
  6. Alignment? adLabelAlignment,
  7. Widget? customCtaView,
  8. Widget? customBadgeView,
  9. NativeAdStyle? customStyle,
  10. void onAdClick(
    1. Map
    )?,
  11. void onViewAppeared(
    1. Map,
    2. String
    )?,
})

Creates a horizontal native ad widget.

adData - Required ad metadata to display the native ad adType - Optional type of native ad (horizontal variant) width - Required width of the native ad in logical pixels height - Optional height of the native ad in logical pixels adLabelText - Optional label text displayed on the native ad adLabelAlignment - Optional Flutter Alignment for the label text customCtaView - Optional custom call-to-action view customBadgeView - Optional custom badge view customStyle - Optional custom styling for the native ad onAdClick - Optional callback triggered when the ad is clicked onViewAppeared - Optional callback triggered when the ad appears

Returns a Widget that displays the horizontal native advertisement

Implementation

Widget showHorizontalAd({
  required Map<String, dynamic> adData,
  NativeAdType? adType,
  required double width,
  double? height,
  String? adLabelText,
  Alignment? adLabelAlignment,
  Widget? customCtaView,
  Widget? customBadgeView,
  NativeAdStyle? customStyle,
  void Function(Map)? onAdClick,
  void Function(Map, String)? onViewAppeared,
});