Class ShowOptions | Advertisement | 3.4.9
docs.unity3d.com
    Show / Hide Table of Contents

    Class ShowOptions

    A collection of options that you can pass to Advertisement.Show, to modify ad behaviour. Use ShowOptions.resultCallback to pass a ShowResult enum back to Show when the ad finishes.

    Inheritance
    Object
    ShowOptions
    Namespace: UnityEngine.Advertisements
    Syntax
    public class ShowOptions

    Properties

    gamerSid

    Add a string to specify an identifier for a specific user in the game.

    Declaration
    public string gamerSid { get; set; }
    Property Value
    Type Description
    String

    resultCallback

    A callback to receive the result of the ad.

    Declaration
    [Obsolete("Implement IUnityAdsListener and call Advertisement.AddListener()")]
    public Action<ShowResult> resultCallback { get; set; }
    Property Value
    Type Description
    Action<ShowResult>
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 02 October 2020