AutoLoadBannerPlacement

Placement used for obtaining banner ads.

Properties

Link copied to clipboard

Setting for Google collapsible banners. Default is null, meaning disabled support for collapsible banners.

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 enableCreativeHistory(size: Int)

Enables the banner creative history.

Link copied to clipboard
abstract fun getCreativeHistory(): Array<PlacementHistoryInfo>?

Retrieves the banner creative history (if it was enabled).

Link copied to clipboard
abstract fun getPlacementView(): View?

Returns placement view. Works only for banner placements.

Link copied to clipboard
abstract fun hasAd(): Boolean

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

Link copied to clipboard
abstract fun setContentGravity(gravity: Int)

Sets gravity for ads that don't fill entire placement area. Works only for banner placements.

Link copied to clipboard
abstract fun setDefaultImage(image: Bitmap?)
abstract fun setDefaultImage(resId: Int)

Sets placement default image. This image will be shown in placement when no ad is available.

Link copied to clipboard
abstract fun startAutoReload()

Enables automatic reloading of placement. Autoreloader will use reload time configured on addapptr.com account or fallback to default {@value #BANNER_DEFAULT_RELOAD_INTERVAL_IN_SECONDS} seconds.

Link copied to clipboard
abstract fun stopAutoReload()

Disables automatic reloading of placement.