class Google::Apis::TagmanagerV1::Macro
Attributes
GTM Account ID. Corresponds to the JSON property `accountId` @return [String]
GTM Container ID. Corresponds to the JSON property `containerId` @return [String]
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. Treated as an unordered set. Corresponds to the JSON property `disablingRuleId` @return [Array<String>]
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. Treated as an unordered set. Corresponds to the JSON property `enablingRuleId` @return [Array<String>]
The fingerprint of the GTM Macro as computed at storage time. This value is recomputed whenever the macro is modified. Corresponds to the JSON property `fingerprint` @return [String]
Macro display name. Corresponds to the JSON property `name` @return [String]
User notes on how to apply this macro in the container. Corresponds to the JSON property `notes` @return [String]
The macro's parameters. Corresponds to the JSON property `parameter` @return [Array<Google::Apis::TagmanagerV1::Parameter>]
Parent folder id. Corresponds to the JSON property `parentFolderId` @return [String]
The end timestamp in milliseconds to schedule a macro. Corresponds to the JSON property `scheduleEndMs` @return [String]
The start timestamp in milliseconds to schedule a macro. Corresponds to the JSON property `scheduleStartMs` @return [String]
GTM Macro Type. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File generated/google/apis/tagmanager_v1/classes.rb, line 877 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/tagmanager_v1/classes.rb, line 882 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @container_id = args[:container_id] if args.key?(:container_id) @disabling_rule_id = args[:disabling_rule_id] if args.key?(:disabling_rule_id) @enabling_rule_id = args[:enabling_rule_id] if args.key?(:enabling_rule_id) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @macro_id = args[:macro_id] if args.key?(:macro_id) @name = args[:name] if args.key?(:name) @notes = args[:notes] if args.key?(:notes) @parameter = args[:parameter] if args.key?(:parameter) @parent_folder_id = args[:parent_folder_id] if args.key?(:parent_folder_id) @schedule_end_ms = args[:schedule_end_ms] if args.key?(:schedule_end_ms) @schedule_start_ms = args[:schedule_start_ms] if args.key?(:schedule_start_ms) @type = args[:type] if args.key?(:type) end