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.
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> |