public interface NativeAdUnit
NativeAdUnitView with native ad unit content,| Modifier and Type | Method and Description |
|---|---|
void |
bindAdUnit(NativeAdUnitView adUnitView)
Bind adUnitView with
NativeAdUnit asset's value. |
java.util.List<? extends NativeGenericAd> |
getNativeAds()
Ads which should be displayed in ad unit.
|
java.lang.String |
getSponsored()
Returns sponsored text.
|
void |
setAdEventListener(NativeAdEventListener eventListener)
Sets an
NativeAdEventListener. |
void |
shouldOpenLinksInApp(boolean shouldOpenLinksInApp)
Sets whether web links are opened by in-app browser or by third-party browsers.
|
void bindAdUnit(@Nullable
NativeAdUnitView adUnitView)
throws NativeAdException
NativeAdUnit asset's value.adUnitView - Root ad unit view, superview for sponsored asset and each ad view. If null, does nothing.NativeAdException - If attempt to bind ad to view without providing view for any of required assets.java.util.List<? extends NativeGenericAd> getNativeAds()
List.java.lang.String getSponsored()
void setAdEventListener(NativeAdEventListener eventListener)
NativeAdEventListener.eventListener - NativeAdEventListener.void shouldOpenLinksInApp(boolean shouldOpenLinksInApp)
shouldOpenLinksInApp - If set to true, web links are opened by in-app browser,
otherwise by third-party browsers. Default param is false.