getWidth

fun getWidth(context: Context): Int

Returns the actual width of this BannerAdSize in density-independent pixels (dp). AdSize created with FULL_WIDTH will return width of the screen.

Return

Width in density-independent pixels (dp).

Parameters

context

Any Context.