| // Copyright 2019 Google LLC. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| |
| // Code generated file. DO NOT EDIT. |
| |
| // 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. |
| package analytics // import "google.golang.org/api/analytics/v3" |
| |
| import ( |
| "bytes" |
| "context" |
| "encoding/json" |
| "errors" |
| "fmt" |
| "io" |
| "net/http" |
| "net/url" |
| "strconv" |
| "strings" |
| |
| googleapi "google.golang.org/api/googleapi" |
| gensupport "google.golang.org/api/internal/gensupport" |
| option "google.golang.org/api/option" |
| htransport "google.golang.org/api/transport/http" |
| ) |
| |
| // Always reference these packages, just in case the auto-generated code |
| // below doesn't. |
| var _ = bytes.NewBuffer |
| var _ = strconv.Itoa |
| var _ = fmt.Sprintf |
| var _ = json.NewDecoder |
| var _ = io.Copy |
| var _ = url.Parse |
| var _ = gensupport.MarshalJSON |
| var _ = googleapi.Version |
| var _ = errors.New |
| var _ = strings.Replace |
| var _ = context.Canceled |
| |
| const apiId = "analytics:v3" |
| const apiName = "analytics" |
| const apiVersion = "v3" |
| const basePath = "https://www.googleapis.com/analytics/v3/" |
| |
| // OAuth2 scopes used by this API. |
| 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" |
| ) |
| |
| // NewService creates a new Service. |
| func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { |
| scopesOption := option.WithScopes( |
| "https://www.googleapis.com/auth/analytics", |
| "https://www.googleapis.com/auth/analytics.edit", |
| "https://www.googleapis.com/auth/analytics.manage.users", |
| "https://www.googleapis.com/auth/analytics.manage.users.readonly", |
| "https://www.googleapis.com/auth/analytics.provision", |
| "https://www.googleapis.com/auth/analytics.readonly", |
| "https://www.googleapis.com/auth/analytics.user.deletion", |
| ) |
| // NOTE: prepend, so we don't override user-specified scopes. |
| opts = append([]option.ClientOption{scopesOption}, opts...) |
| client, endpoint, err := htransport.NewClient(ctx, opts...) |
| if err != nil { |
| return nil, err |
| } |
| s, err := New(client) |
| if err != nil { |
| return nil, err |
| } |
| if endpoint != "" { |
| s.BasePath = endpoint |
| } |
| return s, nil |
| } |
| |
| // New creates a new Service. It uses the provided http.Client for requests. |
| // |
| // Deprecated: please use NewService instead. |
| // To provide a custom HTTP client, use option.WithHTTPClient. |
| // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. |
| func New(client *http.Client) (*Service, error) { |
| if client == nil { |
| return nil, errors.New("client is nil") |
| } |
| s := &Service{client: client, BasePath: basePath} |
| s.Data = NewDataService(s) |
| s.Management = NewManagementService(s) |
| s.Metadata = NewMetadataService(s) |
| s.Provisioning = NewProvisioningService(s) |
| s.UserDeletion = NewUserDeletionService(s) |
| return s, nil |
| } |
| |
| type Service struct { |
| client *http.Client |
| BasePath string // API endpoint base URL |
| UserAgent string // optional additional User-Agent fragment |
| |
| Data *DataService |
| |
| Management *ManagementService |
| |
| Metadata *MetadataService |
| |
| Provisioning *ProvisioningService |
| |
| UserDeletion *UserDeletionService |
| } |
| |
| func (s *Service) userAgent() string { |
| if s.UserAgent == "" { |
| return googleapi.UserAgent |
| } |
| return googleapi.UserAgent + " " + s.UserAgent |
| } |
| |
| func NewDataService(s *Service) *DataService { |
| rs := &DataService{s: s} |
| rs.Ga = NewDataGaService(s) |
| rs.Mcf = NewDataMcfService(s) |
| rs.Realtime = NewDataRealtimeService(s) |
| return rs |
| } |
| |
| type DataService struct { |
| s *Service |
| |
| Ga *DataGaService |
| |
| Mcf *DataMcfService |
| |
| Realtime *DataRealtimeService |
| } |
| |
| func NewDataGaService(s *Service) *DataGaService { |
| rs := &DataGaService{s: s} |
| return rs |
| } |
| |
| type DataGaService struct { |
| s *Service |
| } |
| |
| func NewDataMcfService(s *Service) *DataMcfService { |
| rs := &DataMcfService{s: s} |
| return rs |
| } |
| |
| type DataMcfService struct { |
| s *Service |
| } |
| |
| func NewDataRealtimeService(s *Service) *DataRealtimeService { |
| rs := &DataRealtimeService{s: s} |
| return rs |
| } |
| |
| type DataRealtimeService struct { |
| s *Service |
| } |
| |
| func NewManagementService(s *Service) *ManagementService { |
| rs := &ManagementService{s: s} |
| rs.AccountSummaries = NewManagementAccountSummariesService(s) |
| rs.AccountUserLinks = NewManagementAccountUserLinksService(s) |
| rs.Accounts = NewManagementAccountsService(s) |
| rs.ClientId = NewManagementClientIdService(s) |
| rs.CustomDataSources = NewManagementCustomDataSourcesService(s) |
| rs.CustomDimensions = NewManagementCustomDimensionsService(s) |
| rs.CustomMetrics = NewManagementCustomMetricsService(s) |
| rs.Experiments = NewManagementExperimentsService(s) |
| rs.Filters = NewManagementFiltersService(s) |
| rs.Goals = NewManagementGoalsService(s) |
| rs.ProfileFilterLinks = NewManagementProfileFilterLinksService(s) |
| rs.ProfileUserLinks = NewManagementProfileUserLinksService(s) |
| rs.Profiles = NewManagementProfilesService(s) |
| rs.RemarketingAudience = NewManagementRemarketingAudienceService(s) |
| rs.Segments = NewManagementSegmentsService(s) |
| rs.UnsampledReports = NewManagementUnsampledReportsService(s) |
| rs.Uploads = NewManagementUploadsService(s) |
| rs.WebPropertyAdWordsLinks = NewManagementWebPropertyAdWordsLinksService(s) |
| rs.Webproperties = NewManagementWebpropertiesService(s) |
| rs.WebpropertyUserLinks = NewManagementWebpropertyUserLinksService(s) |
| return rs |
| } |
| |
| type ManagementService struct { |
| s *Service |
| |
| 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 |
| } |
| |
| func NewManagementAccountSummariesService(s *Service) *ManagementAccountSummariesService { |
| rs := &ManagementAccountSummariesService{s: s} |
| return rs |
| } |
| |
| type ManagementAccountSummariesService struct { |
| s *Service |
| } |
| |
| func NewManagementAccountUserLinksService(s *Service) *ManagementAccountUserLinksService { |
| rs := &ManagementAccountUserLinksService{s: s} |
| return rs |
| } |
| |
| type ManagementAccountUserLinksService struct { |
| s *Service |
| } |
| |
| func NewManagementAccountsService(s *Service) *ManagementAccountsService { |
| rs := &ManagementAccountsService{s: s} |
| return rs |
| } |
| |
| type ManagementAccountsService struct { |
| s *Service |
| } |
| |
| func NewManagementClientIdService(s *Service) *ManagementClientIdService { |
| rs := &ManagementClientIdService{s: s} |
| return rs |
| } |
| |
| type ManagementClientIdService struct { |
| s *Service |
| } |
| |
| func NewManagementCustomDataSourcesService(s *Service) *ManagementCustomDataSourcesService { |
| rs := &ManagementCustomDataSourcesService{s: s} |
| return rs |
| } |
| |
| type ManagementCustomDataSourcesService struct { |
| s *Service |
| } |
| |
| func NewManagementCustomDimensionsService(s *Service) *ManagementCustomDimensionsService { |
| rs := &ManagementCustomDimensionsService{s: s} |
| return rs |
| } |
| |
| type ManagementCustomDimensionsService struct { |
| s *Service |
| } |
| |
| func NewManagementCustomMetricsService(s *Service) *ManagementCustomMetricsService { |
| rs := &ManagementCustomMetricsService{s: s} |
| return rs |
| } |
| |
| type ManagementCustomMetricsService struct { |
| s *Service |
| } |
| |
| func NewManagementExperimentsService(s *Service) *ManagementExperimentsService { |
| rs := &ManagementExperimentsService{s: s} |
| return rs |
| } |
| |
| type ManagementExperimentsService struct { |
| s *Service |
| } |
| |
| func NewManagementFiltersService(s *Service) *ManagementFiltersService { |
| rs := &ManagementFiltersService{s: s} |
| return rs |
| } |
| |
| type ManagementFiltersService struct { |
| s *Service |
| } |
| |
| func NewManagementGoalsService(s *Service) *ManagementGoalsService { |
| rs := &ManagementGoalsService{s: s} |
| return rs |
| } |
| |
| type ManagementGoalsService struct { |
| s *Service |
| } |
| |
| func NewManagementProfileFilterLinksService(s *Service) *ManagementProfileFilterLinksService { |
| rs := &ManagementProfileFilterLinksService{s: s} |
| return rs |
| } |
| |
| type ManagementProfileFilterLinksService struct { |
| s *Service |
| } |
| |
| func NewManagementProfileUserLinksService(s *Service) *ManagementProfileUserLinksService { |
| rs := &ManagementProfileUserLinksService{s: s} |
| return rs |
| } |
| |
| type ManagementProfileUserLinksService struct { |
| s *Service |
| } |
| |
| func NewManagementProfilesService(s *Service) *ManagementProfilesService { |
| rs := &ManagementProfilesService{s: s} |
| return rs |
| } |
| |
| type ManagementProfilesService struct { |
| s *Service |
| } |
| |
| func NewManagementRemarketingAudienceService(s *Service) *ManagementRemarketingAudienceService { |
| rs := &ManagementRemarketingAudienceService{s: s} |
| return rs |
| } |
| |
| type ManagementRemarketingAudienceService struct { |
| s *Service |
| } |
| |
| func NewManagementSegmentsService(s *Service) *ManagementSegmentsService { |
| rs := &ManagementSegmentsService{s: s} |
| return rs |
| } |
| |
| type ManagementSegmentsService struct { |
| s *Service |
| } |
| |
| func NewManagementUnsampledReportsService(s *Service) *ManagementUnsampledReportsService { |
| rs := &ManagementUnsampledReportsService{s: s} |
| return rs |
| } |
| |
| type ManagementUnsampledReportsService struct { |
| s *Service |
| } |
| |
| func NewManagementUploadsService(s *Service) *ManagementUploadsService { |
| rs := &ManagementUploadsService{s: s} |
| return rs |
| } |
| |
| type ManagementUploadsService struct { |
| s *Service |
| } |
| |
| func NewManagementWebPropertyAdWordsLinksService(s *Service) *ManagementWebPropertyAdWordsLinksService { |
| rs := &ManagementWebPropertyAdWordsLinksService{s: s} |
| return rs |
| } |
| |
| type ManagementWebPropertyAdWordsLinksService struct { |
| s *Service |
| } |
| |
| func NewManagementWebpropertiesService(s *Service) *ManagementWebpropertiesService { |
| rs := &ManagementWebpropertiesService{s: s} |
| return rs |
| } |
| |
| type ManagementWebpropertiesService struct { |
| s *Service |
| } |
| |
| func NewManagementWebpropertyUserLinksService(s *Service) *ManagementWebpropertyUserLinksService { |
| rs := &ManagementWebpropertyUserLinksService{s: s} |
| return rs |
| } |
| |
| type ManagementWebpropertyUserLinksService struct { |
| s *Service |
| } |
| |
| func NewMetadataService(s *Service) *MetadataService { |
| rs := &MetadataService{s: s} |
| rs.Columns = NewMetadataColumnsService(s) |
| return rs |
| } |
| |
| type MetadataService struct { |
| s *Service |
| |
| Columns *MetadataColumnsService |
| } |
| |
| func NewMetadataColumnsService(s *Service) *MetadataColumnsService { |
| rs := &MetadataColumnsService{s: s} |
| return rs |
| } |
| |
| type MetadataColumnsService struct { |
| s *Service |
| } |
| |
| func NewProvisioningService(s *Service) *ProvisioningService { |
| rs := &ProvisioningService{s: s} |
| return rs |
| } |
| |
| type ProvisioningService struct { |
| s *Service |
| } |
| |
| func NewUserDeletionService(s *Service) *UserDeletionService { |
| rs := &UserDeletionService{s: s} |
| rs.UserDeletionRequest = NewUserDeletionUserDeletionRequestService(s) |
| return rs |
| } |
| |
| type UserDeletionService struct { |
| s *Service |
| |
| UserDeletionRequest *UserDeletionUserDeletionRequestService |
| } |
| |
| func NewUserDeletionUserDeletionRequestService(s *Service) *UserDeletionUserDeletionRequestService { |
| rs := &UserDeletionUserDeletionRequestService{s: s} |
| return rs |
| } |
| |
| type UserDeletionUserDeletionRequestService struct { |
| s *Service |
| } |
| |
| // Account: JSON template for Analytics account entry. |
| 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:"-"` |
| } |
| |
| func (s *Account) MarshalJSON() ([]byte, error) { |
| type NoMethod Account |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // AccountChildLink: Child link for an account entry. Points to the list |
| // of web properties for this account. |
| 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:"-"` |
| } |
| |
| func (s *AccountChildLink) MarshalJSON() ([]byte, error) { |
| type NoMethod AccountChildLink |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // AccountPermissions: Permissions the user has for this account. |
| 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:"-"` |
| } |
| |
| func (s *AccountPermissions) MarshalJSON() ([]byte, error) { |
| type NoMethod AccountPermissions |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // AccountRef: JSON template for a linked account. |
| 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:"-"` |
| } |
| |
| func (s *AccountRef) MarshalJSON() ([]byte, error) { |
| type NoMethod AccountRef |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // 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. |
| 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:"-"` |
| } |
| |
| func (s *AccountSummaries) MarshalJSON() ([]byte, error) { |
| type NoMethod AccountSummaries |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // AccountSummary: JSON template for an Analytics AccountSummary. An |
| // AccountSummary is a lightweight tree comprised of |
| // properties/profiles. |
| 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:"-"` |
| } |
| |
| func (s *AccountSummary) MarshalJSON() ([]byte, error) { |
| type NoMethod AccountSummary |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // 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. |
| 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:"-"` |
| } |
| |
| func (s *AccountTicket) MarshalJSON() ([]byte, error) { |
| type NoMethod AccountTicket |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // 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. |
| 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:"-"` |
| } |
| |
| func (s *AccountTreeRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod AccountTreeRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // 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). |
| 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:"-"` |
| } |
| |
| func (s *AccountTreeResponse) MarshalJSON() ([]byte, error) { |
| type NoMethod AccountTreeResponse |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // 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. |
| 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:"-"` |
| } |
| |
| func (s *Accounts) MarshalJSON() ([]byte, error) { |
| type NoMethod Accounts |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // AdWordsAccount: JSON template for an Google Ads account. |
| 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:"-"` |
| } |
| |
| func (s *AdWordsAccount) MarshalJSON() ([]byte, error) { |
| type NoMethod AdWordsAccount |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // AnalyticsDataimportDeleteUploadDataRequest: Request template for the |
| // delete upload data request. |
| 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:"-"` |
| } |
| |
| func (s *AnalyticsDataimportDeleteUploadDataRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod AnalyticsDataimportDeleteUploadDataRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Column: JSON template for a metadata column. |
| 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:"-"` |
| } |
| |
| func (s *Column) MarshalJSON() ([]byte, error) { |
| type NoMethod Column |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Columns: Lists columns (dimensions and metrics) for a particular |
| // report type. |
| 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:"-"` |
| } |
| |
| func (s *Columns) MarshalJSON() ([]byte, error) { |
| type NoMethod Columns |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // CustomDataSource: JSON template for an Analytics custom data source. |
| 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:"-"` |
| } |
| |
| func (s *CustomDataSource) MarshalJSON() ([]byte, error) { |
| type NoMethod CustomDataSource |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| 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 (s *CustomDataSourceChildLink) MarshalJSON() ([]byte, error) { |
| type NoMethod CustomDataSourceChildLink |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // CustomDataSourceParentLink: Parent link for this custom data source. |
| // Points to the web property to which this custom data source belongs. |
| 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:"-"` |
| } |
| |
| func (s *CustomDataSourceParentLink) MarshalJSON() ([]byte, error) { |
| type NoMethod CustomDataSourceParentLink |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // 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. |
| 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:"-"` |
| } |
| |
| func (s *CustomDataSources) MarshalJSON() ([]byte, error) { |
| type NoMethod CustomDataSources |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // CustomDimension: JSON template for Analytics Custom Dimension. |
| 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:"-"` |
| } |
| |
| func (s *CustomDimension) MarshalJSON() ([]byte, error) { |
| type NoMethod CustomDimension |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // CustomDimensionParentLink: Parent link for the custom dimension. |
| // Points to the property to which the custom dimension belongs. |
| 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:"-"` |
| } |
| |
| func (s *CustomDimensionParentLink) MarshalJSON() ([]byte, error) { |
| type NoMethod CustomDimensionParentLink |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // 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. |
| 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:"-"` |
| } |
| |
| func (s *CustomDimensions) MarshalJSON() ([]byte, error) { |
| type NoMethod CustomDimensions |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // CustomMetric: JSON template for Analytics Custom Metric. |
| 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:"-"` |
| } |
| |
| func (s *CustomMetric) MarshalJSON() ([]byte, error) { |
| type NoMethod CustomMetric |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // CustomMetricParentLink: Parent link for the custom metric. Points to |
| // the property to which the custom metric belongs. |
| 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:"-"` |
| } |
| |
| func (s *CustomMetricParentLink) MarshalJSON() ([]byte, error) { |
| type NoMethod CustomMetricParentLink |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // 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. |
| 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:"-"` |
| } |
| |
| func (s *CustomMetrics) MarshalJSON() ([]byte, error) { |
| type NoMethod CustomMetrics |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // EntityAdWordsLink: JSON template for Analytics Entity Google Ads |
| // Link. |
| 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:"-"` |
| } |
| |
| func (s *EntityAdWordsLink) MarshalJSON() ([]byte, error) { |
| type NoMethod EntityAdWordsLink |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // EntityAdWordsLinkEntity: Web property being linked. |
| 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:"-"` |
| } |
| |
| func (s *EntityAdWordsLinkEntity) MarshalJSON() ([]byte, error) { |
| type NoMethod EntityAdWordsLinkEntity |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // 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. |
| 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:"-"` |
| } |
| |
| func (s *EntityAdWordsLinks) MarshalJSON() ([]byte, error) { |
| type NoMethod EntityAdWordsLinks |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // EntityUserLink: JSON template for an Analytics Entity-User Link. |
| // Returns permissions that a user has for an entity. |
| 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:"-"` |
| } |
| |
| func (s *EntityUserLink) MarshalJSON() ([]byte, error) { |
| type NoMethod EntityUserLink |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // EntityUserLinkEntity: Entity for this link. It can be an account, a |
| // web property, or a view (profile). |
| 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:"-"` |
| } |
| |
| func (s *EntityUserLinkEntity) MarshalJSON() ([]byte, error) { |
| type NoMethod EntityUserLinkEntity |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // EntityUserLinkPermissions: Permissions the user has for this entity. |
| 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:"-"` |
| } |
| |
| func (s *EntityUserLinkPermissions) MarshalJSON() ([]byte, error) { |
| type NoMethod EntityUserLinkPermissions |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // EntityUserLinks: An entity user link collection provides a list of |
| // Analytics ACL links Each resource in this collection corresponds to a |
| // single link. |
| 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:"-"` |
| } |
| |
| func (s *EntityUserLinks) MarshalJSON() ([]byte, error) { |
| type NoMethod EntityUserLinks |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Experiment: JSON template for Analytics experiment resource. |
| 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:"-"` |
| } |
| |
| func (s *Experiment) MarshalJSON() ([]byte, error) { |
| type NoMethod Experiment |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| func (s *Experiment) UnmarshalJSON(data []byte) error { |
| type NoMethod Experiment |
| var s1 struct { |
| TrafficCoverage gensupport.JSONFloat64 `json:"trafficCoverage"` |
| WinnerConfidenceLevel gensupport.JSONFloat64 `json:"winnerConfidenceLevel"` |
| *NoMethod |
| } |
| s1.NoMethod = (*NoMethod)(s) |
| if err := json.Unmarshal(data, &s1); err != nil { |
| return err |
| } |
| s.TrafficCoverage = float64(s1.TrafficCoverage) |
| s.WinnerConfidenceLevel = float64(s1.WinnerConfidenceLevel) |
| return nil |
| } |
| |
| // ExperimentParentLink: Parent link for an experiment. Points to the |
| // view (profile) to which this experiment belongs. |
| 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:"-"` |
| } |
| |
| func (s *ExperimentParentLink) MarshalJSON() ([]byte, error) { |
| type NoMethod ExperimentParentLink |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| 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 (s *ExperimentVariations) MarshalJSON() ([]byte, error) { |
| type NoMethod ExperimentVariations |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| func (s *ExperimentVariations) UnmarshalJSON(data []byte) error { |
| type NoMethod ExperimentVariations |
| var s1 struct { |
| Weight gensupport.JSONFloat64 `json:"weight"` |
| *NoMethod |
| } |
| s1.NoMethod = (*NoMethod)(s) |
| if err := json.Unmarshal(data, &s1); err != nil { |
| return err |
| } |
| s.Weight = float64(s1.Weight) |
| return nil |
| } |
| |
| // 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. |
| 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:"-"` |
| } |
| |
| func (s *Experiments) MarshalJSON() ([]byte, error) { |
| type NoMethod Experiments |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Filter: JSON template for an Analytics account filter. |
| 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:"-"` |
| } |
| |
| func (s *Filter) MarshalJSON() ([]byte, error) { |
| type NoMethod Filter |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // FilterAdvancedDetails: Details for the filter of the type ADVANCED. |
| 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:"-"` |
| } |
| |
| func (s *FilterAdvancedDetails) MarshalJSON() ([]byte, error) { |
| type NoMethod FilterAdvancedDetails |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // FilterLowercaseDetails: Details for the filter of the type LOWER. |
| 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:"-"` |
| } |
| |
| func (s *FilterLowercaseDetails) MarshalJSON() ([]byte, error) { |
| type NoMethod FilterLowercaseDetails |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // FilterParentLink: Parent link for this filter. Points to the account |
| // to which this filter belongs. |
| 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:"-"` |
| } |
| |
| func (s *FilterParentLink) MarshalJSON() ([]byte, error) { |
| type NoMethod FilterParentLink |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // FilterSearchAndReplaceDetails: Details for the filter of the type |
| // SEARCH_AND_REPLACE. |
| 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:"-"` |
| } |
| |
| func (s *FilterSearchAndReplaceDetails) MarshalJSON() ([]byte, error) { |
| type NoMethod FilterSearchAndReplaceDetails |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // FilterUppercaseDetails: Details for the filter of the type UPPER. |
| 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:"-"` |
| } |
| |
| func (s *FilterUppercaseDetails) MarshalJSON() ([]byte, error) { |
| type NoMethod FilterUppercaseDetails |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // FilterExpression: JSON template for an Analytics filter expression. |
| 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:"-"` |
| } |
| |
| func (s *FilterExpression) MarshalJSON() ([]byte, error) { |
| type NoMethod FilterExpression |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // FilterRef: JSON template for a profile filter link. |
| 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:"-"` |
| } |
| |
| func (s *FilterRef) MarshalJSON() ([]byte, error) { |
| type NoMethod FilterRef |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Filters: A filter collection lists filters created by users in an |
| // Analytics account. Each resource in the collection corresponds to a |
| // filter. |
| 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:"-"` |
| } |
| |
| func (s *Filters) MarshalJSON() ([]byte, error) { |
| type NoMethod Filters |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GaData: Analytics data for a given view (profile). |
| 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:"-"` |
| } |
| |
| func (s *GaData) MarshalJSON() ([]byte, error) { |
| type NoMethod GaData |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| 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 (s *GaDataColumnHeaders) MarshalJSON() ([]byte, error) { |
| type NoMethod GaDataColumnHeaders |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| 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 (s *GaDataDataTable) MarshalJSON() ([]byte, error) { |
| type NoMethod GaDataDataTable |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| 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 (s *GaDataDataTableCols) MarshalJSON() ([]byte, error) { |
| type NoMethod GaDataDataTableCols |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| 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 (s *GaDataDataTableRows) MarshalJSON() ([]byte, error) { |
| type NoMethod GaDataDataTableRows |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| 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 (s *GaDataDataTableRowsC) MarshalJSON() ([]byte, error) { |
| type NoMethod GaDataDataTableRowsC |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GaDataProfileInfo: Information for the view (profile), for which the |
| // Analytics data was requested. |
| 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:"-"` |
| } |
| |
| func (s *GaDataProfileInfo) MarshalJSON() ([]byte, error) { |
| type NoMethod GaDataProfileInfo |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GaDataQuery: Analytics data request query parameters. |
| 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:"-"` |
| } |
| |
| func (s *GaDataQuery) MarshalJSON() ([]byte, error) { |
| type NoMethod GaDataQuery |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // Goal: JSON template for Analytics goal resource. |
| 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:"-"` |
| } |
| |
| func (s *Goal) MarshalJSON() ([]byte, error) { |
| type NoMethod Goal |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| func (s *Goal) UnmarshalJSON(data []byte) error { |
| type NoMethod Goal |
| var s1 struct { |
| Value gensupport.JSONFloat64 `json:"value"` |
| *NoMethod |
| } |
| s1.NoMethod = (*NoMethod)(s) |
| if err := json.Unmarshal(data, &s1); err != nil { |
| return err |
| } |
| s.Value = float64(s1.Value) |
| return nil |
| } |
| |
| // GoalEventDetails: Details for the goal of the type EVENT. |
| 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:"-"` |
| } |
| |
| func (s *GoalEventDetails) MarshalJSON() ([]byte, error) { |
| type NoMethod GoalEventDetails |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| 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 (s *GoalEventDetailsEventConditions) MarshalJSON() ([]byte, error) { |
| type NoMethod GoalEventDetailsEventConditions |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GoalParentLink: Parent link for a goal. Points to the view (profile) |
| // to which this goal belongs. |
| 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:"-"` |
| } |
| |
| func (s *GoalParentLink) MarshalJSON() ([]byte, error) { |
| type NoMethod GoalParentLink |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GoalUrlDestinationDetails: Details for the goal of the type |
| // URL_DESTINATION. |
| 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:"-"` |
| } |
| |
| func (s *GoalUrlDestinationDetails) MarshalJSON() ([]byte, error) { |
| type NoMethod GoalUrlDestinationDetails |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| 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 (s *GoalUrlDestinationDetailsSteps) MarshalJSON() ([]byte, error) { |
| type NoMethod GoalUrlDestinationDetailsSteps |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GoalVisitNumPagesDetails: Details for the goal of the type |
| // VISIT_NUM_PAGES. |
| 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:"-"` |
| } |
| |
| func (s *GoalVisitNumPagesDetails) MarshalJSON() ([]byte, error) { |
| type NoMethod GoalVisitNumPagesDetails |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // GoalVisitTimeOnSiteDetails: Details for the goal of the type |
| // VISIT_TIME_ON_SITE. |
| 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:"-"` |
| } |
| |
| func (s *GoalVisitTimeOnSiteDetails) MarshalJSON() ([]byte, error) { |
| type NoMethod GoalVisitTimeOnSiteDetails |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // 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. |
| 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:"-"` |
| } |
| |
| func (s *Goals) MarshalJSON() ([]byte, error) { |
| type NoMethod Goals |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // HashClientIdRequest: JSON template for a hash Client Id request |
| // resource. |
| 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:"-"` |
| } |
| |
| func (s *HashClientIdRequest) MarshalJSON() ([]byte, error) { |
| type NoMethod HashClientIdRequest |
| raw := NoMethod(*s) |
| return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) |
| } |
| |
| // HashClientIdResponse: JSON template for a hash Client Id response |
| // resource. |
| 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, |
|