Package org.prebid.mobile
Class AdUnit
- java.lang.Object
-
- org.prebid.mobile.AdUnit
-
- Direct Known Subclasses:
BannerBaseAdUnit,NativeAdUnit,VideoBaseAdUnit
public abstract class AdUnit extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ObjectadObjectprotected booleanallowNullableAdObjectprotected BidLoaderbidLoaderprotected BidResponsebidResponseprotected AdUnitConfigurationconfiguration
-
Constructor Summary
Constructors Constructor Description AdUnit(java.lang.String configId)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddContextData(java.lang.String key, java.lang.String value)Deprecated.voidaddContextKeyword(java.lang.String keyword)Deprecated.Use addExtKeywordvoidaddContextKeywords(java.util.Set<java.lang.String> keywords)Deprecated.Use addExtKeywordsvoidaddExtData(java.lang.String key, java.lang.String value)This method obtains the context data keyword & value for adunit context targeting if the key already exists the value will be appended to the list.voidaddExtKeyword(java.lang.String keyword)This method obtains the context keyword for adunit context targeting Inserts the given element in the set if it is not already present.voidaddExtKeywords(java.util.Set<java.lang.String> keywords)This method obtains the context keyword set for adunit context targeting Adds the elements of the given set to the set.voidaddUserData(DataObject dataObject)voidclearContextData()Deprecated.voidclearContextKeywords()Deprecated.Use clearExtKeywordsvoidclearExtData()This method allows to remove all context data set from adunit context targetingvoidclearExtKeywords()This method allows to remove all keywords from the set of adunit context targetingvoidclearUserData()protected ResultCodeconvertToResultCode(AdException renderingException)protected BidRequesterListenercreateBidListener(OnCompleteListener originalListener)voiddestroy()voidfetchDemand(java.lang.Object adObj, OnCompleteListener listener)voidfetchDemand(OnFetchDemandResult listener)voidfetchDemand(OnCompleteListener2 listener)Deprecated.ContentObjectgetAppContent()AdUnitConfigurationgetConfiguration()java.lang.StringgetGpid()java.lang.StringgetPbAdSlot()java.util.ArrayList<DataObject>getUserData()voidremoveContextData(java.lang.String key)Deprecated.voidremoveContextKeyword(java.lang.String keyword)Deprecated.Use removeExtKeywordvoidremoveExtData(java.lang.String key)This method allows to remove specific context data keyword & values set from adunit context targetingvoidremoveExtKeyword(java.lang.String keyword)This method allows to remove specific context keyword from adunit context targetingvoidresumeAutoRefresh()voidsetAppContent(ContentObject content)This method obtains the content for adunit, content, in which impression will appearvoidsetAutoRefreshInterval(int seconds)voidsetAutoRefreshPeriodMillis(int periodMillis)Deprecated.Please use setAutoRefreshInterval() in seconds!voidsetGpid(java.lang.String gpid)voidsetPbAdSlot(java.lang.String pbAdSlot)voidstopAutoRefresh()voidupdateContextData(java.lang.String key, java.util.Set<java.lang.String> value)Deprecated.voidupdateExtData(java.lang.String key, java.util.Set<java.lang.String> value)This method obtains the context data keyword & values for adunit context targeting the values if the key already exist will be replaced with the new set of values
-
-
-
Field Detail
-
configuration
protected AdUnitConfiguration configuration
-
bidLoader
protected BidLoader bidLoader
-
adObject
protected java.lang.Object adObject
-
bidResponse
protected BidResponse bidResponse
-
allowNullableAdObject
protected boolean allowNullableAdObject
-
-
Method Detail
-
setAutoRefreshPeriodMillis
@Deprecated public void setAutoRefreshPeriodMillis(int periodMillis)
Deprecated.Please use setAutoRefreshInterval() in seconds!
-
setAutoRefreshInterval
public void setAutoRefreshInterval(int seconds)
-
resumeAutoRefresh
public void resumeAutoRefresh()
-
stopAutoRefresh
public void stopAutoRefresh()
-
destroy
public void destroy()
-
fetchDemand
@Deprecated public void fetchDemand(OnCompleteListener2 listener)
Deprecated.
-
fetchDemand
public void fetchDemand(java.lang.Object adObj, OnCompleteListener listener)
-
fetchDemand
public void fetchDemand(OnFetchDemandResult listener)
-
addContextData
@Deprecated public void addContextData(java.lang.String key, java.lang.String value)Deprecated.This method obtains the context data keyword & value for adunit context targeting if the key already exists the value will be appended to the list. No duplicates will be added
-
updateContextData
@Deprecated public void updateContextData(java.lang.String key, java.util.Set<java.lang.String> value)Deprecated.This method obtains the context data keyword & values for adunit context targeting the values if the key already exist will be replaced with the new set of values
-
removeContextData
@Deprecated public void removeContextData(java.lang.String key)
Deprecated.This method allows to remove specific context data keyword & values set from adunit context targeting
-
clearContextData
@Deprecated public void clearContextData()
Deprecated.This method allows to remove all context data set from adunit context targeting
-
addExtData
public void addExtData(java.lang.String key, java.lang.String value)This method obtains the context data keyword & value for adunit context targeting if the key already exists the value will be appended to the list. No duplicates will be added
-
updateExtData
public void updateExtData(java.lang.String key, java.util.Set<java.lang.String> value)This method obtains the context data keyword & values for adunit context targeting the values if the key already exist will be replaced with the new set of values
-
removeExtData
public void removeExtData(java.lang.String key)
This method allows to remove specific context data keyword & values set from adunit context targeting
-
clearExtData
public void clearExtData()
This method allows to remove all context data set from adunit context targeting
-
addContextKeyword
@Deprecated public void addContextKeyword(java.lang.String keyword)
Deprecated.Use addExtKeywordThis method obtains the context keyword for adunit context targeting Inserts the given element in the set if it is not already present.
-
addContextKeywords
@Deprecated public void addContextKeywords(java.util.Set<java.lang.String> keywords)
Deprecated.Use addExtKeywordsThis method obtains the context keyword set for adunit context targeting Adds the elements of the given set to the set.
-
removeContextKeyword
@Deprecated public void removeContextKeyword(java.lang.String keyword)
Deprecated.Use removeExtKeywordThis method allows to remove specific context keyword from adunit context targeting
-
clearContextKeywords
@Deprecated public void clearContextKeywords()
Deprecated.Use clearExtKeywordsThis method allows to remove all keywords from the set of adunit context targeting
-
addExtKeyword
public void addExtKeyword(java.lang.String keyword)
This method obtains the context keyword for adunit context targeting Inserts the given element in the set if it is not already present.
-
addExtKeywords
public void addExtKeywords(java.util.Set<java.lang.String> keywords)
This method obtains the context keyword set for adunit context targeting Adds the elements of the given set to the set.
-
removeExtKeyword
public void removeExtKeyword(java.lang.String keyword)
This method allows to remove specific context keyword from adunit context targeting
-
clearExtKeywords
public void clearExtKeywords()
This method allows to remove all keywords from the set of adunit context targeting
-
setAppContent
public void setAppContent(ContentObject content)
This method obtains the content for adunit, content, in which impression will appear
-
getAppContent
public ContentObject getAppContent()
-
addUserData
public void addUserData(DataObject dataObject)
-
getUserData
public java.util.ArrayList<DataObject> getUserData()
-
clearUserData
public void clearUserData()
-
getPbAdSlot
public java.lang.String getPbAdSlot()
-
setPbAdSlot
public void setPbAdSlot(java.lang.String pbAdSlot)
-
getGpid
public java.lang.String getGpid()
-
setGpid
public void setGpid(java.lang.String gpid)
-
createBidListener
protected BidRequesterListener createBidListener(OnCompleteListener originalListener)
-
convertToResultCode
protected ResultCode convertToResultCode(AdException renderingException)
-
getConfiguration
public AdUnitConfiguration getConfiguration()
-
-