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 TypeMethodDescriptionvoidloadNativeAd(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 consolerequest: optional targeting metadata, may be nullonSuccess: invoked with the loaded native adonError: invoked when loading fails
-