Yandex Mobile Ads
Loading...
Searching...
No Matches
Static Public Member Functions | Properties | List of all members
YandexMobileAds.Base.BannerAdSize Class Reference

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.
 

Detailed Description

This class is responsible for the banner size.

Definition at line 31 of file BannerAdSize.cs.

Member Function Documentation

◆ FixedSize()

static BannerAdSize YandexMobileAds.Base.BannerAdSize.FixedSize ( int  width,
int  height 
)
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.

Parameters
widthThe width of the ad container in pixels.
heightThe height of the ad container in pixels.
Returns
An object of the BannerAdSize class with the specified width and height of the banner.

Definition at line 85 of file BannerAdSize.cs.

◆ InlineSize()

static BannerAdSize YandexMobileAds.Base.BannerAdSize.InlineSize ( int  width,
int  maxHeight 
)
static

Creates an object of the BannerAdSize class with the specified maximum height and width of the banner.

Parameters
widthThe width of the ad container in density-independent pixels (dp).
maxHeightMaximum height of the ad container in density-independent pixels (dp).
Returns
An object of the BannerAdSize class with the specified maximum height and width of the banner.

Definition at line 112 of file BannerAdSize.cs.

◆ StickySize()

static BannerAdSize YandexMobileAds.Base.BannerAdSize.StickySize ( int  width)
static

Creates an object of the BannerAdSize class with the specified maximum width of a sticky banner.

Parameters
widthMaximum width available for a banner.
Returns
An object of the BannerAdSize class with the specified maximum width of a sticky banner

Definition at line 98 of file BannerAdSize.cs.

Property Documentation

◆ AdSizeType

BannerAdSizeType YandexMobileAds.Base.BannerAdSize.AdSizeType
get

Banner size type.

Definition at line 62 of file BannerAdSize.cs.

◆ Height

int YandexMobileAds.Base.BannerAdSize.Height
get

The calculated height of the banner.

Definition at line 50 of file BannerAdSize.cs.

◆ Width

int YandexMobileAds.Base.BannerAdSize.Width
get

The calculated width of the banner.

Definition at line 38 of file BannerAdSize.cs.


The documentation for this class was generated from the following file: