# Interface NativeAdProvider

public interface NativeAdProvider
Optional capability interface implemented by an `AdProvider` that supports native ads. The base `AdProvider` does not require native ad support, so a provider opts in by additionally implementing this interface; `NativeAdLoader` checks for it at runtime.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `loadNativeAd(String adUnitId, AdRequest request, AdCallback<NativeAd> onSuccess, AdCallback<AdError> onError)`
  Loads a native ad.

- ## Method Details

  - ### loadNativeAd

    void loadNativeAd(String adUnitId, AdRequest request, AdCallback<NativeAd> onSuccess, AdCallback<AdError> onError)

    Loads a native ad. Exactly one of the callbacks is invoked.

    ###### Parameters

    - `adUnitId`: the ad unit identifier from the network console
    - `request`: optional targeting metadata, may be null
    - `onSuccess`: invoked with the loaded native ad
    - `onError`: invoked when loading fails