tagmanager

package
v0.0.0-...-0297be7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2015 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package tagmanager provides access to the Tag Manager API.

See https://developers.google.com/tag-manager/api/v1/

Usage example:

import "google.golang.org/api/tagmanager/v1"
...
tagmanagerService, err := tagmanager.New(oauthHttpClient)

Index

Constants

View Source
const (
	// Delete your Google Tag Manager containers
	TagmanagerDeleteContainersScope = "https://www.googleapis.com/auth/tagmanager.delete.containers"

	// Manage your Google Tag Manager containers
	TagmanagerEditContainersScope = "https://www.googleapis.com/auth/tagmanager.edit.containers"

	// Manage your Google Tag Manager container versions
	TagmanagerEditContainerversionsScope = "https://www.googleapis.com/auth/tagmanager.edit.containerversions"

	// Manage your Google Tag Manager accounts
	TagmanagerManageAccountsScope = "https://www.googleapis.com/auth/tagmanager.manage.accounts"

	// Manage user permissions of your Google Tag Manager data
	TagmanagerManageUsersScope = "https://www.googleapis.com/auth/tagmanager.manage.users"

	// Publish your Google Tag Manager containers
	TagmanagerPublishScope = "https://www.googleapis.com/auth/tagmanager.publish"

	// View your Google Tag Manager containers
	TagmanagerReadonlyScope = "https://www.googleapis.com/auth/tagmanager.readonly"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	// AccountId: The Account ID uniquely identifies the GTM Account.
	AccountId string `json:"accountId,omitempty"`

	// Fingerprint: The fingerprint of the GTM Account as computed at
	// storage time. This value is recomputed whenever the account is
	// modified.
	Fingerprint string `json:"fingerprint,omitempty"`

	// Name: Account display name.
	Name string `json:"name,omitempty"`

	// ShareData: Whether the account shares data anonymously with Google
	// and others.
	ShareData bool `json:"shareData,omitempty"`
}

type AccountAccess

type AccountAccess struct {
	// Permission: List of Account permissions. Valid account permissions
	// are read and manage.
	Permission []string `json:"permission,omitempty"`
}

type AccountsContainersCreateCall

type AccountsContainersCreateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersCreateCall) Do

func (*AccountsContainersCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersDeleteCall

type AccountsContainersDeleteCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersDeleteCall) Do

func (*AccountsContainersDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersGetCall

type AccountsContainersGetCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersGetCall) Do

func (*AccountsContainersGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersListCall

type AccountsContainersListCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersListCall) Do

func (*AccountsContainersListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersMacrosCreateCall

type AccountsContainersMacrosCreateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersMacrosCreateCall) Do

func (*AccountsContainersMacrosCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersMacrosDeleteCall

type AccountsContainersMacrosDeleteCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersMacrosDeleteCall) Do

func (*AccountsContainersMacrosDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersMacrosGetCall

type AccountsContainersMacrosGetCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersMacrosGetCall) Do

func (*AccountsContainersMacrosGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersMacrosListCall

type AccountsContainersMacrosListCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersMacrosListCall) Do

func (*AccountsContainersMacrosListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersMacrosService

type AccountsContainersMacrosService struct {
	// contains filtered or unexported fields
}

func NewAccountsContainersMacrosService

func NewAccountsContainersMacrosService(s *Service) *AccountsContainersMacrosService

func (*AccountsContainersMacrosService) Create

func (r *AccountsContainersMacrosService) Create(accountId string, containerId string, macro *Macro) *AccountsContainersMacrosCreateCall

Create: Creates a GTM Macro.

func (*AccountsContainersMacrosService) Delete

func (r *AccountsContainersMacrosService) Delete(accountId string, containerId string, macroId string) *AccountsContainersMacrosDeleteCall

Delete: Deletes a GTM Macro.

func (*AccountsContainersMacrosService) Get

func (r *AccountsContainersMacrosService) Get(accountId string, containerId string, macroId string) *AccountsContainersMacrosGetCall

Get: Gets a GTM Macro.

func (*AccountsContainersMacrosService) List

List: Lists all GTM Macros of a Container.

func (*AccountsContainersMacrosService) Update

func (r *AccountsContainersMacrosService) Update(accountId string, containerId string, macroId string, macro *Macro) *AccountsContainersMacrosUpdateCall

Update: Updates a GTM Macro.

type AccountsContainersMacrosUpdateCall

type AccountsContainersMacrosUpdateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersMacrosUpdateCall) Do

func (*AccountsContainersMacrosUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsContainersMacrosUpdateCall) Fingerprint

Fingerprint sets the optional parameter "fingerprint": When provided, this fingerprint must match the fingerprint of the macro in storage.

type AccountsContainersRulesCreateCall

type AccountsContainersRulesCreateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersRulesCreateCall) Do

func (*AccountsContainersRulesCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersRulesDeleteCall

type AccountsContainersRulesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersRulesDeleteCall) Do

func (*AccountsContainersRulesDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersRulesGetCall

type AccountsContainersRulesGetCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersRulesGetCall) Do

func (*AccountsContainersRulesGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersRulesListCall

type AccountsContainersRulesListCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersRulesListCall) Do

func (*AccountsContainersRulesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersRulesService

type AccountsContainersRulesService struct {
	// contains filtered or unexported fields
}

func NewAccountsContainersRulesService

func NewAccountsContainersRulesService(s *Service) *AccountsContainersRulesService

func (*AccountsContainersRulesService) Create

func (r *AccountsContainersRulesService) Create(accountId string, containerId string, rule *Rule) *AccountsContainersRulesCreateCall

Create: Creates a GTM Rule.

func (*AccountsContainersRulesService) Delete

func (r *AccountsContainersRulesService) Delete(accountId string, containerId string, ruleId string) *AccountsContainersRulesDeleteCall

Delete: Deletes a GTM Rule.

func (*AccountsContainersRulesService) Get

func (r *AccountsContainersRulesService) Get(accountId string, containerId string, ruleId string) *AccountsContainersRulesGetCall

Get: Gets a GTM Rule.

func (*AccountsContainersRulesService) List

List: Lists all GTM Rules of a Container.

func (*AccountsContainersRulesService) Update

func (r *AccountsContainersRulesService) Update(accountId string, containerId string, ruleId string, rule *Rule) *AccountsContainersRulesUpdateCall

Update: Updates a GTM Rule.

type AccountsContainersRulesUpdateCall

type AccountsContainersRulesUpdateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersRulesUpdateCall) Do

func (*AccountsContainersRulesUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsContainersRulesUpdateCall) Fingerprint

Fingerprint sets the optional parameter "fingerprint": When provided, this fingerprint must match the fingerprint of the rule in storage.

type AccountsContainersService

type AccountsContainersService struct {
	Macros *AccountsContainersMacrosService

	Rules *AccountsContainersRulesService

	Tags *AccountsContainersTagsService

	Triggers *AccountsContainersTriggersService

	Variables *AccountsContainersVariablesService

	Versions *AccountsContainersVersionsService
	// contains filtered or unexported fields
}

func NewAccountsContainersService

func NewAccountsContainersService(s *Service) *AccountsContainersService

func (*AccountsContainersService) Create

func (r *AccountsContainersService) Create(accountId string, container *Container) *AccountsContainersCreateCall

Create: Creates a Container.

func (*AccountsContainersService) Delete

func (r *AccountsContainersService) Delete(accountId string, containerId string) *AccountsContainersDeleteCall

Delete: Deletes a Container.

func (*AccountsContainersService) Get

func (r *AccountsContainersService) Get(accountId string, containerId string) *AccountsContainersGetCall

Get: Gets a Container.

func (*AccountsContainersService) List

List: Lists all Containers that belongs to a GTM Account.

func (*AccountsContainersService) Update

func (r *AccountsContainersService) Update(accountId string, containerId string, container *Container) *AccountsContainersUpdateCall

Update: Updates a Container.

type AccountsContainersTagsCreateCall

type AccountsContainersTagsCreateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersTagsCreateCall) Do

func (*AccountsContainersTagsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersTagsDeleteCall

type AccountsContainersTagsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersTagsDeleteCall) Do

func (*AccountsContainersTagsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersTagsGetCall

type AccountsContainersTagsGetCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersTagsGetCall) Do

func (*AccountsContainersTagsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersTagsListCall

type AccountsContainersTagsListCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersTagsListCall) Do

func (*AccountsContainersTagsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersTagsService

type AccountsContainersTagsService struct {
	// contains filtered or unexported fields
}

func NewAccountsContainersTagsService

func NewAccountsContainersTagsService(s *Service) *AccountsContainersTagsService

func (*AccountsContainersTagsService) Create

func (r *AccountsContainersTagsService) Create(accountId string, containerId string, tag *Tag) *AccountsContainersTagsCreateCall

Create: Creates a GTM Tag.

func (*AccountsContainersTagsService) Delete

func (r *AccountsContainersTagsService) Delete(accountId string, containerId string, tagId string) *AccountsContainersTagsDeleteCall

Delete: Deletes a GTM Tag.

func (*AccountsContainersTagsService) Get

func (r *AccountsContainersTagsService) Get(accountId string, containerId string, tagId string) *AccountsContainersTagsGetCall

Get: Gets a GTM Tag.

func (*AccountsContainersTagsService) List

List: Lists all GTM Tags of a Container.

func (*AccountsContainersTagsService) Update

func (r *AccountsContainersTagsService) Update(accountId string, containerId string, tagId string, tag *Tag) *AccountsContainersTagsUpdateCall

Update: Updates a GTM Tag.

type AccountsContainersTagsUpdateCall

type AccountsContainersTagsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersTagsUpdateCall) Do

func (*AccountsContainersTagsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsContainersTagsUpdateCall) Fingerprint

Fingerprint sets the optional parameter "fingerprint": When provided, this fingerprint must match the fingerprint of the tag in storage.

type AccountsContainersTriggersCreateCall

type AccountsContainersTriggersCreateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersTriggersCreateCall) Do

func (*AccountsContainersTriggersCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersTriggersDeleteCall

type AccountsContainersTriggersDeleteCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersTriggersDeleteCall) Do

