10using YandexMobileAds.Common;
11using YandexMobileAds.Platforms;
33 private const int NotSpecified = -1;
42 return _client.GetWidth();
54 return _client.GetHeight();
64 private readonly IBannerAdSizeClient _client;
69 _client = YandexMobileAdsClientFactory.BuildBannerAdSizeClient(width, height, bannerAdSizeType);
117 internal IBannerAdSizeClient GetClient()
This class is responsible for the banner size.
static BannerAdSize StickySize(int width)
Creates an object of the BannerAdSize class with the specified maximum width of a sticky banner.
static BannerAdSize InlineSize(int width, int maxHeight)
Creates an object of the BannerAdSize class with the specified maximum height and width of the banner...
BannerAdSizeType AdSizeType
Banner size type.
int Width
The calculated width of the banner.
int Height
The calculated height of the banner.
static BannerAdSize FixedSize(int width, int height)
Creates an object of the BannerAdSizeclass with the specified width and height of the banner.
BannerAdSizeType
Banner size type.
@ Inline
with the specified maximum height and width of the banner
@ Fixed
with specified height and width of the banner
@ Sticky
with the specified maximum width of a sticky banner