Package org.prebid.mobile
Class NativeAdUnit
java.lang.Object
org.prebid.mobile.AdUnit
org.prebid.mobile.NativeAdUnit
Original API native ad unit.
For details of the configuration of native imps, please check this documentation:
https://www.iab.com/wp-content/uploads/2018/03/OpenRTB-Native-Ads-Specification-Final-1.2.pdf
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumContext type for native request.static enumContext subtype for native request.static enumPlacement type for native request. -
Field Summary
FieldsFields inherited from class org.prebid.mobile.AdUnit
activateInterstitialPrebidImpressionTracker, adObject, adViewReference, allowNullableAdObject, bidLoader, bidResponse, configuration, visibilityMonitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAsset(NativeAsset asset) voidaddEventTracker(NativeEventTracker tracker) protected BidRequesterListenercreateBidListener(OnCompleteListener originalListener) NativeAdUnitConfigurationvoidsetAUrlSupport(boolean support) voidvoidvoidsetDUrlSupport(boolean support) voidvoidsetImpOrtbConfig(String ortbConfig) Sets imp level OpenRTB config JSON string that will be merged with the original imp object in the bid request.voidsetPlacementCount(int placementCount) voidsetPlacementType(NativeAdUnit.PLACEMENTTYPE placementType) voidsetPrivacy(boolean privacy) voidsetSeq(int seq) Methods inherited from class org.prebid.mobile.AdUnit
activatePrebidImpressionTracker, convertToResultCode, destroy, fetchDemand, fetchDemand, getConfiguration, getGpid, getPbAdSlot, resumeAutoRefresh, setAutoRefreshInterval, setGpid, setPbAdSlot, stopAutoRefresh
-
Field Details
-
BUNDLE_KEY_CACHE_ID
Internal key for caching native ad.- See Also:
-
-
Constructor Details
-
NativeAdUnit
Default constructor.
-
-
Method Details
-
createBidListener
- Overrides:
createBidListenerin classAdUnit
-
setContextType
-
setContextSubType
-
setPlacementType
-
setPlacementCount
public void setPlacementCount(int placementCount) -
setSeq
public void setSeq(int seq) -
setAUrlSupport
public void setAUrlSupport(boolean support) -
setDUrlSupport
public void setDUrlSupport(boolean support) -
setPrivacy
public void setPrivacy(boolean privacy) -
setExt
-
addEventTracker
-
addAsset
-
getNativeConfiguration
public NativeAdUnitConfiguration getNativeConfiguration() -
getImpOrtbConfig
- Overrides:
getImpOrtbConfigin classAdUnit
-
setImpOrtbConfig
Description copied from class:AdUnitSets imp level OpenRTB config JSON string that will be merged with the original imp object in the bid request. Expected format:"{"new_field": "value"}".- Overrides:
setImpOrtbConfigin classAdUnit- Parameters:
ortbConfig- JSON config string.
-