func (*AccountsContainersTriggersDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersTriggersGetCall

type AccountsContainersTriggersGetCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersTriggersGetCall) Do

func (*AccountsContainersTriggersGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersTriggersListCall

type AccountsContainersTriggersListCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersTriggersListCall) Do

func (*AccountsContainersTriggersListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersTriggersService

type AccountsContainersTriggersService struct {
	// contains filtered or unexported fields
}

func NewAccountsContainersTriggersService

func NewAccountsContainersTriggersService(s *Service) *AccountsContainersTriggersService

func (*AccountsContainersTriggersService) Create

Create: Creates a GTM Trigger.

func (*AccountsContainersTriggersService) Delete

func (r *AccountsContainersTriggersService) Delete(accountId string, containerId string, triggerId string) *AccountsContainersTriggersDeleteCall

Delete: Deletes a GTM Trigger.

func (*AccountsContainersTriggersService) Get

func (r *AccountsContainersTriggersService) Get(accountId string, containerId string, triggerId string) *AccountsContainersTriggersGetCall

Get: Gets a GTM Trigger.

func (*AccountsContainersTriggersService) List

List: Lists all GTM Triggers of a Container.

func (*AccountsContainersTriggersService) Update

func (r *AccountsContainersTriggersService) Update(accountId string, containerId string, triggerId string, trigger *Trigger) *AccountsContainersTriggersUpdateCall

Update: Updates a GTM Trigger.

type AccountsContainersTriggersUpdateCall

type AccountsContainersTriggersUpdateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersTriggersUpdateCall) Do

func (*AccountsContainersTriggersUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsContainersTriggersUpdateCall) Fingerprint

Fingerprint sets the optional parameter "fingerprint": When provided, this fingerprint must match the fingerprint of the trigger in storage.

type AccountsContainersUpdateCall

type AccountsContainersUpdateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersUpdateCall) Do

func (*AccountsContainersUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsContainersUpdateCall) Fingerprint

Fingerprint sets the optional parameter "fingerprint": When provided, this fingerprint must match the fingerprint of the container in storage.

type AccountsContainersVariablesCreateCall

type AccountsContainersVariablesCreateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersVariablesCreateCall) Do

func (*AccountsContainersVariablesCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersVariablesDeleteCall

type AccountsContainersVariablesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersVariablesDeleteCall) Do

func (*AccountsContainersVariablesDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersVariablesGetCall

type AccountsContainersVariablesGetCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersVariablesGetCall) Do

func (*AccountsContainersVariablesGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersVariablesListCall

type AccountsContainersVariablesListCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersVariablesListCall) Do

func (*AccountsContainersVariablesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersVariablesService

type AccountsContainersVariablesService struct {
	// contains filtered or unexported fields
}

func NewAccountsContainersVariablesService

func NewAccountsContainersVariablesService(s *Service) *AccountsContainersVariablesService

func (*AccountsContainersVariablesService) Create

Create: Creates a GTM Variable.

func (*AccountsContainersVariablesService) Delete

func (r *AccountsContainersVariablesService) Delete(accountId string, containerId string, variableId string) *AccountsContainersVariablesDeleteCall

Delete: Deletes a GTM Variable.

func (*AccountsContainersVariablesService) Get

Get: Gets a GTM Variable.

func (*AccountsContainersVariablesService) List

List: Lists all GTM Variables of a Container.

func (*AccountsContainersVariablesService) Update

func (r *AccountsContainersVariablesService) Update(accountId string, containerId string, variableId string, variable *Variable) *AccountsContainersVariablesUpdateCall

Update: Updates a GTM Variable.

type AccountsContainersVariablesUpdateCall

type AccountsContainersVariablesUpdateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersVariablesUpdateCall) Do

func (*AccountsContainersVariablesUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsContainersVariablesUpdateCall) Fingerprint

Fingerprint sets the optional parameter "fingerprint": When provided, this fingerprint must match the fingerprint of the variable in storage.

type AccountsContainersVersionsCreateCall

type AccountsContainersVersionsCreateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersVersionsCreateCall) Do

func (*AccountsContainersVersionsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersVersionsDeleteCall

type AccountsContainersVersionsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersVersionsDeleteCall) Do

func (*AccountsContainersVersionsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersVersionsGetCall

type AccountsContainersVersionsGetCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersVersionsGetCall) Do

func (*AccountsContainersVersionsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersVersionsListCall

type AccountsContainersVersionsListCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersVersionsListCall) Do

func (*AccountsContainersVersionsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsContainersVersionsListCall) Headers

Headers sets the optional parameter "headers": Retrieve headers only when true.

type AccountsContainersVersionsPublishCall

type AccountsContainersVersionsPublishCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersVersionsPublishCall) Do

func (*AccountsContainersVersionsPublishCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsContainersVersionsPublishCall) Fingerprint

Fingerprint sets the optional parameter "fingerprint": When provided, this fingerprint must match the fingerprint of the container version in storage.

type AccountsContainersVersionsRestoreCall

type AccountsContainersVersionsRestoreCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersVersionsRestoreCall) Do

func (*AccountsContainersVersionsRestoreCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersVersionsService

type AccountsContainersVersionsService struct {
	// contains filtered or unexported fields
}

func NewAccountsContainersVersionsService

func NewAccountsContainersVersionsService(s *Service) *AccountsContainersVersionsService

func (*AccountsContainersVersionsService) Create

func (r *AccountsContainersVersionsService) Create(accountId string, containerId string, createcontainerversionrequestversionoptions *CreateContainerVersionRequestVersionOptions) *AccountsContainersVersionsCreateCall

Create: Creates a Container Version.

func (*AccountsContainersVersionsService) Delete

func (r *AccountsContainersVersionsService) Delete(accountId string, containerId string, containerVersionId string) *AccountsContainersVersionsDeleteCall

Delete: Deletes a Container Version.

func (*AccountsContainersVersionsService) Get

func (r *AccountsContainersVersionsService) Get(accountId string, containerId string, containerVersionId string) *AccountsContainersVersionsGetCall

Get: Gets a Container Version.

func (*AccountsContainersVersionsService) List

List: Lists all Container Versions of a GTM Container.

func (*AccountsContainersVersionsService) Publish

func (r *AccountsContainersVersionsService) Publish(accountId string, containerId string, containerVersionId string) *AccountsContainersVersionsPublishCall

Publish: Publishes a Container Version.

func (*AccountsContainersVersionsService) Restore

func (r *AccountsContainersVersionsService) Restore(accountId string, containerId string, containerVersionId string) *AccountsContainersVersionsRestoreCall

Restore: Restores a Container Version. This will overwrite the container's current configuration (including its macros, rules and tags). The operation will not have any effect on the version that is being served (i.e. the published version).

func (*AccountsContainersVersionsService) Undelete

func (r *AccountsContainersVersionsService) Undelete(accountId string, containerId string, containerVersionId string) *AccountsContainersVersionsUndeleteCall

Undelete: Undeletes a Container Version.

func (*AccountsContainersVersionsService) Update

func (r *AccountsContainersVersionsService) Update(accountId string, containerId string, containerVersionId string, containerversion *ContainerVersion) *AccountsContainersVersionsUpdateCall

Update: Updates a Container Version.

type AccountsContainersVersionsUndeleteCall

type AccountsContainersVersionsUndeleteCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersVersionsUndeleteCall) Do

func (*AccountsContainersVersionsUndeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsContainersVersionsUpdateCall

type AccountsContainersVersionsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsContainersVersionsUpdateCall) Do

func (*AccountsContainersVersionsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsContainersVersionsUpdateCall) Fingerprint

Fingerprint sets the optional parameter "fingerprint": When provided, this fingerprint must match the fingerprint of the container version in storage.

type AccountsGetCall

type AccountsGetCall struct {
	// contains filtered or unexported fields
}

func (*AccountsGetCall) Do

func (c *AccountsGetCall) Do() (*Account, error)

