Class LevelPlayAdSize
Represents dimensions and descriptions for different types of advertisement sizes.
Inherited Members
Namespace: com.unity3d.mediation
Assembly: Unity.LevelPlay.dll
Syntax
public class LevelPlayAdSize
Fields
BANNER
Standard banner size
Declaration
public static LevelPlayAdSize BANNER
Field Value
Type | Description |
---|---|
Level |
LARGE
Standard large size
Declaration
public static LevelPlayAdSize LARGE
Field Value
Type | Description |
---|---|
Level |
LEADERBOARD
Standard leaderboard size
Declaration
public static LevelPlayAdSize LEADERBOARD
Field Value
Type | Description |
---|---|
Level |
MEDIUM_RECTANGLE
Standard mrec size
Declaration
public static LevelPlayAdSize MEDIUM_RECTANGLE
Field Value
Type | Description |
---|---|
Level |
Properties
Description
Description for the banner
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
string |
Height
Height of the banner
Declaration
public int Height { get; }
Property Value
Type | Description |
---|---|
int |
Width
Width of the banner
Declaration
public int Width { get; }
Property Value
Type | Description |
---|---|
int |
Methods
CreateCustomBannerSize(int, int)
Creates a custom banner size with specified dimensions.
Declaration
public static LevelPlayAdSize CreateCustomBannerSize(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
int | width | The width of the custom banner in pixels. |
int | height | The height of the custom banner in pixels. |
Returns
Type | Description |
---|---|
Level |
A new instance of Level |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |