Interface InfeedBannerPlacement
-
- All Implemented Interfaces:
-
com.intentsoftware.addapptr.Placement
public interface InfeedBannerPlacement implements Placement
Placement used for obtaining banner ads.
-
-
Method Summary
Modifier and Type Method Description abstract UnitrequestAd(BannerRequest request, BannerRequestCompletionListener listener)Requests a new banner ad. abstract Unitcancel(BannerRequest request)Cancels the given banner request. abstract UnitcountAdSpace()Counts the adspace for statistics. abstract UnitenableCreativeHistory(Integer size)Enables the banner creative history. abstract Array<PlacementHistoryInfo>getCreativeHistory()Retrieves the banner creative history (if it was enabled). abstract InfeedBannerPlacementListenergetListener()Set the placement listener that will listen to ad loading and display events. abstract UnitsetListener(InfeedBannerPlacementListener listener)Set the placement listener that will listen to ad loading and display events. abstract AATKit.StatisticsListenergetStatisticsListener()Sets the statistics listener that will be notified about placement reporting events, like counted adspace, request etc. abstract UnitsetStatisticsListener(AATKit.StatisticsListener statisticsListener)Sets the statistics listener that will be notified about placement reporting events, like counted adspace, request etc. abstract ImpressionListenergetImpressionListener()Sets the impression listener for the given placement. abstract UnitsetImpressionListener(ImpressionListener impressionListener)Sets the impression listener for the given placement. abstract CollapsibleBannerOptionsgetCollapsibleBannerOptions()Setting for Google collapsible banners. abstract UnitsetCollapsibleBannerOptions(CollapsibleBannerOptions collapsibleBannerOptions)Setting for Google collapsible banners. -
-
Method Detail
-
requestAd
abstract Unit requestAd(BannerRequest request, BannerRequestCompletionListener listener)
Requests a new banner ad.
- Parameters:
request- BannerRequest instance.listener- BannerRequestCompletionListener instance that will be called when the request finishes.
-
cancel
abstract Unit cancel(BannerRequest request)
Cancels the given banner request.
- Parameters:
request- Request that should be canceled.
-
countAdSpace
abstract Unit countAdSpace()
Counts the adspace for statistics. Can only be called if manual adspace counting is used.
-
enableCreativeHistory
abstract Unit enableCreativeHistory(Integer size)
Enables the banner creative history.
-
getCreativeHistory
abstract Array<PlacementHistoryInfo> getCreativeHistory()
Retrieves the banner creative history (if it was enabled).
-
getListener
abstract InfeedBannerPlacementListener getListener()
Set the placement listener that will listen to ad loading and display events.
-
setListener
abstract Unit setListener(InfeedBannerPlacementListener listener)
Set the placement listener that will listen to ad loading and display events.
-
getStatisticsListener
abstract AATKit.StatisticsListener getStatisticsListener()
Sets the statistics listener that will be notified about placement reporting events, like counted adspace, request etc.
-
setStatisticsListener
abstract Unit setStatisticsListener(AATKit.StatisticsListener statisticsListener)
Sets the statistics listener that will be notified about placement reporting events, like counted adspace, request etc.
-
getImpressionListener
abstract ImpressionListener getImpressionListener()
Sets the impression listener for the given placement.
-
setImpressionListener
abstract Unit setImpressionListener(ImpressionListener impressionListener)
Sets the impression listener for the given placement.
-
getCollapsibleBannerOptions
abstract CollapsibleBannerOptions getCollapsibleBannerOptions()
Setting for Google collapsible banners. Default is null, meaning disabled support for collapsible banners.
-
setCollapsibleBannerOptions
abstract Unit setCollapsibleBannerOptions(CollapsibleBannerOptions collapsibleBannerOptions)
Setting for Google collapsible banners. Default is null, meaning disabled support for collapsible banners.
-
-
-
-