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 enum
Context type for native request.static enum
Context subtype for native request.static enum
Placement type for native request. -
Field Summary
FieldsFields inherited from class org.prebid.mobile.AdUnit
adObject, allowNullableAdObject, bidLoader, bidResponse, configuration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAsset
(NativeAsset asset) void
addEventTracker
(NativeEventTracker tracker) protected BidRequesterListener
createBidListener
(OnCompleteListener originalListener) NativeAdUnitConfiguration
void
setAUrlSupport
(boolean support) void
void
void
setDUrlSupport
(boolean support) void
void
setImpOrtbConfig
(String ortbConfig) Sets imp level OpenRTB config JSON string that will be merged with the original imp object in the bid request.void
setPlacementCount
(int placementCount) void
setPlacementType
(NativeAdUnit.PLACEMENTTYPE placementType) void
setPrivacy
(boolean privacy) void
setSeq
(int seq) Methods inherited from class org.prebid.mobile.AdUnit
addContextData, addContextKeyword, addContextKeywords, addExtData, addExtKeyword, addExtKeywords, addUserData, clearContextData, clearContextKeywords, clearExtData, clearExtKeywords, clearUserData, convertToResultCode, destroy, fetchDemand, fetchDemand, fetchDemand, getAppContent, getConfiguration, getGpid, getPbAdSlot, getUserData, removeContextData, removeContextKeyword, removeExtData, removeExtKeyword, resumeAutoRefresh, setAppContent, setAutoRefreshInterval, setAutoRefreshPeriodMillis, setGpid, setOrtbConfig, setPbAdSlot, stopAutoRefresh, updateContextData, updateExtData
-
Field Details
-
BUNDLE_KEY_CACHE_ID
Internal key for caching native ad.- See Also:
-
-
Constructor Details
-
NativeAdUnit
Default constructor.
-
-
Method Details
-
createBidListener
- Overrides:
createBidListener
in 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:
getImpOrtbConfig
in classAdUnit
-
setImpOrtbConfig
Description copied from class:AdUnit
Sets 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:
setImpOrtbConfig
in classAdUnit
- Parameters:
ortbConfig
- JSON config string.
-