public interface INativeAd
| Modifier and Type | Method and Description |
|---|---|
int |
getAdChoicesPlacement()
Retrieve current position for AdChoices icon
|
int |
getCachePolicy()
Retrieve current cachePolicy set previously
|
void |
handleData(java.lang.String data)
Loads data for s2s partners
|
void |
load()
Start loading ads.
|
void |
loadFromBid(java.lang.String bidId)
Start loading ad with the bidding ID
|
void |
registerView(android.view.View view)
Registration of the Advertising view.
|
void |
registerView(android.view.View view,
java.util.List<android.view.View> clickableViews)
Registration of the Advertising view.
|
void |
setAdChoicesPlacement(int adChoicesPlacement)
Sets the place for AdChoices icon, by default
used top-right position
|
void |
setCachePolicy(int cachePolicy)
By default, images and videos are preloaded.
|
void |
unregisterView()
View de-registration.
|
void setCachePolicy(int cachePolicy)
cachePolicy - cache policy needed CachePolicyint getCachePolicy()
CachePolicyint getAdChoicesPlacement()
AdChoicesPlacementvoid setAdChoicesPlacement(int adChoicesPlacement)
adChoicesPlacement - positionAdChoicesPlacementvoid load()
Ad listener should be added before this call
void loadFromBid(@NonNull
java.lang.String bidId)
bidId - bidding IDvoid registerView(@NonNull
android.view.View view,
@Nullable
java.util.List<android.view.View> clickableViews)
view - Advertising viewclickableViews - specific clickable views inside Advertising view. If set, the only
views in this list will be clickable. Otherwise, whole view will be
clickablevoid registerView(@NonNull
android.view.View view)
view - Advertising viewvoid unregisterView()
void handleData(@NonNull
java.lang.String data)
data - s2s data