inlineSize

fun inlineSize(context: Context, width: Int, maxHeight: Int): BannerAdSize

Returns inline adaptive banner size. Banners with inline sizes stretch to container width and height when possible.

Return

Inline banner size.

Parameters

width

The width of the ad container in density-independent pixels (dp).

maxHeight

The maximum height of the ad container in density-independent pixels (dp).