Package org.prebid.mobile.api.mediation
Class MediationBaseAdUnit
java.lang.Object
org.prebid.mobile.api.mediation.MediationBaseAdUnit
- Direct Known Subclasses:
MediationBannerAdUnit
,MediationBaseFullScreenAdUnit
Internal base mediation ad unit.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AdUnitConfiguration
protected BidLoader
protected WeakReference<android.content.Context>
protected PrebidMediationDelegate
protected OnFetchCompleteListener
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MediationBaseAdUnit
(android.content.Context context, String configId, AdSize adSize, PrebidMediationDelegate mediationDelegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContextData
(String key, String value) Deprecated.use addExtDatavoid
addContextKeyword
(String keyword) Deprecated.use addExtKeywordvoid
addContextKeywords
(Set<String> keywords) Deprecated.use addExtKeywordsvoid
addExtData
(String key, String value) void
addExtKeyword
(String keyword) void
addExtKeywords
(Set<String> keywords) void
addUserData
(DataObject dataObject) void
Deprecated.use clearExtDatavoid
Deprecated.use clearExtKeywordsvoid
void
void
void
destroy()
protected void
fetchDemand
(OnFetchCompleteListener listener) Deprecated.use getExtDataDictionaryDeprecated.use getExtKeywordsSetprotected abstract void
initAdConfig
(String configId, AdSize adSize) protected void
protected void
onErrorReceived
(AdException exception) protected void
onResponseReceived
(BidResponse response) void
removeContextData
(String key) Deprecated.use removeExtDatavoid
removeContextKeyword
(String keyword) Deprecated.use removeExtKeywordvoid
removeExtData
(String key) void
removeExtKeyword
(String keyword) void
setAppContent
(ContentObject content) 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
setOrtbConfig
(String config) Deprecated, for removal: This API element is subject to removal in a future version.void
setPbAdSlot
(String adSlot) void
updateContextData
(String key, Set<String> value) Deprecated.use updateExtDatavoid
updateExtData
(String key, Set<String> value)
-
Field Details
-
onFetchCompleteListener
-
contextWeakReference
-
adUnitConfig
protected AdUnitConfiguration adUnitConfig -
mediationDelegate
protected PrebidMediationDelegate mediationDelegate -
bidLoader
protected BidLoader bidLoader
-
-
Constructor Details
-
MediationBaseAdUnit
-
-
Method Details
-
fetchDemand
-
addContextData
Deprecated.use addExtData -
updateContextData
Deprecated.use updateExtData -
removeContextData
Deprecated.use removeExtData -
clearContextData
Deprecated.use clearExtData -
getContextDataDictionary
Deprecated.use getExtDataDictionary -
addContextKeyword
Deprecated.use addExtKeyword -
addContextKeywords
Deprecated.use addExtKeywords -
removeContextKeyword
Deprecated.use removeExtKeyword -
getContextKeywordsSet
Deprecated.use getExtKeywordsSet -
clearContextKeywords
Deprecated.use clearExtKeywords -
addExtData
-
updateExtData
-
removeExtData
-
clearExtData
public void clearExtData() -
getExtDataDictionary
-
addExtKeyword
-
addExtKeywords
-
removeExtKeyword
-
getExtKeywordsSet
-
clearExtKeywords
public void clearExtKeywords() -
setPbAdSlot
-
getPbAdSlot
-
setAppContent
-
getAppContent
-
addUserData
-
clearUserData
public void clearUserData() -
getUserData
-
destroy
public void destroy() -
initAdConfig
-
onResponseReceived
protected void onResponseReceived(BidResponse response) -
onErrorReceived
-
initBidLoader
protected void initBidLoader() -
setOrtbConfig
Deprecated, for removal: This API element is subject to removal in a future version. -
getImpOrtbConfig
-
setImpOrtbConfig
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"}"
.- Parameters:
ortbConfig
- JSON config string.
-