Interface NativeAdPlacement
-
- All Implemented Interfaces:
-
com.intentsoftware.addapptr.Placement
public interface NativeAdPlacement implements Placement
Placement used for obtaining banner ads.
-
-
Method Summary
Modifier and Type Method Description abstract Booleanreload()Requests placement reload. abstract IntegergetNumberOfCurrentlyLoadingNativeAds()Returns how many ads are currently loading for given native ad placement abstract BooleanhasAd()Returns true if there is an ad loaded for given placementId. abstract UnitcountAdSpace()Manual count an ad space abstract NativeAdDatagetNativeAd()Returns the instance of native ad for given native ad placement. abstract BooleanisFrequencyCapReached()Checks if desired impression cap (set on AddApptr Dashboard) is reached for this placement. abstract NativePlacementListenergetListener()Set the placement listener that will listen to ad loading and display events. abstract UnitsetListener(NativePlacementListener 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. -
-
Method Detail
-
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.
-
getNumberOfCurrentlyLoadingNativeAds
abstract Integer getNumberOfCurrentlyLoadingNativeAds()
Returns how many ads are currently loading for given native ad placement
- Returns:
Number of ads that are currently loading for given placement
-
hasAd
abstract Boolean hasAd()
Returns true if there is an ad loaded for given placementId.
- Returns:
True if there is an ad loaded for given placementId.
-
countAdSpace
abstract Unit countAdSpace()
Manual count an ad space
-
getNativeAd
abstract NativeAdData getNativeAd()
Returns the instance of native ad for given native ad placement.
- Returns:
Native ad instance if it is loaded for given placement, null 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 NativePlacementListener getListener()
Set the placement listener that will listen to ad loading and display events.
-
setListener
abstract Unit setListener(NativePlacementListener 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.
-
-
-
-