Yandex Mobile Ads
|
This class is responsible for the banner size. More...
Static Public Member Functions | |
static BannerAdSize | FixedSize (int width, int height) |
Creates an object of the BannerAdSizeclass with the specified width and height of the banner. | |
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. | |
Properties | |
int | Width [get] |
The calculated width of the banner. | |
int | Height [get] |
The calculated height of the banner. | |
BannerAdSizeType | AdSizeType [get] |
Banner size type. | |
This class is responsible for the banner size.
Definition at line 31 of file BannerAdSize.cs.
|
static |
Creates an object of the BannerAdSizeclass with the specified width and height of the banner.
This method is available for internal sdk logic.
We do not recommend using a banner of this size, its use in the application may negatively affect monetization.
Use StickySize for small automatically updated banner attached to the the top or bottom of the screen, or use InlineSize for adaptive banner placed in scrolling content.
width | The width of the ad container in pixels. |
height | The height of the ad container in pixels. |
Definition at line 85 of file BannerAdSize.cs.
|
static |
Creates an object of the BannerAdSize class with the specified maximum height and width of the banner.
width | The width of the ad container in density-independent pixels (dp). |
maxHeight | Maximum height of the ad container in density-independent pixels (dp). |
Definition at line 112 of file BannerAdSize.cs.
|
static |
Creates an object of the BannerAdSize class with the specified maximum width of a sticky banner.
width | Maximum width available for a banner. |
Definition at line 98 of file BannerAdSize.cs.
|
get |
Banner size type.
Definition at line 62 of file BannerAdSize.cs.
|
get |
The calculated height of the banner.
Definition at line 50 of file BannerAdSize.cs.
|
get |
The calculated width of the banner.
Definition at line 38 of file BannerAdSize.cs.