Show / Hide Table of Contents

Class Variable

Represents a Google Tag Manager Variable.

Inheritance
System.Object
Variable
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.TagManager.v2.Data
Assembly: Google.Apis.TagManager.v2.dll
Syntax
public class Variable : IDirectResponseSchema

Properties

AccountId

GTM Account ID.

Declaration
[JsonProperty("accountId")]
public virtual string AccountId { get; set; }
Property Value
Type Description
System.String

ContainerId

GTM Container ID.

Declaration
[JsonProperty("containerId")]
public virtual string ContainerId { get; set; }
Property Value
Type Description
System.String

DisablingTriggerId

For mobile containers only: A list of trigger IDs for disabling conditional variables; the variable is enabled if one of the enabling trigger is true while all the disabling trigger are false. Treated as an unordered set.

Declaration
[JsonProperty("disablingTriggerId")]
public virtual IList<string> DisablingTriggerId { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

EnablingTriggerId

For mobile containers only: A list of trigger IDs for enabling conditional variables; the variable is enabled if one of the enabling triggers is true while all the disabling triggers are false. Treated as an unordered set.

Declaration
[JsonProperty("enablingTriggerId")]
public virtual IList<string> EnablingTriggerId { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

Fingerprint

The fingerprint of the GTM Variable as computed at storage time. This value is recomputed whenever the variable is modified.

Declaration
[JsonProperty("fingerprint")]
public virtual string Fingerprint { get; set; }
Property Value
Type Description
System.String

FormatValue

Option to convert a variable value to other value.

Declaration
[JsonProperty("formatValue")]
public virtual VariableFormatValue FormatValue { get; set; }
Property Value
Type Description
VariableFormatValue

Name

Variable display name.

Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type Description
System.String

Notes

User notes on how to apply this variable in the container.

Declaration
[JsonProperty("notes")]
public virtual string Notes { get; set; }
Property Value
Type Description
System.String

Parameter

The variable's parameters.

Declaration
[JsonProperty("parameter")]
public virtual IList<Parameter> Parameter { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<Parameter>

ParentFolderId

Parent folder id.

Declaration
[JsonProperty("parentFolderId")]
public virtual string ParentFolderId { get; set; }
Property Value
Type Description
System.String

Path

GTM Variable's API relative path.

Declaration
[JsonProperty("path")]
public virtual string Path { get; set; }
Property Value
Type Description
System.String

ScheduleEndMs

The end timestamp in milliseconds to schedule a variable.

Declaration
[JsonProperty("scheduleEndMs")]
public virtual long? ScheduleEndMs { get; set; }
Property Value
Type Description
System.Nullable<System.Int64>

ScheduleStartMs

The start timestamp in milliseconds to schedule a variable.

Declaration
[JsonProperty("scheduleStartMs")]
public virtual long? ScheduleStartMs { get; set; }
Property Value
Type Description
System.Nullable<System.Int64>

TagManagerUrl

Auto generated link to the tag manager UI

Declaration
[JsonProperty("tagManagerUrl")]
public virtual string TagManagerUrl { get; set; }
Property Value
Type Description
System.String

Type

GTM Variable Type.

Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type Description
System.String

VariableId

The Variable ID uniquely identifies the GTM Variable.

Declaration
[JsonProperty("variableId")]
public virtual string VariableId { get; set; }
Property Value
Type Description
System.String

WorkspaceId

GTM Workspace ID.

Declaration
[JsonProperty("workspaceId")]
public virtual string WorkspaceId { get; set; }
Property Value
Type Description
System.String

Implements

IDirectResponseSchema
Back to top