public abstract class AdUnit
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addContent(ContentObject content)
This method obtains the content for adunit, content, in which impression will appear
|
void |
addContextData(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.
|
void |
addContextKeyword(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.
|
void |
addContextKeywords(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.
|
void |
clearContextData()
This method allows to remove all context data set from adunit context targeting
|
void |
clearContextKeywords()
This method allows to remove all keywords from the set of adunit context targeting
|
void |
fetchDemand(java.lang.Object adObj,
OnCompleteListener listener) |
void |
fetchDemand(OnCompleteListener2 listener) |
java.lang.String |
getPbAdSlot() |
void |
removeContextData(java.lang.String key)
This method allows to remove specific context data keyword & values set from adunit context targeting
|
void |
removeContextKeyword(java.lang.String keyword)
This method allows to remove specific context keyword from adunit context targeting
|
void |
resumeAutoRefresh() |
void |
setAutoRefreshPeriodMillis(int periodMillis) |
void |
setPbAdSlot(java.lang.String pbAdSlot) |
void |
stopAutoRefresh() |
void |
updateContextData(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
|
public void setAutoRefreshPeriodMillis(int periodMillis)
public void resumeAutoRefresh()
public void stopAutoRefresh()
public void fetchDemand(@NonNull
OnCompleteListener2 listener)
public void fetchDemand(@NonNull
java.lang.Object adObj,
@NonNull
OnCompleteListener listener)
public void addContextData(java.lang.String key,
java.lang.String value)
public void updateContextData(java.lang.String key,
java.util.Set<java.lang.String> value)
public void removeContextData(java.lang.String key)
public void clearContextData()
public void addContextKeyword(java.lang.String keyword)
public void addContextKeywords(java.util.Set<java.lang.String> keywords)
public void addContent(ContentObject content)
public void removeContextKeyword(java.lang.String keyword)
public void clearContextKeywords()
public java.lang.String getPbAdSlot()
public void setPbAdSlot(java.lang.String pbAdSlot)