Interface IAd
-
- All Implemented Interfaces:
public interface IAd
-
-
Method Summary
Modifier and Type Method Description abstract intgetAdChoicesPlacement()Retrieve current position for AdChoices icon abstract intgetCachePolicy()Retrieve current cachePolicy set previously abstract voidhandleData(@NonNull() String data)Loads data for s2s partners abstract voidload()Start loading ads. abstract voidloadFromBid(@NonNull() String bidId)Start loading ad with the bidding ID abstract voidregisterView(@NonNull() View view)Registration of the Advertising view. abstract voidregisterView(@NonNull() View view, @Nullable() List<View> clickableViews)Registration of the Advertising view. abstract voidsetAdChoicesPlacement(int adChoicesPlacement)Sets the place for AdChoices icon, by default used top-right position abstract voidsetCachePolicy(int cachePolicy)By default, images and videos are preloaded. abstract voidunregisterView()View de-registration. -
-
Method Detail
-
getAdChoicesPlacement
abstract int getAdChoicesPlacement()
Retrieve current position for AdChoices icon
- Returns:
current adChoicesPlacement Value is TOP_RIGHT, TOP_LEFT, BOTTOM_RIGHT, BOTTOM_LEFT, MANUAL, or DRAWING_MANUAL
-
getCachePolicy
abstract int getCachePolicy()
Retrieve current cachePolicy set previously
-
handleData
abstract void handleData(@NonNull() String data)
Loads data for s2s partners
- Parameters:
data- s2s data
-
load
abstract void load()
Start loading ads. In case of successful loading, the onLoad method will be called on the object passed as a listener, in case of loading error or if there is no advertisement to be shown - the onNoAd
Ad listener should be added before this call
-
loadFromBid
abstract void loadFromBid(@NonNull() String bidId)
Start loading ad with the bidding ID
- Parameters:
bidId- bidding ID
-
registerView
@Deprecated() abstract void registerView(@NonNull() View view)
Registration of the Advertising view. Must be called before showing the ad
- Parameters:
view- Advertising view
-
registerView
@Deprecated() abstract void registerView(@NonNull() View view, @Nullable() List<View> clickableViews)
Registration of the Advertising view. Must be called before showing the ad
- Parameters:
view- Advertising viewclickableViews- specific clickable views inside Advertising view.
-
setAdChoicesPlacement
abstract void setAdChoicesPlacement(int adChoicesPlacement)
Sets the place for AdChoices icon, by default used top-right position
- Parameters:
adChoicesPlacement- position Value is TOP_RIGHT, TOP_LEFT, BOTTOM_RIGHT, BOTTOM_LEFT, MANUAL, or DRAWING_MANUAL
-
setCachePolicy
abstract void setCachePolicy(int cachePolicy)
By default, images and videos are preloaded. You can turn off the automatic loading of images and videos, but keep in mind that downloading them will take extra time, which will create an additional delay in displaying ads in your application.
-
unregisterView
abstract void unregisterView()
View de-registration. Stops timers, frees resources. Must be called after view is no longer needed
-
-
-
-