tagmanager

package
v0.48.1-0...-67a0a95 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Package tagmanager provides access to the Tag Manager API.

For product documentation, see: https://developers.google.com/tag-manager

Creating a client

Usage example:

import "google.golang.org/api/tagmanager/v1"
...
ctx := context.Background()
tagmanagerService, err := tagmanager.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication.

For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:

tagmanagerService, err := tagmanager.NewService(ctx, option.WithScopes(tagmanager.TagmanagerReadonlyScope))

To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:

tagmanagerService, err := tagmanager.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
tagmanagerService, err := tagmanager.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See https://godoc.org/google.golang.org/api/option/ for details on options.

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 container and its subcomponents,
	// excluding versioning and publishing
	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"

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

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

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

	// View your Google Tag Manager container and its subcomponents
	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. @mutable tagmanager.accounts.create
	// @mutable tagmanager.accounts.update
	Name string `json:"name,omitempty"`

	// ShareData: Whether the account shares data anonymously with Google
	// and others. @mutable tagmanager.accounts.create @mutable
	// tagmanager.accounts.update
	ShareData bool `json:"shareData,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AccountId") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AccountId") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Account: Represents a Google Tag Manager Account.

func (*Account) MarshalJSON

func (s *Account) MarshalJSON() ([]byte, error)

type AccountAccess

type AccountAccess struct {
	// Permission: List of Account permissions. Valid account permissions
	// are read and manage. @mutable tagmanager.accounts.permissions.create
	// @mutable tagmanager.accounts.permissions.update
	//
	// Possible values:
	//   "read"
	//   "edit"
	//   "publish"
	//   "delete"
	//   "manage"
	//   "editWorkspace"
	Permission []string `json:"permission,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Permission") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Permission") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

AccountAccess: Defines the Google Tag Manager Account access permissions.

func (*AccountAccess) MarshalJSON

func (s *AccountAccess) MarshalJSON() ([]byte, error)

type AccountsContainersCreateCall

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

func (*AccountsContainersCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersCreateCall) Do

Do executes the "tagmanager.accounts.containers.create" call. Exactly one of *Container or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Container.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersCreateCall) Fields

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

func (*AccountsContainersCreateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersDeleteCall

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

func (*AccountsContainersDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersDeleteCall) Do

Do executes the "tagmanager.accounts.containers.delete" call.

func (*AccountsContainersDeleteCall) Fields

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

func (*AccountsContainersDeleteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersEnvironmentsCreateCall

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

func (*AccountsContainersEnvironmentsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersEnvironmentsCreateCall) Do

Do executes the "tagmanager.accounts.containers.environments.create" call. Exactly one of *Environment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Environment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersEnvironmentsCreateCall) Fields

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

func (*AccountsContainersEnvironmentsCreateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersEnvironmentsDeleteCall

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

func (*AccountsContainersEnvironmentsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersEnvironmentsDeleteCall) Do

Do executes the "tagmanager.accounts.containers.environments.delete" call.

func (*AccountsContainersEnvironmentsDeleteCall) Fields

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

func (*AccountsContainersEnvironmentsDeleteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersEnvironmentsGetCall

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

func (*AccountsContainersEnvironmentsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersEnvironmentsGetCall) Do

Do executes the "tagmanager.accounts.containers.environments.get" call. Exactly one of *Environment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Environment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersEnvironmentsGetCall) Fields

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

func (*AccountsContainersEnvironmentsGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersEnvironmentsGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsContainersEnvironmentsListCall

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

func (*AccountsContainersEnvironmentsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersEnvironmentsListCall) Do

Do executes the "tagmanager.accounts.containers.environments.list" call. Exactly one of *ListEnvironmentsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListEnvironmentsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersEnvironmentsListCall) Fields

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

func (*AccountsContainersEnvironmentsListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersEnvironmentsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsContainersEnvironmentsService

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

func NewAccountsContainersEnvironmentsService

func NewAccountsContainersEnvironmentsService(s *Service) *AccountsContainersEnvironmentsService

func (*AccountsContainersEnvironmentsService) Create

Create: Creates a GTM Environment.

- accountId: The GTM Account ID. - containerId: The GTM Container ID.

func (*AccountsContainersEnvironmentsService) Delete

Delete: Deletes a GTM Environment.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - environmentId: The GTM Environment ID.

func (*AccountsContainersEnvironmentsService) Get

Get: Gets a GTM Environment.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - environmentId: The GTM Environment ID.

func (*AccountsContainersEnvironmentsService) List

List: Lists all GTM Environments of a GTM Container.

- accountId: The GTM Account ID. - containerId: The GTM Container ID.

func (*AccountsContainersEnvironmentsService) Update

func (r *AccountsContainersEnvironmentsService) Update(accountId string, containerId string, environmentId string, environment *Environment) *AccountsContainersEnvironmentsUpdateCall

Update: Updates a GTM Environment.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - environmentId: The GTM Environment ID.

type AccountsContainersEnvironmentsUpdateCall

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

func (*AccountsContainersEnvironmentsUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersEnvironmentsUpdateCall) Do

Do executes the "tagmanager.accounts.containers.environments.update" call. Exactly one of *Environment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Environment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersEnvironmentsUpdateCall) Fields

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

func (*AccountsContainersEnvironmentsUpdateCall) Fingerprint

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

func (*AccountsContainersEnvironmentsUpdateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersFoldersCreateCall

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

func (*AccountsContainersFoldersCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersFoldersCreateCall) Do

Do executes the "tagmanager.accounts.containers.folders.create" call. Exactly one of *Folder or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Folder.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersFoldersCreateCall) Fields

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

func (*AccountsContainersFoldersCreateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersFoldersDeleteCall

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

func (*AccountsContainersFoldersDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersFoldersDeleteCall) Do

Do executes the "tagmanager.accounts.containers.folders.delete" call.

func (*AccountsContainersFoldersDeleteCall) Fields

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

func (*AccountsContainersFoldersDeleteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersFoldersEntitiesListCall

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

func (*AccountsContainersFoldersEntitiesListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersFoldersEntitiesListCall) Do

Do executes the "tagmanager.accounts.containers.folders.entities.list" call. Exactly one of *FolderEntities or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *FolderEntities.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersFoldersEntitiesListCall) Fields

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

func (*AccountsContainersFoldersEntitiesListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersFoldersEntitiesListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsContainersFoldersEntitiesService

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

func NewAccountsContainersFoldersEntitiesService

func NewAccountsContainersFoldersEntitiesService(s *Service) *AccountsContainersFoldersEntitiesService

func (*AccountsContainersFoldersEntitiesService) List

List: List all entities in a GTM Folder.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - folderId: The GTM Folder ID.

type AccountsContainersFoldersGetCall

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

func (*AccountsContainersFoldersGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersFoldersGetCall) Do

Do executes the "tagmanager.accounts.containers.folders.get" call. Exactly one of *Folder or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Folder.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersFoldersGetCall) Fields

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

func (*AccountsContainersFoldersGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersFoldersGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsContainersFoldersListCall

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

func (*AccountsContainersFoldersListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersFoldersListCall) Do

Do executes the "tagmanager.accounts.containers.folders.list" call. Exactly one of *ListFoldersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListFoldersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersFoldersListCall) Fields

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

func (*AccountsContainersFoldersListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersFoldersListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsContainersFoldersService

type AccountsContainersFoldersService struct {
	Entities *AccountsContainersFoldersEntitiesService
	// contains filtered or unexported fields
}

func NewAccountsContainersFoldersService

func NewAccountsContainersFoldersService(s *Service) *AccountsContainersFoldersService

func (*AccountsContainersFoldersService) Create

func (r *AccountsContainersFoldersService) Create(accountId string, containerId string, folder *Folder) *AccountsContainersFoldersCreateCall

Create: Creates a GTM Folder.

- accountId: The GTM Account ID. - containerId: The GTM Container ID.

func (*AccountsContainersFoldersService) Delete

func (r *AccountsContainersFoldersService) Delete(accountId string, containerId string, folderId string) *AccountsContainersFoldersDeleteCall

Delete: Deletes a GTM Folder.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - folderId: The GTM Folder ID.

func (*AccountsContainersFoldersService) Get

func (r *AccountsContainersFoldersService) Get(accountId string, containerId string, folderId string) *AccountsContainersFoldersGetCall

Get: Gets a GTM Folder.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - folderId: The GTM Folder ID.

func (*AccountsContainersFoldersService) List

List: Lists all GTM Folders of a Container.

- accountId: The GTM Account ID. - containerId: The GTM Container ID.

func (*AccountsContainersFoldersService) Update

func (r *AccountsContainersFoldersService) Update(accountId string, containerId string, folderId string, folder *Folder) *AccountsContainersFoldersUpdateCall

Update: Updates a GTM Folder.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - folderId: The GTM Folder ID.

type AccountsContainersFoldersUpdateCall

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

func (*AccountsContainersFoldersUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersFoldersUpdateCall) Do

Do executes the "tagmanager.accounts.containers.folders.update" call. Exactly one of *Folder or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Folder.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersFoldersUpdateCall) Fields

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

func (*AccountsContainersFoldersUpdateCall) Fingerprint

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

func (*AccountsContainersFoldersUpdateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersGetCall

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

func (*AccountsContainersGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersGetCall) Do

Do executes the "tagmanager.accounts.containers.get" call. Exactly one of *Container or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Container.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersGetCall) Fields

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

func (*AccountsContainersGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersGetCall) IfNoneMatch

func (c *AccountsContainersGetCall) IfNoneMatch(entityTag string) *AccountsContainersGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsContainersListCall

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

func (*AccountsContainersListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersListCall) Do

Do executes the "tagmanager.accounts.containers.list" call. Exactly one of *ListContainersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListContainersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersListCall) Fields

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

func (*AccountsContainersListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsContainersMoveFoldersService

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

func NewAccountsContainersMoveFoldersService

func NewAccountsContainersMoveFoldersService(s *Service) *AccountsContainersMoveFoldersService

func (*AccountsContainersMoveFoldersService) Update

func (r *AccountsContainersMoveFoldersService) Update(accountId string, containerId string, folderId string, folder *Folder) *AccountsContainersMoveFoldersUpdateCall

Update: Moves entities to a GTM Folder.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - folderId: The GTM Folder ID.

type AccountsContainersMoveFoldersUpdateCall

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

func (*AccountsContainersMoveFoldersUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersMoveFoldersUpdateCall) Do

Do executes the "tagmanager.accounts.containers.move_folders.update" call.

func (*AccountsContainersMoveFoldersUpdateCall) Fields

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

func (*AccountsContainersMoveFoldersUpdateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersMoveFoldersUpdateCall) TagId

TagId sets the optional parameter "tagId": The tags to be moved to the folder.

func (*AccountsContainersMoveFoldersUpdateCall) TriggerId

TriggerId sets the optional parameter "triggerId": The triggers to be moved to the folder.

func (*AccountsContainersMoveFoldersUpdateCall) VariableId

VariableId sets the optional parameter "variableId": The variables to be moved to the folder.

type AccountsContainersReauthorizeEnvironmentsService

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

func NewAccountsContainersReauthorizeEnvironmentsService

func NewAccountsContainersReauthorizeEnvironmentsService(s *Service) *AccountsContainersReauthorizeEnvironmentsService

func (*AccountsContainersReauthorizeEnvironmentsService) Update

Update: Re-generates the authorization code for a GTM Environment.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - environmentId: The GTM Environment ID.

type AccountsContainersReauthorizeEnvironmentsUpdateCall

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

func (*AccountsContainersReauthorizeEnvironmentsUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersReauthorizeEnvironmentsUpdateCall) Do

Do executes the "tagmanager.accounts.containers.reauthorize_environments.update" call. Exactly one of *Environment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Environment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersReauthorizeEnvironmentsUpdateCall) Fields

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

func (*AccountsContainersReauthorizeEnvironmentsUpdateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersService

type AccountsContainersService struct {
	Environments *AccountsContainersEnvironmentsService

	Folders *AccountsContainersFoldersService

	MoveFolders *AccountsContainersMoveFoldersService

	ReauthorizeEnvironments *AccountsContainersReauthorizeEnvironmentsService

	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.

- accountId: The GTM Account ID.

func (*AccountsContainersService) Delete

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

Delete: Deletes a Container.

- accountId: The GTM Account ID. - containerId: The GTM Container ID.

func (*AccountsContainersService) Get

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

Get: Gets a Container.

- accountId: The GTM Account ID. - containerId: The GTM Container ID.

func (*AccountsContainersService) List

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

- accountId: The GTM Account ID.

func (*AccountsContainersService) Update

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

Update: Updates a Container.

- accountId: The GTM Account ID. - containerId: The GTM Container ID.

type AccountsContainersTagsCreateCall

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

func (*AccountsContainersTagsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersTagsCreateCall) Do

Do executes the "tagmanager.accounts.containers.tags.create" call. Exactly one of *Tag or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Tag.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersTagsCreateCall) Fields

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

func (*AccountsContainersTagsCreateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersTagsDeleteCall

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

func (*AccountsContainersTagsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersTagsDeleteCall) Do

Do executes the "tagmanager.accounts.containers.tags.delete" call.

func (*AccountsContainersTagsDeleteCall) Fields

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

func (*AccountsContainersTagsDeleteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersTagsGetCall

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

func (*AccountsContainersTagsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersTagsGetCall) Do

Do executes the "tagmanager.accounts.containers.tags.get" call. Exactly one of *Tag or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Tag.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersTagsGetCall) Fields

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

func (*AccountsContainersTagsGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersTagsGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsContainersTagsListCall

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

func (*AccountsContainersTagsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersTagsListCall) Do

Do executes the "tagmanager.accounts.containers.tags.list" call. Exactly one of *ListTagsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListTagsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersTagsListCall) Fields

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

func (*AccountsContainersTagsListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersTagsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

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.

- accountId: The GTM Account ID. - containerId: The GTM Container ID.

func (*AccountsContainersTagsService) Delete

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

Delete: Deletes a GTM Tag.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - tagId: The GTM Tag ID.

func (*AccountsContainersTagsService) Get

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

Get: Gets a GTM Tag.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - tagId: The GTM Tag ID.

func (*AccountsContainersTagsService) List

List: Lists all GTM Tags of a Container.

- accountId: The GTM Account ID. - containerId: The GTM Container ID.

func (*AccountsContainersTagsService) Update

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

Update: Updates a GTM Tag.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - tagId: The GTM Tag ID.

type AccountsContainersTagsUpdateCall

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

func (*AccountsContainersTagsUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersTagsUpdateCall) Do

Do executes the "tagmanager.accounts.containers.tags.update" call. Exactly one of *Tag or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Tag.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

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.

func (*AccountsContainersTagsUpdateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersTriggersCreateCall

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

func (*AccountsContainersTriggersCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersTriggersCreateCall) Do

Do executes the "tagmanager.accounts.containers.triggers.create" call. Exactly one of *Trigger or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Trigger.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersTriggersCreateCall) Fields

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

func (*AccountsContainersTriggersCreateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersTriggersDeleteCall

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

func (*AccountsContainersTriggersDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersTriggersDeleteCall) Do

Do executes the "tagmanager.accounts.containers.triggers.delete" call.

func (*AccountsContainersTriggersDeleteCall) Fields

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

func (*AccountsContainersTriggersDeleteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersTriggersGetCall

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

func (*AccountsContainersTriggersGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersTriggersGetCall) Do

Do executes the "tagmanager.accounts.containers.triggers.get" call. Exactly one of *Trigger or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Trigger.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersTriggersGetCall) Fields

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

func (*AccountsContainersTriggersGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersTriggersGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsContainersTriggersListCall

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

func (*AccountsContainersTriggersListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersTriggersListCall) Do

Do executes the "tagmanager.accounts.containers.triggers.list" call. Exactly one of *ListTriggersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListTriggersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersTriggersListCall) Fields

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

func (*AccountsContainersTriggersListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersTriggersListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

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.

- accountId: The GTM Account ID. - containerId: The GTM Container ID.

func (*AccountsContainersTriggersService) Delete

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

Delete: Deletes a GTM Trigger.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - triggerId: The GTM Trigger ID.

func (*AccountsContainersTriggersService) Get

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

Get: Gets a GTM Trigger.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - triggerId: The GTM Trigger ID.

func (*AccountsContainersTriggersService) List

List: Lists all GTM Triggers of a Container.

- accountId: The GTM Account ID. - containerId: The GTM Container ID.

func (*AccountsContainersTriggersService) Update

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

Update: Updates a GTM Trigger.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - triggerId: The GTM Trigger ID.

type AccountsContainersTriggersUpdateCall

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

func (*AccountsContainersTriggersUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersTriggersUpdateCall) Do

Do executes the "tagmanager.accounts.containers.triggers.update" call. Exactly one of *Trigger or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Trigger.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

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.

func (*AccountsContainersTriggersUpdateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersUpdateCall

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

func (*AccountsContainersUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersUpdateCall) Do

Do executes the "tagmanager.accounts.containers.update" call. Exactly one of *Container or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Container.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

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.

func (*AccountsContainersUpdateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersVariablesCreateCall

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

func (*AccountsContainersVariablesCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersVariablesCreateCall) Do

Do executes the "tagmanager.accounts.containers.variables.create" call. Exactly one of *Variable or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Variable.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersVariablesCreateCall) Fields

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

func (*AccountsContainersVariablesCreateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersVariablesDeleteCall

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

func (*AccountsContainersVariablesDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersVariablesDeleteCall) Do

Do executes the "tagmanager.accounts.containers.variables.delete" call.

func (*AccountsContainersVariablesDeleteCall) Fields

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

func (*AccountsContainersVariablesDeleteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersVariablesGetCall

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

func (*AccountsContainersVariablesGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersVariablesGetCall) Do

Do executes the "tagmanager.accounts.containers.variables.get" call. Exactly one of *Variable or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Variable.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersVariablesGetCall) Fields

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

func (*AccountsContainersVariablesGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersVariablesGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsContainersVariablesListCall

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

func (*AccountsContainersVariablesListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersVariablesListCall) Do

Do executes the "tagmanager.accounts.containers.variables.list" call. Exactly one of *ListVariablesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListVariablesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersVariablesListCall) Fields

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

func (*AccountsContainersVariablesListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersVariablesListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

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.

- accountId: The GTM Account ID. - containerId: The GTM Container ID.

func (*AccountsContainersVariablesService) Delete

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

Delete: Deletes a GTM Variable.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - variableId: The GTM Variable ID.

func (*AccountsContainersVariablesService) Get

Get: Gets a GTM Variable.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - variableId: The GTM Variable ID.

func (*AccountsContainersVariablesService) List

List: Lists all GTM Variables of a Container.

- accountId: The GTM Account ID. - containerId: The GTM Container ID.

func (*AccountsContainersVariablesService) Update

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

Update: Updates a GTM Variable.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - variableId: The GTM Variable ID.

type AccountsContainersVariablesUpdateCall

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

func (*AccountsContainersVariablesUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersVariablesUpdateCall) Do

Do executes the "tagmanager.accounts.containers.variables.update" call. Exactly one of *Variable or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Variable.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

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.

func (*AccountsContainersVariablesUpdateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersVersionsCreateCall

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

func (*AccountsContainersVersionsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersVersionsCreateCall) Do

Do executes the "tagmanager.accounts.containers.versions.create" call. Exactly one of *CreateContainerVersionResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CreateContainerVersionResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersVersionsCreateCall) Fields

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

func (*AccountsContainersVersionsCreateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersVersionsDeleteCall

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

func (*AccountsContainersVersionsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersVersionsDeleteCall) Do

Do executes the "tagmanager.accounts.containers.versions.delete" call.

func (*AccountsContainersVersionsDeleteCall) Fields

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

func (*AccountsContainersVersionsDeleteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersVersionsGetCall

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

func (*AccountsContainersVersionsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersVersionsGetCall) Do

Do executes the "tagmanager.accounts.containers.versions.get" call. Exactly one of *ContainerVersion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ContainerVersion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersVersionsGetCall) Fields

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

func (*AccountsContainersVersionsGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersVersionsGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsContainersVersionsListCall

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

func (*AccountsContainersVersionsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersVersionsListCall) Do

Do executes the "tagmanager.accounts.containers.versions.list" call. Exactly one of *ListContainerVersionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListContainerVersionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

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) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsContainersVersionsListCall) Headers

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

func (*AccountsContainersVersionsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AccountsContainersVersionsListCall) IncludeDeleted

IncludeDeleted sets the optional parameter "includeDeleted": Also retrieve deleted (archived) versions when true.

type AccountsContainersVersionsPublishCall

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

func (*AccountsContainersVersionsPublishCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersVersionsPublishCall) Do

Do executes the "tagmanager.accounts.containers.versions.publish" call. Exactly one of *PublishContainerVersionResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PublishContainerVersionResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

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.

func (*AccountsContainersVersionsPublishCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersVersionsRestoreCall

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

func (*AccountsContainersVersionsRestoreCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersVersionsRestoreCall) Do

Do executes the "tagmanager.accounts.containers.versions.restore" call. Exactly one of *ContainerVersion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ContainerVersion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersVersionsRestoreCall) Fields

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

func (*AccountsContainersVersionsRestoreCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

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.

- accountId: The GTM Account ID. - containerId: The GTM Container ID.

func (*AccountsContainersVersionsService) Delete

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

Delete: Deletes a Container Version.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - containerVersionId: The GTM Container Version ID.

func (*AccountsContainersVersionsService) Get

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

Get: Gets a Container Version.

  • accountId: The GTM Account ID.
  • containerId: The GTM Container ID.
  • containerVersionId: The GTM Container Version ID. Specify published to retrieve the currently published version.

func (*AccountsContainersVersionsService) List

List: Lists all Container Versions of a GTM Container.

- accountId: The GTM Account ID. - containerId: The GTM Container ID.

func (*AccountsContainersVersionsService) Publish

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

Publish: Publishes a Container Version.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - containerVersionId: The GTM Container Version ID.

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 variables, triggers and tags). The operation will not have any effect on the version that is being served (i.e. the published version).

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - containerVersionId: The GTM Container Version ID.

func (*AccountsContainersVersionsService) Undelete

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

Undelete: Undeletes a Container Version.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - containerVersionId: The GTM Container Version ID.

func (*AccountsContainersVersionsService) Update

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

Update: Updates a Container Version.

- accountId: The GTM Account ID. - containerId: The GTM Container ID. - containerVersionId: The GTM Container Version ID.

type AccountsContainersVersionsUndeleteCall

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

func (*AccountsContainersVersionsUndeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersVersionsUndeleteCall) Do

Do executes the "tagmanager.accounts.containers.versions.undelete" call. Exactly one of *ContainerVersion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ContainerVersion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsContainersVersionsUndeleteCall) Fields

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

func (*AccountsContainersVersionsUndeleteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsContainersVersionsUpdateCall

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

func (*AccountsContainersVersionsUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsContainersVersionsUpdateCall) Do

Do executes the "tagmanager.accounts.containers.versions.update" call. Exactly one of *ContainerVersion or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ContainerVersion.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

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.

func (*AccountsContainersVersionsUpdateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsGetCall

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

func (*AccountsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsGetCall) Do

func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error)

Do executes the "tagmanager.accounts.get" call. Exactly one of *Account or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsGetCall) Fields

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

func (*AccountsGetCall) Header

func (c *AccountsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsGetCall) IfNoneMatch

func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsListCall

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

func (*AccountsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsListCall) Do

Do executes the "tagmanager.accounts.list" call. Exactly one of *ListAccountsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListAccountsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsListCall) Fields

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

func (*AccountsListCall) Header

func (c *AccountsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsListCall) IfNoneMatch

func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsPermissionsCreateCall

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

func (*AccountsPermissionsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsPermissionsCreateCall) Do

Do executes the "tagmanager.accounts.permissions.create" call. Exactly one of *UserAccess or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UserAccess.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsPermissionsCreateCall) Fields

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

func (*AccountsPermissionsCreateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsPermissionsDeleteCall

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

func (*AccountsPermissionsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsPermissionsDeleteCall) Do

Do executes the "tagmanager.accounts.permissions.delete" call.

func (*AccountsPermissionsDeleteCall) Fields

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

func (*AccountsPermissionsDeleteCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsPermissionsGetCall

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

func (*AccountsPermissionsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsPermissionsGetCall) Do

Do executes the "tagmanager.accounts.permissions.get" call. Exactly one of *UserAccess or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UserAccess.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsPermissionsGetCall) Fields

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

func (*AccountsPermissionsGetCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsPermissionsGetCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsPermissionsListCall

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

func (*AccountsPermissionsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsPermissionsListCall) Do

Do executes the "tagmanager.accounts.permissions.list" call. Exactly one of *ListAccountUsersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListAccountUsersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsPermissionsListCall) Fields

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

func (*AccountsPermissionsListCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsPermissionsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

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.

- accountId: The GTM Account ID.

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.

- accountId: The GTM Account ID. - permissionId: The GTM User ID.

func (*AccountsPermissionsService) Get

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

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

- accountId: The GTM Account ID. - permissionId: The GTM User ID.

func (*AccountsPermissionsService) List

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

- accountId: The GTM Account ID.

func (*AccountsPermissionsService) Update

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

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

- accountId: The GTM Account ID. - permissionId: The GTM User ID.

type AccountsPermissionsUpdateCall

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

func (*AccountsPermissionsUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsPermissionsUpdateCall) Do

Do executes the "tagmanager.accounts.permissions.update" call. Exactly one of *UserAccess or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UserAccess.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsPermissionsUpdateCall) Fields

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

func (*AccountsPermissionsUpdateCall) Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

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.

- accountId: The GTM Account ID.

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.

- accountId: The GTM Account ID.

type AccountsUpdateCall

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

func (*AccountsUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsUpdateCall) Do

Do executes the "tagmanager.accounts.update" call. Exactly one of *Account or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

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.

func (*AccountsUpdateCall) Header

func (c *AccountsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

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 variable. - 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. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	Parameter []*Parameter `json:"parameter,omitempty"`

	// Type: The type of operator for this condition. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	//
	// Possible values:
	//   "equals"
	//   "contains"
	//   "startsWith"
	//   "endsWith"
	//   "matchRegex"
	//   "greater"
	//   "greaterOrEquals"
	//   "less"
	//   "lessOrEquals"
	//   "cssSelector"
	//   "urlMatches"
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Parameter") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Parameter") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Condition: Represents a predicate.

func (*Condition) MarshalJSON

func (s *Condition) MarshalJSON() ([]byte, error)

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. @mutable tagmanager.accounts.containers.create @mutable
	// tagmanager.accounts.containers.update
	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. @mutable
	// tagmanager.accounts.containers.create @mutable
	// tagmanager.accounts.containers.update
	//
	// Possible values:
	//   "pageUrl"
	//   "pageHostname"
	//   "pagePath"
	//   "referrer"
	//   "event" - For web or mobile.
	//   "clickElement"
	//   "clickClasses"
	//   "clickId"
	//   "clickTarget"
	//   "clickUrl"
	//   "clickText"
	//   "firstPartyServingUrl"
	//   "formElement"
	//   "formClasses"
	//   "formId"
	//   "formTarget"
	//   "formUrl"
	//   "formText"
	//   "environmentName"
	//   "errorMessage"
	//   "errorUrl"
	//   "errorLine"
	//   "newHistoryUrl"
	//   "oldHistoryUrl"
	//   "newHistoryFragment"
	//   "oldHistoryFragment"
	//   "newHistoryState"
	//   "oldHistoryState"
	//   "historySource"
	//   "containerVersion" - For web or mobile.
	//   "debugMode"
	//   "randomNumber" - For web or mobile.
	//   "containerId" - For web or mobile.
	//   "appId"
	//   "appName"
	//   "appVersionCode"
	//   "appVersionName"
	//   "language"
	//   "osVersion"
	//   "platform"
	//   "sdkVersion"
	//   "deviceName"
	//   "resolution"
	//   "advertiserId"
	//   "advertisingTrackingEnabled"
	//   "htmlId"
	//   "ampBrowserLanguage"
	//   "ampCanonicalPath"
	//   "ampCanonicalUrl"
	//   "ampCanonicalHost"
	//   "ampReferrer"
	//   "ampTitle"
	//   "ampClientId"
	//   "ampClientTimezone"
	//   "ampClientTimestamp"
	//   "ampClientScreenWidth"
	//   "ampClientScreenHeight"
	//   "ampClientScrollX"
	//   "ampClientScrollY"
	//   "ampClientMaxScrollX"
	//   "ampClientMaxScrollY"
	//   "ampTotalEngagedTime"
	//   "ampPageViewId"
	//   "ampPageLoadTime"
	//   "ampPageDownloadTime"
	//   "ampGtmEvent"
	//   "eventName"
	//   "firebaseEventParameterCampaign"
	//   "firebaseEventParameterCampaignAclid"
	//   "firebaseEventParameterCampaignAnid"
	//   "firebaseEventParameterCampaignClickTimestamp"
	//   "firebaseEventParameterCampaignContent"
	//   "firebaseEventParameterCampaignCp1"
	//   "firebaseEventParameterCampaignGclid"
	//   "firebaseEventParameterCampaignSource"
	//   "firebaseEventParameterCampaignTerm"
	//   "firebaseEventParameterCurrency"
	//   "firebaseEventParameterDynamicLinkAcceptTime"
	//   "firebaseEventParameterDynamicLinkLinkid"
	//   "firebaseEventParameterNotificationMessageDeviceTime"
	//   "firebaseEventParameterNotificationMessageId"
	//   "firebaseEventParameterNotificationMessageName"
	//   "firebaseEventParameterNotificationMessageTime"
	//   "firebaseEventParameterNotificationTopic"
	//   "firebaseEventParameterPreviousAppVersion"
	//   "firebaseEventParameterPreviousOsVersion"
	//   "firebaseEventParameterPrice"
	//   "firebaseEventParameterProductId"
	//   "firebaseEventParameterQuantity"
	//   "firebaseEventParameterValue"
	//   "videoProvider"
	//   "videoUrl"
	//   "videoTitle"
	//   "videoDuration"
	//   "videoPercent"
	//   "videoVisible"
	//   "videoStatus"
	//   "videoCurrentTime"
	//   "scrollDepthThreshold"
	//   "scrollDepthUnits"
	//   "scrollDepthDirection"
	//   "elementVisibilityRatio"
	//   "elementVisibilityTime"
	//   "elementVisibilityFirstTime"
	//   "elementVisibilityRecentTime"
	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. @mutable
	// tagmanager.accounts.containers.create @mutable
	// tagmanager.accounts.containers.update
	Name string `json:"name,omitempty"`

	// Notes: Container Notes. @mutable
	// tagmanager.accounts.containers.create @mutable
	// tagmanager.accounts.containers.update
	Notes string `json:"notes,omitempty"`

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

	// TimeZoneCountryId: Container Country ID. @mutable
	// tagmanager.accounts.containers.create @mutable
	// tagmanager.accounts.containers.update
	TimeZoneCountryId string `json:"timeZoneCountryId,omitempty"`

	// TimeZoneId: Container Time Zone ID. @mutable
	// tagmanager.accounts.containers.create @mutable
	// tagmanager.accounts.containers.update
	TimeZoneId string `json:"timeZoneId,omitempty"`

	// UsageContext: List of Usage Contexts for the Container. Valid values
	// include: web, android, ios. @mutable
	// tagmanager.accounts.containers.create @mutable
	// tagmanager.accounts.containers.update
	//
	// Possible values:
	//   "web"
	//   "android"
	//   "ios"
	//   "androidSdk5"
	//   "iosSdk5"
	//   "amp"
	UsageContext []string `json:"usageContext,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AccountId") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AccountId") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Container: Represents a Google Tag Manager Container.

func (*Container) MarshalJSON

func (s *Container) MarshalJSON() ([]byte, error)

type ContainerAccess

type ContainerAccess struct {
	// ContainerId: GTM Container ID. @mutable
	// tagmanager.accounts.permissions.create @mutable
	// tagmanager.accounts.permissions.update
	ContainerId string `json:"containerId,omitempty"`

	// Permission: List of Container permissions. Valid container
	// permissions are: read, edit, delete, publish. @mutable
	// tagmanager.accounts.permissions.create @mutable
	// tagmanager.accounts.permissions.update
	//
	// Possible values:
	//   "read"
	//   "edit"
	//   "publish"
	//   "delete"
	//   "manage"
	//   "editWorkspace"
	Permission []string `json:"permission,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ContainerId") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ContainerId") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ContainerAccess: Defines the Google Tag Manager Container access permissions.

func (*ContainerAccess) MarshalJSON

func (s *ContainerAccess) MarshalJSON() ([]byte, error)

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"`

	// Folder: The folders in the container that this version was taken
	// from.
	Folder []*Folder `json:"folder,omitempty"`

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

	// Name: Container version display name. @mutable
	// tagmanager.accounts.containers.versions.update
	Name string `json:"name,omitempty"`

	// Notes: User notes on how to apply this container version in the
	// container. @mutable tagmanager.accounts.containers.versions.update
	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"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AccountId") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AccountId") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ContainerVersion: Represents a Google Tag Manager Container Version.

func (*ContainerVersion) MarshalJSON

func (s *ContainerVersion) MarshalJSON() ([]byte, error)

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"`

	// ForceSendFields is a list of field names (e.g. "AccountId") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AccountId") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ContainerVersionHeader: Represents a Google Tag Manager Container Version Header.

func (*ContainerVersionHeader) MarshalJSON

func (s *ContainerVersionHeader) MarshalJSON() ([]byte, error)

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"`

	// ForceSendFields is a list of field names (e.g. "Name") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Name") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

CreateContainerVersionRequestVersionOptions: Options for new container versions.

func (*CreateContainerVersionRequestVersionOptions) MarshalJSON

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"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "CompilerError") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "CompilerError") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

CreateContainerVersionResponse: Create container versions response.

func (*CreateContainerVersionResponse) MarshalJSON

func (s *CreateContainerVersionResponse) MarshalJSON() ([]byte, error)

type Environment

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

	// AuthorizationCode: The environment authorization code.
	AuthorizationCode string `json:"authorizationCode,omitempty"`

	// AuthorizationTimestampMs: The last update time-stamp for the
	// authorization code.
	AuthorizationTimestampMs int64 `json:"authorizationTimestampMs,omitempty,string"`

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

	ContainerVersionId string `json:"containerVersionId,omitempty"`

	// Description: The environment description. Can be set or changed only
	// on USER type environments. @mutable
	// tagmanager.accounts.containers.environments.create @mutable
	// tagmanager.accounts.containers.environments.update
	Description string `json:"description,omitempty"`

	// EnableDebug: Whether or not to enable debug by default on for the
	// environment. @mutable
	// tagmanager.accounts.containers.environments.create @mutable
	// tagmanager.accounts.containers.environments.update
	EnableDebug bool `json:"enableDebug,omitempty"`

	// EnvironmentId: GTM Environment ID uniquely identifies the GTM
	// Environment.
	EnvironmentId string `json:"environmentId,omitempty"`

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

	// Name: The environment display name. Can be set or changed only on
	// USER type environments. @mutable
	// tagmanager.accounts.containers.environments.create @mutable
	// tagmanager.accounts.containers.environments.update
	Name string `json:"name,omitempty"`

	// Type: The type of this environment.
	//
	// Possible values:
	//   "user" - Used for user defined environments.
	//   "live" - Used for Live environment, which points to the live
	// published container version.
	//   "latest" - Used for Latest environment, which points to the latest
	// created container version.
	//   "draft" - Used for Draft environment, which points to the single
	// draft in the container.
	Type string `json:"type,omitempty"`

	// Url: Default preview page url for the environment. @mutable
	// tagmanager.accounts.containers.environments.create @mutable
	// tagmanager.accounts.containers.environments.update
	Url string `json:"url,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AccountId") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AccountId") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Environment: Represents a Google Tag Manager Environment. Note that a user can create, delete and update environments of type USER, but can only update the enable_debug and url fields of environments of other types.

func (*Environment) MarshalJSON

func (s *Environment) MarshalJSON() ([]byte, error)

type Folder

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

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

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

	// FolderId: The Folder ID uniquely identifies the GTM Folder.
	FolderId string `json:"folderId,omitempty"`

	// Name: Folder display name. @mutable
	// tagmanager.accounts.containers.folders.create @mutable
	// tagmanager.accounts.containers.folders.update
	Name string `json:"name,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AccountId") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AccountId") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Folder: Represents a Google Tag Manager Folder.

func (*Folder) MarshalJSON

func (s *Folder) MarshalJSON() ([]byte, error)

type FolderEntities

type FolderEntities struct {
	// Tag: The list of tags inside the folder.
	Tag []*Tag `json:"tag,omitempty"`

	// Trigger: The list of triggers inside the folder.
	Trigger []*Trigger `json:"trigger,omitempty"`

	// Variable: The list of variables inside the folder.
	Variable []*Variable `json:"variable,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Tag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Tag") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

FolderEntities: Represents a Google Tag Manager Folder's contents.

func (*FolderEntities) MarshalJSON

func (s *FolderEntities) MarshalJSON() ([]byte, error)

type ListAccountUsersResponse

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "UserAccess") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "UserAccess") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListAccountUsersResponse: List AccountUsers Response.

func (*ListAccountUsersResponse) MarshalJSON

func (s *ListAccountUsersResponse) MarshalJSON() ([]byte, error)

type ListAccountsResponse

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Accounts") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Accounts") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListAccountsResponse: List Accounts Response.

func (*ListAccountsResponse) MarshalJSON

func (s *ListAccountsResponse) MarshalJSON() ([]byte, error)

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"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "ContainerVersion") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "ContainerVersion") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

ListContainerVersionsResponse: List container versions response.

func (*ListContainerVersionsResponse) MarshalJSON

func (s *ListContainerVersionsResponse) MarshalJSON() ([]byte, error)

type ListContainersResponse

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Containers") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Containers") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListContainersResponse: List Containers Response.

func (*ListContainersResponse) MarshalJSON

func (s *ListContainersResponse) MarshalJSON() ([]byte, error)

type ListEnvironmentsResponse

type ListEnvironmentsResponse struct {
	// Environments: All Environments of a GTM Container.
	Environments []*Environment `json:"environments,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Environments") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Environments") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListEnvironmentsResponse: List Environments Response.

func (*ListEnvironmentsResponse) MarshalJSON

func (s *ListEnvironmentsResponse) MarshalJSON() ([]byte, error)

type ListFoldersResponse

type ListFoldersResponse struct {
	// Folders: All GTM Folders of a GTM Container.
	Folders []*Folder `json:"folders,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Folders") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Folders") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListFoldersResponse: List Folders Response.

func (*ListFoldersResponse) MarshalJSON

func (s *ListFoldersResponse) MarshalJSON() ([]byte, error)

type ListTagsResponse

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Tags") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Tags") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListTagsResponse: List Tags Response.

func (*ListTagsResponse) MarshalJSON

func (s *ListTagsResponse) MarshalJSON() ([]byte, error)

type ListTriggersResponse

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Triggers") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Triggers") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListTriggersResponse: List triggers response.

func (*ListTriggersResponse) MarshalJSON

func (s *ListTriggersResponse) MarshalJSON() ([]byte, error)

type ListVariablesResponse

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Variables") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Variables") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

ListVariablesResponse: List Variables Response.

func (*ListVariablesResponse) MarshalJSON

func (s *ListVariablesResponse) MarshalJSON() ([]byte, error)

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. @mutable
	// tagmanager.accounts.containers.macros.create @mutable
	// tagmanager.accounts.containers.macros.update
	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. @mutable
	// tagmanager.accounts.containers.macros.create @mutable
	// tagmanager.accounts.containers.macros.update
	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. @mutable
	// tagmanager.accounts.containers.macros.create @mutable
	// tagmanager.accounts.containers.macros.update
	Name string `json:"name,omitempty"`

	// Notes: User notes on how to apply this macro in the container.
	// @mutable tagmanager.accounts.containers.macros.create @mutable
	// tagmanager.accounts.containers.macros.update
	Notes string `json:"notes,omitempty"`

	// Parameter: The macro's parameters. @mutable
	// tagmanager.accounts.containers.macros.create @mutable
	// tagmanager.accounts.containers.macros.update
	Parameter []*Parameter `json:"parameter,omitempty"`

	// ParentFolderId: Parent folder id.
	ParentFolderId string `json:"parentFolderId,omitempty"`

	// ScheduleEndMs: The end timestamp in milliseconds to schedule a macro.
	// @mutable tagmanager.accounts.containers.macros.create @mutable
	// tagmanager.accounts.containers.macros.update
	ScheduleEndMs int64 `json:"scheduleEndMs,omitempty,string"`

	// ScheduleStartMs: The start timestamp in milliseconds to schedule a
	// macro. @mutable tagmanager.accounts.containers.macros.create @mutable
	// tagmanager.accounts.containers.macros.update
	ScheduleStartMs int64 `json:"scheduleStartMs,omitempty,string"`

	// Type: GTM Macro Type. @mutable
	// tagmanager.accounts.containers.macros.create @mutable
	// tagmanager.accounts.containers.macros.update
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "AccountId") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AccountId") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Macro: Represents a Google Tag Manager Macro.

func (*Macro) MarshalJSON

func (s *Macro) MarshalJSON() ([]byte, error)

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.
	// @mutable tagmanager.accounts.containers.variables.create @mutable
	// tagmanager.accounts.containers.variables.update @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update @mutable
	// tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	Key string `json:"key,omitempty"`

	// List: This list parameter's parameters (keys will be ignored).
	// @mutable tagmanager.accounts.containers.variables.create @mutable
	// tagmanager.accounts.containers.variables.update @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update @mutable
	// tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	List []*Parameter `json:"list,omitempty"`

	// Map: This map parameter's parameters (must have keys; keys must be
	// unique). @mutable tagmanager.accounts.containers.variables.create
	// @mutable tagmanager.accounts.containers.variables.update @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update @mutable
	// tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	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 variable references (even variable references that might
	// return non-string types) - trigger_reference: The value represents a
	// trigger, represented as the trigger id - tag_reference: The value
	// represents a tag, represented as the tag name @mutable
	// tagmanager.accounts.containers.variables.create @mutable
	// tagmanager.accounts.containers.variables.update @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update @mutable
	// tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	//
	// Possible values:
	//   "template" - May include variable references (such as
	// "{{myVariable}}").
	//   "integer"
	//   "boolean"
	//   "list"
	//   "map"
	//   "triggerReference"
	//   "tagReference"
	Type string `json:"type,omitempty"`

	// Value: A parameter's value (may contain variable references such as
	// "{{myVariable}}") as appropriate to the specified type. @mutable
	// tagmanager.accounts.containers.variables.create @mutable
	// tagmanager.accounts.containers.variables.update @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update @mutable
	// tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	Value string `json:"value,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Key") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "Key") to include in API
	// requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Parameter: Represents a Google Tag Manager Parameter.

func (*Parameter) MarshalJSON

func (s *Parameter) MarshalJSON() ([]byte, error)

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"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "CompilerError") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "CompilerError") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

PublishContainerVersionResponse: Publish container version response.

func (*PublishContainerVersionResponse) MarshalJSON

func (s *PublishContainerVersionResponse) MarshalJSON() ([]byte, error)

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). @mutable
	// tagmanager.accounts.containers.rules.create @mutable
	// tagmanager.accounts.containers.rules.update
	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. @mutable
	// tagmanager.accounts.containers.rules.create @mutable
	// tagmanager.accounts.containers.rules.update
	Name string `json:"name,omitempty"`

	// Notes: User notes on how to apply this rule in the container.
	// @mutable tagmanager.accounts.containers.rules.create @mutable
	// tagmanager.accounts.containers.rules.update
	Notes string `json:"notes,omitempty"`

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

	// ForceSendFields is a list of field names (e.g. "AccountId") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AccountId") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Rule: Represents a Google Tag Manager Rule.

func (*Rule) MarshalJSON

func (s *Rule) MarshalJSON() ([]byte, error)

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 deprecated

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

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

func NewService

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

type SetupTag

type SetupTag struct {
	// StopOnSetupFailure: If true, fire the main tag if and only if the
	// setup tag fires successfully. If false, fire the main tag regardless
	// of setup tag firing status.
	StopOnSetupFailure bool `json:"stopOnSetupFailure,omitempty"`

	// TagName: The name of the setup tag.
	TagName string `json:"tagName,omitempty"`

	// ForceSendFields is a list of field names (e.g. "StopOnSetupFailure")
	// to unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "StopOnSetupFailure") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

func (*SetupTag) MarshalJSON

func (s *SetupTag) MarshalJSON() ([]byte, 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. @mutable
	// tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	BlockingRuleId []string `json:"blockingRuleId,omitempty"`

	// BlockingTriggerId: Blocking trigger IDs. If any of the listed
	// triggers evaluate to true, the tag will not fire. @mutable
	// tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	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. @mutable tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	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. @mutable
	// tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	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). @mutable
	// tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	LiveOnly bool `json:"liveOnly,omitempty"`

	// Name: Tag display name. @mutable
	// tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	Name string `json:"name,omitempty"`

	// Notes: User notes on how to apply this tag in the container. @mutable
	// tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	Notes string `json:"notes,omitempty"`

	// Parameter: The tag's parameters. @mutable
	// tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	Parameter []*Parameter `json:"parameter,omitempty"`

	// ParentFolderId: Parent folder id.
	ParentFolderId string `json:"parentFolderId,omitempty"`

	// Paused: True if the tag is paused. @mutable
	// tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	Paused bool `json:"paused,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. @mutable
	// tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	Priority *Parameter `json:"priority,omitempty"`

	// ScheduleEndMs: The end timestamp in milliseconds to schedule a tag.
	// @mutable tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	ScheduleEndMs int64 `json:"scheduleEndMs,omitempty,string"`

	// ScheduleStartMs: The start timestamp in milliseconds to schedule a
	// tag. @mutable tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	ScheduleStartMs int64 `json:"scheduleStartMs,omitempty,string"`

	// SetupTag: The list of setup tags. Currently we only allow one.
	SetupTag []*SetupTag `json:"setupTag,omitempty"`

	// TagFiringOption: Option to fire this tag.
	//
	// Possible values:
	//   "unlimited" - Tag can be fired multiple times per event.
	//   "oncePerEvent" - Tag can only be fired per event but can be fired
	// multiple times per load (e.g., app load or page load).
	//   "oncePerLoad" - Tag can only be fired per load (e.g., app load or
	// page load).
	TagFiringOption string `json:"tagFiringOption,omitempty"`

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

	// TeardownTag: The list of teardown tags. Currently we only allow one.
	TeardownTag []*TeardownTag `json:"teardownTag,omitempty"`

	// Type: GTM Tag Type. @mutable
	// tagmanager.accounts.containers.tags.create @mutable
	// tagmanager.accounts.containers.tags.update
	Type string `json:"type,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AccountId") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AccountId") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Tag: Represents a Google Tag Manager Tag.

func (*Tag) MarshalJSON

func (s *Tag) MarshalJSON() ([]byte, error)

type TeardownTag

type TeardownTag struct {
	// StopTeardownOnFailure: If true, fire the teardown tag if and only if
	// the main tag fires successfully. If false, fire the teardown tag
	// regardless of main tag firing status.
	StopTeardownOnFailure bool `json:"stopTeardownOnFailure,omitempty"`

	// TagName: The name of the teardown tag.
	TagName string `json:"tagName,omitempty"`

	// ForceSendFields is a list of field names (e.g.
	// "StopTeardownOnFailure") to unconditionally include in API requests.
	// By default, fields with empty values are omitted from API requests.
	// However, any non-pointer, non-interface field appearing in
	// ForceSendFields will be sent to the server regardless of whether the
	// field is empty or not. This may be used to include empty fields in
	// Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "StopTeardownOnFailure") to
	// include in API requests with the JSON null value. By default, fields
	// with empty values are omitted from API requests. However, any field
	// with an empty value appearing in NullFields will be sent to the
	// server as null. It is an error if a field in this list has a
	// non-empty value. This may be used to include null fields in Patch
	// requests.
	NullFields []string `json:"-"`
}

func (*TeardownTag) MarshalJSON

func (s *TeardownTag) MarshalJSON() ([]byte, error)

type Trigger

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

	// AutoEventFilter: Used in the case of auto event tracking. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	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. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	CheckValidation *Parameter `json:"checkValidation,omitempty"`

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

	// ContinuousTimeMinMilliseconds: A visibility trigger minimum
	// continuous visible time (in milliseconds). Only valid for AMP
	// Visibility trigger. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	ContinuousTimeMinMilliseconds *Parameter `json:"continuousTimeMinMilliseconds,omitempty"`

	// CustomEventFilter: Used in the case of custom event, which is fired
	// iff all Conditions are true. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	CustomEventFilter []*Condition `json:"customEventFilter,omitempty"`

	// EventName: Name of the GTM event that is fired. Only valid for Timer
	// triggers. @mutable tagmanager.accounts.containers.triggers.create
	// @mutable tagmanager.accounts.containers.triggers.update
	EventName *Parameter `json:"eventName,omitempty"`

	// Filter: The trigger will only fire iff all Conditions are true.
	// @mutable tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	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"`

	// HorizontalScrollPercentageList: List of integer percentage values for
	// scroll triggers. The trigger will fire when each percentage is
	// reached when the view is scrolled horizontally. Only valid for AMP
	// scroll triggers. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	HorizontalScrollPercentageList *Parameter `json:"horizontalScrollPercentageList,omitempty"`

	// Interval: Time between triggering recurring Timer Events (in
	// milliseconds). Only valid for Timer triggers. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	Interval *Parameter `json:"interval,omitempty"`

	// IntervalSeconds: Time between Timer Events to fire (in seconds). Only
	// valid for AMP Timer trigger. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	IntervalSeconds *Parameter `json:"intervalSeconds,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. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	Limit *Parameter `json:"limit,omitempty"`

	// MaxTimerLengthSeconds: Max time to fire Timer Events (in seconds).
	// Only valid for AMP Timer trigger. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	MaxTimerLengthSeconds *Parameter `json:"maxTimerLengthSeconds,omitempty"`

	// Name: Trigger display name. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	Name string `json:"name,omitempty"`

	// Parameter: Additional parameters. @mutable
	// tagmanager.accounts.containers.workspaces.triggers.create @mutable
	// tagmanager.accounts.containers.workspaces.triggers.update
	Parameter []*Parameter `json:"parameter,omitempty"`

	// ParentFolderId: Parent folder id.
	ParentFolderId string `json:"parentFolderId,omitempty"`

	// Selector: A click trigger CSS selector (i.e. "a", "button" etc.).
	// Only valid for AMP Click trigger. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	Selector *Parameter `json:"selector,omitempty"`

	// TotalTimeMinMilliseconds: A visibility trigger minimum total visible
	// time (in milliseconds). Only valid for AMP Visibility trigger.
	// @mutable tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	TotalTimeMinMilliseconds *Parameter `json:"totalTimeMinMilliseconds,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. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	//
	// Possible values:
	//   "pageview"
	//   "domReady"
	//   "windowLoaded"
	//   "customEvent"
	//   "triggerGroup"
	//   "always"
	//   "formSubmission"
	//   "click"
	//   "linkClick"
	//   "jsError"
	//   "historyChange"
	//   "timer"
	//   "ampClick"
	//   "ampTimer"
	//   "ampScroll"
	//   "ampVisibility"
	//   "youTubeVideo"
	//   "scrollDepth"
	//   "elementVisibility"
	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. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	UniqueTriggerId *Parameter `json:"uniqueTriggerId,omitempty"`

	// VerticalScrollPercentageList: List of integer percentage values for
	// scroll triggers. The trigger will fire when each percentage is
	// reached when the view is scrolled vertically. Only valid for AMP
	// scroll triggers. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	VerticalScrollPercentageList *Parameter `json:"verticalScrollPercentageList,omitempty"`

	// VisibilitySelector: A visibility trigger CSS selector (i.e. "#id").
	// Only valid for AMP Visibility trigger. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	VisibilitySelector *Parameter `json:"visibilitySelector,omitempty"`

	// VisiblePercentageMax: A visibility trigger maximum percent
	// visibility. Only valid for AMP Visibility trigger. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	VisiblePercentageMax *Parameter `json:"visiblePercentageMax,omitempty"`

	// VisiblePercentageMin: A visibility trigger minimum percent
	// visibility. Only valid for AMP Visibility trigger. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	VisiblePercentageMin *Parameter `json:"visiblePercentageMin,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. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	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. @mutable
	// tagmanager.accounts.containers.triggers.create @mutable
	// tagmanager.accounts.containers.triggers.update
	WaitForTagsTimeout *Parameter `json:"waitForTagsTimeout,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AccountId") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AccountId") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Trigger: Represents a Google Tag Manager Trigger

func (*Trigger) MarshalJSON

func (s *Trigger) MarshalJSON() ([]byte, error)

type UserAccess

type UserAccess struct {
	// AccountAccess: GTM Account access permissions. @mutable
	// tagmanager.accounts.permissions.create @mutable
	// tagmanager.accounts.permissions.update
	AccountAccess *AccountAccess `json:"accountAccess,omitempty"`

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

	// ContainerAccess: GTM Container access permissions. @mutable
	// tagmanager.accounts.permissions.create @mutable
	// tagmanager.accounts.permissions.update
	ContainerAccess []*ContainerAccess `json:"containerAccess,omitempty"`

	// EmailAddress: User's email address. @mutable
	// tagmanager.accounts.permissions.create
	EmailAddress string `json:"emailAddress,omitempty"`

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AccountAccess") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AccountAccess") to include
	// in API requests with the JSON null value. By default, fields with
	// empty values are omitted from API requests. However, any field with
	// an empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

UserAccess: Represents a user's permissions to an account and its container.

func (*UserAccess) MarshalJSON

func (s *UserAccess) MarshalJSON() ([]byte, error)

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. @mutable
	// tagmanager.accounts.containers.variables.create @mutable
	// tagmanager.accounts.containers.variables.update
	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. @mutable
	// tagmanager.accounts.containers.variables.create @mutable
	// tagmanager.accounts.containers.variables.update
	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. @mutable
	// tagmanager.accounts.containers.variables.create @mutable
	// tagmanager.accounts.containers.variables.update
	Name string `json:"name,omitempty"`

	// Notes: User notes on how to apply this variable in the container.
	// @mutable tagmanager.accounts.containers.variables.create @mutable
	// tagmanager.accounts.containers.variables.update
	Notes string `json:"notes,omitempty"`

	// Parameter: The variable's parameters. @mutable
	// tagmanager.accounts.containers.variables.create @mutable
	// tagmanager.accounts.containers.variables.update
	Parameter []*Parameter `json:"parameter,omitempty"`

	// ParentFolderId: Parent folder id.
	ParentFolderId string `json:"parentFolderId,omitempty"`

	// ScheduleEndMs: The end timestamp in milliseconds to schedule a
	// variable. @mutable tagmanager.accounts.containers.variables.create
	// @mutable tagmanager.accounts.containers.variables.update
	ScheduleEndMs int64 `json:"scheduleEndMs,omitempty,string"`

	// ScheduleStartMs: The start timestamp in milliseconds to schedule a
	// variable. @mutable tagmanager.accounts.containers.variables.create
	// @mutable tagmanager.accounts.containers.variables.update
	ScheduleStartMs int64 `json:"scheduleStartMs,omitempty,string"`

	// Type: GTM Variable Type. @mutable
	// tagmanager.accounts.containers.variables.create @mutable
	// tagmanager.accounts.containers.variables.update
	Type string `json:"type,omitempty"`

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AccountId") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`

	// NullFields is a list of field names (e.g. "AccountId") to include in
	// API requests with the JSON null value. By default, fields with empty
	// values are omitted from API requests. However, any field with an
	// empty value appearing in NullFields will be sent to the server as
	// null. It is an error if a field in this list has a non-empty value.
	// This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

Variable: Represents a Google Tag Manager Variable.

func (*Variable) MarshalJSON

func (s *Variable) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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