showNativeAd method
Shows a previously loaded native ad.
nativeAdId - The unique ID of the native ad to show.
Returns true if the native ad is shown successfully, false otherwise.
Implementation
Future<bool> showNativeAd(String nativeAdId) async {
try {
final result = await _channel.invokeMethod<bool>(
'showNativeAd',
{'nativeAdId': nativeAdId},
);
return result ?? false;
} catch (e) {
debugPrint('Error showing native ad: $e');
return false;
}
}