showNativeAd static method
Future<String?>
showNativeAd(
- String adId,
- NativeAdDispatch adDispatch, {
- Callback? onAdImpression,
- Callback? onAdClicked,
- FailureCallback? onAdFailed,
- CloseCallback? onAdClosed,
Implementation
static Future<String?> showNativeAd(String adId, NativeAdDispatch adDispatch,
{Callback? onAdImpression,
Callback? onAdClicked,
FailureCallback? onAdFailed,
CloseCallback? onAdClosed}) {
NativeAdViewHolder.instance.registerAdView(adId, adDispatch);
return ShowPlatform.instance.showNativeAd(adId,
onAdImpression: onAdImpression,
onAdClicked: onAdClicked,
onAdClosed: onAdClosed,
onAdFailed: onAdFailed);
}