showAd abstract method

Widget showAd({
  1. required Map<String, dynamic> adData,
  2. double? height,
  3. double? width,
  4. String? adLabelText,
  5. Alignment? adLabelAlignment,
  6. void onAdClick(
    1. Map? adData,
    2. Map? clickedItemData,
    3. String? destinationUrl
    )?,
  7. void onViewAppeared(
    1. Map? adData,
    2. String? trackingId
    )?,
})

Creates a multi-ad carousel widget with the specified configuration.

adData - Required ad metadata to display the multi-ad carousel height - Optional height of the multi-ad carousel in logical pixels width - Optional width of the multi-ad carousel in logical pixels adLabelText - Optional label text displayed on the multi-ad carousel adLabelAlignment - Optional alignment for the label text onAdClick - Optional callback triggered when an ad is clicked onViewAppeared - Optional callback triggered when the ad appears

Returns a Widget that displays the multi-ad carousel

Implementation

Widget showAd({
  required Map<String, dynamic> adData,
  double? height,
  double? width,
  String? adLabelText,
  Alignment? adLabelAlignment,
  void Function(Map? adData, Map? clickedItemData, String? destinationUrl)?
      onAdClick,
  void Function(Map? adData, String? trackingId)? onViewAppeared,
});