Interface FullscreenPlacement
-
- All Implemented Interfaces:
-
com.intentsoftware.addapptr.Placement
public interface FullscreenPlacement implements Placement
-
-
Method Summary
Modifier and Type Method Description abstract UnitstartAutoReload()Enables automatic reloading of placement. abstract UnitstopAutoReload()Stop the automatic reloading of the placement. abstract Booleanreload()Requests placement reload. abstract Booleanreload(Boolean forceLoad)Requests placement reload. abstract BooleanhasAd()Returns true if there is an ad loaded for this placementId. abstract Booleanshow()Shows the fullscreen ad if ad is ready. abstract BooleanisFrequencyCapReached()Checks if desired impression cap (set on AddApptr Dashboard) is reached for this placement. abstract FullscreenPlacementListenergetListener()Set the placement listener that will listen to ad loading and display events. abstract UnitsetListener(FullscreenPlacementListener 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 Map<String, List<String>>getTargetingInfo()Sets the targeting information for the given placement. abstract UnitsetTargetingInfo(Map<String, List<String>> targetingInfo)Sets the targeting information for the given placement. abstract StringgetContentTargetingUrl()Sets the content targeting url for the application. abstract UnitsetContentTargetingUrl(String contentTargetingUrl)Sets the content targeting url for the application. abstract List<String>getMultiContentTargetingUrls()Sets the multi content targeting url for the application. abstract UnitsetMultiContentTargetingUrls(List<String> multiContentTargetingUrls)Sets the multi content targeting url for the application. abstract AdInfogetAdInfo()Returns additional information like price and currency of the currently loaded ad. -
-
Method Detail
-
startAutoReload
abstract Unit startAutoReload()
Enables automatic reloading of placement. When using this method, the placement will automatically reload once the current loaded ad has been shown.
-
stopAutoReload
abstract Unit stopAutoReload()
Stop the automatic reloading of the placement.
-
reload
abstract Boolean reload()
Requests placement reload. Works only if automatic reloading is disabled.
- Returns:
True if call ends in causing a placement to reload, false otherwise.
-
reload
abstract Boolean reload(Boolean forceLoad)
Requests placement reload.
- Parameters:
forceLoad- True if you want to clear the previously loaded ad before loading a new one- Returns:
True if call ends in causing a placement to reload, false otherwise.
-
show
abstract Boolean show()
Shows the fullscreen ad if ad is ready.
- Returns:
True if showing fullscreen was successful, false otherwise.
-
isFrequencyCapReached
abstract Boolean isFrequencyCapReached()
Checks if desired impression cap (set on AddApptr Dashboard) is reached for this placement.
- Returns:
True if impression cap is reached for given placement, false otherwise.
-
getListener
abstract FullscreenPlacementListener getListener()
Set the placement listener that will listen to ad loading and display events.
-
setListener
abstract Unit setListener(FullscreenPlacementListener 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.
-
getTargetingInfo
abstract Map<String, List<String>> getTargetingInfo()
Sets the targeting information for the given placement. Information provided for placement overrides targeting information for application set by the setTargetingInfo.
-
setTargetingInfo
abstract Unit setTargetingInfo(Map<String, List<String>> targetingInfo)
Sets the targeting information for the given placement. Information provided for placement overrides targeting information for application set by the setTargetingInfo.
-
getContentTargetingUrl
abstract String getContentTargetingUrl()
Sets the content targeting url for the application. This information will be used only if no placement-specific targeting is available.
-
setContentTargetingUrl
abstract Unit setContentTargetingUrl(String contentTargetingUrl)
Sets the content targeting url for the application. This information will be used only if no placement-specific targeting is available.
-
getMultiContentTargetingUrls
abstract List<String> getMultiContentTargetingUrls()
Sets the multi content targeting url for the application. Not all ad-networks supports multiple urls.
-
setMultiContentTargetingUrls
abstract Unit setMultiContentTargetingUrls(List<String> multiContentTargetingUrls)
Sets the multi content targeting url for the application. Not all ad-networks supports multiple urls.
-
-
-
-