NativeAdPlacement

/**
 * Placement used for obtaining banner ads.
 */
interface NativeAdPlacement : Placement {
    /**
     * Set the [placement listener][NativePlacementListener] that will listen to ad loading and display events.
     */
    var listener: NativePlacementListener?

    /**
     * Sets the [statistics listener][AATKit.StatisticsListener] that will be notified about placement reporting events, like counted adspace, request etc.
     */
    var statisticsListener: AATKit.StatisticsListener?

    /**
     * Sets the [impression listener][ImpressionListener] for the given placement.
     */
    var impressionListener: ImpressionListener?

    /**
     * Requests placement reload. Works only if automatic reloading is disabled.
     *
     * @return True if call ends in causing a placement to reload, false otherwise.
     */
    fun reload(): Boolean

    /**
     * Returns how many ads are currently loading for given native ad placement
     *
     * @return Number of ads that are currently loading for given placement
     */
    fun getNumberOfCurrentlyLoadingNativeAds(): Int

    /**
     * Returns true if there is an ad loaded for given placementId.
     *
     * @return True if there is an ad loaded for given placementId.
     */
    fun hasAd(): Boolean

    /**
     * Manual count an ad space
     */
    fun countAdSpace()

    /**
     *Returns the instance of native ad for given native ad placement.
     * @return Native ad instance if it is loaded for given placement, null otherwise.
     */
    fun getNativeAd(): NativeAdData?

    /**
     * Sets the targeting information for the given placement. Information provided for placement overrides targeting information for application set by the [setTargetingInfo].
     */
    var targetingInfo: Map<String, List<String>>?

    /**
     * Sets the content targeting url for the application. This information will be used only if no placement-specific targeting is available.
     *
     * @see .setContentTargetingUrl
     */
    var contentTargetingUrl: String?

    /**
     * Checks if desired impression cap (set on AddApptr Dashboard) is reached for this placement.
     *
     * @return True if impression cap is reached for given placement, false otherwise.
     */
    fun isFrequencyCapReached(): Boolean
    
        
     /**
     * Sets the multi content targeting url for the application. Not all ad-networks supports multiple urls.
     */
    var multiContentTargetingUrls: List<String>?
}

Last updated