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 AdUnitConfigurationprotected BidLoaderprotected WeakReference<android.content.Context> protected PrebidMediationDelegateprotected OnFetchCompleteListener -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMediationBaseAdUnit(android.content.Context context, String configId, AdSize adSize, PrebidMediationDelegate mediationDelegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContextData(String key, String value) Deprecated.use addExtDatavoidaddContextKeyword(String keyword) Deprecated.use addExtKeywordvoidaddContextKeywords(Set<String> keywords) Deprecated.use addExtKeywordsvoidaddExtData(String key, String value) voidaddExtKeyword(String keyword) voidaddExtKeywords(Set<String> keywords) voidaddUserData(DataObject dataObject) Deprecated.voidDeprecated.use clearExtDatavoidDeprecated.use clearExtKeywordsvoidvoidvoidDeprecated.voiddestroy()protected voidfetchDemand(OnFetchCompleteListener listener) Deprecated.Deprecated.use getExtDataDictionaryDeprecated.use getExtKeywordsSetDeprecated.protected abstract voidinitAdConfig(String configId, AdSize adSize) protected voidprotected voidonErrorReceived(AdException exception) protected voidonResponseReceived(BidResponse response) voidremoveContextData(String key) Deprecated.use removeExtDatavoidremoveContextKeyword(String keyword) Deprecated.use removeExtKeywordvoidremoveExtData(String key) voidremoveExtKeyword(String keyword) voidsetAppContent(ContentObject content) Deprecated.voidsetImpOrtbConfig(String ortbConfig) Sets imp level OpenRTB config JSON string that will be merged with the original imp object in the bid request.voidsetOrtbConfig(String config) Deprecated, for removal: This API element is subject to removal in a future version.voidsetPbAdSlot(String adSlot) voidupdateContextData(String key, Set<String> value) Deprecated.use updateExtDatavoidupdateExtData(String key, Set<String> value)
-
Field Details
-
onFetchCompleteListener
-
contextWeakReference
-
adUnitConfig
-
mediationDelegate
-
bidLoader
-
-
Constructor Details
-
MediationBaseAdUnit
protected MediationBaseAdUnit(android.content.Context context, String configId, AdSize adSize, PrebidMediationDelegate mediationDelegate)
-
-
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
Deprecated.In the upcoming major release, the method will be removed. Please, use TargetingParams.setGlobalOrtbConfig method instead. -
getAppContent
Deprecated.In the upcoming major release, the method will be removed. Please, use TargetingParams.getGlobalOrtbConfig method instead. -
addUserData
Deprecated.In the upcoming major release, the method will be removed. Please, use TargetingParams.setGlobalOrtbConfig method instead. -
clearUserData
Deprecated.In the upcoming major release, the method will be removed. Please, use TargetingParams.setGlobalOrtbConfig method instead. -
getUserData
Deprecated.In the upcoming major release, the method will be removed. Please, use TargetingParams.getGlobalOrtbConfig method instead. -
destroy
public void destroy() -
initAdConfig
-
onResponseReceived
-
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.
-