Companion

actual object Companion
expect object Companion
actual object Companion

Properties

Link copied to clipboard
actual val AUTO_HEIGHT: Int

A constant for auto-height ads.

expect val AUTO_HEIGHT: Int

A dynamic ad size that can be used for height, indicating that the ad should determine its own height.

actual val AUTO_HEIGHT: Int
Link copied to clipboard
actual val BANNER: AdSize

Standard banner ad size (320x50).

expect val BANNER: AdSize

A 320x50 banner ad.

actual val BANNER: AdSize
Link copied to clipboard
actual val FLUID: AdSize

Fluid ad size.

expect val FLUID: AdSize

A dynamically sized ad that matches its parent's width and dynamically sets its height to match the ad creative.

actual val FLUID: AdSize
Link copied to clipboard
actual val FULL_BANNER: AdSize

Full banner ad size (468x60).

expect val FULL_BANNER: AdSize

A 468x60 full banner ad.

actual val FULL_BANNER: AdSize
Link copied to clipboard
actual val FULL_WIDTH: Int

A constant for full-width ads.

expect val FULL_WIDTH: Int

A dynamic ad size that matches the width of the screen.

actual val FULL_WIDTH: Int
Link copied to clipboard
actual val INVALID: AdSize

Invalid ad size.

expect val INVALID: AdSize

An invalid ad size.

actual val INVALID: AdSize
Link copied to clipboard
actual val LARGE_BANNER: AdSize

Large banner ad size (320x100).

expect val LARGE_BANNER: AdSize

A 320x100 large banner ad.

actual val LARGE_BANNER: AdSize
Link copied to clipboard
actual val LEADERBOARD: AdSize

Leaderboard ad size (728x90).

expect val LEADERBOARD: AdSize

A 728x90 leaderboard ad.

actual val LEADERBOARD: AdSize
Link copied to clipboard

Medium rectangle ad size (300x250).

A 300x250 medium rectangle ad.

Link copied to clipboard

Wide skyscraper ad size (160x600).

A 160x600 wide skyscraper ad.

Functions

Link copied to clipboard
actual fun autoSelect(androidAdSize: AdSize, iosAdSize: AdSize): AdSize

Selects the appropriate ad size for the current platform.

expect fun autoSelect(androidAdSize: AdSize, iosAdSize: AdSize): AdSize

Provides the appropriate AdSize based on the platform.

actual fun autoSelect(androidAdSize: AdSize, iosAdSize: AdSize): AdSize

Gets the anchored adaptive banner ad size for the current orientation.

Gets an anchored adaptive banner ad size for the current orientation.

Gets the inline adaptive banner ad size for the current orientation.

Gets an inline adaptive banner ad size for the current orientation.

Link copied to clipboard
actual fun getInlineAdaptiveBannerAdSize(width: Int, maxHeight: Int): AdSize

Gets the inline adaptive banner ad size.

expect fun getInlineAdaptiveBannerAdSize(width: Int, maxHeight: Int): AdSize

Gets an inline adaptive banner ad size for any orientation.

actual fun getInlineAdaptiveBannerAdSize(width: Int, maxHeight: Int): AdSize
Link copied to clipboard

Gets the landscape anchored adaptive banner ad size.

Gets an anchored adaptive banner ad size for landscape orientation.

Link copied to clipboard
actual fun getLandscapeInlineAdaptiveBannerAdSize(context: Any?, width: Int): AdSize

Gets the landscape inline adaptive banner ad size.

expect fun getLandscapeInlineAdaptiveBannerAdSize(context: Any?, width: Int): AdSize

Gets an inline adaptive banner ad size for landscape orientation.

actual fun getLandscapeInlineAdaptiveBannerAdSize(context: Any?, width: Int): AdSize
Link copied to clipboard
actual fun getPortraitAnchoredAdaptiveBannerAdSize(context: Any?, width: Int): AdSize

Gets the portrait anchored adaptive banner ad size.

expect fun getPortraitAnchoredAdaptiveBannerAdSize(context: Any?, width: Int): AdSize

Gets an anchored adaptive banner ad size for portrait orientation.

actual fun getPortraitAnchoredAdaptiveBannerAdSize(context: Any?, width: Int): AdSize
Link copied to clipboard
actual fun getPortraitInlineAdaptiveBannerAdSize(context: Any?, width: Int): AdSize

Gets the portrait inline adaptive banner ad size.

expect fun getPortraitInlineAdaptiveBannerAdSize(context: Any?, width: Int): AdSize

Gets an inline adaptive banner ad size for portrait orientation.

actual fun getPortraitInlineAdaptiveBannerAdSize(context: Any?, width: Int): AdSize