Class: Google::Apis::TagmanagerV2::Tag
- Inherits:
-
Object
- Object
- Google::Apis::TagmanagerV2::Tag
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/tagmanager_v2/classes.rb,
generated/google/apis/tagmanager_v2/representations.rb,
generated/google/apis/tagmanager_v2/representations.rb
Overview
Represents a Google Tag Manager Tag.
Instance Attribute Summary collapse
-
#account_id ⇒ String
GTM Account ID.
-
#blocking_rule_id ⇒ Array<String>
Blocking rule IDs.
-
#blocking_trigger_id ⇒ Array<String>
Blocking trigger IDs.
-
#container_id ⇒ String
GTM Container ID.
-
#fingerprint ⇒ String
The fingerprint of the GTM Tag as computed at storage time.
-
#firing_rule_id ⇒ Array<String>
Firing rule IDs.
-
#firing_trigger_id ⇒ Array<String>
Firing trigger IDs.
-
#live_only ⇒ Boolean
(also: #live_only?)
If set to true, this tag will only fire in the live environment (e.g. not in preview or debug mode).
-
#name ⇒ String
Tag display name.
-
#notes ⇒ String
User notes on how to apply this tag in the container.
-
#parameter ⇒ Array<Google::Apis::TagmanagerV2::Parameter>
The tag's parameters.
-
#parent_folder_id ⇒ String
Parent folder id.
-
#path ⇒ String
GTM Tag's API relative path.
-
#priority ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
-
#schedule_end_ms ⇒ Fixnum
The end timestamp in milliseconds to schedule a tag.
-
#schedule_start_ms ⇒ Fixnum
The start timestamp in milliseconds to schedule a tag.
-
#setup_tag ⇒ Array<Google::Apis::TagmanagerV2::SetupTag>
The list of setup tags.
-
#tag_firing_option ⇒ String
Option to fire this tag.
-
#tag_id ⇒ String
The Tag ID uniquely identifies the GTM Tag.
-
#tag_manager_url ⇒ String
Auto generated link to the tag manager UI Corresponds to the JSON property
tagManagerUrl
. -
#teardown_tag ⇒ Array<Google::Apis::TagmanagerV2::TeardownTag>
The list of teardown tags.
-
#type ⇒ String
GTM Tag Type.
-
#workspace_id ⇒ String
GTM Workspace ID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Tag
constructor
A new instance of Tag.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Tag
Returns a new instance of Tag
1628 1629 1630 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1628 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ String
GTM Account ID.
Corresponds to the JSON property accountId
1509 1510 1511 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1509 def account_id @account_id end |
#blocking_rule_id ⇒ Array<String>
Blocking rule IDs. If any of the listed rules evaluate to true, the tag will
not fire.
Corresponds to the JSON property blockingRuleId
1515 1516 1517 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1515 def blocking_rule_id @blocking_rule_id end |
#blocking_trigger_id ⇒ Array<String>
Blocking trigger IDs. If any of the listed triggers evaluate to true, the tag
will not fire.
Corresponds to the JSON property blockingTriggerId
1521 1522 1523 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1521 def blocking_trigger_id @blocking_trigger_id end |
#container_id ⇒ String
GTM Container ID.
Corresponds to the JSON property containerId
1526 1527 1528 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1526 def container_id @container_id end |
#fingerprint ⇒ String
The fingerprint of the GTM Tag as computed at storage time. This value is
recomputed whenever the tag is modified.
Corresponds to the JSON property fingerprint
1532 1533 1534 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1532 def fingerprint @fingerprint end |
#firing_rule_id ⇒ Array<String>
Firing rule IDs. A tag will fire when any of the listed rules are true and all
of its blockingRuleIds (if any specified) are false.
Corresponds to the JSON property firingRuleId
1538 1539 1540 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1538 def firing_rule_id @firing_rule_id end |
#firing_trigger_id ⇒ Array<String>
Firing trigger IDs. A tag will fire when any of the listed triggers are true
and all of its blockingTriggerIds (if any specified) are false.
Corresponds to the JSON property firingTriggerId
1544 1545 1546 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1544 def firing_trigger_id @firing_trigger_id end |
#live_only ⇒ Boolean Also known as: live_only?
If set to true, this tag will only fire in the live environment (e.g. not in
preview or debug mode).
Corresponds to the JSON property liveOnly
1550 1551 1552 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1550 def live_only @live_only end |
#name ⇒ String
Tag display name.
Corresponds to the JSON property name
1556 1557 1558 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1556 def name @name end |
#notes ⇒ String
User notes on how to apply this tag in the container.
Corresponds to the JSON property notes
1561 1562 1563 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1561 def notes @notes end |
#parameter ⇒ Array<Google::Apis::TagmanagerV2::Parameter>
The tag's parameters.
Corresponds to the JSON property parameter
1566 1567 1568 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1566 def parameter @parameter end |
#parent_folder_id ⇒ String
Parent folder id.
Corresponds to the JSON property parentFolderId
1571 1572 1573 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1571 def parent_folder_id @parent_folder_id end |
#path ⇒ String
GTM Tag's API relative path.
Corresponds to the JSON property path
1576 1577 1578 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1576 def path @path end |
#priority ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property priority
1581 1582 1583 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1581 def priority @priority end |
#schedule_end_ms ⇒ Fixnum
The end timestamp in milliseconds to schedule a tag.
Corresponds to the JSON property scheduleEndMs
1586 1587 1588 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1586 def schedule_end_ms @schedule_end_ms end |
#schedule_start_ms ⇒ Fixnum
The start timestamp in milliseconds to schedule a tag.
Corresponds to the JSON property scheduleStartMs
1591 1592 1593 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1591 def schedule_start_ms @schedule_start_ms end |
#setup_tag ⇒ Array<Google::Apis::TagmanagerV2::SetupTag>
The list of setup tags. Currently we only allow one.
Corresponds to the JSON property setupTag
1596 1597 1598 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1596 def setup_tag @setup_tag end |
#tag_firing_option ⇒ String
Option to fire this tag.
Corresponds to the JSON property tagFiringOption
1601 1602 1603 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1601 def tag_firing_option @tag_firing_option end |
#tag_id ⇒ String
The Tag ID uniquely identifies the GTM Tag.
Corresponds to the JSON property tagId
1606 1607 1608 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1606 def tag_id @tag_id end |
#tag_manager_url ⇒ String
Auto generated link to the tag manager UI
Corresponds to the JSON property tagManagerUrl
1611 1612 1613 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1611 def tag_manager_url @tag_manager_url end |
#teardown_tag ⇒ Array<Google::Apis::TagmanagerV2::TeardownTag>
The list of teardown tags. Currently we only allow one.
Corresponds to the JSON property teardownTag
1616 1617 1618 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1616 def teardown_tag @teardown_tag end |
#type ⇒ String
GTM Tag Type.
Corresponds to the JSON property type
1621 1622 1623 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1621 def type @type end |
#workspace_id ⇒ String
GTM Workspace ID.
Corresponds to the JSON property workspaceId
1626 1627 1628 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1626 def workspace_id @workspace_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 1633 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @blocking_rule_id = args[:blocking_rule_id] if args.key?(:blocking_rule_id) @blocking_trigger_id = args[:blocking_trigger_id] if args.key?(:blocking_trigger_id) @container_id = args[:container_id] if args.key?(:container_id) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @firing_rule_id = args[:firing_rule_id] if args.key?(:firing_rule_id) @firing_trigger_id = args[:firing_trigger_id] if args.key?(:firing_trigger_id) @live_only = args[:live_only] if args.key?(:live_only) @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) @path = args[:path] if args.key?(:path) @priority = args[:priority] if args.key?(:priority) @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) @setup_tag = args[:setup_tag] if args.key?(:setup_tag) @tag_firing_option = args[:tag_firing_option] if args.key?(:tag_firing_option) @tag_id = args[:tag_id] if args.key?(:tag_id) @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url) @teardown_tag = args[:teardown_tag] if args.key?(:teardown_tag) @type = args[:type] if args.key?(:type) @workspace_id = args[:workspace_id] if args.key?(:workspace_id) end |