func (*AccountsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsListCall

type AccountsListCall struct {
	// contains filtered or unexported fields
}

func (*AccountsListCall) Do

func (*AccountsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsPermissionsCreateCall

type AccountsPermissionsCreateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsPermissionsCreateCall) Do

func (*AccountsPermissionsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsPermissionsDeleteCall

type AccountsPermissionsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*AccountsPermissionsDeleteCall) Do

func (*AccountsPermissionsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsPermissionsGetCall

type AccountsPermissionsGetCall struct {
	// contains filtered or unexported fields
}

func (*AccountsPermissionsGetCall) Do

func (*AccountsPermissionsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsPermissionsListCall

type AccountsPermissionsListCall struct {
	// contains filtered or unexported fields
}

func (*AccountsPermissionsListCall) Do

func (*AccountsPermissionsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsPermissionsService

type AccountsPermissionsService struct {
	// contains filtered or unexported fields
}

func NewAccountsPermissionsService

func NewAccountsPermissionsService(s *Service) *AccountsPermissionsService

func (*AccountsPermissionsService) Create

Create: Creates a user's Account & Container Permissions.

func (*AccountsPermissionsService) Delete

func (r *AccountsPermissionsService) Delete(accountId string, permissionId string) *AccountsPermissionsDeleteCall

Delete: Removes a user from the account, revoking access to it and all of its containers.

func (*AccountsPermissionsService) Get

func (r *AccountsPermissionsService) Get(accountId string, permissionId string) *AccountsPermissionsGetCall

Get: Gets a user's Account & Container Permissions.

func (*AccountsPermissionsService) List

List: List all users that have access to the account along with Account and Container Permissions granted to each of them.

func (*AccountsPermissionsService) Update

func (r *AccountsPermissionsService) Update(accountId string, permissionId string, useraccess *UserAccess) *AccountsPermissionsUpdateCall

Update: Updates a user's Account & Container Permissions.

type AccountsPermissionsUpdateCall

type AccountsPermissionsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsPermissionsUpdateCall) Do

func (*AccountsPermissionsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type AccountsService

type AccountsService struct {
	Containers *AccountsContainersService

	Permissions *AccountsPermissionsService
	// contains filtered or unexported fields
}

func NewAccountsService

func NewAccountsService(s *Service) *AccountsService

func (*AccountsService) Get

func (r *AccountsService) Get(accountId string) *AccountsGetCall

Get: Gets a GTM Account.

func (*AccountsService) List

func (r *AccountsService) List() *AccountsListCall

List: Lists all GTM Accounts that a user has access to.

func (*AccountsService) Update

func (r *AccountsService) Update(accountId string, account *Account) *AccountsUpdateCall

Update: Updates a GTM Account.

type AccountsUpdateCall

type AccountsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*AccountsUpdateCall) Do

func (c *AccountsUpdateCall) Do() (*Account, error)

func (*AccountsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsUpdateCall) Fingerprint

func (c *AccountsUpdateCall) Fingerprint(fingerprint string) *AccountsUpdateCall

Fingerprint sets the optional parameter "fingerprint": When provided, this fingerprint must match the fingerprint of the account in storage.

type Condition

type Condition struct {
	// Parameter: A list of named parameters (key/value), depending on the
	// condition's type. Notes:
	// - For binary operators, include parameters named arg0 and arg1 for
	// specifying the left and right operands, respectively.
	// - At this time, the left operand (arg0) must be a reference to a
	// macro.
	// - For case-insensitive Regex matching, include a boolean parameter
	// named ignore_case that is set to true. If not specified or set to any
	// other value, the matching will be case sensitive.
	// - To negate an operator, include a boolean parameter named negate
	// boolean parameter that is set to true.
	Parameter []*Parameter `json:"parameter,omitempty"`

	// Type: The type of operator for this condition.
	Type string `json:"type,omitempty"`
}

type Container

type Container struct {
	// AccountId: GTM Account ID.
	AccountId string `json:"accountId,omitempty"`

	// ContainerId: The Container ID uniquely identifies the GTM Container.
	ContainerId string `json:"containerId,omitempty"`

	// DomainName: Optional list of domain names associated with the
	// Container.
	DomainName []string `json:"domainName,omitempty"`

	// EnabledBuiltInVariable: List of enabled built-in variables. Valid
	// values include: pageUrl, pageHostname, pagePath, referrer, event,
	// clickElement, clickClasses, clickId, clickTarget, clickUrl,
	// clickText, formElement, formClasses, formId, formTarget, formUrl,
	// formText, errorMessage, errorUrl, errorLine, newHistoryFragment,
	// oldHistoryFragment, newHistoryState, oldHistoryState, historySource,
	// containerVersion, debugMode, randomNumber, containerId.
	EnabledBuiltInVariable []string `json:"enabledBuiltInVariable,omitempty"`

	// Fingerprint: The fingerprint of the GTM Container as computed at
	// storage time. This value is recomputed whenever the account is
	// modified.
	Fingerprint string `json:"fingerprint,omitempty"`

	// Name: Container display name.
	Name string `json:"name,omitempty"`

	// Notes: Container Notes.
	Notes string `json:"notes,omitempty"`

	// PublicId: Container Public ID.
	PublicId string `json:"publicId,omitempty"`

	// TimeZoneCountryId: Container Country ID.
	TimeZoneCountryId string `json:"timeZoneCountryId,omitempty"`

	// TimeZoneId: Container Time Zone ID.
	TimeZoneId string `json:"timeZoneId,omitempty"`

	// UsageContext: List of Usage Contexts for the Container. Valid values
	// include: web, android, ios.
	UsageContext []string `json:"usageContext,omitempty"`
}

type ContainerAccess

type ContainerAccess struct {
	// ContainerId: GTM Container ID.
	ContainerId string `json:"containerId,omitempty"`

	// Permission: List of Container permissions. Valid container
	// permissions are: read, edit, delete, publish.
	Permission []string `json:"permission,omitempty"`
}

type ContainerVersion

type ContainerVersion struct {
	// AccountId: GTM Account ID.
	AccountId string `json:"accountId,omitempty"`

	// Container: The container that this version was taken from.
	Container *Container `json:"container,omitempty"`

	// ContainerId: GTM Container ID.
	ContainerId string `json:"containerId,omitempty"`

	// ContainerVersionId: The Container Version ID uniquely identifies the
	// GTM Container Version.
	ContainerVersionId string `json:"containerVersionId,omitempty"`

	// Deleted: A value of true indicates this container version has been
	// deleted.
	Deleted bool `json:"deleted,omitempty"`

	// Fingerprint: The fingerprint of the GTM Container Version as computed
	// at storage time. This value is recomputed whenever the container
	// version is modified.
	Fingerprint string `json:"fingerprint,omitempty"`

	// Macro: The macros in the container that this version was taken from.
	Macro []*Macro `json:"macro,omitempty"`

	// Name: Container version display name.
	Name string `json:"name,omitempty"`

	// Notes: User notes on how to apply this container version in the
	// container.
	Notes string `json:"notes,omitempty"`

	// Rule: The rules in the container that this version was taken from.
	Rule []*Rule `json:"rule,omitempty"`

	// Tag: The tags in the container that this version was taken from.
	Tag []*Tag `json:"tag,omitempty"`

	// Trigger: The triggers in the container that this version was taken
	// from.
	Trigger []*Trigger `json:"trigger,omitempty"`

	// Variable: The variables in the container that this version was taken
	// from.
	Variable []*Variable `json:"variable,omitempty"`
}

type ContainerVersionHeader

type ContainerVersionHeader struct {
	// AccountId: GTM Account ID.
	AccountId string `json:"accountId,omitempty"`

	// ContainerId: GTM Container ID.
	ContainerId string `json:"containerId,omitempty"`

	// ContainerVersionId: The Container Version ID uniquely identifies the
	// GTM Container Version.
	ContainerVersionId string `json:"containerVersionId,omitempty"`

	// Deleted: A value of true indicates this container version has been
	// deleted.
	Deleted bool `json:"deleted,omitempty"`

	// Name: Container version display name.
	Name string `json:"name,omitempty"`

	// NumMacros: Number of macros in the container version.
	NumMacros string `json:"numMacros,omitempty"`

	// NumRules: Number of rules in the container version.
	NumRules string `json:"numRules,omitempty"`

	// NumTags: Number of tags in the container version.
	NumTags string `json:"numTags,omitempty"`

	// NumTriggers: Number of triggers in the container version.
	NumTriggers string `json:"numTriggers,omitempty"`

	// NumVariables: Number of variables in the container version.
	NumVariables string `json:"numVariables,omitempty"`
}

type CreateContainerVersionRequestVersionOptions

type CreateContainerVersionRequestVersionOptions struct {
	// Name: The name of the container version to be created.
	Name string `json:"name,omitempty"`

	// Notes: The notes of the container version to be created.
	Notes string `json:"notes,omitempty"`

	// QuickPreview: The creation of this version may be for quick preview
	// and shouldn't be saved.
	QuickPreview bool `json:"quickPreview,omitempty"`
}

type CreateContainerVersionResponse

type CreateContainerVersionResponse struct {
	// CompilerError: Compiler errors or not.
	CompilerError bool `json:"compilerError,omitempty"`

	// ContainerVersion: The container version created.
	ContainerVersion *ContainerVersion `json:"containerVersion,omitempty"`
}

type ListAccountUsersResponse

type ListAccountUsersResponse struct {
	// UserAccess: All GTM AccountUsers of a GTM Account.
	UserAccess []*UserAccess `json:"userAccess,omitempty"`
}

type ListAccountsResponse

type ListAccountsResponse struct {
	// Accounts: List of GTM Accounts that a user has access to.
	Accounts []*Account `json:"accounts,omitempty"`
}

type ListContainerVersionsResponse

type ListContainerVersionsResponse struct {
	// ContainerVersion: All versions of a GTM Container.
	ContainerVersion []*ContainerVersion `json:"containerVersion,omitempty"`

	// ContainerVersionHeader: All container version headers of a GTM
	// Container.
	ContainerVersionHeader []*ContainerVersionHeader `json:"containerVersionHeader,omitempty"`
}

type ListContainersResponse

type ListContainersResponse struct {
	// Containers: All Containers of a GTM Account.
	Containers []*Container `json:"containers,omitempty"`
}

type ListMacrosResponse

type ListMacrosResponse struct {
	// Macros: All GTM Macros of a GTM Container.
	Macros []*Macro `json:"macros,omitempty"`
}

type ListRulesResponse

type ListRulesResponse struct {
	// Rules: All GTM Rules of a GTM Container.
	Rules []*Rule `json:"rules,omitempty"`
}

type ListTagsResponse

type ListTagsResponse struct {
	// Tags: All GTM Tags of a GTM Container.
	Tags []*Tag `json:"tags,omitempty"`
}

type ListTriggersResponse

type ListTriggersResponse struct {
	// Triggers: All GTM Triggers of a GTM Container.
	Triggers []*Trigger `json:"triggers,omitempty"`
}

type ListVariablesResponse

type ListVariablesResponse struct {
	// Variables: All GTM Variables of a GTM Container.
	Variables []*Variable `json:"variables,omitempty"`
}

type Macro

type Macro struct {
	// AccountId: GTM Account ID.
	AccountId string `json:"accountId,omitempty"`

	// ContainerId: GTM Container ID.
	ContainerId string `json:"containerId,omitempty"`

	// 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.
	// Treated as an unordered set.
	DisablingRuleId []string `json:"disablingRuleId,omitempty"`

	// 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.
	// Treated as an unordered set.
	EnablingRuleId []string `json:"enablingRuleId,omitempty"`

	// Fingerprint: The fingerprint of the GTM Macro as computed at storage
	// time. This value is recomputed whenever the macro is modified.
	Fingerprint string `json:"fingerprint,omitempty"`

	// MacroId: The Macro ID uniquely identifies the GTM Macro.
	MacroId string `json:"macroId,omitempty"`

	// Name: Macro display name.
	Name string `json:"name,omitempty"`

	// Notes: User notes on how to apply this macro in the container.
	Notes string `json:"notes,omitempty"`

	// Parameter: The macro's parameters.
	Parameter []*Parameter `json:"parameter,omitempty"`

	// ScheduleEndMs: The end timestamp in milliseconds to schedule a macro.
	ScheduleEndMs int64 `json:"scheduleEndMs,omitempty,string"`

	// ScheduleStartMs: The start timestamp in milliseconds to schedule a
	// macro.
	ScheduleStartMs int64 `json:"scheduleStartMs,omitempty,string"`

	// Type: GTM Macro Type.
	Type string `json:"type,omitempty"`
}

type Parameter

type Parameter struct {
	// Key: The named key that uniquely identifies a parameter. Required for
	// top-level parameters, as well as map values. Ignored for list values.
	Key string `json:"key,omitempty"`

	// List: This list parameter's parameters (keys will be ignored).
	List []*Parameter `json:"list,omitempty"`

	// Map: This map parameter's parameters (must have keys; keys must be
	// unique).
	Map []*Parameter `json:"map,omitempty"`

	// Type: The parameter type. Valid values are:
	// - boolean: The value represents a boolean, represented as 'true' or
	// 'false'
	// - integer: The value represents a 64-bit signed integer value, in
	// base 10
	// - list: A list of parameters should be specified
	// - map: A map of parameters should be specified
	// - template: The value represents any text; this can include macro
	// references (even macro references that might return non-string types)
	Type string `json:"type,omitempty"`

	// Value: A parameter's value (may contain macro references such as
	// "{{myMacro}}") as appropriate to the specified type.
	Value string `json:"value,omitempty"`
}

type PublishContainerVersionResponse

type PublishContainerVersionResponse struct {
	// CompilerError: Compiler errors or not.
	CompilerError bool `json:"compilerError,omitempty"`

	// ContainerVersion: The container version created.
	ContainerVersion *ContainerVersion `json:"containerVersion,omitempty"`
}

type Rule

type Rule struct {
	// AccountId: GTM Account ID.
	AccountId string `json:"accountId,omitempty"`

	// Condition: The list of conditions that make up this rule (implicit
	// AND between them).
	Condition []*Condition `json:"condition,omitempty"`

	// ContainerId: GTM Container ID.
	ContainerId string `json:"containerId,omitempty"`

	// Fingerprint: The fingerprint of the GTM Rule as computed at storage
	// time. This value is recomputed whenever the rule is modified.
	Fingerprint string `json:"fingerprint,omitempty"`

	// Name: Rule display name.
	Name string `json:"name,omitempty"`

	// Notes: User notes on how to apply this rule in the container.
	Notes string `json:"notes,omitempty"`

	// RuleId: The Rule ID uniquely identifies the GTM Rule.
	RuleId string `json:"ruleId,omitempty"`
}

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Accounts *AccountsService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

type Tag

type Tag struct {
	// AccountId: GTM Account ID.
	AccountId string `json:"accountId,omitempty"`

	// BlockingRuleId: Blocking rule IDs. If any of the listed rules
	// evaluate to true, the tag will not fire.
	BlockingRuleId []string `json:"blockingRuleId,omitempty"`

	// BlockingTriggerId: Blocking trigger IDs. If any of the listed
	// triggers evaluate to true, the tag will not fire.
	BlockingTriggerId []string `json:"blockingTriggerId,omitempty"`

	// ContainerId: GTM Container ID.
	ContainerId string `json:"containerId,omitempty"`

	// Fingerprint: The fingerprint of the GTM Tag as computed at storage
	// time. This value is recomputed whenever the tag is modified.
	Fingerprint string `json:"fingerprint,omitempty"`

	// FiringRuleId: 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.
	FiringRuleId []string `json:"firingRuleId,omitempty"`

	// FiringTriggerId: 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.
	FiringTriggerId []string `json:"firingTriggerId,omitempty"`

	// LiveOnly: If set to true, this tag will only fire in the live
	// environment (e.g. not in preview or debug mode).
	LiveOnly bool `json:"liveOnly,omitempty"`

	// Name: Tag display name.
	Name string `json:"name,omitempty"`

	// Notes: User notes on how to apply this tag in the container.
	Notes string `json:"notes,omitempty"`

	// Parameter: The tag's parameters.
	Parameter []*Parameter `json:"parameter,omitempty"`

	// Priority: User defined numeric priority of the tag. Tags are fired
	// asynchronously in order of priority. Tags with higher numeric value
	// fire first. A tag's priority can be a positive or negative value. The
	// default value is 0.
	Priority *Parameter `json:"priority,omitempty"`

	// ScheduleEndMs: The end timestamp in milliseconds to schedule a tag.
	ScheduleEndMs int64 `json:"scheduleEndMs,omitempty,string"`

	// ScheduleStartMs: The start timestamp in milliseconds to schedule a
	// tag.
	ScheduleStartMs int64 `json:"scheduleStartMs,omitempty,string"`

	// TagId: The Tag ID uniquely identifies the GTM Tag.
	TagId string `json:"tagId,omitempty"`

	// Type: GTM Tag Type.
	Type string `json:"type,omitempty"`
}

type Trigger

type Trigger struct {
	// AccountId: GTM Account ID.
	AccountId string `json:"accountId,omitempty"`

	// AutoEventFilter: Used in the case of auto event tracking.
	AutoEventFilter []*Condition `json:"autoEventFilter,omitempty"`

	// CheckValidation: Whether or not we should only fire tags if the form
	// submit or link click event is not cancelled by some other event
	// handler (e.g. because of validation). Only valid for Form Submission
	// and Link Click triggers.
	CheckValidation *Parameter `json:"checkValidation,omitempty"`

	// ContainerId: GTM Container ID.
	ContainerId string `json:"containerId,omitempty"`

	// CustomEventFilter: Used in the case of custom event, which is fired
	// iff all Conditions are true.
	CustomEventFilter []*Condition `json:"customEventFilter,omitempty"`

	// EnableAllVideos: Reloads the videos in the page that don't already
	// have the YT API enabled. If false, only capture events from videos
	// that already have the API enabled. Only valid for YouTube triggers.
	EnableAllVideos *Parameter `json:"enableAllVideos,omitempty"`

	// EventName: Name of the GTM event that is fired. Only valid for Timer
	// triggers.
	EventName *Parameter `json:"eventName,omitempty"`

	// Filter: The trigger will only fire iff all Conditions are true.
	Filter []*Condition `json:"filter,omitempty"`

	// Fingerprint: The fingerprint of the GTM Trigger as computed at
	// storage time. This value is recomputed whenever the trigger is
	// modified.
	Fingerprint string `json:"fingerprint,omitempty"`

	// Interval: Time between triggering recurring Timer Events (in
	// milliseconds). Only valid for Timer triggers.
	Interval *Parameter `json:"interval,omitempty"`

	// Limit: Limit of the number of GTM events this Timer Trigger will
	// fire. If no limit is set, we will continue to fire GTM events until
	// the user leaves the page. Only valid for Timer triggers.
	Limit *Parameter `json:"limit,omitempty"`

	// Name: Trigger display name.
	Name string `json:"name,omitempty"`

	// TriggerId: The Trigger ID uniquely identifies the GTM Trigger.
	TriggerId string `json:"triggerId,omitempty"`

	// Type: Defines the data layer event that causes this trigger.
	Type string `json:"type,omitempty"`

	// UniqueTriggerId: Globally unique id of the trigger that
	// auto-generates this (a Form Submit, Link Click or Timer listener) if
	// any. Used to make incompatible auto-events work together with trigger
	// filtering based on trigger ids. This value is populated during output
	// generation since the tags implied by triggers don't exist until then.
	// Only valid for Form Submit, Link Click and Timer triggers.
	UniqueTriggerId *Parameter `json:"uniqueTriggerId,omitempty"`

	// VideoPercentageList: List of integer percentage values. The trigger
	// will fire as each percentage is reached in any instrumented videos.
	// Only valid for YouTube triggers.
	VideoPercentageList *Parameter `json:"videoPercentageList,omitempty"`

	// WaitForTags: Whether or not we should delay the form submissions or
	// link opening until all of the tags have fired (by preventing the
	// default action and later simulating the default action). Only valid
	// for Form Submission and Link Click triggers.
	WaitForTags *Parameter `json:"waitForTags,omitempty"`

	// WaitForTagsTimeout: How long to wait (in milliseconds) for tags to
	// fire when 'waits_for_tags' above evaluates to true. Only valid for
	// Form Submission and Link Click triggers.
	WaitForTagsTimeout *Parameter `json:"waitForTagsTimeout,omitempty"`
}

type UserAccess

type UserAccess struct {
	// AccountAccess: GTM Account access permissions.
	AccountAccess *AccountAccess `json:"accountAccess,omitempty"`

	// AccountId: GTM Account ID.
	AccountId string `json:"accountId,omitempty"`

	// ContainerAccess: GTM Container access permissions.
	ContainerAccess []*ContainerAccess `json:"containerAccess,omitempty"`

	// EmailAddress: User's email address.
	EmailAddress string `json:"emailAddress,omitempty"`

	// PermissionId: Account Permission ID.
	PermissionId string `json:"permissionId,omitempty"`
}

type Variable

type Variable struct {
	// AccountId: GTM Account ID.
	AccountId string `json:"accountId,omitempty"`

	// ContainerId: GTM Container ID.
	ContainerId string `json:"containerId,omitempty"`

	// 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.
	DisablingTriggerId []string `json:"disablingTriggerId,omitempty"`

	// 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.
	EnablingTriggerId []string `json:"enablingTriggerId,omitempty"`

	// Fingerprint: The fingerprint of the GTM Variable as computed at
	// storage time. This value is recomputed whenever the variable is
	// modified.
	Fingerprint string `json:"fingerprint,omitempty"`

	// Name: Variable display name.
	Name string `json:"name,omitempty"`

	// Notes: User notes on how to apply this variable in the container.
	Notes string `json:"notes,omitempty"`

	// Parameter: The variable's parameters.
	Parameter []*Parameter `json:"parameter,omitempty"`

	// ScheduleEndMs: The end timestamp in milliseconds to schedule a
	// variable.
	ScheduleEndMs int64 `json:"scheduleEndMs,omitempty,string"`

	// ScheduleStartMs: The start timestamp in milliseconds to schedule a
	// variable.
	ScheduleStartMs int64 `json:"scheduleStartMs,omitempty,string"`

	// Type: GTM Variable Type.
	Type string `json:"type,omitempty"`

	// VariableId: The Variable ID uniquely identifies the GTM Variable.
	VariableId string `json:"variableId,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL