api: google.golang.org/api/analytics/v3 Index | Files

package analytics

import "google.golang.org/api/analytics/v3"

Package analytics provides access to the Google Analytics API.

For product documentation, see: https://developers.google.com/analytics/

Creating a client

Usage example:

import "google.golang.org/api/analytics/v3"
...
ctx := context.Background()
analyticsService, err := analytics.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:

analyticsService, err := analytics.NewService(ctx, option.WithScopes(analytics.AnalyticsUserDeletionScope))

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

analyticsService, err := analytics.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, ...)
analyticsService, err := analytics.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

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

Index

Package Files

analytics-gen.go

Constants

const (
    // View and manage your Google Analytics data
    AnalyticsScope = "https://www.googleapis.com/auth/analytics"

    // Edit Google Analytics management entities
    AnalyticsEditScope = "https://www.googleapis.com/auth/analytics.edit"

    // Manage Google Analytics Account users by email address
    AnalyticsManageUsersScope = "https://www.googleapis.com/auth/analytics.manage.users"

    // View Google Analytics user permissions
    AnalyticsManageUsersReadonlyScope = "https://www.googleapis.com/auth/analytics.manage.users.readonly"

    // Create a new Google Analytics account along with its default property
    // and view
    AnalyticsProvisionScope = "https://www.googleapis.com/auth/analytics.provision"

    // View your Google Analytics data
    AnalyticsReadonlyScope = "https://www.googleapis.com/auth/analytics.readonly"

    // Manage Google Analytics user deletion requests
    AnalyticsUserDeletionScope = "https://www.googleapis.com/auth/analytics.user.deletion"
)

OAuth2 scopes used by this API.

type Account Uses

type Account struct {
    // ChildLink: Child link for an account entry. Points to the list of web
    // properties for this account.
    ChildLink *AccountChildLink `json:"childLink,omitempty"`

    // Created: Time the account was created.
    Created string `json:"created,omitempty"`

    // Id: Account ID.
    Id  string `json:"id,omitempty"`

    // Kind: Resource type for Analytics account.
    Kind string `json:"kind,omitempty"`

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

    // Permissions: Permissions the user has for this account.
    Permissions *AccountPermissions `json:"permissions,omitempty"`

    // SelfLink: Link for this account.
    SelfLink string `json:"selfLink,omitempty"`

    // Starred: Indicates whether this account is starred or not.
    Starred bool `json:"starred,omitempty"`

    // Updated: Time the account was last modified.
    Updated string `json:"updated,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ChildLink") 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. "ChildLink") 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: JSON template for Analytics account entry.

func (*Account) MarshalJSON Uses

func (s *Account) MarshalJSON() ([]byte, error)
type AccountChildLink struct {
    // Href: Link to the list of web properties for this account.
    Href string `json:"href,omitempty"`

    // Type: Type of the child link. Its value is "analytics#webproperties".
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Href") 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. "Href") 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:"-"`
}

AccountChildLink: Child link for an account entry. Points to the list of web properties for this account.

func (*AccountChildLink) MarshalJSON Uses

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

type AccountPermissions Uses

type AccountPermissions struct {
    // Effective: All the permissions that the user has for this account.
    // These include any implied permissions (e.g., EDIT implies VIEW).
    Effective []string `json:"effective,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Effective") 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. "Effective") 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:"-"`
}

AccountPermissions: Permissions the user has for this account.

func (*AccountPermissions) MarshalJSON Uses

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

type AccountRef Uses

type AccountRef struct {
    // Href: Link for this account.
    Href string `json:"href,omitempty"`

    // Id: Account ID.
    Id  string `json:"id,omitempty"`

    // Kind: Analytics account reference.
    Kind string `json:"kind,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Href") 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. "Href") 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:"-"`
}

AccountRef: JSON template for a linked account.

func (*AccountRef) MarshalJSON Uses

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

type AccountSummaries Uses

type AccountSummaries struct {
    // Items: A list of AccountSummaries.
    Items []*AccountSummary `json:"items,omitempty"`

    // ItemsPerPage: The maximum number of resources the response can
    // contain, regardless of the actual number of resources returned. Its
    // value ranges from 1 to 1000 with a value of 1000 by default, or
    // otherwise specified by the max-results query parameter.
    ItemsPerPage int64 `json:"itemsPerPage,omitempty"`

    // Kind: Collection type.
    Kind string `json:"kind,omitempty"`

    // NextLink: Link to next page for this AccountSummary collection.
    NextLink string `json:"nextLink,omitempty"`

    // PreviousLink: Link to previous page for this AccountSummary
    // collection.
    PreviousLink string `json:"previousLink,omitempty"`

    // StartIndex: The starting index of the resources, which is 1 by
    // default or otherwise specified by the start-index query parameter.
    StartIndex int64 `json:"startIndex,omitempty"`

    // TotalResults: The total number of results for the query, regardless
    // of the number of results in the response.
    TotalResults int64 `json:"totalResults,omitempty"`

    // Username: Email ID of the authenticated user
    Username string `json:"username,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"`
}

AccountSummaries: An AccountSummary collection lists a summary of accounts, properties and views (profiles) to which the user has access. Each resource in the collection corresponds to a single AccountSummary.

func (*AccountSummaries) MarshalJSON Uses

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

type AccountSummary Uses

type AccountSummary struct {
    // Id: Account ID.
    Id  string `json:"id,omitempty"`

    // Kind: Resource type for Analytics AccountSummary.
    Kind string `json:"kind,omitempty"`

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

    // Starred: Indicates whether this account is starred or not.
    Starred bool `json:"starred,omitempty"`

    // WebProperties: List of web properties under this account.
    WebProperties []*WebPropertySummary `json:"webProperties,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Id") 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. "Id") 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:"-"`
}

AccountSummary: JSON template for an Analytics AccountSummary. An AccountSummary is a lightweight tree comprised of properties/profiles.

func (*AccountSummary) MarshalJSON Uses

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

type AccountTicket Uses

type AccountTicket struct {
    // Account: Account for this ticket.
    Account *Account `json:"account,omitempty"`

    // Id: Account ticket ID used to access the account ticket.
    Id  string `json:"id,omitempty"`

    // Kind: Resource type for account ticket.
    Kind string `json:"kind,omitempty"`

    // Profile: View (Profile) for the account.
    Profile *Profile `json:"profile,omitempty"`

    // RedirectUri: Redirect URI where the user will be sent after accepting
    // Terms of Service. Must be configured in APIs console as a callback
    // URL.
    RedirectUri string `json:"redirectUri,omitempty"`

    // Webproperty: Web property for the account.
    Webproperty *Webproperty `json:"webproperty,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Account") 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. "Account") 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:"-"`
}

AccountTicket: JSON template for an Analytics account ticket. The account ticket consists of the ticket ID and the basic information for the account, property and profile.

func (*AccountTicket) MarshalJSON Uses

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

type AccountTreeRequest Uses

type AccountTreeRequest struct {
    AccountName string `json:"accountName,omitempty"`

    // Kind: Resource type for account ticket.
    Kind string `json:"kind,omitempty"`

    ProfileName string `json:"profileName,omitempty"`

    Timezone string `json:"timezone,omitempty"`

    WebpropertyName string `json:"webpropertyName,omitempty"`

    WebsiteUrl string `json:"websiteUrl,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AccountName") 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. "AccountName") 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:"-"`
}

AccountTreeRequest: JSON template for an Analytics account tree requests. The account tree request is used in the provisioning api to create an account, property, and view (profile). It contains the basic information required to make these fields.

func (*AccountTreeRequest) MarshalJSON Uses

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

type AccountTreeResponse Uses

type AccountTreeResponse struct {
    // Account: The account created.
    Account *Account `json:"account,omitempty"`

    // Kind: Resource type for account ticket.
    Kind string `json:"kind,omitempty"`

    // Profile: View (Profile) for the account.
    Profile *Profile `json:"profile,omitempty"`

    // Webproperty: Web property for the account.
    Webproperty *Webproperty `json:"webproperty,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Account") 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. "Account") 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:"-"`
}

AccountTreeResponse: JSON template for an Analytics account tree response. The account tree response is used in the provisioning api to return the result of creating an account, property, and view (profile).

func (*AccountTreeResponse) MarshalJSON Uses

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

type Accounts Uses

type Accounts struct {
    // Items: A list of accounts.
    Items []*Account `json:"items,omitempty"`

    // ItemsPerPage: The maximum number of entries the response can contain,
    // regardless of the actual number of entries returned. Its value ranges
    // from 1 to 1000 with a value of 1000 by default, or otherwise
    // specified by the max-results query parameter.
    ItemsPerPage int64 `json:"itemsPerPage,omitempty"`

    // Kind: Collection type.
    Kind string `json:"kind,omitempty"`

    // NextLink: Next link for this account collection.
    NextLink string `json:"nextLink,omitempty"`

    // PreviousLink: Previous link for this account collection.
    PreviousLink string `json:"previousLink,omitempty"`

    // StartIndex: The starting index of the entries, which is 1 by default
    // or otherwise specified by the start-index query parameter.
    StartIndex int64 `json:"startIndex,omitempty"`

    // TotalResults: The total number of results for the query, regardless
    // of the number of results in the response.
    TotalResults int64 `json:"totalResults,omitempty"`

    // Username: Email ID of the authenticated user
    Username string `json:"username,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"`
}

Accounts: An account collection provides a list of Analytics accounts to which a user has access. The account collection is the entry point to all management information. Each resource in the collection corresponds to a single Analytics account.

func (*Accounts) MarshalJSON Uses

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

type AdWordsAccount Uses

type AdWordsAccount struct {
    // AutoTaggingEnabled: True if auto-tagging is enabled on the Google Ads
    // account. Read-only after the insert operation.
    AutoTaggingEnabled bool `json:"autoTaggingEnabled,omitempty"`

    // CustomerId: Customer ID. This field is required when creating a
    // Google Ads link.
    CustomerId string `json:"customerId,omitempty"`

    // Kind: Resource type for Google Ads account.
    Kind string `json:"kind,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AutoTaggingEnabled")
    // 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. "AutoTaggingEnabled") 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:"-"`
}

AdWordsAccount: JSON template for an Google Ads account.

func (*AdWordsAccount) MarshalJSON Uses

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

type AnalyticsDataimportDeleteUploadDataRequest Uses

type AnalyticsDataimportDeleteUploadDataRequest struct {
    // CustomDataImportUids: A list of upload UIDs.
    CustomDataImportUids []string `json:"customDataImportUids,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "CustomDataImportUids") 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. "CustomDataImportUids") 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:"-"`
}

AnalyticsDataimportDeleteUploadDataRequest: Request template for the delete upload data request.

func (*AnalyticsDataimportDeleteUploadDataRequest) MarshalJSON Uses

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

type Column Uses

type Column struct {
    // Attributes: Map of attribute name and value for this column.
    Attributes map[string]string `json:"attributes,omitempty"`

    // Id: Column id.
    Id  string `json:"id,omitempty"`

    // Kind: Resource type for Analytics column.
    Kind string `json:"kind,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Attributes") 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. "Attributes") 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:"-"`
}

Column: JSON template for a metadata column.

func (*Column) MarshalJSON Uses

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

type Columns Uses

type Columns struct {
    // AttributeNames: List of attributes names returned by columns.
    AttributeNames []string `json:"attributeNames,omitempty"`

    // Etag: Etag of collection. This etag can be compared with the last
    // response etag to check if response has changed.
    Etag string `json:"etag,omitempty"`

    // Items: List of columns for a report type.
    Items []*Column `json:"items,omitempty"`

    // Kind: Collection type.
    Kind string `json:"kind,omitempty"`

    // TotalResults: Total number of columns returned in the response.
    TotalResults int64 `json:"totalResults,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "AttributeNames") 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. "AttributeNames") 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:"-"`
}

Columns: Lists columns (dimensions and metrics) for a particular report type.

func (*Columns) MarshalJSON Uses

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

type CustomDataSource Uses

type CustomDataSource struct {
    // AccountId: Account ID to which this custom data source belongs.
    AccountId string `json:"accountId,omitempty"`

    ChildLink *CustomDataSourceChildLink `json:"childLink,omitempty"`

    // Created: Time this custom data source was created.
    Created string `json:"created,omitempty"`

    // Description: Description of custom data source.
    Description string `json:"description,omitempty"`

    // Id: Custom data source ID.
    Id  string `json:"id,omitempty"`

    ImportBehavior string `json:"importBehavior,omitempty"`

    // Kind: Resource type for Analytics custom data source.
    Kind string `json:"kind,omitempty"`

    // Name: Name of this custom data source.
    Name string `json:"name,omitempty"`

    // ParentLink: Parent link for this custom data source. Points to the
    // web property to which this custom data source belongs.
    ParentLink *CustomDataSourceParentLink `json:"parentLink,omitempty"`

    // ProfilesLinked: IDs of views (profiles) linked to the custom data
    // source.
    ProfilesLinked []string `json:"profilesLinked,omitempty"`

    // Schema: Collection of schema headers of the custom data source.
    Schema []string `json:"schema,omitempty"`

    // SelfLink: Link for this Analytics custom data source.
    SelfLink string `json:"selfLink,omitempty"`

    // Type: Type of the custom data source.
    Type string `json:"type,omitempty"`

    // Updated: Time this custom data source was last modified.
    Updated string `json:"updated,omitempty"`

    // UploadType: Upload type of the custom data source.
    UploadType string `json:"uploadType,omitempty"`

    // WebPropertyId: Web property ID of the form UA-XXXXX-YY to which this
    // custom data source belongs.
    WebPropertyId string `json:"webPropertyId,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:"-"`
}

CustomDataSource: JSON template for an Analytics custom data source.

func (*CustomDataSource) MarshalJSON Uses

func (s *CustomDataSource) MarshalJSON() ([]byte, error)
type CustomDataSourceChildLink struct {
    // Href: Link to the list of daily uploads for this custom data source.
    // Link to the list of uploads for this custom data source.
    Href string `json:"href,omitempty"`

    // Type: Value is "analytics#dailyUploads". Value is
    // "analytics#uploads".
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Href") 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. "Href") 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 (*CustomDataSourceChildLink) MarshalJSON Uses

func (s *CustomDataSourceChildLink) MarshalJSON() ([]byte, error)
type CustomDataSourceParentLink struct {
    // Href: Link to the web property to which this custom data source
    // belongs.
    Href string `json:"href,omitempty"`

    // Type: Value is "analytics#webproperty".
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Href") 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. "Href") 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:"-"`
}

CustomDataSourceParentLink: Parent link for this custom data source. Points to the web property to which this custom data source belongs.

func (*CustomDataSourceParentLink) MarshalJSON Uses

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

type CustomDataSources Uses

type CustomDataSources struct {
    // Items: Collection of custom data sources.
    Items []*CustomDataSource `json:"items,omitempty"`

    // ItemsPerPage: The maximum number of resources the response can
    // contain, regardless of the actual number of resources returned. Its
    // value ranges from 1 to 1000 with a value of 1000 by default, or
    // otherwise specified by the max-results query parameter.
    ItemsPerPage int64 `json:"itemsPerPage,omitempty"`

    // Kind: Collection type.
    Kind string `json:"kind,omitempty"`

    // NextLink: Link to next page for this custom data source collection.
    NextLink string `json:"nextLink,omitempty"`

    // PreviousLink: Link to previous page for this custom data source
    // collection.
    PreviousLink string `json:"previousLink,omitempty"`

    // StartIndex: The starting index of the resources, which is 1 by
    // default or otherwise specified by the start-index query parameter.
    StartIndex int64 `json:"startIndex,omitempty"`

    // TotalResults: The total number of results for the query, regardless
    // of the number of results in the response.
    TotalResults int64 `json:"totalResults,omitempty"`

    // Username: Email ID of the authenticated user
    Username string `json:"username,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"`
}

CustomDataSources: Lists Analytics custom data sources to which the user has access. Each resource in the collection corresponds to a single Analytics custom data source.

func (*CustomDataSources) MarshalJSON Uses

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

type CustomDimension Uses

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

    // Active: Boolean indicating whether the custom dimension is active.
    Active bool `json:"active,omitempty"`

    // Created: Time the custom dimension was created.
    Created string `json:"created,omitempty"`

    // Id: Custom dimension ID.
    Id  string `json:"id,omitempty"`

    // Index: Index of the custom dimension.
    Index int64 `json:"index,omitempty"`

    // Kind: Kind value for a custom dimension. Set to
    // "analytics#customDimension". It is a read-only field.
    Kind string `json:"kind,omitempty"`

    // Name: Name of the custom dimension.
    Name string `json:"name,omitempty"`

    // ParentLink: Parent link for the custom dimension. Points to the
    // property to which the custom dimension belongs.
    ParentLink *CustomDimensionParentLink `json:"parentLink,omitempty"`

    // Scope: Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
    Scope string `json:"scope,omitempty"`

    // SelfLink: Link for the custom dimension
    SelfLink string `json:"selfLink,omitempty"`

    // Updated: Time the custom dimension was last modified.
    Updated string `json:"updated,omitempty"`

    // WebPropertyId: Property ID.
    WebPropertyId string `json:"webPropertyId,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:"-"`
}

CustomDimension: JSON template for Analytics Custom Dimension.

func (*CustomDimension) MarshalJSON Uses

func (s *CustomDimension) MarshalJSON() ([]byte, error)
type CustomDimensionParentLink struct {
    // Href: Link to the property to which the custom dimension belongs.
    Href string `json:"href,omitempty"`

    // Type: Type of the parent link. Set to "analytics#webproperty".
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Href") 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. "Href") 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:"-"`
}

CustomDimensionParentLink: Parent link for the custom dimension. Points to the property to which the custom dimension belongs.

func (*CustomDimensionParentLink) MarshalJSON Uses

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

type CustomDimensions Uses

type CustomDimensions struct {
    // Items: Collection of custom dimensions.
    Items []*CustomDimension `json:"items,omitempty"`

    // ItemsPerPage: The maximum number of resources the response can
    // contain, regardless of the actual number of resources returned. Its
    // value ranges from 1 to 1000 with a value of 1000 by default, or
    // otherwise specified by the max-results query parameter.
    ItemsPerPage int64 `json:"itemsPerPage,omitempty"`

    // Kind: Collection type.
    Kind string `json:"kind,omitempty"`

    // NextLink: Link to next page for this custom dimension collection.
    NextLink string `json:"nextLink,omitempty"`

    // PreviousLink: Link to previous page for this custom dimension
    // collection.
    PreviousLink string `json:"previousLink,omitempty"`

    // StartIndex: The starting index of the resources, which is 1 by
    // default or otherwise specified by the start-index query parameter.
    StartIndex int64 `json:"startIndex,omitempty"`

    // TotalResults: The total number of results for the query, regardless
    // of the number of results in the response.
    TotalResults int64 `json:"totalResults,omitempty"`

    // Username: Email ID of the authenticated user
    Username string `json:"username,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"`
}

CustomDimensions: A custom dimension collection lists Analytics custom dimensions to which the user has access. Each resource in the collection corresponds to a single Analytics custom dimension.

func (*CustomDimensions) MarshalJSON Uses

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

type CustomMetric Uses

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

    // Active: Boolean indicating whether the custom metric is active.
    Active bool `json:"active,omitempty"`

    // Created: Time the custom metric was created.
    Created string `json:"created,omitempty"`

    // Id: Custom metric ID.
    Id  string `json:"id,omitempty"`

    // Index: Index of the custom metric.
    Index int64 `json:"index,omitempty"`

    // Kind: Kind value for a custom metric. Set to
    // "analytics#customMetric". It is a read-only field.
    Kind string `json:"kind,omitempty"`

    // MaxValue: Max value of custom metric.
    MaxValue string `json:"max_value,omitempty"`

    // MinValue: Min value of custom metric.
    MinValue string `json:"min_value,omitempty"`

    // Name: Name of the custom metric.
    Name string `json:"name,omitempty"`

    // ParentLink: Parent link for the custom metric. Points to the property
    // to which the custom metric belongs.
    ParentLink *CustomMetricParentLink `json:"parentLink,omitempty"`

    // Scope: Scope of the custom metric: HIT or PRODUCT.
    Scope string `json:"scope,omitempty"`

    // SelfLink: Link for the custom metric
    SelfLink string `json:"selfLink,omitempty"`

    // Type: Data type of custom metric.
    Type string `json:"type,omitempty"`

    // Updated: Time the custom metric was last modified.
    Updated string `json:"updated,omitempty"`

    // WebPropertyId: Property ID.
    WebPropertyId string `json:"webPropertyId,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:"-"`
}

CustomMetric: JSON template for Analytics Custom Metric.

func (*CustomMetric) MarshalJSON Uses

func (s *CustomMetric) MarshalJSON() ([]byte, error)
type CustomMetricParentLink struct {
    // Href: Link to the property to which the custom metric belongs.
    Href string `json:"href,omitempty"`

    // Type: Type of the parent link. Set to "analytics#webproperty".
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Href") 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. "Href") 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:"-"`
}

CustomMetricParentLink: Parent link for the custom metric. Points to the property to which the custom metric belongs.

func (*CustomMetricParentLink) MarshalJSON Uses

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

type CustomMetrics Uses

type CustomMetrics struct {
    // Items: Collection of custom metrics.
    Items []*CustomMetric `json:"items,omitempty"`

    // ItemsPerPage: The maximum number of resources the response can
    // contain, regardless of the actual number of resources returned. Its
    // value ranges from 1 to 1000 with a value of 1000 by default, or
    // otherwise specified by the max-results query parameter.
    ItemsPerPage int64 `json:"itemsPerPage,omitempty"`

    // Kind: Collection type.
    Kind string `json:"kind,omitempty"`

    // NextLink: Link to next page for this custom metric collection.
    NextLink string `json:"nextLink,omitempty"`

    // PreviousLink: Link to previous page for this custom metric
    // collection.
    PreviousLink string `json:"previousLink,omitempty"`

    // StartIndex: The starting index of the resources, which is 1 by
    // default or otherwise specified by the start-index query parameter.
    StartIndex int64 `json:"startIndex,omitempty"`

    // TotalResults: The total number of results for the query, regardless
    // of the number of results in the response.
    TotalResults int64 `json:"totalResults,omitempty"`

    // Username: Email ID of the authenticated user
    Username string `json:"username,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"`
}

CustomMetrics: A custom metric collection lists Analytics custom metrics to which the user has access. Each resource in the collection corresponds to a single Analytics custom metric.

func (*CustomMetrics) MarshalJSON Uses

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

type DataGaGetCall Uses

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

func (*DataGaGetCall) Context Uses

func (c *DataGaGetCall) Context(ctx context.Context) *DataGaGetCall

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 (*DataGaGetCall) Dimensions Uses

func (c *DataGaGetCall) Dimensions(dimensions string) *DataGaGetCall

Dimensions sets the optional parameter "dimensions": A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.

func (*DataGaGetCall) Do Uses

func (c *DataGaGetCall) Do(opts ...googleapi.CallOption) (*GaData, error)

Do executes the "analytics.data.ga.get" call. Exactly one of *GaData or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GaData.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 (*DataGaGetCall) Fields Uses

func (c *DataGaGetCall) Fields(s ...googleapi.Field) *DataGaGetCall

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

func (*DataGaGetCall) Filters Uses

func (c *DataGaGetCall) Filters(filters string) *DataGaGetCall

Filters sets the optional parameter "filters": A comma-separated list of dimension or metric filters to be applied to Analytics data.

func (*DataGaGetCall) Header Uses

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

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

func (*DataGaGetCall) IfNoneMatch Uses

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

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 (*DataGaGetCall) IncludeEmptyRows Uses

func (c *DataGaGetCall) IncludeEmptyRows(includeEmptyRows bool) *DataGaGetCall

IncludeEmptyRows sets the optional parameter "include-empty-rows": The response will include empty rows if this parameter is set to true, the default is true

func (*DataGaGetCall) MaxResults Uses

func (c *DataGaGetCall) MaxResults(maxResults int64) *DataGaGetCall

MaxResults sets the optional parameter "max-results": The maximum number of entries to include in this feed.

func (*DataGaGetCall) Output Uses

func (c *DataGaGetCall) Output(output string) *DataGaGetCall

Output sets the optional parameter "output": The selected format for the response. Default format is JSON.

Possible values:

"dataTable" - Returns the response in Google Charts Data Table

format. This is useful in creating visualization using Google Charts.

"json" - Returns the response in standard JSON format.

func (*DataGaGetCall) SamplingLevel Uses

func (c *DataGaGetCall) SamplingLevel(samplingLevel string) *DataGaGetCall

SamplingLevel sets the optional parameter "samplingLevel": The desired sampling level.

Possible values:

"DEFAULT" - Returns response with a sample size that balances speed

and accuracy.

"FASTER" - Returns a fast response with a smaller sample size.
"HIGHER_PRECISION" - Returns a more accurate response using a large

sample size, but this may result in the response being slower.

func (*DataGaGetCall) Segment Uses

func (c *DataGaGetCall) Segment(segment string) *DataGaGetCall

Segment sets the optional parameter "segment": An Analytics segment to be applied to data.

func (*DataGaGetCall) Sort Uses

func (c *DataGaGetCall) Sort(sort string) *DataGaGetCall

Sort sets the optional parameter "sort": A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.

func (*DataGaGetCall) StartIndex Uses

func (c *DataGaGetCall) StartIndex(startIndex int64) *DataGaGetCall

StartIndex sets the optional parameter "start-index": An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type DataGaService Uses

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

func NewDataGaService Uses

func NewDataGaService(s *Service) *DataGaService

func (*DataGaService) Get Uses

func (r *DataGaService) Get(ids string, startDate string, endDate string, metrics string) *DataGaGetCall

Get: Returns Analytics data for a view (profile).

type DataMcfGetCall Uses

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

func (*DataMcfGetCall) Context Uses

func (c *DataMcfGetCall) Context(ctx context.Context) *DataMcfGetCall

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 (*DataMcfGetCall) Dimensions Uses

func (c *DataMcfGetCall) Dimensions(dimensions string) *DataMcfGetCall

Dimensions sets the optional parameter "dimensions": A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.

func (*DataMcfGetCall) Do Uses

func (c *DataMcfGetCall) Do(opts ...googleapi.CallOption) (*McfData, error)

Do executes the "analytics.data.mcf.get" call. Exactly one of *McfData or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *McfData.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 (*DataMcfGetCall) Fields Uses

func (c *DataMcfGetCall) Fields(s ...googleapi.Field) *DataMcfGetCall

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

func (*DataMcfGetCall) Filters Uses

func (c *DataMcfGetCall) Filters(filters string) *DataMcfGetCall

Filters sets the optional parameter "filters": A comma-separated list of dimension or metric filters to be applied to the Analytics data.

func (*DataMcfGetCall) Header Uses

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

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

func (*DataMcfGetCall) IfNoneMatch Uses

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

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 (*DataMcfGetCall) MaxResults Uses

func (c *DataMcfGetCall) MaxResults(maxResults int64) *DataMcfGetCall

MaxResults sets the optional parameter "max-results": The maximum number of entries to include in this feed.

func (*DataMcfGetCall) SamplingLevel Uses

func (c *DataMcfGetCall) SamplingLevel(samplingLevel string) *DataMcfGetCall

SamplingLevel sets the optional parameter "samplingLevel": The desired sampling level.

Possible values:

"DEFAULT" - Returns response with a sample size that balances speed

and accuracy.

"FASTER" - Returns a fast response with a smaller sample size.
"HIGHER_PRECISION" - Returns a more accurate response using a large

sample size, but this may result in the response being slower.

func (*DataMcfGetCall) Sort Uses

func (c *DataMcfGetCall) Sort(sort string) *DataMcfGetCall

Sort sets the optional parameter "sort": A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.

func (*DataMcfGetCall) StartIndex Uses

func (c *DataMcfGetCall) StartIndex(startIndex int64) *DataMcfGetCall

StartIndex sets the optional parameter "start-index": An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type DataMcfService Uses

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

func NewDataMcfService Uses

func NewDataMcfService(s *Service) *DataMcfService

func (*DataMcfService) Get Uses

func (r *DataMcfService) Get(ids string, startDate string, endDate string, metrics string) *DataMcfGetCall

Get: Returns Analytics Multi-Channel Funnels data for a view (profile).

type DataRealtimeGetCall Uses

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

func (*DataRealtimeGetCall) Context Uses

func (c *DataRealtimeGetCall) Context(ctx context.Context) *DataRealtimeGetCall

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 (*DataRealtimeGetCall) Dimensions Uses

func (c *DataRealtimeGetCall) Dimensions(dimensions string) *DataRealtimeGetCall

Dimensions sets the optional parameter "dimensions": A comma-separated list of real time dimensions. E.g., 'rt:medium,rt:city'.

func (*DataRealtimeGetCall) Do Uses

func (c *DataRealtimeGetCall) Do(opts ...googleapi.CallOption) (*RealtimeData, error)

Do executes the "analytics.data.realtime.get" call. Exactly one of *RealtimeData or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RealtimeData.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 (*DataRealtimeGetCall) Fields Uses

func (c *DataRealtimeGetCall) Fields(s ...googleapi.Field) *DataRealtimeGetCall

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

func (*DataRealtimeGetCall) Filters Uses

func (c *DataRealtimeGetCall) Filters(filters string) *DataRealtimeGetCall

Filters sets the optional parameter "filters": A comma-separated list of dimension or metric filters to be applied to real time data.

func (*DataRealtimeGetCall) Header Uses

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

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

func (*DataRealtimeGetCall) IfNoneMatch Uses

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

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 (*DataRealtimeGetCall) MaxResults Uses

func (c *DataRealtimeGetCall) MaxResults(maxResults int64) *DataRealtimeGetCall

MaxResults sets the optional parameter "max-results": The maximum number of entries to include in this feed.

func (*DataRealtimeGetCall) Sort Uses

func (c *DataRealtimeGetCall) Sort(sort string) *DataRealtimeGetCall

Sort sets the optional parameter "sort": A comma-separated list of dimensions or metrics that determine the sort order for real time data.

type DataRealtimeService Uses

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

func NewDataRealtimeService Uses

func NewDataRealtimeService(s *Service) *DataRealtimeService

func (*DataRealtimeService) Get Uses

func (r *DataRealtimeService) Get(ids string, metrics string) *DataRealtimeGetCall

Get: Returns real time data for a view (profile).

type DataService Uses

type DataService struct {
    Ga  *DataGaService

    Mcf *DataMcfService

    Realtime *DataRealtimeService
    // contains filtered or unexported fields
}

func NewDataService Uses

func NewDataService(s *Service) *DataService
type EntityAdWordsLink struct {
    // AdWordsAccounts: A list of Google Ads client accounts. These cannot
    // be MCC accounts. This field is required when creating a Google Ads
    // link. It cannot be empty.
    AdWordsAccounts []*AdWordsAccount `json:"adWordsAccounts,omitempty"`

    // Entity: Web property being linked.
    Entity *EntityAdWordsLinkEntity `json:"entity,omitempty"`

    // Id: Entity Google Ads link ID
    Id  string `json:"id,omitempty"`

    // Kind: Resource type for entity Google Ads link.
    Kind string `json:"kind,omitempty"`

    // Name: Name of the link. This field is required when creating a Google
    // Ads link.
    Name string `json:"name,omitempty"`

    // ProfileIds: IDs of linked Views (Profiles) represented as strings.
    ProfileIds []string `json:"profileIds,omitempty"`

    // SelfLink: URL link for this Google Analytics - Google Ads link.
    SelfLink string `json:"selfLink,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "AdWordsAccounts") 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. "AdWordsAccounts") 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:"-"`
}

EntityAdWordsLink: JSON template for Analytics Entity Google Ads Link.

func (*EntityAdWordsLink) MarshalJSON Uses

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

type EntityAdWordsLinkEntity Uses

type EntityAdWordsLinkEntity struct {
    WebPropertyRef *WebPropertyRef `json:"webPropertyRef,omitempty"`

    // ForceSendFields is a list of field names (e.g. "WebPropertyRef") 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. "WebPropertyRef") 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:"-"`
}

EntityAdWordsLinkEntity: Web property being linked.

func (*EntityAdWordsLinkEntity) MarshalJSON Uses

func (s *EntityAdWordsLinkEntity) MarshalJSON() ([]byte, error)
type EntityAdWordsLinks struct {
    // Items: A list of entity Google Ads links.
    Items []*EntityAdWordsLink `json:"items,omitempty"`

    // ItemsPerPage: The maximum number of entries the response can contain,
    // regardless of the actual number of entries returned. Its value ranges
    // from 1 to 1000 with a value of 1000 by default, or otherwise
    // specified by the max-results query parameter.
    ItemsPerPage int64 `json:"itemsPerPage,omitempty"`

    // Kind: Collection type.
    Kind string `json:"kind,omitempty"`

    // NextLink: Next link for this Google Ads link collection.
    NextLink string `json:"nextLink,omitempty"`

    // PreviousLink: Previous link for this Google Ads link collection.
    PreviousLink string `json:"previousLink,omitempty"`

    // StartIndex: The starting index of the entries, which is 1 by default
    // or otherwise specified by the start-index query parameter.
    StartIndex int64 `json:"startIndex,omitempty"`

    // TotalResults: The total number of results for the query, regardless
    // of the number of results in the response.
    TotalResults int64 `json:"totalResults,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"`
}

EntityAdWordsLinks: An entity Google Ads link collection provides a list of GA-Google Ads links Each resource in this collection corresponds to a single link.

func (*EntityAdWordsLinks) MarshalJSON Uses

func (s *EntityAdWordsLinks) MarshalJSON() ([]byte, error)
type EntityUserLink struct {
    // Entity: Entity for this link. It can be an account, a web property,
    // or a view (profile).
    Entity *EntityUserLinkEntity `json:"entity,omitempty"`

    // Id: Entity user link ID
    Id  string `json:"id,omitempty"`

    // Kind: Resource type for entity user link.
    Kind string `json:"kind,omitempty"`

    // Permissions: Permissions the user has for this entity.
    Permissions *EntityUserLinkPermissions `json:"permissions,omitempty"`

    // SelfLink: Self link for this resource.
    SelfLink string `json:"selfLink,omitempty"`

    // UserRef: User reference.
    UserRef *UserRef `json:"userRef,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Entity") 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. "Entity") 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:"-"`
}

EntityUserLink: JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.

func (*EntityUserLink) MarshalJSON Uses

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

type EntityUserLinkEntity Uses

type EntityUserLinkEntity struct {
    // AccountRef: Account for this link.
    AccountRef *AccountRef `json:"accountRef,omitempty"`

    // ProfileRef: View (Profile) for this link.
    ProfileRef *ProfileRef `json:"profileRef,omitempty"`

    // WebPropertyRef: Web property for this link.
    WebPropertyRef *WebPropertyRef `json:"webPropertyRef,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AccountRef") 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. "AccountRef") 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:"-"`
}

EntityUserLinkEntity: Entity for this link. It can be an account, a web property, or a view (profile).

func (*EntityUserLinkEntity) MarshalJSON Uses

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

type EntityUserLinkPermissions Uses

type EntityUserLinkPermissions struct {
    // Effective: Effective permissions represent all the permissions that a
    // user has for this entity. These include any implied permissions
    // (e.g., EDIT implies VIEW) or inherited permissions from the parent
    // entity. Effective permissions are read-only.
    Effective []string `json:"effective,omitempty"`

    // Local: Permissions that a user has been assigned at this very level.
    // Does not include any implied or inherited permissions. Local
    // permissions are modifiable.
    Local []string `json:"local,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Effective") 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. "Effective") 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:"-"`
}

EntityUserLinkPermissions: Permissions the user has for this entity.

func (*EntityUserLinkPermissions) MarshalJSON Uses

func (s *EntityUserLinkPermissions) MarshalJSON() ([]byte, error)
type EntityUserLinks struct {
    // Items: A list of entity user links.
    Items []*EntityUserLink `json:"items,omitempty"`

    // ItemsPerPage: The maximum number of entries the response can contain,
    // regardless of the actual number of entries returned. Its value ranges
    // from 1 to 1000 with a value of 1000 by default, or otherwise
    // specified by the max-results query parameter.
    ItemsPerPage int64 `json:"itemsPerPage,omitempty"`

    // Kind: Collection type.
    Kind string `json:"kind,omitempty"`

    // NextLink: Next link for this account collection.
    NextLink string `json:"nextLink,omitempty"`

    // PreviousLink: Previous link for this account collection.
    PreviousLink string `json:"previousLink,omitempty"`

    // StartIndex: The starting index of the entries, which is 1 by default
    // or otherwise specified by the start-index query parameter.
    StartIndex int64 `json:"startIndex,omitempty"`

    // TotalResults: The total number of results for the query, regardless
    // of the number of results in the response.
    TotalResults int64 `json:"totalResults,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"`
}

EntityUserLinks: An entity user link collection provides a list of Analytics ACL links Each resource in this collection corresponds to a single link.

func (*EntityUserLinks) MarshalJSON Uses

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

type Experiment Uses

type Experiment struct {
    // AccountId: Account ID to which this experiment belongs. This field is
    // read-only.
    AccountId string `json:"accountId,omitempty"`

    // Created: Time the experiment was created. This field is read-only.
    Created string `json:"created,omitempty"`

    // Description: Notes about this experiment.
    Description string `json:"description,omitempty"`

    // EditableInGaUi: If true, the end user will be able to edit the
    // experiment via the Google Analytics user interface.
    EditableInGaUi bool `json:"editableInGaUi,omitempty"`

    // EndTime: The ending time of the experiment (the time the status
    // changed from RUNNING to ENDED). This field is present only if the
    // experiment has ended. This field is read-only.
    EndTime string `json:"endTime,omitempty"`

    // EqualWeighting: Boolean specifying whether to distribute traffic
    // evenly across all variations. If the value is False, content
    // experiments follows the default behavior of adjusting traffic
    // dynamically based on variation performance. Optional -- defaults to
    // False. This field may not be changed for an experiment whose status
    // is ENDED.
    EqualWeighting bool `json:"equalWeighting,omitempty"`

    // Id: Experiment ID. Required for patch and update. Disallowed for
    // create.
    Id  string `json:"id,omitempty"`

    // InternalWebPropertyId: Internal ID for the web property to which this
    // experiment belongs. This field is read-only.
    InternalWebPropertyId string `json:"internalWebPropertyId,omitempty"`

    // Kind: Resource type for an Analytics experiment. This field is
    // read-only.
    Kind string `json:"kind,omitempty"`

    // MinimumExperimentLengthInDays: An integer number in [3, 90].
    // Specifies the minimum length of the experiment. Can be changed for a
    // running experiment. This field may not be changed for an experiments
    // whose status is ENDED.
    MinimumExperimentLengthInDays int64 `json:"minimumExperimentLengthInDays,omitempty"`

    // Name: Experiment name. This field may not be changed for an
    // experiment whose status is ENDED. This field is required when
    // creating an experiment.
    Name string `json:"name,omitempty"`

    // ObjectiveMetric: The metric that the experiment is optimizing. Valid
    // values: "ga:goal(n)Completions", "ga:adsenseAdsClicks",
    // "ga:adsenseAdsViewed", "ga:adsenseRevenue", "ga:bounces",
    // "ga:pageviews", "ga:sessionDuration", "ga:transactions",
    // "ga:transactionRevenue". This field is required if status is
    // "RUNNING" and servingFramework is one of "REDIRECT" or "API".
    ObjectiveMetric string `json:"objectiveMetric,omitempty"`

    // OptimizationType: Whether the objectiveMetric should be minimized or
    // maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults
    // to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be
    // modified when status is "RUNNING" or "ENDED".
    OptimizationType string `json:"optimizationType,omitempty"`

    // ParentLink: Parent link for an experiment. Points to the view
    // (profile) to which this experiment belongs.
    ParentLink *ExperimentParentLink `json:"parentLink,omitempty"`

    // ProfileId: View (Profile) ID to which this experiment belongs. This
    // field is read-only.
    ProfileId string `json:"profileId,omitempty"`

    // ReasonExperimentEnded: Why the experiment ended. Possible values:
    // "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED",
    // "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED".
    // "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no
    // winner was projected to be found. If the experiment status is changed
    // via the API to ENDED this field is set to STOPPED_BY_USER. This field
    // is read-only.
    ReasonExperimentEnded string `json:"reasonExperimentEnded,omitempty"`

    // RewriteVariationUrlsAsOriginal: Boolean specifying whether variations
    // URLS are rewritten to match those of the original. This field may not
    // be changed for an experiments whose status is ENDED.
    RewriteVariationUrlsAsOriginal bool `json:"rewriteVariationUrlsAsOriginal,omitempty"`

    // SelfLink: Link for this experiment. This field is read-only.
    SelfLink string `json:"selfLink,omitempty"`

    // ServingFramework: The framework used to serve the experiment
    // variations and evaluate the results. One of:
    // - REDIRECT: Google Analytics redirects traffic to different variation
    // pages, reports the chosen variation and evaluates the results.
    // - API: Google Analytics chooses and reports the variation to serve
    // and evaluates the results; the caller is responsible for serving the
    // selected variation.
    // - EXTERNAL: The variations will be served externally and the chosen
    // variation reported to Google Analytics. The caller is responsible for
    // serving the selected variation and evaluating the results.
    ServingFramework string `json:"servingFramework,omitempty"`

    // Snippet: The snippet of code to include on the control page(s). This
    // field is read-only.
    Snippet string `json:"snippet,omitempty"`

    // StartTime: The starting time of the experiment (the time the status
    // changed from READY_TO_RUN to RUNNING). This field is present only if
    // the experiment has started. This field is read-only.
    StartTime string `json:"startTime,omitempty"`

    // Status: Experiment status. Possible values: "DRAFT", "READY_TO_RUN",
    // "RUNNING", "ENDED". Experiments can be created in the "DRAFT",
    // "READY_TO_RUN" or "RUNNING" state. This field is required when
    // creating an experiment.
    Status string `json:"status,omitempty"`

    // TrafficCoverage: A floating-point number in (0, 1]. Specifies the
    // fraction of the traffic that participates in the experiment. Can be
    // changed for a running experiment. This field may not be changed for
    // an experiments whose status is ENDED.
    TrafficCoverage float64 `json:"trafficCoverage,omitempty"`

    // Updated: Time the experiment was last modified. This field is
    // read-only.
    Updated string `json:"updated,omitempty"`

    // Variations: Array of variations. The first variation in the array is
    // the original. The number of variations may not change once an
    // experiment is in the RUNNING state. At least two variations are
    // required before status can be set to RUNNING.
    Variations []*ExperimentVariations `json:"variations,omitempty"`

    // WebPropertyId: Web property ID to which this experiment belongs. The
    // web property ID is of the form UA-XXXXX-YY. This field is read-only.
    WebPropertyId string `json:"webPropertyId,omitempty"`

    // WinnerConfidenceLevel: A floating-point number in (0, 1). Specifies
    // the necessary confidence level to choose a winner. This field may not
    // be changed for an experiments whose status is ENDED.
    WinnerConfidenceLevel float64 `json:"winnerConfidenceLevel,omitempty"`

    // WinnerFound: Boolean specifying whether a winner has been found for
    // this experiment. This field is read-only.
    WinnerFound bool `json:"winnerFound,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:"-"`
}

Experiment: JSON template for Analytics experiment resource.

func (*Experiment) MarshalJSON Uses

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

func (*Experiment) UnmarshalJSON Uses

func (s *Experiment) UnmarshalJSON(data []byte) error
type ExperimentParentLink struct {
    // Href: Link to the view (profile) to which this experiment belongs.
    // This field is read-only.
    Href string `json:"href,omitempty"`

    // Type: Value is "analytics#profile". This field is read-only.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Href") 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. "Href") 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:"-"`
}

ExperimentParentLink: Parent link for an experiment. Points to the view (profile) to which this experiment belongs.

func (*ExperimentParentLink) MarshalJSON Uses

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

type ExperimentVariations Uses

type ExperimentVariations struct {
    // Name: The name of the variation. This field is required when creating
    // an experiment. This field may not be changed for an experiment whose
    // status is ENDED.
    Name string `json:"name,omitempty"`

    // Status: Status of the variation. Possible values: "ACTIVE",
    // "INACTIVE". INACTIVE variations are not served. This field may not be
    // changed for an experiment whose status is ENDED.
    Status string `json:"status,omitempty"`

    // Url: The URL of the variation. This field may not be changed for an
    // experiment whose status is RUNNING or ENDED.
    Url string `json:"url,omitempty"`

    // Weight: Weight that this variation should receive. Only present if
    // the experiment is running. This field is read-only.
    Weight float64 `json:"weight,omitempty"`

    // Won: True if the experiment has ended and this variation performed
    // (statistically) significantly better than the original. This field is
    // read-only.
    Won bool `json:"won,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:"-"`
}

func (*ExperimentVariations) MarshalJSON Uses

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

func (*ExperimentVariations) UnmarshalJSON Uses

func (s *ExperimentVariations) UnmarshalJSON(data []byte) error

type Experiments Uses

type Experiments struct {
    // Items: A list of experiments.
    Items []*Experiment `json:"items,omitempty"`

    // ItemsPerPage: The maximum number of resources the response can
    // contain, regardless of the actual number of resources returned. Its
    // value ranges from 1 to 1000 with a value of 1000 by default, or
    // otherwise specified by the max-results query parameter.
    ItemsPerPage int64 `json:"itemsPerPage,omitempty"`

    // Kind: Collection type.
    Kind string `json:"kind,omitempty"`

    // NextLink: Link to next page for this experiment collection.
    NextLink string `json:"nextLink,omitempty"`

    // PreviousLink: Link to previous page for this experiment collection.
    PreviousLink string `json:"previousLink,omitempty"`

    // StartIndex: The starting index of the resources, which is 1 by
    // default or otherwise specified by the start-index query parameter.
    StartIndex int64 `json:"startIndex,omitempty"`

    // TotalResults: The total number of results for the query, regardless
    // of the number of resources in the result.
    TotalResults int64 `json:"totalResults,omitempty"`

    // Username: Email ID of the authenticated user
    Username string `json:"username,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"`
}

Experiments: An experiment collection lists Analytics experiments to which the user has access. Each view (profile) can have a set of experiments. Each resource in the Experiment collection corresponds to a single Analytics experiment.

func (*Experiments) MarshalJSON Uses

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

type Filter Uses

type Filter struct {
    // AccountId: Account ID to which this filter belongs.
    AccountId string `json:"accountId,omitempty"`

    // AdvancedDetails: Details for the filter of the type ADVANCED.
    AdvancedDetails *FilterAdvancedDetails `json:"advancedDetails,omitempty"`

    // Created: Time this filter was created.
    Created string `json:"created,omitempty"`

    // ExcludeDetails: Details for the filter of the type EXCLUDE.
    ExcludeDetails *FilterExpression `json:"excludeDetails,omitempty"`

    // Id: Filter ID.
    Id  string `json:"id,omitempty"`

    // IncludeDetails: Details for the filter of the type INCLUDE.
    IncludeDetails *FilterExpression `json:"includeDetails,omitempty"`

    // Kind: Resource type for Analytics filter.
    Kind string `json:"kind,omitempty"`

    // LowercaseDetails: Details for the filter of the type LOWER.
    LowercaseDetails *FilterLowercaseDetails `json:"lowercaseDetails,omitempty"`

    // Name: Name of this filter.
    Name string `json:"name,omitempty"`

    // ParentLink: Parent link for this filter. Points to the account to
    // which this filter belongs.
    ParentLink *FilterParentLink `json:"parentLink,omitempty"`

    // SearchAndReplaceDetails: Details for the filter of the type
    // SEARCH_AND_REPLACE.
    SearchAndReplaceDetails *FilterSearchAndReplaceDetails `json:"searchAndReplaceDetails,omitempty"`

    // SelfLink: Link for this filter.
    SelfLink string `json:"selfLink,omitempty"`

    // Type: Type of this filter. Possible values are INCLUDE, EXCLUDE,
    // LOWERCASE, UPPERCASE, SEARCH_AND_REPLACE and ADVANCED.
    Type string `json:"type,omitempty"`

    // Updated: Time this filter was last modified.
    Updated string `json:"updated,omitempty"`

    // UppercaseDetails: Details for the filter of the type UPPER.
    UppercaseDetails *FilterUppercaseDetails `json:"uppercaseDetails,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:"-"`
}

Filter: JSON template for an Analytics account filter.

func (*Filter) MarshalJSON Uses

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

type FilterAdvancedDetails Uses

type FilterAdvancedDetails struct {
    // CaseSensitive: Indicates if the filter expressions are case
    // sensitive.
    CaseSensitive bool `json:"caseSensitive,omitempty"`

    // ExtractA: Expression to extract from field A.
    ExtractA string `json:"extractA,omitempty"`

    // ExtractB: Expression to extract from field B.
    ExtractB string `json:"extractB,omitempty"`

    // FieldA: Field A.
    FieldA string `json:"fieldA,omitempty"`

    // FieldAIndex: The Index of the custom dimension. Required if field is
    // a CUSTOM_DIMENSION.
    FieldAIndex int64 `json:"fieldAIndex,omitempty"`

    // FieldARequired: Indicates if field A is required to match.
    FieldARequired bool `json:"fieldARequired,omitempty"`

    // FieldB: Field B.
    FieldB string `json:"fieldB,omitempty"`

    // FieldBIndex: The Index of the custom dimension. Required if field is
    // a CUSTOM_DIMENSION.
    FieldBIndex int64 `json:"fieldBIndex,omitempty"`

    // FieldBRequired: Indicates if field B is required to match.
    FieldBRequired bool `json:"fieldBRequired,omitempty"`

    // OutputConstructor: Expression used to construct the output value.
    OutputConstructor string `json:"outputConstructor,omitempty"`

    // OutputToField: Output field.
    OutputToField string `json:"outputToField,omitempty"`

    // OutputToFieldIndex: The Index of the custom dimension. Required if
    // field is a CUSTOM_DIMENSION.
    OutputToFieldIndex int64 `json:"outputToFieldIndex,omitempty"`

    // OverrideOutputField: Indicates if the existing value of the output
    // field, if any, should be overridden by the output expression.
    OverrideOutputField bool `json:"overrideOutputField,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CaseSensitive") 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. "CaseSensitive") 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:"-"`
}

FilterAdvancedDetails: Details for the filter of the type ADVANCED.

func (*FilterAdvancedDetails) MarshalJSON Uses

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

type FilterExpression Uses

type FilterExpression struct {
    // CaseSensitive: Determines if the filter is case sensitive.
    CaseSensitive bool `json:"caseSensitive,omitempty"`

    // ExpressionValue: Filter expression value
    ExpressionValue string `json:"expressionValue,omitempty"`

    // Field: Field to filter. Possible values:
    // - Content and Traffic
    // - PAGE_REQUEST_URI,
    // - PAGE_HOSTNAME,
    // - PAGE_TITLE,
    // - REFERRAL,
    // - COST_DATA_URI (Campaign target URL),
    // - HIT_TYPE,
    // - INTERNAL_SEARCH_TERM,
    // - INTERNAL_SEARCH_TYPE,
    // - SOURCE_PROPERTY_TRACKING_ID,
    // - Campaign or AdGroup
    // - CAMPAIGN_SOURCE,
    // - CAMPAIGN_MEDIUM,
    // - CAMPAIGN_NAME,
    // - CAMPAIGN_AD_GROUP,
    // - CAMPAIGN_TERM,
    // - CAMPAIGN_CONTENT,
    // - CAMPAIGN_CODE,
    // - CAMPAIGN_REFERRAL_PATH,
    // - E-Commerce
    // - TRANSACTION_COUNTRY,
    // - TRANSACTION_REGION,
    // - TRANSACTION_CITY,
    // - TRANSACTION_AFFILIATION (Store or order location),
    // - ITEM_NAME,
    // - ITEM_CODE,
    // - ITEM_VARIATION,
    // - TRANSACTION_ID,
    // - TRANSACTION_CURRENCY_CODE,
    // - PRODUCT_ACTION_TYPE,
    // - Audience/Users
    // - BROWSER,
    // - BROWSER_VERSION,
    // - BROWSER_SIZE,
    // - PLATFORM,
    // - PLATFORM_VERSION,
    // - LANGUAGE,
    // - SCREEN_RESOLUTION,
    // - SCREEN_COLORS,
    // - JAVA_ENABLED (Boolean Field),
    // - FLASH_VERSION,
    // - GEO_SPEED (Connection speed),
    // - VISITOR_TYPE,
    // - GEO_ORGANIZATION (ISP organization),
    // - GEO_DOMAIN,
    // - GEO_IP_ADDRESS,
    // - GEO_IP_VERSION,
    // - Location
    // - GEO_COUNTRY,
    // - GEO_REGION,
    // - GEO_CITY,
    // - Event
    // - EVENT_CATEGORY,
    // - EVENT_ACTION,
    // - EVENT_LABEL,
    // - Other
    // - CUSTOM_FIELD_1,
    // - CUSTOM_FIELD_2,
    // - USER_DEFINED_VALUE,
    // - Application
    // - APP_ID,
    // - APP_INSTALLER_ID,
    // - APP_NAME,
    // - APP_VERSION,
    // - SCREEN,
    // - IS_APP (Boolean Field),
    // - IS_FATAL_EXCEPTION (Boolean Field),
    // - EXCEPTION_DESCRIPTION,
    // - Mobile device
    // - IS_MOBILE (Boolean Field, Deprecated. Use DEVICE_CATEGORY=mobile),
    //
    // - IS_TABLET (Boolean Field, Deprecated. Use DEVICE_CATEGORY=tablet),
    //
    // - DEVICE_CATEGORY,
    // - MOBILE_HAS_QWERTY_KEYBOARD (Boolean Field),
    // - MOBILE_HAS_NFC_SUPPORT (Boolean Field),
    // - MOBILE_HAS_CELLULAR_RADIO (Boolean Field),
    // - MOBILE_HAS_WIFI_SUPPORT (Boolean Field),
    // - MOBILE_BRAND_NAME,
    // - MOBILE_MODEL_NAME,
    // - MOBILE_MARKETING_NAME,
    // - MOBILE_POINTING_METHOD,
    // - Social
    // - SOCIAL_NETWORK,
    // - SOCIAL_ACTION,
    // - SOCIAL_ACTION_TARGET,
    // - Custom dimension
    // - CUSTOM_DIMENSION (See accompanying field index),
    Field string `json:"field,omitempty"`

    // FieldIndex: The Index of the custom dimension. Set only if the field
    // is a is CUSTOM_DIMENSION.
    FieldIndex int64 `json:"fieldIndex,omitempty"`

    // Kind: Kind value for filter expression
    Kind string `json:"kind,omitempty"`

    // MatchType: Match type for this filter. Possible values are
    // BEGINS_WITH, EQUAL, ENDS_WITH, CONTAINS, or MATCHES. GEO_DOMAIN,
    // GEO_IP_ADDRESS, PAGE_REQUEST_URI, or PAGE_HOSTNAME filters can use
    // any match type; all other filters must use MATCHES.
    MatchType string `json:"matchType,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CaseSensitive") 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. "CaseSensitive") 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:"-"`
}

FilterExpression: JSON template for an Analytics filter expression.

func (*FilterExpression) MarshalJSON Uses

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

type FilterLowercaseDetails Uses

type FilterLowercaseDetails struct {
    // Field: Field to use in the filter.
    Field string `json:"field,omitempty"`

    // FieldIndex: The Index of the custom dimension. Required if field is a
    // CUSTOM_DIMENSION.
    FieldIndex int64 `json:"fieldIndex,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Field") 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. "Field") 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:"-"`
}

FilterLowercaseDetails: Details for the filter of the type LOWER.

func (*FilterLowercaseDetails) MarshalJSON Uses

func (s *FilterLowercaseDetails) MarshalJSON() ([]byte, error)
type FilterParentLink struct {
    // Href: Link to the account to which this filter belongs.
    Href string `json:"href,omitempty"`

    // Type: Value is "analytics#account".
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Href") 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. "Href") 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:"-"`
}

FilterParentLink: Parent link for this filter. Points to the account to which this filter belongs.

func (*FilterParentLink) MarshalJSON Uses

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

type FilterRef Uses

type FilterRef struct {
    // AccountId: Account ID to which this filter belongs.
    AccountId string `json:"accountId,omitempty"`

    // Href: Link for this filter.
    Href string `json:"href,omitempty"`

    // Id: Filter ID.
    Id  string `json:"id,omitempty"`

    // Kind: Kind value for filter reference.
    Kind string `json:"kind,omitempty"`

    // Name: Name of this filter.
    Name string `json:"name,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:"-"`
}

FilterRef: JSON template for a profile filter link.

func (*FilterRef) MarshalJSON Uses

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

type FilterSearchAndReplaceDetails Uses

type FilterSearchAndReplaceDetails struct {
    // CaseSensitive: Determines if the filter is case sensitive.
    CaseSensitive bool `json:"caseSensitive,omitempty"`

    // Field: Field to use in the filter.
    Field string `json:"field,omitempty"`

    // FieldIndex: The Index of the custom dimension. Required if field is a
    // CUSTOM_DIMENSION.
    FieldIndex int64 `json:"fieldIndex,omitempty"`

    // ReplaceString: Term to replace the search term with.
    ReplaceString string `json:"replaceString,omitempty"`

    // SearchString: Term to search.
    SearchString string `json:"searchString,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CaseSensitive") 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. "CaseSensitive") 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:"-"`
}

FilterSearchAndReplaceDetails: Details for the filter of the type SEARCH_AND_REPLACE.

func (*FilterSearchAndReplaceDetails) MarshalJSON Uses

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

type FilterUppercaseDetails Uses

type FilterUppercaseDetails struct {
    // Field: Field to use in the filter.
    Field string `json:"field,omitempty"`

    // FieldIndex: The Index of the custom dimension. Required if field is a
    // CUSTOM_DIMENSION.
    FieldIndex int64 `json:"fieldIndex,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Field") 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. "Field") 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:"-"`
}

FilterUppercaseDetails: Details for the filter of the type UPPER.

func (*FilterUppercaseDetails) MarshalJSON Uses

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

type Filters Uses

type Filters struct {
    // Items: A list of filters.
    Items []*Filter `json:"items,omitempty"`

    // ItemsPerPage: The maximum number of resources the response can
    // contain, regardless of the actual number of resources returned. Its
    // value ranges from 1 to 1,000 with a value of 1000 by default, or
    // otherwise specified by the max-results query parameter.
    ItemsPerPage int64 `json:"itemsPerPage,omitempty"`

    // Kind: Collection type.
    Kind string `json:"kind,omitempty"`

    // NextLink: Link to next page for this filter collection.
    NextLink string `json:"nextLink,omitempty"`

    // PreviousLink: Link to previous page for this filter collection.
    PreviousLink string `json:"previousLink,omitempty"`

    // StartIndex: The starting index of the resources, which is 1 by
    // default or otherwise specified by the start-index query parameter.
    StartIndex int64 `json:"startIndex,omitempty"`

    // TotalResults: The total number of results for the query, regardless
    // of the number of results in the response.
    TotalResults int64 `json:"totalResults,omitempty"`

    // Username: Email ID of the authenticated user
    Username string `json:"username,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"`
}

