NativeAdPlacement

Placement used for obtaining banner ads.

Properties

Link copied to clipboard

Sets the content targeting url for the application. This information will be used only if no placement-specific targeting is available.

Link copied to clipboard

Sets the impression listener for the given placement.

Link copied to clipboard

Set the placement listener that will listen to ad loading and display events.

Link copied to clipboard

Sets the multi content targeting url for the application. Not all ad-networks supports multiple urls.

Link copied to clipboard

Sets the statistics listener that will be notified about placement reporting events, like counted adspace, request etc.

Link copied to clipboard
abstract var targetingInfo: Map<String, List<String>>?

Sets the targeting information for the given placement. Information provided for placement overrides targeting information for application set by the setTargetingInfo.

Inherited properties

Link copied to clipboard
abstract val name: String

Functions

Link copied to clipboard
abstract fun countAdSpace()

Manual count an ad space

Link copied to clipboard
abstract fun getNativeAd(): NativeAdData?

Returns the instance of native ad for given native ad placement.

Link copied to clipboard

Returns how many ads are currently loading for given native ad placement

Link copied to clipboard
abstract fun hasAd(): Boolean

Returns true if there is an ad loaded for given placementId.

Link copied to clipboard

Checks if desired impression cap (set on AddApptr Dashboard) is reached for this placement.

Link copied to clipboard
abstract fun reload(): Boolean

Requests placement reload. Works only if automatic reloading is disabled.