public final class Macro
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Tag Manager API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Macro() |
Modifier and Type | Method and Description |
---|---|
Macro |
clone() |
java.lang.String |
getAccountId()
GTM Account ID.
|
java.lang.String |
getContainerId()
GTM Container ID.
|
java.util.List<java.lang.String> |
getDisablingRuleId()
For mobile containers only: A list of rule IDs for disabling conditional macros; the macro is
enabled if one of the enabling rules is true while all the disabling rules are false.
|
java.util.List<java.lang.String> |
getEnablingRuleId()
For mobile containers only: A list of rule IDs for enabling conditional macros; the macro is
enabled if one of the enabling rules is true while all the disabling rules are false.
|
java.lang.String |
getFingerprint()
The fingerprint of the GTM Macro as computed at storage time.
|
java.lang.String |
getMacroId()
The Macro ID uniquely identifies the GTM Macro.
|
java.lang.String |
getName()
Macro display name.
|
java.lang.String |
getNotes()
User notes on how to apply this macro in the container.
|
java.util.List<Parameter> |
getParameter()
The macro's parameters.
|
java.lang.String |
getParentFolderId()
Parent folder id.
|
java.lang.Long |
getScheduleEndMs()
The end timestamp in milliseconds to schedule a macro.
|
java.lang.Long |
getScheduleStartMs()
The start timestamp in milliseconds to schedule a macro.
|
java.lang.String |
getType()
GTM Macro Type.
|
Macro |
set(java.lang.String fieldName,
java.lang.Object value) |
Macro |
setAccountId(java.lang.String accountId)
GTM Account ID.
|
Macro |
setContainerId(java.lang.String containerId)
GTM Container ID.
|
Macro |
setDisablingRuleId(java.util.List<java.lang.String> disablingRuleId)
For mobile containers only: A list of rule IDs for disabling conditional macros; the macro is
enabled if one of the enabling rules is true while all the disabling rules are false.
|
Macro |
setEnablingRuleId(java.util.List<java.lang.String> enablingRuleId)
For mobile containers only: A list of rule IDs for enabling conditional macros; the macro is
enabled if one of the enabling rules is true while all the disabling rules are false.
|
Macro |
setFingerprint(java.lang.String fingerprint)
The fingerprint of the GTM Macro as computed at storage time.
|
Macro |
setMacroId(java.lang.String macroId)
The Macro ID uniquely identifies the GTM Macro.
|
Macro |
setName(java.lang.String name)
Macro display name.
|
Macro |
setNotes(java.lang.String notes)
User notes on how to apply this macro in the container.
|
Macro |
setParameter(java.util.List<Parameter> parameter)
The macro's parameters.
|
Macro |
setParentFolderId(java.lang.String parentFolderId)
Parent folder id.
|
Macro |
setScheduleEndMs(java.lang.Long scheduleEndMs)
The end timestamp in milliseconds to schedule a macro.
|
Macro |
setScheduleStartMs(java.lang.Long scheduleStartMs)
The start timestamp in milliseconds to schedule a macro.
|
Macro |
setType(java.lang.String type)
GTM Macro Type.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getAccountId()
null
for nonepublic Macro setAccountId(java.lang.String accountId)
accountId
- accountId or null
for nonepublic java.lang.String getContainerId()
null
for nonepublic Macro setContainerId(java.lang.String containerId)
containerId
- containerId or null
for nonepublic java.util.List<java.lang.String> getDisablingRuleId()
null
for nonepublic Macro setDisablingRuleId(java.util.List<java.lang.String> disablingRuleId)
disablingRuleId
- disablingRuleId or null
for nonepublic java.util.List<java.lang.String> getEnablingRuleId()
null
for nonepublic Macro setEnablingRuleId(java.util.List<java.lang.String> enablingRuleId)
enablingRuleId
- enablingRuleId or null
for nonepublic java.lang.String getFingerprint()
null
for nonepublic Macro setFingerprint(java.lang.String fingerprint)
fingerprint
- fingerprint or null
for nonepublic java.lang.String getMacroId()
null
for nonepublic Macro setMacroId(java.lang.String macroId)
macroId
- macroId or null
for nonepublic java.lang.String getName()
null
for nonepublic Macro setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.String getNotes()
null
for nonepublic Macro setNotes(java.lang.String notes)
notes
- notes or null
for nonepublic java.util.List<Parameter> getParameter()
null
for nonepublic Macro setParameter(java.util.List<Parameter> parameter)
parameter
- parameter or null
for nonepublic java.lang.String getParentFolderId()
null
for nonepublic Macro setParentFolderId(java.lang.String parentFolderId)
parentFolderId
- parentFolderId or null
for nonepublic java.lang.Long getScheduleEndMs()
null
for nonepublic Macro setScheduleEndMs(java.lang.Long scheduleEndMs)
scheduleEndMs
- scheduleEndMs or null
for nonepublic java.lang.Long getScheduleStartMs()
null
for nonepublic Macro setScheduleStartMs(java.lang.Long scheduleStartMs)
scheduleStartMs
- scheduleStartMs or null
for nonepublic java.lang.String getType()
null
for nonepublic Macro setType(java.lang.String type)
type
- type or null
for nonepublic Macro set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Macro clone()
clone
in class com.google.api.client.json.GenericJson