Class Advertisement.Banner | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class Advertisement.Banner

    Unity Ads Banner

    Inheritance
    System.Object
    Advertisement.Banner
    Namespace: UnityEngine.Advertisements
    Syntax
    public static class Banner

    Properties

    isLoaded

    Declaration
    public static bool isLoaded { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Hide(Boolean)

    Declaration
    public static void Hide(bool destroy = false)
    Parameters
    Type Name Description
    System.Boolean destroy

    Load()

    Declaration
    public static void Load()

    Load(String)

    Declaration
    public static void Load(string placementId)
    Parameters
    Type Name Description
    System.String placementId

    Load(String, BannerLoadOptions)

    Declaration
    public static void Load(string placementId, BannerLoadOptions options)
    Parameters
    Type Name Description
    System.String placementId
    BannerLoadOptions options

    Load(BannerLoadOptions)

    Declaration
    public static void Load(BannerLoadOptions options)
    Parameters
    Type Name Description
    BannerLoadOptions options

    SetPosition(BannerPosition)

    Declaration
    public static void SetPosition(BannerPosition position)
    Parameters
    Type Name Description
    BannerPosition position

    Show()

    Shows the banner with the default placement ID and no callbacks.

    Declaration
    public static void Show()

    Show(String)

    Shows the banner with the givden placement ID and no callbacks. and name="hideCallback" on hide.

    Declaration
    public static void Show(string placementId)
    Parameters
    Type Name Description
    System.String placementId

    Show(String, BannerOptions)

    Declaration
    public static void Show(string placementId, BannerOptions options)
    Parameters
    Type Name Description
    System.String placementId
    BannerOptions options

    Show(BannerOptions)

    Shows the banner with the default placement ID and will fire the callback name="showCallback" on show, and name="hideCallback" on hide.

    Declaration
    public static void Show(BannerOptions options)
    Parameters
    Type Name Description
    BannerOptions options
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023