docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LevelPlayAdSize

    Represents dimensions and descriptions for different types of advertisement sizes.

    Inheritance
    object
    LevelPlayAdSize
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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
    LevelPlayAdSize

    LARGE

    Standard large size

    Declaration
    public static LevelPlayAdSize LARGE
    Field Value
    Type Description
    LevelPlayAdSize

    LEADERBOARD

    Standard leaderboard size

    Declaration
    public static LevelPlayAdSize LEADERBOARD
    Field Value
    Type Description
    LevelPlayAdSize

    MEDIUM_RECTANGLE

    Standard mrec size

    Declaration
    public static LevelPlayAdSize MEDIUM_RECTANGLE
    Field Value
    Type Description
    LevelPlayAdSize

    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
    LevelPlayAdSize

    A new instance of LevelPlayAdSize representing the custom size.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)