Filters: A filter collection lists filters created by users in an Analytics account. Each resource in the collection corresponds to a filter.

func (*Filters) MarshalJSON Uses

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

type GaData Uses

type GaData struct {
    // ColumnHeaders: Column headers that list dimension names followed by
    // the metric names. The order of dimensions and metrics is same as
    // specified in the request.
    ColumnHeaders []*GaDataColumnHeaders `json:"columnHeaders,omitempty"`

    // ContainsSampledData: Determines if Analytics data contains samples.
    ContainsSampledData bool `json:"containsSampledData,omitempty"`

    // DataLastRefreshed: The last refreshed time in seconds for Analytics
    // data.
    DataLastRefreshed int64 `json:"dataLastRefreshed,omitempty,string"`

    DataTable *GaDataDataTable `json:"dataTable,omitempty"`

    // Id: Unique ID for this data response.
    Id  string `json:"id,omitempty"`

    // ItemsPerPage: The maximum number of rows the response can contain,
    // regardless of the actual number of rows returned. Its value ranges
    // from 1 to 10,000 with a value of 1000 by default, or otherwise
    // specified by the max-results query parameter.
    ItemsPerPage int64 `json:"itemsPerPage,omitempty"`

    // Kind: Resource type.
    Kind string `json:"kind,omitempty"`

    // NextLink: Link to next page for this Analytics data query.
    NextLink string `json:"nextLink,omitempty"`

    // PreviousLink: Link to previous page for this Analytics data query.
    PreviousLink string `json:"previousLink,omitempty"`

    // ProfileInfo: Information for the view (profile), for which the
    // Analytics data was requested.
    ProfileInfo *GaDataProfileInfo `json:"profileInfo,omitempty"`

    // Query: Analytics data request query parameters.
    Query *GaDataQuery `json:"query,omitempty"`

    // Rows: Analytics data rows, where each row contains a list of
    // dimension values followed by the metric values. The order of
    // dimensions and metrics is same as specified in the request.
    Rows [][]string `json:"rows,omitempty"`

    // SampleSize: The number of samples used to calculate the result.
    SampleSize int64 `json:"sampleSize,omitempty,string"`

    // SampleSpace: Total size of the sample space from which the samples
    // were selected.
    SampleSpace int64 `json:"sampleSpace,omitempty,string"`

    // SelfLink: Link to this page.
    SelfLink string `json:"selfLink,omitempty"`

    // TotalResults: The total number of rows for the query, regardless of
    // the number of rows in the response.
    TotalResults int64 `json:"totalResults,omitempty"`

    // TotalsForAllResults: Total values for the requested metrics over all
    // the results, not just the results returned in this response. The
    // order of the metric totals is same as the metric order specified in
    // the request.
    TotalsForAllResults map[string]string `json:"totalsForAllResults,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "ColumnHeaders") 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. "ColumnHeaders") 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:"-"`
}

GaData: Analytics data for a given view (profile).

func (*GaData) MarshalJSON Uses

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

type GaDataColumnHeaders Uses

type GaDataColumnHeaders struct {
    // ColumnType: Column Type. Either DIMENSION or METRIC.
    ColumnType string `json:"columnType,omitempty"`

    // DataType: Data type. Dimension column headers have only STRING as the
    // data type. Metric column headers have data types for metric values
    // such as INTEGER, DOUBLE, CURRENCY etc.
    DataType string `json:"dataType,omitempty"`

    // Name: Column name.
    Name string `json:"name,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ColumnType") 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. "ColumnType") 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 (*GaDataColumnHeaders) MarshalJSON Uses

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

type GaDataDataTable Uses

type GaDataDataTable struct {
    Cols []*GaDataDataTableCols `json:"cols,omitempty"`

    Rows []*GaDataDataTableRows `json:"rows,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Cols") 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. "Cols") 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 (*GaDataDataTable) MarshalJSON Uses

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

type GaDataDataTableCols Uses

