showNativeAd static method

Future<String?> showNativeAd(
  1. String adId,
  2. NativeAdDispatch adDispatch, {
  3. Callback? onAdImpression,
  4. Callback? onAdClicked,
  5. FailureCallback? onAdFailed,
  6. 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);
}