class Google::Apis::TagmanagerV1::Macro

Represents a Google Tag Manager Macro.

Attributes

account_id[RW]

GTM Account ID. Corresponds to the JSON property `accountId` @return [String]

container_id[RW]

GTM Container ID. Corresponds to the JSON property `containerId` @return [String]

disabling_rule_id[RW]

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

enabling_rule_id[RW]

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

fingerprint[RW]

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_id[RW]

The Macro ID uniquely identifies the GTM Macro. Corresponds to the JSON property `macroId` @return [String]

name[RW]

Macro display name. Corresponds to the JSON property `name` @return [String]

notes[RW]

User notes on how to apply this macro in the container. Corresponds to the JSON property `notes` @return [String]

parameter[RW]

The macro's parameters. Corresponds to the JSON property `parameter` @return [Array<Google::Apis::TagmanagerV1::Parameter>]

parent_folder_id[RW]

Parent folder id. Corresponds to the JSON property `parentFolderId` @return [String]

schedule_end_ms[RW]

The end timestamp in milliseconds to schedule a macro. Corresponds to the JSON property `scheduleEndMs` @return [String]

schedule_start_ms[RW]

The start timestamp in milliseconds to schedule a macro. Corresponds to the JSON property `scheduleStartMs` @return [String]

type[RW]

GTM Macro Type. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/tagmanager_v1/classes.rb, line 877
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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