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 TypeMethodDescriptionvoiddestroy()protected voidfetchDemand(OnFetchCompleteListener listener) protected abstract voidinitAdConfig(String configId, AdSize adSize) protected voidprotected voidonErrorReceived(AdException exception) protected voidonResponseReceived(BidResponse response) voidsetGlobalOrtbConfig(String ortbConfig) Sets the global OpenRTB configuration string for the ad unit.voidsetImpOrtbConfig(String ortbConfig) Sets imp level OpenRTB config JSON string that will be merged with the original imp object in the bid request.voidsetPbAdSlot(String adSlot)
-
Field Details
-
onFetchCompleteListener
-
contextWeakReference
-
adUnitConfig
protected AdUnitConfiguration adUnitConfig -
mediationDelegate
protected PrebidMediationDelegate mediationDelegate -
bidLoader
protected BidLoader bidLoader
-
-
Constructor Details
-
MediationBaseAdUnit
-
-
Method Details
-
fetchDemand
-
setPbAdSlot
-
getPbAdSlot
-
destroy
public void destroy() -
initAdConfig
-
onResponseReceived
protected void onResponseReceived(BidResponse response) -
onErrorReceived
-
initBidLoader
protected void initBidLoader() -
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.
-
getGlobalOrtbConfig
-
setGlobalOrtbConfig
Sets the global OpenRTB configuration string for the ad unit. It takes precedence over `Targeting.setGlobalOrtbConfig`. Expected format:"{"new_field": "value"}".- Parameters:
ortbConfig- The global OpenRTB JSON configuration string to set. Can be `null` to clear the configuration.
-