showAd abstract method
Displays a slider ad with the specified configuration.
context - Required BuildContext for calculating dimensions
adData - Required ad metadata to display the slider ad
width - Optional width of the slider ad view in pixels
height - Optional height of the slider ad view in pixels
x - Optional X-axis coordinate for ad positioning
y - Optional Y-axis coordinate for ad positioning
onAdClicked - Optional callback triggered when the ad is clicked
onAdAppeared - Optional callback triggered when the ad appears
Returns a Future that completes when the ad is displayed
Implementation
Future<void>? showAd({
required BuildContext context,
required Map<String, dynamic> adData,
int? width,
int? height,
int? x,
int? y,
void Function(Map? ad)? onAdClicked,
void Function(Map? ad, String? trackingId)? onAdAppeared,
});