type GaDataDataTableCols struct {
    Id  string `json:"id,omitempty"`

    Label string `json:"label,omitempty"`

    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Id") 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. "Id") 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 (*GaDataDataTableCols) MarshalJSON Uses

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

type GaDataDataTableRows Uses

type GaDataDataTableRows struct {
    C   []*GaDataDataTableRowsC `json:"c,omitempty"`

    // ForceSendFields is a list of field names (e.g. "C") 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. "C") 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 (*GaDataDataTableRows) MarshalJSON Uses

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

type GaDataDataTableRowsC Uses

type GaDataDataTableRowsC struct {
    V   string `json:"v,omitempty"`

    // ForceSendFields is a list of field names (e.g. "V") 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. "V") 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 (*GaDataDataTableRowsC) MarshalJSON Uses

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

type GaDataProfileInfo Uses

type GaDataProfileInfo struct {
    // AccountId: Account ID to which this view (profile) belongs.
    AccountId string `json:"accountId,omitempty"`

    // InternalWebPropertyId: Internal ID for the web property to which this
    // view (profile) belongs.
    InternalWebPropertyId string `json:"internalWebPropertyId,omitempty"`

    // ProfileId: View (Profile) ID.
    ProfileId string `json:"profileId,omitempty"`

    // ProfileName: View (Profile) name.
    ProfileName string `json:"profileName,omitempty"`

    // TableId: Table ID for view (profile).
    TableId string `json:"tableId,omitempty"`

    // WebPropertyId: Web Property ID to which this view (profile) belongs.
    WebPropertyId string `json:"webPropertyId,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:"-"`
}

GaDataProfileInfo: Information for the view (profile), for which the Analytics data was requested.

func (*GaDataProfileInfo) MarshalJSON Uses

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

type GaDataQuery Uses

type GaDataQuery struct {
    // Dimensions: List of analytics dimensions.
    Dimensions string `json:"dimensions,omitempty"`

    // EndDate: End date.
    EndDate string `json:"end-date,omitempty"`

    // Filters: Comma-separated list of dimension or metric filters.
    Filters string `json:"filters,omitempty"`

    // Ids: Unique table ID.
    Ids string `json:"ids,omitempty"`

    // MaxResults: Maximum results per page.
    MaxResults int64 `json:"max-results,omitempty"`

    // Metrics: List of analytics metrics.
    Metrics []string `json:"metrics,omitempty"`

    // SamplingLevel: Desired sampling level
    SamplingLevel string `json:"samplingLevel,omitempty"`

    // Segment: Analytics advanced segment.
    Segment string `json:"segment,omitempty"`

    // Sort: List of dimensions or metrics based on which Analytics data is
    // sorted.
    Sort []string `json:"sort,omitempty"`

    // StartDate: Start date.
    StartDate string `json:"start-date,omitempty"`

    // StartIndex: Start index.
    StartIndex int64 `json:"start-index,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Dimensions") 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. "Dimensions") 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:"-"`
}

GaDataQuery: Analytics data request query parameters.

func (*GaDataQuery) MarshalJSON Uses

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

type Goal Uses

type Goal struct {
    // AccountId: Account ID to which this goal belongs.
    AccountId string `json:"accountId,omitempty"`

    // Active: Determines whether this goal is active.
    Active bool `json:"active,omitempty"`

    // Created: Time this goal was created.
    Created string `json:"created,omitempty"`

    // EventDetails: Details for the goal of the type EVENT.
    EventDetails *GoalEventDetails `json:"eventDetails,omitempty"`

    // Id: Goal ID.
    Id  string `json:"id,omitempty"`

    // InternalWebPropertyId: Internal ID for the web property to which this
    // goal belongs.
    InternalWebPropertyId string `json:"internalWebPropertyId,omitempty"`

    // Kind: Resource type for an Analytics goal.
    Kind string `json:"kind,omitempty"`

    // Name: Goal name.
    Name string `json:"name,omitempty"`

    // ParentLink: Parent link for a goal. Points to the view (profile) to
    // which this goal belongs.
    ParentLink *GoalParentLink `json:"parentLink,omitempty"`

    // ProfileId: View (Profile) ID to which this goal belongs.
    ProfileId string `json:"profileId,omitempty"`

    // SelfLink: Link for this goal.
    SelfLink string `json:"selfLink,omitempty"`

    // Type: Goal type. Possible values are URL_DESTINATION,
    // VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
    Type string `json:"type,omitempty"`

    // Updated: Time this goal was last modified.
    Updated string `json:"updated,omitempty"`

    // UrlDestinationDetails: Details for the goal of the type
    // URL_DESTINATION.
    UrlDestinationDetails *GoalUrlDestinationDetails `json:"urlDestinationDetails,omitempty"`

    // Value: Goal value.
    Value float64 `json:"value,omitempty"`

    // VisitNumPagesDetails: Details for the goal of the type
    // VISIT_NUM_PAGES.
    VisitNumPagesDetails *GoalVisitNumPagesDetails `json:"visitNumPagesDetails,omitempty"`

    // VisitTimeOnSiteDetails: Details for the goal of the type
    // VISIT_TIME_ON_SITE.
    VisitTimeOnSiteDetails *GoalVisitTimeOnSiteDetails `json:"visitTimeOnSiteDetails,omitempty"`

    // WebPropertyId: Web property ID to which this goal belongs. The web
    // property ID is of the form UA-XXXXX-YY.
    WebPropertyId string `json:"webPropertyId,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:"-"`
}

Goal: JSON template for Analytics goal resource.

func (*Goal) MarshalJSON Uses

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

func (*Goal) UnmarshalJSON Uses

func (s *Goal) UnmarshalJSON(data []byte) error

type GoalEventDetails Uses

type GoalEventDetails struct {
    // EventConditions: List of event conditions.
    EventConditions []*GoalEventDetailsEventConditions `json:"eventConditions,omitempty"`

    // UseEventValue: Determines if the event value should be used as the
    // value for this goal.
    UseEventValue bool `json:"useEventValue,omitempty"`

    // ForceSendFields is a list of field names (e.g. "EventConditions") 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. "EventConditions") 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:"-"`
}

GoalEventDetails: Details for the goal of the type EVENT.

func (*GoalEventDetails) MarshalJSON Uses

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

type GoalEventDetailsEventConditions Uses

type GoalEventDetailsEventConditions struct {
    // ComparisonType: Type of comparison. Possible values are LESS_THAN,
    // GREATER_THAN or EQUAL.
    ComparisonType string `json:"comparisonType,omitempty"`

    // ComparisonValue: Value used for this comparison.
    ComparisonValue int64 `json:"comparisonValue,omitempty,string"`

    // Expression: Expression used for this match.
    Expression string `json:"expression,omitempty"`

    // MatchType: Type of the match to be performed. Possible values are
    // REGEXP, BEGINS_WITH, or EXACT.
    MatchType string `json:"matchType,omitempty"`

    // Type: Type of this event condition. Possible values are CATEGORY,
    // ACTION, LABEL, or VALUE.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ComparisonType") 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. "ComparisonType") 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 (*GoalEventDetailsEventConditions) MarshalJSON Uses

func (s *GoalEventDetailsEventConditions) MarshalJSON() ([]byte, error)
type GoalParentLink struct {
    // Href: Link to the view (profile) to which this goal belongs.
    Href string `json:"href,omitempty"`

    // Type: Value is "analytics#profile".
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Href") 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. "Href") 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:"-"`
}

GoalParentLink: Parent link for a goal. Points to the view (profile) to which this goal belongs.

func (*GoalParentLink) MarshalJSON Uses

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

type GoalUrlDestinationDetails Uses

type GoalUrlDestinationDetails struct {
    // CaseSensitive: Determines if the goal URL must exactly match the
    // capitalization of visited URLs.
    CaseSensitive bool `json:"caseSensitive,omitempty"`

    // FirstStepRequired: Determines if the first step in this goal is
    // required.
    FirstStepRequired bool `json:"firstStepRequired,omitempty"`

    // MatchType: Match type for the goal URL. Possible values are HEAD,
    // EXACT, or REGEX.
    MatchType string `json:"matchType,omitempty"`

    // Steps: List of steps configured for this goal funnel.
    Steps []*GoalUrlDestinationDetailsSteps `json:"steps,omitempty"`

    // Url: URL for this goal.
    Url string `json:"url,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CaseSensitive") 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. "CaseSensitive") 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:"-"`
}

GoalUrlDestinationDetails: Details for the goal of the type URL_DESTINATION.

func (*GoalUrlDestinationDetails) MarshalJSON Uses

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

type GoalUrlDestinationDetailsSteps Uses

type GoalUrlDestinationDetailsSteps struct {
    // Name: Step name.
    Name string `json:"name,omitempty"`

    // Number: Step number.
    Number int64 `json:"number,omitempty"`

    // Url: URL for this step.
    Url string `json:"url,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:"-"`
}

func (*GoalUrlDestinationDetailsSteps) MarshalJSON Uses

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

type GoalVisitNumPagesDetails Uses

type GoalVisitNumPagesDetails struct {
    // ComparisonType: Type of comparison. Possible values are LESS_THAN,
    // GREATER_THAN, or EQUAL.
    ComparisonType string `json:"comparisonType,omitempty"`

    // ComparisonValue: Value used for this comparison.
    ComparisonValue int64 `json:"comparisonValue,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "ComparisonType") 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. "ComparisonType") 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:"-"`
}

GoalVisitNumPagesDetails: Details for the goal of the type VISIT_NUM_PAGES.

func (*GoalVisitNumPagesDetails) MarshalJSON Uses

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

type GoalVisitTimeOnSiteDetails Uses

type GoalVisitTimeOnSiteDetails struct {
    // ComparisonType: Type of comparison. Possible values are LESS_THAN or
    // GREATER_THAN.
    ComparisonType string `json:"comparisonType,omitempty"`

    // ComparisonValue: Value used for this comparison.
    ComparisonValue int64 `json:"comparisonValue,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "ComparisonType") 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. "ComparisonType") 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:"-"`
}

GoalVisitTimeOnSiteDetails: Details for the goal of the type VISIT_TIME_ON_SITE.

func (*GoalVisitTimeOnSiteDetails) MarshalJSON Uses

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

type Goals Uses

type Goals struct {
    // Items: A list of goals.
    Items []*Goal `json:"items,omitempty"`

    // ItemsPerPage: The maximum number of resources the response can
    // contain, regardless of the actual number of resources returned. Its
    // value ranges from 1 to 1000 with a value of 1000 by default, or
    // otherwise specified by the max-results query parameter.
    ItemsPerPage int64 `json:"itemsPerPage,omitempty"`

    // Kind: Collection type.
    Kind string `json:"kind,omitempty"`

    // NextLink: Link to next page for this goal collection.
    NextLink string `json:"nextLink,omitempty"`

    // PreviousLink: Link to previous page for this goal collection.
    PreviousLink string `json:"previousLink,omitempty"`

    // StartIndex: The starting index of the resources, which is 1 by
    // default or otherwise specified by the start-index query parameter.
    StartIndex int64 `json:"startIndex,omitempty"`

    // TotalResults: The total number of results for the query, regardless
    // of the number of resources in the result.
    TotalResults int64 `json:"totalResults,omitempty"`

    // Username: Email ID of the authenticated user
    Username string `json:"username,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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:"-"`
}

Goals: A goal collection lists Analytics goals to which the user has access. Each view (profile) can have a set of goals. Each resource in the Goal collection corresponds to a single Analytics goal.

func (*Goals) MarshalJSON Uses

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

type HashClientIdRequest Uses

type HashClientIdRequest struct {
    ClientId string `json:"clientId,omitempty"`

    Kind string `json:"kind,omitempty"`

    WebPropertyId string `json:"webPropertyId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ClientId") 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. "ClientId") 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:"-"`
}

HashClientIdRequest: JSON template for a hash Client Id request resource.

func (*HashClientIdRequest) MarshalJSON Uses

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

type HashClientIdResponse Uses

type HashClientIdResponse struct {
    ClientId string `json:"clientId,omitempty"`

    HashedClientId string `json:"hashedClientId,omitempty"`

    Kind string `json:"kind,omitempty"`

    WebPropertyId string `json:"webPropertyId,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "ClientId") 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. "ClientId") 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:"-"`
}

HashClientIdResponse: JSON template for a hash Client Id response resource.

func (*HashClientIdResponse) MarshalJSON Uses

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

type IncludeConditions Uses

type IncludeConditions struct {
    // DaysToLookBack: The look-back window lets you specify a time frame
    // for evaluating the behavior that qualifies users for your audience.
    // For example, if your filters include users from Central Asia, and
    // Transactions Greater than 2, and you set the look-back window to 14
    // days, then any user from Central Asia whose cumulative transactions
    // exceed 2 during the last 14 days is added to the audience.
    DaysToLookBack int64 `json:"daysToLookBack,omitempty"`

    // IsSmartList: Boolean indicating whether this segment is a smart list.
    // https://support.google.com/analytics/answer/4628577
    IsSmartList bool `json:"isSmartList,omitempty"`

    // Kind: Resource type for include conditions.
    Kind string `json:"kind,omitempty"`

    // MembershipDurationDays: Number of days (in the range 1 to 540) a user
    // remains in the audience.
    MembershipDurationDays int64 `json:"membershipDurationDays,omitempty"`

    // Segment: The segment condition that will cause a user to be added to
    // an audience.
    Segment string `json:"segment,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DaysToLookBack") 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. "DaysToLookBack") 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:"-"`
}

IncludeConditions: JSON template for an Analytics Remarketing Include Conditions.

func (*IncludeConditions) MarshalJSON Uses

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

type LinkedForeignAccount Uses

type LinkedForeignAccount struct {
    // AccountId: Account ID to which this linked foreign account belongs.
    AccountId string `json:"accountId,omitempty"`

    // EligibleForSearch: Boolean indicating whether this is eligible for
    // search.
    EligibleForSearch bool `json:"eligibleForSearch,omitempty"`

    // Id: Entity ad account link ID.
    Id  string `json:"id,omitempty"`

    // InternalWebPropertyId: Internal ID for the web property to which this
    // linked foreign account belongs.
    InternalWebPropertyId string `json:"internalWebPropertyId,omitempty"`

    // Kind: Resource type for linked foreign account.
    Kind string `json:"kind,omitempty"`

    // LinkedAccountId: The foreign account ID. For example the an Google
    // Ads `linkedAccountId` has the following format XXX-XXX-XXXX.
    LinkedAccountId string `json:"linkedAccountId,omitempty"`

    // RemarketingAudienceId: Remarketing audience ID to which this linked
    // foreign account belongs.
    RemarketingAudienceId string `json:"remarketingAudienceId,omitempty"`

    // Status: The status of this foreign account link.
    Status string `json:"status,omitempty"`

    // Type: The type of the foreign account. For example, `ADWORDS_LINKS`,
    // `DBM_LINKS`, `MCC_LINKS` or `OPTIMIZE`.
    Type string `json:"type,omitempty"`

    // WebPropertyId: Web property ID of the form UA-XXXXX-YY to which this
    // linked foreign account belongs.
    WebPropertyId string `json:"webPropertyId,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:"-"`
}

LinkedForeignAccount: JSON template for an Analytics Remarketing Audience Foreign Link.

func (*LinkedForeignAccount) MarshalJSON Uses

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

type ManagementAccountSummariesListCall Uses

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

func (*ManagementAccountSummariesListCall) Context Uses

func (c *ManagementAccountSummariesListCall) Context(ctx context.Context) *ManagementAccountSummariesListCall

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 (*ManagementAccountSummariesListCall) Do Uses

func (c *ManagementAccountSummariesListCall) Do(opts ...googleapi.CallOption) (*AccountSummaries, error)

Do executes the "analytics.management.accountSummaries.list" call. Exactly one of *AccountSummaries or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountSummaries.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 (*ManagementAccountSummariesListCall) Fields Uses

func (c *ManagementAccountSummariesListCall) Fields(s ...googleapi.Field) *ManagementAccountSummariesListCall

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

func (*ManagementAccountSummariesListCall) Header Uses

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

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

func (*ManagementAccountSummariesListCall) IfNoneMatch Uses

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

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 (*ManagementAccountSummariesListCall) MaxResults Uses

func (c *ManagementAccountSummariesListCall) MaxResults(maxResults int64) *ManagementAccountSummariesListCall

MaxResults sets the optional parameter "max-results": The maximum number of account summaries to include in this response, where the largest acceptable value is 1000.

func (*ManagementAccountSummariesListCall) StartIndex Uses

func (c *ManagementAccountSummariesListCall) StartIndex(startIndex int64) *ManagementAccountSummariesListCall

StartIndex sets the optional parameter "start-index": An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementAccountSummariesService Uses

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

func NewManagementAccountSummariesService Uses

func NewManagementAccountSummariesService(s *Service) *ManagementAccountSummariesService

func (*ManagementAccountSummariesService) List Uses

func (r *ManagementAccountSummariesService) List() *ManagementAccountSummariesListCall

List: Lists account summaries (lightweight tree comprised of accounts/properties/profiles) to which the user has access.

type ManagementAccountUserLinksDeleteCall Uses

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

func (*ManagementAccountUserLinksDeleteCall) Context Uses

func (c *ManagementAccountUserLinksDeleteCall) Context(ctx context.Context) *ManagementAccountUserLinksDeleteCall

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 (*ManagementAccountUserLinksDeleteCall) Do Uses

func (c *ManagementAccountUserLinksDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "analytics.management.accountUserLinks.delete" call.

func (*ManagementAccountUserLinksDeleteCall) Fields Uses

func (c *ManagementAccountUserLinksDeleteCall) Fields(s ...googleapi.Field) *ManagementAccountUserLinksDeleteCall

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

func (*ManagementAccountUserLinksDeleteCall) Header Uses

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

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

type ManagementAccountUserLinksInsertCall Uses

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

func (*ManagementAccountUserLinksInsertCall) Context Uses

func (c *ManagementAccountUserLinksInsertCall) Context(ctx context.Context) *ManagementAccountUserLinksInsertCall

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 (*ManagementAccountUserLinksInsertCall) Do Uses

func (c *ManagementAccountUserLinksInsertCall) Do(opts ...googleapi.CallOption) (*EntityUserLink, error)

Do executes the "analytics.management.accountUserLinks.insert" call. Exactly one of *EntityUserLink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EntityUserLink.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 (*ManagementAccountUserLinksInsertCall) Fields Uses

func (c *ManagementAccountUserLinksInsertCall) Fields(s ...googleapi.Field) *ManagementAccountUserLinksInsertCall

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

func (*ManagementAccountUserLinksInsertCall) Header Uses

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

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

type ManagementAccountUserLinksListCall Uses

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

func (*ManagementAccountUserLinksListCall) Context Uses

func (c *ManagementAccountUserLinksListCall) Context(ctx context.Context) *ManagementAccountUserLinksListCall

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 (*ManagementAccountUserLinksListCall) Do Uses

func (c *ManagementAccountUserLinksListCall) Do(opts ...googleapi.CallOption) (*EntityUserLinks, error)

Do executes the "analytics.management.accountUserLinks.list" call. Exactly one of *EntityUserLinks or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EntityUserLinks.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 (*ManagementAccountUserLinksListCall) Fields Uses

func (c *ManagementAccountUserLinksListCall) Fields(s ...googleapi.Field) *ManagementAccountUserLinksListCall

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

func (*ManagementAccountUserLinksListCall) Header Uses

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

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

func (*ManagementAccountUserLinksListCall) IfNoneMatch Uses

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

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 (*ManagementAccountUserLinksListCall) MaxResults Uses

func (c *ManagementAccountUserLinksListCall) MaxResults(maxResults int64) *ManagementAccountUserLinksListCall

MaxResults sets the optional parameter "max-results": The maximum number of account-user links to include in this response.

func (*ManagementAccountUserLinksListCall) StartIndex Uses

func (c *ManagementAccountUserLinksListCall) StartIndex(startIndex int64) *ManagementAccountUserLinksListCall

StartIndex sets the optional parameter "start-index": An index of the first account-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementAccountUserLinksService Uses

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

func NewManagementAccountUserLinksService Uses

func NewManagementAccountUserLinksService(s *Service) *ManagementAccountUserLinksService

func (*ManagementAccountUserLinksService) Delete Uses

func (r *ManagementAccountUserLinksService) Delete(accountId string, linkId string) *ManagementAccountUserLinksDeleteCall

Delete: Removes a user from the given account.

func (*ManagementAccountUserLinksService) Insert Uses

func (r *ManagementAccountUserLinksService) Insert(accountId string, entityuserlink *EntityUserLink) *ManagementAccountUserLinksInsertCall

Insert: Adds a new user to the given account.

func (*ManagementAccountUserLinksService) List Uses

func (r *ManagementAccountUserLinksService) List(accountId string) *ManagementAccountUserLinksListCall

List: Lists account-user links for a given account.

func (*ManagementAccountUserLinksService) Update Uses

func (r *ManagementAccountUserLinksService) Update(accountId string, linkId string, entityuserlink *EntityUserLink) *ManagementAccountUserLinksUpdateCall

Update: Updates permissions for an existing user on the given account.

type ManagementAccountUserLinksUpdateCall Uses

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

func (*ManagementAccountUserLinksUpdateCall) Context Uses

func (c *ManagementAccountUserLinksUpdateCall) Context(ctx context.Context) *ManagementAccountUserLinksUpdateCall

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 (*ManagementAccountUserLinksUpdateCall) Do Uses

func (c *ManagementAccountUserLinksUpdateCall) Do(opts ...googleapi.CallOption) (*EntityUserLink, error)

Do executes the "analytics.management.accountUserLinks.update" call. Exactly one of *EntityUserLink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EntityUserLink.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 (*ManagementAccountUserLinksUpdateCall) Fields Uses

func (c *ManagementAccountUserLinksUpdateCall) Fields(s ...googleapi.Field) *ManagementAccountUserLinksUpdateCall

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

func (*ManagementAccountUserLinksUpdateCall) Header Uses

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

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

type ManagementAccountsListCall Uses

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

func (*ManagementAccountsListCall) Context Uses

func (c *ManagementAccountsListCall) Context(ctx context.Context) *ManagementAccountsListCall

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 (*ManagementAccountsListCall) Do Uses

func (c *ManagementAccountsListCall) Do(opts ...googleapi.CallOption) (*Accounts, error)

Do executes the "analytics.management.accounts.list" call. Exactly one of *Accounts or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Accounts.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 (*ManagementAccountsListCall) Fields Uses

func (c *ManagementAccountsListCall) Fields(s ...googleapi.Field) *ManagementAccountsListCall

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

func (*ManagementAccountsListCall) Header Uses

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

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

func (*ManagementAccountsListCall) IfNoneMatch Uses

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

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 (*ManagementAccountsListCall) MaxResults Uses

func (c *ManagementAccountsListCall) MaxResults(maxResults int64) *ManagementAccountsListCall

MaxResults sets the optional parameter "max-results": The maximum number of accounts to include in this response.

func (*ManagementAccountsListCall) StartIndex Uses

func (c *ManagementAccountsListCall) StartIndex(startIndex int64) *ManagementAccountsListCall

StartIndex sets the optional parameter "start-index": An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementAccountsService Uses

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

func NewManagementAccountsService Uses

func NewManagementAccountsService(s *Service) *ManagementAccountsService

func (*ManagementAccountsService) List Uses

func (r *ManagementAccountsService) List() *ManagementAccountsListCall

List: Lists all accounts to which the user has access.

type ManagementClientIdHashClientIdCall Uses

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

func (*ManagementClientIdHashClientIdCall) Context Uses

func (c *ManagementClientIdHashClientIdCall) Context(ctx context.Context) *ManagementClientIdHashClientIdCall

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 (*ManagementClientIdHashClientIdCall) Do Uses

func (c *ManagementClientIdHashClientIdCall) Do(opts ...googleapi.CallOption) (*HashClientIdResponse, error)

Do executes the "analytics.management.clientId.hashClientId" call. Exactly one of *HashClientIdResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *HashClientIdResponse.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 (*ManagementClientIdHashClientIdCall) Fields Uses

func (c *ManagementClientIdHashClientIdCall) Fields(s ...googleapi.Field) *ManagementClientIdHashClientIdCall

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

func (*ManagementClientIdHashClientIdCall) Header Uses

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

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

type ManagementClientIdService Uses

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

func NewManagementClientIdService Uses

func NewManagementClientIdService(s *Service) *ManagementClientIdService

func (*ManagementClientIdService) HashClientId Uses

func (r *ManagementClientIdService) HashClientId(hashclientidrequest *HashClientIdRequest) *ManagementClientIdHashClientIdCall

HashClientId: Hashes the given Client ID.

type ManagementCustomDataSourcesListCall Uses

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

func (*ManagementCustomDataSourcesListCall) Context Uses

func (c *ManagementCustomDataSourcesListCall) Context(ctx context.Context) *ManagementCustomDataSourcesListCall

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 (*ManagementCustomDataSourcesListCall) Do Uses

func (c *ManagementCustomDataSourcesListCall) Do(opts ...googleapi.CallOption) (*CustomDataSources, error)

Do executes the "analytics.management.customDataSources.list" call. Exactly one of *CustomDataSources or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CustomDataSources.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 (*ManagementCustomDataSourcesListCall) Fields Uses

func (c *ManagementCustomDataSourcesListCall) Fields(s ...googleapi.Field) *ManagementCustomDataSourcesListCall

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

func (*ManagementCustomDataSourcesListCall) Header Uses

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

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

func (*ManagementCustomDataSourcesListCall) IfNoneMatch Uses

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

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 (*ManagementCustomDataSourcesListCall) MaxResults Uses

func (c *ManagementCustomDataSourcesListCall) MaxResults(maxResults int64) *ManagementCustomDataSourcesListCall

MaxResults sets the optional parameter "max-results": The maximum number of custom data sources to include in this response.

func (*ManagementCustomDataSourcesListCall) StartIndex Uses

func (c *ManagementCustomDataSourcesListCall) StartIndex(startIndex int64) *ManagementCustomDataSourcesListCall

StartIndex sets the optional parameter "start-index": A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementCustomDataSourcesService Uses

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

func NewManagementCustomDataSourcesService Uses

func NewManagementCustomDataSourcesService(s *Service) *ManagementCustomDataSourcesService

func (*ManagementCustomDataSourcesService) List Uses

func (r *ManagementCustomDataSourcesService) List(accountId string, webPropertyId string) *ManagementCustomDataSourcesListCall

List: List custom data sources to which the user has access.

type ManagementCustomDimensionsGetCall Uses

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

func (*ManagementCustomDimensionsGetCall) Context Uses

func (c *ManagementCustomDimensionsGetCall) Context(ctx context.Context) *ManagementCustomDimensionsGetCall

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 (*ManagementCustomDimensionsGetCall) Do Uses

func (c *ManagementCustomDimensionsGetCall) Do(opts ...googleapi.CallOption) (*CustomDimension, error)

Do executes the "analytics.management.customDimensions.get" call. Exactly one of *CustomDimension or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CustomDimension.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 (*ManagementCustomDimensionsGetCall) Fields Uses

func (c *ManagementCustomDimensionsGetCall) Fields(s ...googleapi.Field) *ManagementCustomDimensionsGetCall

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

func (*ManagementCustomDimensionsGetCall) Header Uses

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

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

func (*ManagementCustomDimensionsGetCall) IfNoneMatch Uses

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

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 ManagementCustomDimensionsInsertCall Uses

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

func (*ManagementCustomDimensionsInsertCall) Context Uses

func (c *ManagementCustomDimensionsInsertCall) Context(ctx context.Context) *ManagementCustomDimensionsInsertCall

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 (*ManagementCustomDimensionsInsertCall) Do Uses

func (c *ManagementCustomDimensionsInsertCall) Do(opts ...googleapi.CallOption) (*CustomDimension, error)

Do executes the "analytics.management.customDimensions.insert" call. Exactly one of *CustomDimension or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CustomDimension.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 (*ManagementCustomDimensionsInsertCall) Fields Uses

func (c *ManagementCustomDimensionsInsertCall) Fields(s ...googleapi.Field) *ManagementCustomDimensionsInsertCall

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

func (*ManagementCustomDimensionsInsertCall) Header Uses

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

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

type ManagementCustomDimensionsListCall Uses

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

func (*ManagementCustomDimensionsListCall) Context Uses

func (c *ManagementCustomDimensionsListCall) Context(ctx context.Context) *ManagementCustomDimensionsListCall

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 (*ManagementCustomDimensionsListCall) Do Uses

func (c *ManagementCustomDimensionsListCall) Do(opts ...googleapi.CallOption) (*CustomDimensions, error)

Do executes the "analytics.management.customDimensions.list" call. Exactly one of *CustomDimensions or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CustomDimensions.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 (*ManagementCustomDimensionsListCall) Fields Uses

func (c *ManagementCustomDimensionsListCall) Fields(s ...googleapi.Field) *ManagementCustomDimensionsListCall

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

func (*ManagementCustomDimensionsListCall) Header Uses

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

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

func (*ManagementCustomDimensionsListCall) IfNoneMatch Uses

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

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 (*ManagementCustomDimensionsListCall) MaxResults Uses

func (c *ManagementCustomDimensionsListCall) MaxResults(maxResults int64) *ManagementCustomDimensionsListCall

MaxResults sets the optional parameter "max-results": The maximum number of custom dimensions to include in this response.

func (*ManagementCustomDimensionsListCall) StartIndex Uses

func (c *ManagementCustomDimensionsListCall) StartIndex(startIndex int64) *ManagementCustomDimensionsListCall

StartIndex sets the optional parameter "start-index": An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementCustomDimensionsPatchCall Uses

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

func (*ManagementCustomDimensionsPatchCall) Context Uses

func (c *ManagementCustomDimensionsPatchCall) Context(ctx context.Context) *ManagementCustomDimensionsPatchCall

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 (*ManagementCustomDimensionsPatchCall) Do Uses

func (c *ManagementCustomDimensionsPatchCall) Do(opts ...googleapi.CallOption) (*CustomDimension, error)

Do executes the "analytics.management.customDimensions.patch" call. Exactly one of *CustomDimension or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CustomDimension.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 (*ManagementCustomDimensionsPatchCall) Fields Uses

func (c *ManagementCustomDimensionsPatchCall) Fields(s ...googleapi.Field) *ManagementCustomDimensionsPatchCall

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

func (*ManagementCustomDimensionsPatchCall) Header Uses

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

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

func (c *ManagementCustomDimensionsPatchCall) IgnoreCustomDataSourceLinks(ignoreCustomDataSourceLinks bool) *ManagementCustomDimensionsPatchCall

IgnoreCustomDataSourceLinks sets the optional parameter "ignoreCustomDataSourceLinks": Force the update and ignore any warnings related to the custom dimension being linked to a custom data source / data set.

type ManagementCustomDimensionsService Uses

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

func NewManagementCustomDimensionsService Uses

func NewManagementCustomDimensionsService(s *Service) *ManagementCustomDimensionsService

func (*ManagementCustomDimensionsService) Get Uses

func (r *ManagementCustomDimensionsService) Get(accountId string, webPropertyId string, customDimensionId string) *ManagementCustomDimensionsGetCall

Get: Get a custom dimension to which the user has access.

func (*ManagementCustomDimensionsService) Insert Uses

func (r *ManagementCustomDimensionsService) Insert(accountId string, webPropertyId string, customdimension *CustomDimension) *ManagementCustomDimensionsInsertCall

Insert: Create a new custom dimension.

func (*ManagementCustomDimensionsService) List Uses

func (r *ManagementCustomDimensionsService) List(accountId string, webPropertyId string) *ManagementCustomDimensionsListCall

List: Lists custom dimensions to which the user has access.

func (*ManagementCustomDimensionsService) Patch Uses

func (r *ManagementCustomDimensionsService) Patch(accountId string, webPropertyId string, customDimensionId string, customdimension *CustomDimension) *ManagementCustomDimensionsPatchCall

Patch: Updates an existing custom dimension. This method supports patch semantics.

func (*ManagementCustomDimensionsService) Update Uses

func (r *ManagementCustomDimensionsService) Update(accountId string, webPropertyId string, customDimensionId string, customdimension *CustomDimension) *ManagementCustomDimensionsUpdateCall

Update: Updates an existing custom dimension.

type ManagementCustomDimensionsUpdateCall Uses

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

func (*ManagementCustomDimensionsUpdateCall) Context Uses

func (c *ManagementCustomDimensionsUpdateCall) Context(ctx context.Context) *ManagementCustomDimensionsUpdateCall

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 (*ManagementCustomDimensionsUpdateCall) Do Uses

func (c *ManagementCustomDimensionsUpdateCall) Do(opts ...googleapi.CallOption) (*CustomDimension, error)

Do executes the "analytics.management.customDimensions.update" call. Exactly one of *CustomDimension or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CustomDimension.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 (*ManagementCustomDimensionsUpdateCall) Fields Uses

func (c *ManagementCustomDimensionsUpdateCall) Fields(s ...googleapi.Field) *ManagementCustomDimensionsUpdateCall

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

func (*ManagementCustomDimensionsUpdateCall) Header Uses

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

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

func (c *ManagementCustomDimensionsUpdateCall) IgnoreCustomDataSourceLinks(ignoreCustomDataSourceLinks bool) *ManagementCustomDimensionsUpdateCall

IgnoreCustomDataSourceLinks sets the optional parameter "ignoreCustomDataSourceLinks": Force the update and ignore any warnings related to the custom dimension being linked to a custom data source / data set.

type ManagementCustomMetricsGetCall Uses

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

func (*ManagementCustomMetricsGetCall) Context Uses

func (c *ManagementCustomMetricsGetCall) Context(ctx context.Context) *ManagementCustomMetricsGetCall

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 (*ManagementCustomMetricsGetCall) Do Uses

func (c *ManagementCustomMetricsGetCall) Do(opts ...googleapi.CallOption) (*CustomMetric, error)

Do executes the "analytics.management.customMetrics.get" call. Exactly one of *CustomMetric or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CustomMetric.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 (*ManagementCustomMetricsGetCall) Fields Uses

func (c *ManagementCustomMetricsGetCall) Fields(s ...googleapi.Field) *ManagementCustomMetricsGetCall

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

func (*ManagementCustomMetricsGetCall) Header Uses

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

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

func (*ManagementCustomMetricsGetCall) IfNoneMatch Uses

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

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 ManagementCustomMetricsInsertCall Uses

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

func (*ManagementCustomMetricsInsertCall) Context Uses

func (c *ManagementCustomMetricsInsertCall) Context(ctx context.Context) *ManagementCustomMetricsInsertCall

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 (*ManagementCustomMetricsInsertCall) Do Uses

func (c *ManagementCustomMetricsInsertCall) Do(opts ...googleapi.CallOption) (*CustomMetric, error)

Do executes the "analytics.management.customMetrics.insert" call. Exactly one of *CustomMetric or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CustomMetric.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 (*ManagementCustomMetricsInsertCall) Fields Uses

func (c *ManagementCustomMetricsInsertCall) Fields(s ...googleapi.Field) *ManagementCustomMetricsInsertCall

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

func (*ManagementCustomMetricsInsertCall) Header Uses

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

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

type ManagementCustomMetricsListCall Uses

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

func (*ManagementCustomMetricsListCall) Context Uses

func (c *ManagementCustomMetricsListCall) Context(ctx context.Context) *ManagementCustomMetricsListCall

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 (*ManagementCustomMetricsListCall) Do Uses

func (c *ManagementCustomMetricsListCall) Do(opts ...googleapi.CallOption) (*CustomMetrics, error)

Do executes the "analytics.management.customMetrics.list" call. Exactly one of *CustomMetrics or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CustomMetrics.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 (*ManagementCustomMetricsListCall) Fields Uses

func (c *ManagementCustomMetricsListCall) Fields(s ...googleapi.Field) *ManagementCustomMetricsListCall

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

func (*ManagementCustomMetricsListCall) Header Uses

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

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

func (*ManagementCustomMetricsListCall) IfNoneMatch Uses

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

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 (*ManagementCustomMetricsListCall) MaxResults Uses

func (c *ManagementCustomMetricsListCall) MaxResults(maxResults int64) *ManagementCustomMetricsListCall

MaxResults sets the optional parameter "max-results": The maximum number of custom metrics to include in this response.

func (*ManagementCustomMetricsListCall) StartIndex Uses

func (c *ManagementCustomMetricsListCall) StartIndex(startIndex int64) *ManagementCustomMetricsListCall

StartIndex sets the optional parameter "start-index": An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementCustomMetricsPatchCall Uses

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

func (*ManagementCustomMetricsPatchCall) Context Uses

func (c *ManagementCustomMetricsPatchCall) Context(ctx context.Context) *ManagementCustomMetricsPatchCall

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 (*ManagementCustomMetricsPatchCall) Do Uses

func (c *ManagementCustomMetricsPatchCall) Do(opts ...googleapi.CallOption) (*CustomMetric, error)

Do executes the "analytics.management.customMetrics.patch" call. Exactly one of *CustomMetric or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CustomMetric.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 (*ManagementCustomMetricsPatchCall) Fields Uses

func (c *ManagementCustomMetricsPatchCall) Fields(s ...googleapi.Field) *ManagementCustomMetricsPatchCall

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

func (*ManagementCustomMetricsPatchCall) Header Uses

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

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

func (c *ManagementCustomMetricsPatchCall) IgnoreCustomDataSourceLinks(ignoreCustomDataSourceLinks bool) *ManagementCustomMetricsPatchCall

IgnoreCustomDataSourceLinks sets the optional parameter "ignoreCustomDataSourceLinks": Force the update and ignore any warnings related to the custom metric being linked to a custom data source / data set.

type ManagementCustomMetricsService Uses

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

func NewManagementCustomMetricsService Uses

func NewManagementCustomMetricsService(s *Service) *ManagementCustomMetricsService

func (*ManagementCustomMetricsService) Get Uses

func (r *ManagementCustomMetricsService) Get(accountId string, webPropertyId string, customMetricId string) *ManagementCustomMetricsGetCall

Get: Get a custom metric to which the user has access.

func (*ManagementCustomMetricsService) Insert Uses

func (r *ManagementCustomMetricsService) Insert(accountId string, webPropertyId string, custommetric *CustomMetric) *ManagementCustomMetricsInsertCall

Insert: Create a new custom metric.

func (*ManagementCustomMetricsService) List Uses

func (r *ManagementCustomMetricsService) List(accountId string, webPropertyId string) *ManagementCustomMetricsListCall

List: Lists custom metrics to which the user has access.

func (*ManagementCustomMetricsService) Patch Uses

func (r *ManagementCustomMetricsService) Patch(accountId string, webPropertyId string, customMetricId string, custommetric *CustomMetric) *ManagementCustomMetricsPatchCall

Patch: Updates an existing custom metric. This method supports patch semantics.

func (*ManagementCustomMetricsService) Update Uses

func (r *ManagementCustomMetricsService) Update(accountId string, webPropertyId string, customMetricId string, custommetric *CustomMetric) *ManagementCustomMetricsUpdateCall

Update: Updates an existing custom metric.

type ManagementCustomMetricsUpdateCall Uses

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

func (*ManagementCustomMetricsUpdateCall) Context Uses

func (c *ManagementCustomMetricsUpdateCall) Context(ctx context.Context) *ManagementCustomMetricsUpdateCall

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 (*ManagementCustomMetricsUpdateCall) Do Uses

func (c *ManagementCustomMetricsUpdateCall) Do(opts ...googleapi.CallOption) (*CustomMetric, error)

Do executes the "analytics.management.customMetrics.update" call. Exactly one of *CustomMetric or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CustomMetric.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 (*ManagementCustomMetricsUpdateCall) Fields Uses

func (c *ManagementCustomMetricsUpdateCall) Fields(s ...googleapi.Field) *ManagementCustomMetricsUpdateCall

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

func (*ManagementCustomMetricsUpdateCall) Header Uses

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

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

func (c *ManagementCustomMetricsUpdateCall) IgnoreCustomDataSourceLinks(ignoreCustomDataSourceLinks bool) *ManagementCustomMetricsUpdateCall

IgnoreCustomDataSourceLinks sets the optional parameter "ignoreCustomDataSourceLinks": Force the update and ignore any warnings related to the custom metric being linked to a custom data source / data set.

type ManagementExperimentsDeleteCall Uses

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

func (*ManagementExperimentsDeleteCall) Context Uses

func (c *ManagementExperimentsDeleteCall) Context(ctx context.Context) *ManagementExperimentsDeleteCall

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 (*ManagementExperimentsDeleteCall) Do Uses

func (c *ManagementExperimentsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "analytics.management.experiments.delete" call.

func (*ManagementExperimentsDeleteCall) Fields Uses

func (c *ManagementExperimentsDeleteCall) Fields(s ...googleapi.Field) *ManagementExperimentsDeleteCall

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

func (*ManagementExperimentsDeleteCall) Header Uses

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

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

type ManagementExperimentsGetCall Uses

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

func (*ManagementExperimentsGetCall) Context Uses

func (c *ManagementExperimentsGetCall) Context(ctx context.Context) *ManagementExperimentsGetCall

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 (*ManagementExperimentsGetCall) Do Uses

func (c *ManagementExperimentsGetCall) Do(opts ...googleapi.CallOption) (*Experiment, error)

Do executes the "analytics.management.experiments.get" call. Exactly one of *Experiment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Experiment.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 (*ManagementExperimentsGetCall) Fields Uses

func (c *ManagementExperimentsGetCall) Fields(s ...googleapi.Field) *ManagementExperimentsGetCall

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

func (*ManagementExperimentsGetCall) Header Uses

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

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

func (*ManagementExperimentsGetCall) IfNoneMatch Uses

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

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 ManagementExperimentsInsertCall Uses

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

func (*ManagementExperimentsInsertCall) Context Uses

func (c *ManagementExperimentsInsertCall) Context(ctx context.Context) *ManagementExperimentsInsertCall

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 (*ManagementExperimentsInsertCall) Do Uses

func (c *ManagementExperimentsInsertCall) Do(opts ...googleapi.CallOption) (*Experiment, error)

Do executes the "analytics.management.experiments.insert" call. Exactly one of *Experiment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Experiment.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 (*ManagementExperimentsInsertCall) Fields Uses

func (c *ManagementExperimentsInsertCall) Fields(s ...googleapi.Field) *ManagementExperimentsInsertCall

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

func (*ManagementExperimentsInsertCall) Header Uses

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

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

type ManagementExperimentsListCall Uses

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

func (*ManagementExperimentsListCall) Context Uses

func (c *ManagementExperimentsListCall) Context(ctx context.Context) *ManagementExperimentsListCall

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 (*ManagementExperimentsListCall) Do Uses

func (c *ManagementExperimentsListCall) Do(opts ...googleapi.CallOption) (*Experiments, error)

Do executes the "analytics.management.experiments.list" call. Exactly one of *Experiments or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Experiments.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 (*ManagementExperimentsListCall) Fields Uses

func (c *ManagementExperimentsListCall) Fields(s ...googleapi.Field) *ManagementExperimentsListCall

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

func (*ManagementExperimentsListCall) Header Uses

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

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

func (*ManagementExperimentsListCall) IfNoneMatch Uses

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

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 (*ManagementExperimentsListCall) MaxResults Uses

func (c *ManagementExperimentsListCall) MaxResults(maxResults int64) *ManagementExperimentsListCall

MaxResults sets the optional parameter "max-results": The maximum number of experiments to include in this response.

func (*ManagementExperimentsListCall) StartIndex Uses

func (c *ManagementExperimentsListCall) StartIndex(startIndex int64) *ManagementExperimentsListCall

StartIndex sets the optional parameter "start-index": An index of the first experiment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementExperimentsPatchCall Uses

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

func (*ManagementExperimentsPatchCall) Context Uses

func (c *ManagementExperimentsPatchCall) Context(ctx context.Context) *ManagementExperimentsPatchCall

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 (*ManagementExperimentsPatchCall) Do Uses

func (c *ManagementExperimentsPatchCall) Do(opts ...googleapi.CallOption) (*Experiment, error)

Do executes the "analytics.management.experiments.patch" call. Exactly one of *Experiment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Experiment.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 (*ManagementExperimentsPatchCall) Fields Uses

func (c *ManagementExperimentsPatchCall) Fields(s ...googleapi.Field) *ManagementExperimentsPatchCall

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

func (*ManagementExperimentsPatchCall) Header Uses

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

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

type ManagementExperimentsService Uses

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

func NewManagementExperimentsService Uses

func NewManagementExperimentsService(s *Service) *ManagementExperimentsService

func (*ManagementExperimentsService) Delete Uses

func (r *ManagementExperimentsService) Delete(accountId string, webPropertyId string, profileId string, experimentId string) *ManagementExperimentsDeleteCall

Delete: Delete an experiment.

func (*ManagementExperimentsService) Get Uses

func (r *ManagementExperimentsService) Get(accountId string, webPropertyId string, profileId string, experimentId string) *ManagementExperimentsGetCall

Get: Returns an experiment to which the user has access.

func (*ManagementExperimentsService) Insert Uses

func (r *ManagementExperimentsService) Insert(accountId string, webPropertyId string, profileId string, experiment *Experiment) *ManagementExperimentsInsertCall

Insert: Create a new experiment.

func (*ManagementExperimentsService) List Uses

func (r *ManagementExperimentsService) List(accountId string, webPropertyId string, profileId string) *ManagementExperimentsListCall

List: Lists experiments to which the user has access.

func (*ManagementExperimentsService) Patch Uses

func (r *ManagementExperimentsService) Patch(accountId string, webPropertyId string, profileId string, experimentId string, experiment *Experiment) *ManagementExperimentsPatchCall

Patch: Update an existing experiment. This method supports patch semantics.

func (*ManagementExperimentsService) Update Uses

func (r *ManagementExperimentsService) Update(accountId string, webPropertyId string, profileId string, experimentId string, experiment *Experiment) *ManagementExperimentsUpdateCall

Update: Update an existing experiment.

type ManagementExperimentsUpdateCall Uses

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

func (*ManagementExperimentsUpdateCall) Context Uses

func (c *ManagementExperimentsUpdateCall) Context(ctx context.Context) *ManagementExperimentsUpdateCall

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 (*ManagementExperimentsUpdateCall) Do Uses

func (c *ManagementExperimentsUpdateCall) Do(opts ...googleapi.CallOption) (*Experiment, error)

Do executes the "analytics.management.experiments.update" call. Exactly one of *Experiment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Experiment.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 (*ManagementExperimentsUpdateCall) Fields Uses

func (c *ManagementExperimentsUpdateCall) Fields(s ...googleapi.Field) *ManagementExperimentsUpdateCall

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

func (*ManagementExperimentsUpdateCall) Header Uses

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

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

type ManagementFiltersDeleteCall Uses

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

func (*ManagementFiltersDeleteCall) Context Uses

func (c *ManagementFiltersDeleteCall) Context(ctx context.Context) *ManagementFiltersDeleteCall

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 (*ManagementFiltersDeleteCall) Do Uses

func (c *ManagementFiltersDeleteCall) Do(opts ...googleapi.CallOption) (*Filter, error)

Do executes the "analytics.management.filters.delete" call. Exactly one of *Filter or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Filter.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 (*ManagementFiltersDeleteCall) Fields Uses

func (c *ManagementFiltersDeleteCall) Fields(s ...googleapi.Field) *ManagementFiltersDeleteCall

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

func (*ManagementFiltersDeleteCall) Header Uses

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

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

type ManagementFiltersGetCall Uses

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

func (*ManagementFiltersGetCall) Context Uses

func (c *ManagementFiltersGetCall) Context(ctx context.Context) *ManagementFiltersGetCall

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 (*ManagementFiltersGetCall) Do Uses

func (c *ManagementFiltersGetCall) Do(opts ...googleapi.CallOption) (*Filter, error)

Do executes the "analytics.management.filters.get" call. Exactly one of *Filter or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Filter.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 (*ManagementFiltersGetCall) Fields Uses

func (c *ManagementFiltersGetCall) Fields(s ...googleapi.Field) *ManagementFiltersGetCall

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

func (*ManagementFiltersGetCall) Header Uses

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

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

func (*ManagementFiltersGetCall) IfNoneMatch Uses

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

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 ManagementFiltersInsertCall Uses

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

func (*ManagementFiltersInsertCall) Context Uses

func (c *ManagementFiltersInsertCall) Context(ctx context.Context) *ManagementFiltersInsertCall

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 (*ManagementFiltersInsertCall) Do Uses

func (c *ManagementFiltersInsertCall) Do(opts ...googleapi.CallOption) (*Filter, error)

Do executes the "analytics.management.filters.insert" call. Exactly one of *Filter or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Filter.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 (*ManagementFiltersInsertCall) Fields Uses

func (c *ManagementFiltersInsertCall) Fields(s ...googleapi.Field) *ManagementFiltersInsertCall

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

func (*ManagementFiltersInsertCall) Header Uses

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

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

type ManagementFiltersListCall Uses

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

func (*ManagementFiltersListCall) Context Uses

func (c *ManagementFiltersListCall) Context(ctx context.Context) *ManagementFiltersListCall

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 (*ManagementFiltersListCall) Do Uses

func (c *ManagementFiltersListCall) Do(opts ...googleapi.CallOption) (*Filters, error)

Do executes the "analytics.management.filters.list" call. Exactly one of *Filters or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Filters.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 (*ManagementFiltersListCall) Fields Uses

func (c *ManagementFiltersListCall) Fields(s ...googleapi.Field) *ManagementFiltersListCall

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

func (*ManagementFiltersListCall) Header Uses

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

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

func (*ManagementFiltersListCall) IfNoneMatch Uses

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

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 (*ManagementFiltersListCall) MaxResults Uses

func (c *ManagementFiltersListCall) MaxResults(maxResults int64) *ManagementFiltersListCall

MaxResults sets the optional parameter "max-results": The maximum number of filters to include in this response.

func (*ManagementFiltersListCall) StartIndex Uses

func (c *ManagementFiltersListCall) StartIndex(startIndex int64) *ManagementFiltersListCall

StartIndex sets the optional parameter "start-index": An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementFiltersPatchCall Uses

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

func (*ManagementFiltersPatchCall) Context Uses

func (c *ManagementFiltersPatchCall) Context(ctx context.Context) *ManagementFiltersPatchCall

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 (*ManagementFiltersPatchCall) Do Uses

func (c *ManagementFiltersPatchCall) Do(opts ...googleapi.CallOption) (*Filter, error)

Do executes the "analytics.management.filters.patch" call. Exactly one of *Filter or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Filter.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 (*ManagementFiltersPatchCall) Fields Uses

func (c *ManagementFiltersPatchCall) Fields(s ...googleapi.Field) *ManagementFiltersPatchCall

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

func (*ManagementFiltersPatchCall) Header Uses

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

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

type ManagementFiltersService Uses

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

func NewManagementFiltersService Uses

func NewManagementFiltersService(s *Service) *ManagementFiltersService

func (*ManagementFiltersService) Delete Uses

func (r *ManagementFiltersService) Delete(accountId string, filterId string) *ManagementFiltersDeleteCall

Delete: Delete a filter.

func (*ManagementFiltersService) Get Uses

func (r *ManagementFiltersService) Get(accountId string, filterId string) *ManagementFiltersGetCall

Get: Returns filters to which the user has access.

func (*ManagementFiltersService) Insert Uses

func (r *ManagementFiltersService) Insert(accountId string, filter *Filter) *ManagementFiltersInsertCall

Insert: Create a new filter.

func (*ManagementFiltersService) List Uses

func (r *ManagementFiltersService) List(accountId string) *ManagementFiltersListCall

List: Lists all filters for an account

func (*ManagementFiltersService) Patch Uses

func (r *ManagementFiltersService) Patch(accountId string, filterId string, filter *Filter) *ManagementFiltersPatchCall

Patch: Updates an existing filter. This method supports patch semantics.

func (*ManagementFiltersService) Update Uses

func (r *ManagementFiltersService) Update(accountId string, filterId string, filter *Filter) *ManagementFiltersUpdateCall

Update: Updates an existing filter.

type ManagementFiltersUpdateCall Uses

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

func (*ManagementFiltersUpdateCall) Context Uses

func (c *ManagementFiltersUpdateCall) Context(ctx context.Context) *ManagementFiltersUpdateCall

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 (*ManagementFiltersUpdateCall) Do Uses

func (c *ManagementFiltersUpdateCall) Do(opts ...googleapi.CallOption) (*Filter, error)

Do executes the "analytics.management.filters.update" call. Exactly one of *Filter or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Filter.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 (*ManagementFiltersUpdateCall) Fields Uses

func (c *ManagementFiltersUpdateCall) Fields(s ...googleapi.Field) *ManagementFiltersUpdateCall

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

func (*ManagementFiltersUpdateCall) Header Uses

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

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

type ManagementGoalsGetCall Uses

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

func (*ManagementGoalsGetCall) Context Uses

func (c *ManagementGoalsGetCall) Context(ctx context.Context) *ManagementGoalsGetCall

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 (*ManagementGoalsGetCall) Do Uses

func (c *ManagementGoalsGetCall) Do(opts ...googleapi.CallOption) (*Goal, error)

Do executes the "analytics.management.goals.get" call. Exactly one of *Goal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Goal.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 (*ManagementGoalsGetCall) Fields Uses

func (c *ManagementGoalsGetCall) Fields(s ...googleapi.Field) *ManagementGoalsGetCall

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

func (*ManagementGoalsGetCall) Header Uses

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

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

func (*ManagementGoalsGetCall) IfNoneMatch Uses

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

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 ManagementGoalsInsertCall Uses

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

func (*ManagementGoalsInsertCall) Context Uses

func (c *ManagementGoalsInsertCall) Context(ctx context.Context) *ManagementGoalsInsertCall

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 (*ManagementGoalsInsertCall) Do Uses

func (c *ManagementGoalsInsertCall) Do(opts ...googleapi.CallOption) (*Goal, error)

Do executes the "analytics.management.goals.insert" call. Exactly one of *Goal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Goal.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 (*ManagementGoalsInsertCall) Fields Uses

func (c *ManagementGoalsInsertCall) Fields(s ...googleapi.Field) *ManagementGoalsInsertCall

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

func (*ManagementGoalsInsertCall) Header Uses

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

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

type ManagementGoalsListCall Uses

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

func (*ManagementGoalsListCall) Context Uses

func (c *ManagementGoalsListCall) Context(ctx context.Context) *ManagementGoalsListCall

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 (*ManagementGoalsListCall) Do Uses

func (c *ManagementGoalsListCall) Do(opts ...googleapi.CallOption) (*Goals, error)

Do executes the "analytics.management.goals.list" call. Exactly one of *Goals or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Goals.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 (*ManagementGoalsListCall) Fields Uses

func (c *ManagementGoalsListCall) Fields(s ...googleapi.Field) *ManagementGoalsListCall

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

func (*ManagementGoalsListCall) Header Uses

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

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

func (*ManagementGoalsListCall) IfNoneMatch Uses

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

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 (*ManagementGoalsListCall) MaxResults Uses

func (c *ManagementGoalsListCall) MaxResults(maxResults int64) *ManagementGoalsListCall

MaxResults sets the optional parameter "max-results": The maximum number of goals to include in this response.

func (*ManagementGoalsListCall) StartIndex Uses

func (c *ManagementGoalsListCall) StartIndex(startIndex int64) *ManagementGoalsListCall

StartIndex sets the optional parameter "start-index": An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementGoalsPatchCall Uses

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

func (*ManagementGoalsPatchCall) Context Uses

func (c *ManagementGoalsPatchCall) Context(ctx context.Context) *ManagementGoalsPatchCall

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 (*ManagementGoalsPatchCall) Do Uses

func (c *ManagementGoalsPatchCall) Do(opts ...googleapi.CallOption) (*Goal, error)

Do executes the "analytics.management.goals.patch" call. Exactly one of *Goal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Goal.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 (*ManagementGoalsPatchCall) Fields Uses

func (c *ManagementGoalsPatchCall) Fields(s ...googleapi.Field) *ManagementGoalsPatchCall

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

func (*ManagementGoalsPatchCall) Header Uses

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

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

type ManagementGoalsService Uses

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

func NewManagementGoalsService Uses

func NewManagementGoalsService(s *Service) *ManagementGoalsService

func (*ManagementGoalsService) Get Uses

func (r *ManagementGoalsService) Get(accountId string, webPropertyId string, profileId string, goalId string) *ManagementGoalsGetCall

Get: Gets a goal to which the user has access.

func (*ManagementGoalsService) Insert Uses

func (r *ManagementGoalsService) Insert(accountId string, webPropertyId string, profileId string, goal *Goal) *ManagementGoalsInsertCall

Insert: Create a new goal.

func (*ManagementGoalsService) List Uses

func (r *ManagementGoalsService) List(accountId string, webPropertyId string, profileId string) *ManagementGoalsListCall

List: Lists goals to which the user has access.

func (*ManagementGoalsService) Patch Uses

func (r *ManagementGoalsService) Patch(accountId string, webPropertyId string, profileId string, goalId string, goal *Goal) *ManagementGoalsPatchCall

Patch: Updates an existing goal. This method supports patch semantics.

func (*ManagementGoalsService) Update Uses

func (r *ManagementGoalsService) Update(accountId string, webPropertyId string, profileId string, goalId string, goal *Goal) *ManagementGoalsUpdateCall

Update: Updates an existing goal.

type ManagementGoalsUpdateCall Uses

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

func (*ManagementGoalsUpdateCall) Context Uses

func (c *ManagementGoalsUpdateCall) Context(ctx context.Context) *ManagementGoalsUpdateCall

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 (*ManagementGoalsUpdateCall) Do Uses

func (c *ManagementGoalsUpdateCall) Do(opts ...googleapi.CallOption) (*Goal, error)

Do executes the "analytics.management.goals.update" call. Exactly one of *Goal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Goal.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 (*ManagementGoalsUpdateCall) Fields Uses

func (c *ManagementGoalsUpdateCall) Fields(s ...googleapi.Field) *ManagementGoalsUpdateCall

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

func (*ManagementGoalsUpdateCall) Header Uses

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

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

type ManagementProfileFilterLinksDeleteCall Uses

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

func (*ManagementProfileFilterLinksDeleteCall) Context Uses

func (c *ManagementProfileFilterLinksDeleteCall) Context(ctx context.Context) *ManagementProfileFilterLinksDeleteCall

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 (*ManagementProfileFilterLinksDeleteCall) Do Uses

func (c *ManagementProfileFilterLinksDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "analytics.management.profileFilterLinks.delete" call.

func (*ManagementProfileFilterLinksDeleteCall) Fields Uses

func (c *ManagementProfileFilterLinksDeleteCall) Fields(s ...googleapi.Field) *ManagementProfileFilterLinksDeleteCall

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

func (*ManagementProfileFilterLinksDeleteCall) Header Uses

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

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

type ManagementProfileFilterLinksGetCall Uses

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

func (*ManagementProfileFilterLinksGetCall) Context Uses

func (c *ManagementProfileFilterLinksGetCall) Context(ctx context.Context) *ManagementProfileFilterLinksGetCall

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 (*ManagementProfileFilterLinksGetCall) Do Uses

func (c *ManagementProfileFilterLinksGetCall) Do(opts ...googleapi.CallOption) (*ProfileFilterLink, error)

Do executes the "analytics.management.profileFilterLinks.get" call. Exactly one of *ProfileFilterLink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProfileFilterLink.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 (*ManagementProfileFilterLinksGetCall) Fields Uses

func (c *ManagementProfileFilterLinksGetCall) Fields(s ...googleapi.Field) *ManagementProfileFilterLinksGetCall

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

func (*ManagementProfileFilterLinksGetCall) Header Uses

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

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

func (*ManagementProfileFilterLinksGetCall) IfNoneMatch Uses

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

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 ManagementProfileFilterLinksInsertCall Uses

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

func (*ManagementProfileFilterLinksInsertCall) Context Uses

func (c *ManagementProfileFilterLinksInsertCall) Context(ctx context.Context) *ManagementProfileFilterLinksInsertCall

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 (*ManagementProfileFilterLinksInsertCall) Do Uses

func (c *ManagementProfileFilterLinksInsertCall) Do(opts ...googleapi.CallOption) (*ProfileFilterLink, error)

Do executes the "analytics.management.profileFilterLinks.insert" call. Exactly one of *ProfileFilterLink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProfileFilterLink.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 (*ManagementProfileFilterLinksInsertCall) Fields Uses

func (c *ManagementProfileFilterLinksInsertCall) Fields(s ...googleapi.Field) *ManagementProfileFilterLinksInsertCall

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

func (*ManagementProfileFilterLinksInsertCall) Header Uses

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

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

type ManagementProfileFilterLinksListCall Uses

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

func (*ManagementProfileFilterLinksListCall) Context Uses

func (c *ManagementProfileFilterLinksListCall) Context(ctx context.Context) *ManagementProfileFilterLinksListCall

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 (*ManagementProfileFilterLinksListCall) Do Uses

func (c *ManagementProfileFilterLinksListCall) Do(opts ...googleapi.CallOption) (*ProfileFilterLinks, error)

Do executes the "analytics.management.profileFilterLinks.list" call. Exactly one of *ProfileFilterLinks or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProfileFilterLinks.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 (*ManagementProfileFilterLinksListCall) Fields Uses

func (c *ManagementProfileFilterLinksListCall) Fields(s ...googleapi.Field) *ManagementProfileFilterLinksListCall

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

func (*ManagementProfileFilterLinksListCall) Header Uses

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

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

func (*ManagementProfileFilterLinksListCall) IfNoneMatch Uses

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

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 (*ManagementProfileFilterLinksListCall) MaxResults Uses

func (c *ManagementProfileFilterLinksListCall) MaxResults(maxResults int64) *ManagementProfileFilterLinksListCall

MaxResults sets the optional parameter "max-results": The maximum number of profile filter links to include in this response.

func (*ManagementProfileFilterLinksListCall) StartIndex Uses

func (c *ManagementProfileFilterLinksListCall) StartIndex(startIndex int64) *ManagementProfileFilterLinksListCall

StartIndex sets the optional parameter "start-index": An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementProfileFilterLinksPatchCall Uses

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

func (*ManagementProfileFilterLinksPatchCall) Context Uses

func (c *ManagementProfileFilterLinksPatchCall) Context(ctx context.Context) *ManagementProfileFilterLinksPatchCall

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 (*ManagementProfileFilterLinksPatchCall) Do Uses

func (c *ManagementProfileFilterLinksPatchCall) Do(opts ...googleapi.CallOption) (*ProfileFilterLink, error)

Do executes the "analytics.management.profileFilterLinks.patch" call. Exactly one of *ProfileFilterLink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProfileFilterLink.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 (*ManagementProfileFilterLinksPatchCall) Fields Uses

func (c *ManagementProfileFilterLinksPatchCall) Fields(s ...googleapi.Field) *ManagementProfileFilterLinksPatchCall

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

func (*ManagementProfileFilterLinksPatchCall) Header Uses

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

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

type ManagementProfileFilterLinksService Uses

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

func NewManagementProfileFilterLinksService Uses

func NewManagementProfileFilterLinksService(s *Service) *ManagementProfileFilterLinksService

func (*ManagementProfileFilterLinksService) Delete Uses

func (r *ManagementProfileFilterLinksService) Delete(accountId string, webPropertyId string, profileId string, linkId string) *ManagementProfileFilterLinksDeleteCall

Delete: Delete a profile filter link.

func (*ManagementProfileFilterLinksService) Get Uses

func (r *ManagementProfileFilterLinksService) Get(accountId string, webPropertyId string, profileId string, linkId string) *ManagementProfileFilterLinksGetCall

Get: Returns a single profile filter link.

func (*ManagementProfileFilterLinksService) Insert Uses

func (r *ManagementProfileFilterLinksService) Insert(accountId string, webPropertyId string, profileId string, profilefilterlink *ProfileFilterLink) *ManagementProfileFilterLinksInsertCall

Insert: Create a new profile filter link.

func (*ManagementProfileFilterLinksService) List Uses

func (r *ManagementProfileFilterLinksService) List(accountId string, webPropertyId string, profileId string) *ManagementProfileFilterLinksListCall

List: Lists all profile filter links for a profile.

func (*ManagementProfileFilterLinksService) Patch Uses

func (r *ManagementProfileFilterLinksService) Patch(accountId string, webPropertyId string, profileId string, linkId string, profilefilterlink *ProfileFilterLink) *ManagementProfileFilterLinksPatchCall

Patch: Update an existing profile filter link. This method supports patch semantics.

func (*ManagementProfileFilterLinksService) Update Uses

func (r *ManagementProfileFilterLinksService) Update(accountId string, webPropertyId string, profileId string, linkId string, profilefilterlink *ProfileFilterLink) *ManagementProfileFilterLinksUpdateCall

Update: Update an existing profile filter link.

type ManagementProfileFilterLinksUpdateCall Uses

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

func (*ManagementProfileFilterLinksUpdateCall) Context Uses

func (c *ManagementProfileFilterLinksUpdateCall) Context(ctx context.Context) *ManagementProfileFilterLinksUpdateCall

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 (*ManagementProfileFilterLinksUpdateCall) Do Uses

func (c *ManagementProfileFilterLinksUpdateCall) Do(opts ...googleapi.CallOption) (*ProfileFilterLink, error)

Do executes the "analytics.management.profileFilterLinks.update" call. Exactly one of *ProfileFilterLink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProfileFilterLink.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 (*ManagementProfileFilterLinksUpdateCall) Fields Uses

func (c *ManagementProfileFilterLinksUpdateCall) Fields(s ...googleapi.Field) *ManagementProfileFilterLinksUpdateCall

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

func (*ManagementProfileFilterLinksUpdateCall) Header Uses

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

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

type ManagementProfileUserLinksDeleteCall Uses

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

func (*ManagementProfileUserLinksDeleteCall) Context Uses

func (c *ManagementProfileUserLinksDeleteCall) Context(ctx context.Context) *ManagementProfileUserLinksDeleteCall

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 (*ManagementProfileUserLinksDeleteCall) Do Uses

func (c *ManagementProfileUserLinksDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "analytics.management.profileUserLinks.delete" call.

func (*ManagementProfileUserLinksDeleteCall) Fields Uses

func (c *ManagementProfileUserLinksDeleteCall) Fields(s ...googleapi.Field) *ManagementProfileUserLinksDeleteCall

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

func (*ManagementProfileUserLinksDeleteCall) Header Uses

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

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

type ManagementProfileUserLinksInsertCall Uses

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

func (*ManagementProfileUserLinksInsertCall) Context Uses

func (c *ManagementProfileUserLinksInsertCall) Context(ctx context.Context) *ManagementProfileUserLinksInsertCall

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 (*ManagementProfileUserLinksInsertCall) Do Uses

func (c *ManagementProfileUserLinksInsertCall) Do(opts ...googleapi.CallOption) (*EntityUserLink, error)

Do executes the "analytics.management.profileUserLinks.insert" call. Exactly one of *EntityUserLink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EntityUserLink.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 (*ManagementProfileUserLinksInsertCall) Fields Uses

func (c *ManagementProfileUserLinksInsertCall) Fields(s ...googleapi.Field) *ManagementProfileUserLinksInsertCall

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

func (*ManagementProfileUserLinksInsertCall) Header Uses

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

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

type ManagementProfileUserLinksListCall Uses

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

func (*ManagementProfileUserLinksListCall) Context Uses

func (c *ManagementProfileUserLinksListCall) Context(ctx context.Context) *ManagementProfileUserLinksListCall

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 (*ManagementProfileUserLinksListCall) Do Uses

func (c *ManagementProfileUserLinksListCall) Do(opts ...googleapi.CallOption) (*EntityUserLinks, error)

Do executes the "analytics.management.profileUserLinks.list" call. Exactly one of *EntityUserLinks or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EntityUserLinks.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 (*ManagementProfileUserLinksListCall) Fields Uses

func (c *ManagementProfileUserLinksListCall) Fields(s ...googleapi.Field) *ManagementProfileUserLinksListCall

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

func (*ManagementProfileUserLinksListCall) Header Uses

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

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

func (*ManagementProfileUserLinksListCall) IfNoneMatch Uses

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

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 (*ManagementProfileUserLinksListCall) MaxResults Uses

func (c *ManagementProfileUserLinksListCall) MaxResults(maxResults int64) *ManagementProfileUserLinksListCall

MaxResults sets the optional parameter "max-results": The maximum number of profile-user links to include in this response.

func (*ManagementProfileUserLinksListCall) StartIndex Uses

func (c *ManagementProfileUserLinksListCall) StartIndex(startIndex int64) *ManagementProfileUserLinksListCall

StartIndex sets the optional parameter "start-index": An index of the first profile-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementProfileUserLinksService Uses

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

func NewManagementProfileUserLinksService Uses

func NewManagementProfileUserLinksService(s *Service) *ManagementProfileUserLinksService

func (*ManagementProfileUserLinksService) Delete Uses

func (r *ManagementProfileUserLinksService) Delete(accountId string, webPropertyId string, profileId string, linkId string) *ManagementProfileUserLinksDeleteCall

Delete: Removes a user from the given view (profile).

func (*ManagementProfileUserLinksService) Insert Uses

func (r *ManagementProfileUserLinksService) Insert(accountId string, webPropertyId string, profileId string, entityuserlink *EntityUserLink) *ManagementProfileUserLinksInsertCall

Insert: Adds a new user to the given view (profile).

func (*ManagementProfileUserLinksService) List Uses

func (r *ManagementProfileUserLinksService) List(accountId string, webPropertyId string, profileId string) *ManagementProfileUserLinksListCall

List: Lists profile-user links for a given view (profile).

func (*ManagementProfileUserLinksService) Update Uses

func (r *ManagementProfileUserLinksService) Update(accountId string, webPropertyId string, profileId string, linkId string, entityuserlink *EntityUserLink) *ManagementProfileUserLinksUpdateCall

Update: Updates permissions for an existing user on the given view (profile).

type ManagementProfileUserLinksUpdateCall Uses

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

func (*ManagementProfileUserLinksUpdateCall) Context Uses

func (c *ManagementProfileUserLinksUpdateCall) Context(ctx context.Context) *ManagementProfileUserLinksUpdateCall

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 (*ManagementProfileUserLinksUpdateCall) Do Uses

func (c *ManagementProfileUserLinksUpdateCall) Do(opts ...googleapi.CallOption) (*EntityUserLink, error)

Do executes the "analytics.management.profileUserLinks.update" call. Exactly one of *EntityUserLink or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EntityUserLink.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 (*ManagementProfileUserLinksUpdateCall) Fields Uses

func (c *ManagementProfileUserLinksUpdateCall) Fields(s ...googleapi.Field) *ManagementProfileUserLinksUpdateCall

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

func (*ManagementProfileUserLinksUpdateCall) Header Uses

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

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

type ManagementProfilesDeleteCall Uses

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

func (*ManagementProfilesDeleteCall) Context Uses

func (c *ManagementProfilesDeleteCall) Context(ctx context.Context) *ManagementProfilesDeleteCall

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 (*ManagementProfilesDeleteCall) Do Uses

func (c *ManagementProfilesDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "analytics.management.profiles.delete" call.

func (*ManagementProfilesDeleteCall) Fields Uses

func (c *ManagementProfilesDeleteCall) Fields(s ...googleapi.Field) *ManagementProfilesDeleteCall

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

func (*ManagementProfilesDeleteCall) Header Uses

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

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

type ManagementProfilesGetCall Uses

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

func (*ManagementProfilesGetCall) Context Uses

func (c *ManagementProfilesGetCall) Context(ctx context.Context) *ManagementProfilesGetCall

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 (*ManagementProfilesGetCall) Do Uses

func (c *ManagementProfilesGetCall) Do(opts ...googleapi.CallOption) (*Profile, error)

Do executes the "analytics.management.profiles.get" call. Exactly one of *Profile or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Profile.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 (*ManagementProfilesGetCall) Fields Uses

func (c *ManagementProfilesGetCall) Fields(s ...googleapi.Field) *ManagementProfilesGetCall

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

func (*ManagementProfilesGetCall) Header Uses

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

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

func (*ManagementProfilesGetCall) IfNoneMatch Uses

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

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 ManagementProfilesInsertCall Uses

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

func (*ManagementProfilesInsertCall) Context Uses

func (c *ManagementProfilesInsertCall) Context(ctx context.Context) *ManagementProfilesInsertCall

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 (*ManagementProfilesInsertCall) Do Uses

func (c *ManagementProfilesInsertCall) Do(opts ...googleapi.CallOption) (*Profile, error)

Do executes the "analytics.management.profiles.insert" call. Exactly one of *Profile or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Profile.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 (*ManagementProfilesInsertCall) Fields Uses

func (c *ManagementProfilesInsertCall) Fields(s ...googleapi.Field) *ManagementProfilesInsertCall

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

func (*ManagementProfilesInsertCall) Header Uses

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

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

type ManagementProfilesListCall Uses

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

func (*ManagementProfilesListCall) Context Uses

func (c *ManagementProfilesListCall) Context(ctx context.Context) *ManagementProfilesListCall

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 (*ManagementProfilesListCall) Do Uses

func (c *ManagementProfilesListCall) Do(opts ...googleapi.CallOption) (*Profiles, error)

Do executes the "analytics.management.profiles.list" call. Exactly one of *Profiles or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Profiles.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 (*ManagementProfilesListCall) Fields Uses

func (c *ManagementProfilesListCall) Fields(s ...googleapi.Field) *ManagementProfilesListCall

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

func (*ManagementProfilesListCall) Header Uses

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

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

func (*ManagementProfilesListCall) IfNoneMatch Uses

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

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 (*ManagementProfilesListCall) MaxResults Uses

func (c *ManagementProfilesListCall) MaxResults(maxResults int64) *ManagementProfilesListCall

MaxResults sets the optional parameter "max-results": The maximum number of views (profiles) to include in this response.

func (*ManagementProfilesListCall) StartIndex Uses

func (c *ManagementProfilesListCall) StartIndex(startIndex int64) *ManagementProfilesListCall

StartIndex sets the optional parameter "start-index": An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementProfilesPatchCall Uses

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

func (*ManagementProfilesPatchCall) Context Uses

func (c *ManagementProfilesPatchCall) Context(ctx context.Context) *ManagementProfilesPatchCall

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 (*ManagementProfilesPatchCall) Do Uses

func (c *ManagementProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Profile, error)

Do executes the "analytics.management.profiles.patch" call. Exactly one of *Profile or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Profile.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 (*ManagementProfilesPatchCall) Fields Uses

func (c *ManagementProfilesPatchCall) Fields(s ...googleapi.Field) *ManagementProfilesPatchCall

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

func (*ManagementProfilesPatchCall) Header Uses

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

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

type ManagementProfilesService Uses

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

func NewManagementProfilesService Uses

func NewManagementProfilesService(s *Service) *ManagementProfilesService

func (*ManagementProfilesService) Delete Uses

func (r *ManagementProfilesService) Delete(accountId string, webPropertyId string, profileId string) *ManagementProfilesDeleteCall

Delete: Deletes a view (profile).

func (*ManagementProfilesService) Get Uses

func (r *ManagementProfilesService) Get(accountId string, webPropertyId string, profileId string) *ManagementProfilesGetCall

Get: Gets a view (profile) to which the user has access.

func (*ManagementProfilesService) Insert Uses

func (r *ManagementProfilesService) Insert(accountId string, webPropertyId string, profile *Profile) *ManagementProfilesInsertCall

Insert: Create a new view (profile).

func (*ManagementProfilesService) List Uses

func (r *ManagementProfilesService) List(accountId string, webPropertyId string) *ManagementProfilesListCall

List: Lists views (profiles) to which the user has access.

func (*ManagementProfilesService) Patch Uses

func (r *ManagementProfilesService) Patch(accountId string, webPropertyId string, profileId string, profile *Profile) *ManagementProfilesPatchCall

Patch: Updates an existing view (profile). This method supports patch semantics.

func (*ManagementProfilesService) Update Uses

func (r *ManagementProfilesService) Update(accountId string, webPropertyId string, profileId string, profile *Profile) *ManagementProfilesUpdateCall

Update: Updates an existing view (profile).

type ManagementProfilesUpdateCall Uses

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

func (*ManagementProfilesUpdateCall) Context Uses

func (c *ManagementProfilesUpdateCall) Context(ctx context.Context) *ManagementProfilesUpdateCall

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 (*ManagementProfilesUpdateCall) Do Uses

func (c *ManagementProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*Profile, error)

Do executes the "analytics.management.profiles.update" call. Exactly one of *Profile or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Profile.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 (*ManagementProfilesUpdateCall) Fields Uses

func (c *ManagementProfilesUpdateCall) Fields(s ...googleapi.Field) *ManagementProfilesUpdateCall

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

func (*ManagementProfilesUpdateCall) Header Uses

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

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

type ManagementRemarketingAudienceDeleteCall Uses

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

func (*ManagementRemarketingAudienceDeleteCall) Context Uses

func (c *ManagementRemarketingAudienceDeleteCall) Context(ctx context.Context) *ManagementRemarketingAudienceDeleteCall

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 (*ManagementRemarketingAudienceDeleteCall) Do Uses

func (c *ManagementRemarketingAudienceDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "analytics.management.remarketingAudience.delete" call.

func (*ManagementRemarketingAudienceDeleteCall) Fields Uses

func (c *ManagementRemarketingAudienceDeleteCall) Fields(s ...googleapi.Field) *ManagementRemarketingAudienceDeleteCall

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

func (*ManagementRemarketingAudienceDeleteCall) Header Uses

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

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

type ManagementRemarketingAudienceGetCall Uses

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

func (*ManagementRemarketingAudienceGetCall) Context Uses

func (c *ManagementRemarketingAudienceGetCall) Context(ctx context.Context) *ManagementRemarketingAudienceGetCall

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 (*ManagementRemarketingAudienceGetCall) Do Uses

func (c *ManagementRemarketingAudienceGetCall) Do(opts ...googleapi.CallOption) (*RemarketingAudience, error)

Do executes the "analytics.management.remarketingAudience.get" call. Exactly one of *RemarketingAudience or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RemarketingAudience.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 (*ManagementRemarketingAudienceGetCall) Fields Uses

func (c *ManagementRemarketingAudienceGetCall) Fields(s ...googleapi.Field) *ManagementRemarketingAudienceGetCall

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

func (*ManagementRemarketingAudienceGetCall) Header Uses

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

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

func (*ManagementRemarketingAudienceGetCall) IfNoneMatch Uses

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

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 ManagementRemarketingAudienceInsertCall Uses

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

func (*ManagementRemarketingAudienceInsertCall) Context Uses

func (c *ManagementRemarketingAudienceInsertCall) Context(ctx context.Context) *ManagementRemarketingAudienceInsertCall

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 (*ManagementRemarketingAudienceInsertCall) Do Uses

func (c *ManagementRemarketingAudienceInsertCall) Do(opts ...googleapi.CallOption) (*RemarketingAudience, error)

Do executes the "analytics.management.remarketingAudience.insert" call. Exactly one of *RemarketingAudience or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RemarketingAudience.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 (*ManagementRemarketingAudienceInsertCall) Fields Uses

func (c *ManagementRemarketingAudienceInsertCall) Fields(s ...googleapi.Field) *ManagementRemarketingAudienceInsertCall

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

func (*ManagementRemarketingAudienceInsertCall) Header Uses

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

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

type ManagementRemarketingAudienceListCall Uses

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

func (*ManagementRemarketingAudienceListCall) Context Uses

func (c *ManagementRemarketingAudienceListCall) Context(ctx context.Context) *ManagementRemarketingAudienceListCall

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 (*ManagementRemarketingAudienceListCall) Do Uses

func (c *ManagementRemarketingAudienceListCall) Do(opts ...googleapi.CallOption) (*RemarketingAudiences, error)

Do executes the "analytics.management.remarketingAudience.list" call. Exactly one of *RemarketingAudiences or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RemarketingAudiences.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 (*ManagementRemarketingAudienceListCall) Fields Uses

func (c *ManagementRemarketingAudienceListCall) Fields(s ...googleapi.Field) *ManagementRemarketingAudienceListCall

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

func (*ManagementRemarketingAudienceListCall) Header Uses

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

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

func (*ManagementRemarketingAudienceListCall) IfNoneMatch Uses

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

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 (*ManagementRemarketingAudienceListCall) MaxResults Uses

func (c *ManagementRemarketingAudienceListCall) MaxResults(maxResults int64) *ManagementRemarketingAudienceListCall

MaxResults sets the optional parameter "max-results": The maximum number of remarketing audiences to include in this response.

func (*ManagementRemarketingAudienceListCall) StartIndex Uses

func (c *ManagementRemarketingAudienceListCall) StartIndex(startIndex int64) *ManagementRemarketingAudienceListCall

StartIndex sets the optional parameter "start-index": An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

func (*ManagementRemarketingAudienceListCall) Type Uses

func (c *ManagementRemarketingAudienceListCall) Type(type_ string) *ManagementRemarketingAudienceListCall

Type sets the optional parameter "type":

type ManagementRemarketingAudiencePatchCall Uses

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

func (*ManagementRemarketingAudiencePatchCall) Context Uses

func (c *ManagementRemarketingAudiencePatchCall) Context(ctx context.Context) *ManagementRemarketingAudiencePatchCall

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 (*ManagementRemarketingAudiencePatchCall) Do Uses

func (c *ManagementRemarketingAudiencePatchCall) Do(opts ...googleapi.CallOption) (*RemarketingAudience, error)

Do executes the "analytics.management.remarketingAudience.patch" call. Exactly one of *RemarketingAudience or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RemarketingAudience.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 (*ManagementRemarketingAudiencePatchCall) Fields Uses

func (c *ManagementRemarketingAudiencePatchCall) Fields(s ...googleapi.Field) *ManagementRemarketingAudiencePatchCall

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

func (*ManagementRemarketingAudiencePatchCall) Header Uses

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

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

type ManagementRemarketingAudienceService Uses

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

func NewManagementRemarketingAudienceService Uses

func NewManagementRemarketingAudienceService(s *Service) *ManagementRemarketingAudienceService

func (*ManagementRemarketingAudienceService) Delete Uses

func (r *ManagementRemarketingAudienceService) Delete(accountId string, webPropertyId string, remarketingAudienceId string) *ManagementRemarketingAudienceDeleteCall

Delete: Delete a remarketing audience.

func (*ManagementRemarketingAudienceService) Get Uses

func (r *ManagementRemarketingAudienceService) Get(accountId string, webPropertyId string, remarketingAudienceId string) *ManagementRemarketingAudienceGetCall

Get: Gets a remarketing audience to which the user has access.

func (*ManagementRemarketingAudienceService) Insert Uses

func (r *ManagementRemarketingAudienceService) Insert(accountId string, webPropertyId string, remarketingaudience *RemarketingAudience) *ManagementRemarketingAudienceInsertCall

Insert: Creates a new remarketing audience.

func (*ManagementRemarketingAudienceService) List Uses

func (r *ManagementRemarketingAudienceService) List(accountId string, webPropertyId string) *ManagementRemarketingAudienceListCall

List: Lists remarketing audiences to which the user has access.

func (*ManagementRemarketingAudienceService) Patch Uses

func (r *ManagementRemarketingAudienceService) Patch(accountId string, webPropertyId string, remarketingAudienceId string, remarketingaudience *RemarketingAudience) *ManagementRemarketingAudiencePatchCall

Patch: Updates an existing remarketing audience. This method supports patch semantics.

func (*ManagementRemarketingAudienceService) Update Uses

func (r *ManagementRemarketingAudienceService) Update(accountId string, webPropertyId string, remarketingAudienceId string, remarketingaudience *RemarketingAudience) *ManagementRemarketingAudienceUpdateCall

Update: Updates an existing remarketing audience.

type ManagementRemarketingAudienceUpdateCall Uses

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

func (*ManagementRemarketingAudienceUpdateCall) Context Uses

func (c *ManagementRemarketingAudienceUpdateCall) Context(ctx context.Context) *ManagementRemarketingAudienceUpdateCall

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 (*ManagementRemarketingAudienceUpdateCall) Do Uses

func (c *ManagementRemarketingAudienceUpdateCall) Do(opts ...googleapi.CallOption) (*RemarketingAudience, error)

Do executes the "analytics.management.remarketingAudience.update" call. Exactly one of *RemarketingAudience or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RemarketingAudience.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 (*ManagementRemarketingAudienceUpdateCall) Fields Uses

func (c *ManagementRemarketingAudienceUpdateCall) Fields(s ...googleapi.Field) *ManagementRemarketingAudienceUpdateCall

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

func (*ManagementRemarketingAudienceUpdateCall) Header Uses

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

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

type ManagementSegmentsListCall Uses

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

func (*ManagementSegmentsListCall) Context Uses

func (c *ManagementSegmentsListCall) Context(ctx context.Context) *ManagementSegmentsListCall

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 (*ManagementSegmentsListCall) Do Uses

func (c *ManagementSegmentsListCall) Do(opts ...googleapi.CallOption) (*Segments, error)

Do executes the "analytics.management.segments.list" call. Exactly one of *Segments or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Segments.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 (*ManagementSegmentsListCall) Fields Uses

func (c *ManagementSegmentsListCall) Fields(s ...googleapi.Field) *ManagementSegmentsListCall

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

func (*ManagementSegmentsListCall) Header Uses

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

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

func (*ManagementSegmentsListCall) IfNoneMatch Uses

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

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 (*ManagementSegmentsListCall) MaxResults Uses

func (c *ManagementSegmentsListCall) MaxResults(maxResults int64) *ManagementSegmentsListCall

MaxResults sets the optional parameter "max-results": The maximum number of segments to include in this response.

func (*ManagementSegmentsListCall) StartIndex Uses

func (c *ManagementSegmentsListCall) StartIndex(startIndex int64) *ManagementSegmentsListCall

StartIndex sets the optional parameter "start-index": An index of the first segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementSegmentsService Uses

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

func NewManagementSegmentsService Uses

func NewManagementSegmentsService(s *Service) *ManagementSegmentsService

func (*ManagementSegmentsService) List Uses

func (r *ManagementSegmentsService) List() *ManagementSegmentsListCall

List: Lists segments to which the user has access.

type ManagementService Uses

type ManagementService struct {
    AccountSummaries *ManagementAccountSummariesService

    AccountUserLinks *ManagementAccountUserLinksService

    Accounts *ManagementAccountsService

    ClientId *ManagementClientIdService

    CustomDataSources *ManagementCustomDataSourcesService

    CustomDimensions *ManagementCustomDimensionsService

    CustomMetrics *ManagementCustomMetricsService

    Experiments *ManagementExperimentsService

    Filters *ManagementFiltersService

    Goals *ManagementGoalsService

    ProfileFilterLinks *ManagementProfileFilterLinksService

    ProfileUserLinks *ManagementProfileUserLinksService

    Profiles *ManagementProfilesService

    RemarketingAudience *ManagementRemarketingAudienceService

    Segments *ManagementSegmentsService

    UnsampledReports *ManagementUnsampledReportsService

    Uploads *ManagementUploadsService

    WebPropertyAdWordsLinks *ManagementWebPropertyAdWordsLinksService

    Webproperties *ManagementWebpropertiesService

    WebpropertyUserLinks *ManagementWebpropertyUserLinksService
    // contains filtered or unexported fields
}

func NewManagementService Uses

func NewManagementService(s *Service) *ManagementService

type ManagementUnsampledReportsDeleteCall Uses

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

func (*ManagementUnsampledReportsDeleteCall) Context Uses

func (c *ManagementUnsampledReportsDeleteCall) Context(ctx context.Context) *ManagementUnsampledReportsDeleteCall

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 (*ManagementUnsampledReportsDeleteCall) Do Uses

func (c *ManagementUnsampledReportsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "analytics.management.unsampledReports.delete" call.

func (*ManagementUnsampledReportsDeleteCall) Fields Uses

func (c *ManagementUnsampledReportsDeleteCall) Fields(s ...googleapi.Field) *ManagementUnsampledReportsDeleteCall

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

func (*ManagementUnsampledReportsDeleteCall) Header Uses

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

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

type ManagementUnsampledReportsGetCall Uses

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

func (*ManagementUnsampledReportsGetCall) Context Uses

func (c *ManagementUnsampledReportsGetCall) Context(ctx context.Context) *ManagementUnsampledReportsGetCall

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 (*ManagementUnsampledReportsGetCall) Do Uses

func (c *ManagementUnsampledReportsGetCall) Do(opts ...googleapi.CallOption) (*UnsampledReport, error)

Do executes the "analytics.management.unsampledReports.get" call. Exactly one of *UnsampledReport or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UnsampledReport.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 (*ManagementUnsampledReportsGetCall) Fields Uses

func (c *ManagementUnsampledReportsGetCall) Fields(s ...googleapi.Field) *ManagementUnsampledReportsGetCall

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

func (*ManagementUnsampledReportsGetCall) Header Uses

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

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

func (*ManagementUnsampledReportsGetCall) IfNoneMatch Uses

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

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 ManagementUnsampledReportsInsertCall Uses

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

func (*ManagementUnsampledReportsInsertCall) Context Uses

func (c *ManagementUnsampledReportsInsertCall) Context(ctx context.Context) *ManagementUnsampledReportsInsertCall

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 (*ManagementUnsampledReportsInsertCall) Do Uses

func (c *ManagementUnsampledReportsInsertCall) Do(opts ...googleapi.CallOption) (*UnsampledReport, error)

Do executes the "analytics.management.unsampledReports.insert" call. Exactly one of *UnsampledReport or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UnsampledReport.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 (*ManagementUnsampledReportsInsertCall) Fields Uses

func (c *ManagementUnsampledReportsInsertCall) Fields(s ...googleapi.Field) *ManagementUnsampledReportsInsertCall

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

func (*ManagementUnsampledReportsInsertCall) Header Uses

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

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

type ManagementUnsampledReportsListCall Uses

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

func (*ManagementUnsampledReportsListCall) Context Uses

func (c *ManagementUnsampledReportsListCall) Context(ctx context.Context) *ManagementUnsampledReportsListCall

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 (*ManagementUnsampledReportsListCall) Do Uses

func (c *ManagementUnsampledReportsListCall) Do(opts ...googleapi.CallOption) (*UnsampledReports, error)

Do executes the "analytics.management.unsampledReports.list" call. Exactly one of *UnsampledReports or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UnsampledReports.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 (*ManagementUnsampledReportsListCall) Fields Uses

func (c *ManagementUnsampledReportsListCall) Fields(s ...googleapi.Field) *ManagementUnsampledReportsListCall

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

func (*ManagementUnsampledReportsListCall) Header Uses

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

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

func (*ManagementUnsampledReportsListCall) IfNoneMatch Uses

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

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 (*ManagementUnsampledReportsListCall) MaxResults Uses

func (c *ManagementUnsampledReportsListCall) MaxResults(maxResults int64) *ManagementUnsampledReportsListCall

MaxResults sets the optional parameter "max-results": The maximum number of unsampled reports to include in this response.

func (*ManagementUnsampledReportsListCall) StartIndex Uses

func (c *ManagementUnsampledReportsListCall) StartIndex(startIndex int64) *ManagementUnsampledReportsListCall

StartIndex sets the optional parameter "start-index": An index of the first unsampled report to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.

type ManagementUnsampledReportsService Uses

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

func NewManagementUnsampledReportsService Uses

func NewManagementUnsampledReportsService(s *Service) *ManagementUnsampledReportsService

func (*ManagementUnsampledReportsService) Delete Uses

func (r *ManagementUnsampledReportsService) Delete(accountId string, webPropertyId string, profileId string, unsampledReportId string) *ManagementUnsampledReportsDeleteCall

Delete: Deletes an unsampled report.

func (*ManagementUnsampledReportsService) Get Uses

func (r *ManagementUnsampledReportsService) Get(accountId string, webPropertyId string, profileId string, unsampledReportId string) *ManagementUnsampledReportsGetCall

Get: Returns a single unsampled report.

func (*ManagementUnsampledReportsService) Insert Uses

func (r *ManagementUnsampledReportsService) Insert(accountId string, webPropertyId string, profileId string, unsampledreport *UnsampledReport) *ManagementUnsampledReportsInsertCall

Insert: Create a new unsampled report.

func (*ManagementUnsampledReportsService) List Uses

func (r *ManagementUnsampledReportsService) List(accountId string, webPropertyId string, profileId string) *ManagementUnsampledReportsListCall

List: Lists unsampled reports to which the user has access.

type ManagementUploadsDeleteUploadDataCall Uses

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

func (*ManagementUploadsDeleteUploadDataCall) Context Uses

func (c *ManagementUploadsDeleteUploadDataCall) Context(ctx context.Context) *ManagementUploadsDeleteUploadDataCall

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 (*ManagementUploadsDeleteUploadDataCall) Do Uses

func (c *ManagementUploadsDeleteUploadDataCall) Do(opts ...googleapi.CallOption) error

Do executes the "analytics.management.uploads.deleteUploadData" call.

func (*ManagementUploadsDeleteUploadDataCall) Fields Uses

func (c *ManagementUploadsDeleteUploadDataCall) Fields(s ...googleapi.Field) *ManagementUploadsDeleteUploadDataCall

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

func (*ManagementUploadsDeleteUploadDataCall) Header Uses