showAd abstract method
Creates a carousel ad widget with the specified configuration.
adData - Required ad metadata to display the carousel ad
height - Optional height of the carousel ad in logical pixels
width - Optional width of the carousel ad in logical pixels
adLabelText - Optional label text displayed on the carousel ad
adLabelAlignment - Optional alignment for the label text
onAdClick - Optional callback triggered when an ad item is clicked
onViewAppeared - Optional callback triggered when the ad appears
Returns a Widget that displays the carousel advertisement
Implementation
Widget showAd({
required Map<String, dynamic> adData,
double? height,
double? width,
String? adLabelText,
Alignment? adLabelAlignment,
void Function(Map? adData)? onAdClick,
void Function(Map? adData, String? trackId)? onViewAppeared,
});