Documentation ¶
Overview ¶
Package admin is an auto-generated package for the Google Analytics Admin API.
Manage properties in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning.
NOTE: This package is in alpha. It is not stable, and is likely to change.
General documentation ¶
For information that is relevant for all client libraries please reference https://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on this page includes:
- Authentication and Authorization
- Timeouts and Cancellation
- Testing against Client Libraries
- Debugging Client Libraries
- Inspecting errors
Example usage ¶
To get started with this package, create a client.
ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close()
The client will use your default application credentials. Clients should be reused instead of created as needed. The methods of Client are safe for concurrent use by multiple goroutines. The returned client must be Closed when it is done being used.
Using the Client ¶
The following is an example of making an API call with the newly created client.
ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.AcknowledgeUserDataCollectionRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#AcknowledgeUserDataCollectionRequest. } resp, err := c.AcknowledgeUserDataCollection(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp
Use of Context ¶
The ctx passed to NewAnalyticsAdminClient is used for authentication requests and for creating the underlying connection, but is not used for subsequent calls. Individual methods on the client use the ctx given to them.
To close the open connection, use the Close() method.
Index ¶
- func DefaultAuthScopes() []string
- type AccessBindingIterator
- type AccountIterator
- type AccountSummaryIterator
- type AdSenseLinkIterator
- type AnalyticsAdminCallOptions
- type AnalyticsAdminClient
- func (c *AnalyticsAdminClient) AcknowledgeUserDataCollection(ctx context.Context, req *adminpb.AcknowledgeUserDataCollectionRequest, ...) (*adminpb.AcknowledgeUserDataCollectionResponse, error)
- func (c *AnalyticsAdminClient) ApproveDisplayVideo360AdvertiserLinkProposal(ctx context.Context, ...) (*adminpb.ApproveDisplayVideo360AdvertiserLinkProposalResponse, error)
- func (c *AnalyticsAdminClient) ArchiveAudience(ctx context.Context, req *adminpb.ArchiveAudienceRequest, ...) error
- func (c *AnalyticsAdminClient) ArchiveCustomDimension(ctx context.Context, req *adminpb.ArchiveCustomDimensionRequest, ...) error
- func (c *AnalyticsAdminClient) ArchiveCustomMetric(ctx context.Context, req *adminpb.ArchiveCustomMetricRequest, ...) error
- func (c *AnalyticsAdminClient) BatchCreateAccessBindings(ctx context.Context, req *adminpb.BatchCreateAccessBindingsRequest, ...) (*adminpb.BatchCreateAccessBindingsResponse, error)
- func (c *AnalyticsAdminClient) BatchDeleteAccessBindings(ctx context.Context, req *adminpb.BatchDeleteAccessBindingsRequest, ...) error
- func (c *AnalyticsAdminClient) BatchGetAccessBindings(ctx context.Context, req *adminpb.BatchGetAccessBindingsRequest, ...) (*adminpb.BatchGetAccessBindingsResponse, error)
- func (c *AnalyticsAdminClient) BatchUpdateAccessBindings(ctx context.Context, req *adminpb.BatchUpdateAccessBindingsRequest, ...) (*adminpb.BatchUpdateAccessBindingsResponse, error)
- func (c *AnalyticsAdminClient) CancelDisplayVideo360AdvertiserLinkProposal(ctx context.Context, ...) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
- func (c *AnalyticsAdminClient) Close() error
- func (c *AnalyticsAdminClient) Connection() *grpc.ClientConndeprecated
- func (c *AnalyticsAdminClient) CreateAccessBinding(ctx context.Context, req *adminpb.CreateAccessBindingRequest, ...) (*adminpb.AccessBinding, error)
- func (c *AnalyticsAdminClient) CreateAdSenseLink(ctx context.Context, req *adminpb.CreateAdSenseLinkRequest, ...) (*adminpb.AdSenseLink, error)
- func (c *AnalyticsAdminClient) CreateAudience(ctx context.Context, req *adminpb.CreateAudienceRequest, ...) (*adminpb.Audience, error)
- func (c *AnalyticsAdminClient) CreateBigQueryLink(ctx context.Context, req *adminpb.CreateBigQueryLinkRequest, ...) (*adminpb.BigQueryLink, error)
- func (c *AnalyticsAdminClient) CreateCalculatedMetric(ctx context.Context, req *adminpb.CreateCalculatedMetricRequest, ...) (*adminpb.CalculatedMetric, error)
- func (c *AnalyticsAdminClient) CreateChannelGroup(ctx context.Context, req *adminpb.CreateChannelGroupRequest, ...) (*adminpb.ChannelGroup, error)
- func (c *AnalyticsAdminClient) CreateConnectedSiteTag(ctx context.Context, req *adminpb.CreateConnectedSiteTagRequest, ...) (*adminpb.CreateConnectedSiteTagResponse, error)
- func (c *AnalyticsAdminClient) CreateConversionEvent(ctx context.Context, req *adminpb.CreateConversionEventRequest, ...) (*adminpb.ConversionEvent, error)deprecated
- func (c *AnalyticsAdminClient) CreateCustomDimension(ctx context.Context, req *adminpb.CreateCustomDimensionRequest, ...) (*adminpb.CustomDimension, error)
- func (c *AnalyticsAdminClient) CreateCustomMetric(ctx context.Context, req *adminpb.CreateCustomMetricRequest, ...) (*adminpb.CustomMetric, error)
- func (c *AnalyticsAdminClient) CreateDataStream(ctx context.Context, req *adminpb.CreateDataStreamRequest, ...) (*adminpb.DataStream, error)
- func (c *AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.CreateDisplayVideo360AdvertiserLinkRequest, ...) (*adminpb.DisplayVideo360AdvertiserLink, error)
- func (c *AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLinkProposal(ctx context.Context, ...) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
- func (c *AnalyticsAdminClient) CreateEventCreateRule(ctx context.Context, req *adminpb.CreateEventCreateRuleRequest, ...) (*adminpb.EventCreateRule, error)
- func (c *AnalyticsAdminClient) CreateEventEditRule(ctx context.Context, req *adminpb.CreateEventEditRuleRequest, ...) (*adminpb.EventEditRule, error)
- func (c *AnalyticsAdminClient) CreateExpandedDataSet(ctx context.Context, req *adminpb.CreateExpandedDataSetRequest, ...) (*adminpb.ExpandedDataSet, error)
- func (c *AnalyticsAdminClient) CreateFirebaseLink(ctx context.Context, req *adminpb.CreateFirebaseLinkRequest, ...) (*adminpb.FirebaseLink, error)
- func (c *AnalyticsAdminClient) CreateGoogleAdsLink(ctx context.Context, req *adminpb.CreateGoogleAdsLinkRequest, ...) (*adminpb.GoogleAdsLink, error)
- func (c *AnalyticsAdminClient) CreateKeyEvent(ctx context.Context, req *adminpb.CreateKeyEventRequest, ...) (*adminpb.KeyEvent, error)
- func (c *AnalyticsAdminClient) CreateMeasurementProtocolSecret(ctx context.Context, req *adminpb.CreateMeasurementProtocolSecretRequest, ...) (*adminpb.MeasurementProtocolSecret, error)
- func (c *AnalyticsAdminClient) CreateProperty(ctx context.Context, req *adminpb.CreatePropertyRequest, ...) (*adminpb.Property, error)
- func (c *AnalyticsAdminClient) CreateRollupProperty(ctx context.Context, req *adminpb.CreateRollupPropertyRequest, ...) (*adminpb.CreateRollupPropertyResponse, error)
- func (c *AnalyticsAdminClient) CreateRollupPropertySourceLink(ctx context.Context, req *adminpb.CreateRollupPropertySourceLinkRequest, ...) (*adminpb.RollupPropertySourceLink, error)
- func (c *AnalyticsAdminClient) CreateSKAdNetworkConversionValueSchema(ctx context.Context, ...) (*adminpb.SKAdNetworkConversionValueSchema, error)
- func (c *AnalyticsAdminClient) CreateSearchAds360Link(ctx context.Context, req *adminpb.CreateSearchAds360LinkRequest, ...) (*adminpb.SearchAds360Link, error)
- func (c *AnalyticsAdminClient) CreateSubpropertyEventFilter(ctx context.Context, req *adminpb.CreateSubpropertyEventFilterRequest, ...) (*adminpb.SubpropertyEventFilter, error)
- func (c *AnalyticsAdminClient) DeleteAccessBinding(ctx context.Context, req *adminpb.DeleteAccessBindingRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteAccount(ctx context.Context, req *adminpb.DeleteAccountRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteAdSenseLink(ctx context.Context, req *adminpb.DeleteAdSenseLinkRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteBigQueryLink(ctx context.Context, req *adminpb.DeleteBigQueryLinkRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteCalculatedMetric(ctx context.Context, req *adminpb.DeleteCalculatedMetricRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteChannelGroup(ctx context.Context, req *adminpb.DeleteChannelGroupRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteConnectedSiteTag(ctx context.Context, req *adminpb.DeleteConnectedSiteTagRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteConversionEvent(ctx context.Context, req *adminpb.DeleteConversionEventRequest, ...) errordeprecated
- func (c *AnalyticsAdminClient) DeleteDataStream(ctx context.Context, req *adminpb.DeleteDataStreamRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.DeleteDisplayVideo360AdvertiserLinkRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLinkProposal(ctx context.Context, ...) error
- func (c *AnalyticsAdminClient) DeleteEventCreateRule(ctx context.Context, req *adminpb.DeleteEventCreateRuleRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteEventEditRule(ctx context.Context, req *adminpb.DeleteEventEditRuleRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteExpandedDataSet(ctx context.Context, req *adminpb.DeleteExpandedDataSetRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteFirebaseLink(ctx context.Context, req *adminpb.DeleteFirebaseLinkRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteGoogleAdsLink(ctx context.Context, req *adminpb.DeleteGoogleAdsLinkRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteKeyEvent(ctx context.Context, req *adminpb.DeleteKeyEventRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteMeasurementProtocolSecret(ctx context.Context, req *adminpb.DeleteMeasurementProtocolSecretRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteProperty(ctx context.Context, req *adminpb.DeletePropertyRequest, ...) (*adminpb.Property, error)
- func (c *AnalyticsAdminClient) DeleteRollupPropertySourceLink(ctx context.Context, req *adminpb.DeleteRollupPropertySourceLinkRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteSKAdNetworkConversionValueSchema(ctx context.Context, ...) error
- func (c *AnalyticsAdminClient) DeleteSearchAds360Link(ctx context.Context, req *adminpb.DeleteSearchAds360LinkRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteSubpropertyEventFilter(ctx context.Context, req *adminpb.DeleteSubpropertyEventFilterRequest, ...) error
- func (c *AnalyticsAdminClient) FetchAutomatedGa4ConfigurationOptOut(ctx context.Context, req *adminpb.FetchAutomatedGa4ConfigurationOptOutRequest, ...) (*adminpb.FetchAutomatedGa4ConfigurationOptOutResponse, error)
- func (c *AnalyticsAdminClient) FetchConnectedGa4Property(ctx context.Context, req *adminpb.FetchConnectedGa4PropertyRequest, ...) (*adminpb.FetchConnectedGa4PropertyResponse, error)
- func (c *AnalyticsAdminClient) GetAccessBinding(ctx context.Context, req *adminpb.GetAccessBindingRequest, ...) (*adminpb.AccessBinding, error)
- func (c *AnalyticsAdminClient) GetAccount(ctx context.Context, req *adminpb.GetAccountRequest, opts ...gax.CallOption) (*adminpb.Account, error)
- func (c *AnalyticsAdminClient) GetAdSenseLink(ctx context.Context, req *adminpb.GetAdSenseLinkRequest, ...) (*adminpb.AdSenseLink, error)
- func (c *AnalyticsAdminClient) GetAttributionSettings(ctx context.Context, req *adminpb.GetAttributionSettingsRequest, ...) (*adminpb.AttributionSettings, error)
- func (c *AnalyticsAdminClient) GetAudience(ctx context.Context, req *adminpb.GetAudienceRequest, opts ...gax.CallOption) (*adminpb.Audience, error)
- func (c *AnalyticsAdminClient) GetBigQueryLink(ctx context.Context, req *adminpb.GetBigQueryLinkRequest, ...) (*adminpb.BigQueryLink, error)
- func (c *AnalyticsAdminClient) GetCalculatedMetric(ctx context.Context, req *adminpb.GetCalculatedMetricRequest, ...) (*adminpb.CalculatedMetric, error)
- func (c *AnalyticsAdminClient) GetChannelGroup(ctx context.Context, req *adminpb.GetChannelGroupRequest, ...) (*adminpb.ChannelGroup, error)
- func (c *AnalyticsAdminClient) GetConversionEvent(ctx context.Context, req *adminpb.GetConversionEventRequest, ...) (*adminpb.ConversionEvent, error)deprecated
- func (c *AnalyticsAdminClient) GetCustomDimension(ctx context.Context, req *adminpb.GetCustomDimensionRequest, ...) (*adminpb.CustomDimension, error)
- func (c *AnalyticsAdminClient) GetCustomMetric(ctx context.Context, req *adminpb.GetCustomMetricRequest, ...) (*adminpb.CustomMetric, error)
- func (c *AnalyticsAdminClient) GetDataRedactionSettings(ctx context.Context, req *adminpb.GetDataRedactionSettingsRequest, ...) (*adminpb.DataRedactionSettings, error)
- func (c *AnalyticsAdminClient) GetDataRetentionSettings(ctx context.Context, req *adminpb.GetDataRetentionSettingsRequest, ...) (*adminpb.DataRetentionSettings, error)
- func (c *AnalyticsAdminClient) GetDataSharingSettings(ctx context.Context, req *adminpb.GetDataSharingSettingsRequest, ...) (*adminpb.DataSharingSettings, error)
- func (c *AnalyticsAdminClient) GetDataStream(ctx context.Context, req *adminpb.GetDataStreamRequest, opts ...gax.CallOption) (*adminpb.DataStream, error)
- func (c *AnalyticsAdminClient) GetDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.GetDisplayVideo360AdvertiserLinkRequest, ...) (*adminpb.DisplayVideo360AdvertiserLink, error)
- func (c *AnalyticsAdminClient) GetDisplayVideo360AdvertiserLinkProposal(ctx context.Context, ...) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
- func (c *AnalyticsAdminClient) GetEnhancedMeasurementSettings(ctx context.Context, req *adminpb.GetEnhancedMeasurementSettingsRequest, ...) (*adminpb.EnhancedMeasurementSettings, error)
- func (c *AnalyticsAdminClient) GetEventCreateRule(ctx context.Context, req *adminpb.GetEventCreateRuleRequest, ...) (*adminpb.EventCreateRule, error)
- func (c *AnalyticsAdminClient) GetEventEditRule(ctx context.Context, req *adminpb.GetEventEditRuleRequest, ...) (*adminpb.EventEditRule, error)
- func (c *AnalyticsAdminClient) GetExpandedDataSet(ctx context.Context, req *adminpb.GetExpandedDataSetRequest, ...) (*adminpb.ExpandedDataSet, error)
- func (c *AnalyticsAdminClient) GetGlobalSiteTag(ctx context.Context, req *adminpb.GetGlobalSiteTagRequest, ...) (*adminpb.GlobalSiteTag, error)
- func (c *AnalyticsAdminClient) GetGoogleSignalsSettings(ctx context.Context, req *adminpb.GetGoogleSignalsSettingsRequest, ...) (*adminpb.GoogleSignalsSettings, error)
- func (c *AnalyticsAdminClient) GetKeyEvent(ctx context.Context, req *adminpb.GetKeyEventRequest, opts ...gax.CallOption) (*adminpb.KeyEvent, error)
- func (c *AnalyticsAdminClient) GetMeasurementProtocolSecret(ctx context.Context, req *adminpb.GetMeasurementProtocolSecretRequest, ...) (*adminpb.MeasurementProtocolSecret, error)
- func (c *AnalyticsAdminClient) GetProperty(ctx context.Context, req *adminpb.GetPropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
- func (c *AnalyticsAdminClient) GetRollupPropertySourceLink(ctx context.Context, req *adminpb.GetRollupPropertySourceLinkRequest, ...) (*adminpb.RollupPropertySourceLink, error)
- func (c *AnalyticsAdminClient) GetSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.GetSKAdNetworkConversionValueSchemaRequest, ...) (*adminpb.SKAdNetworkConversionValueSchema, error)
- func (c *AnalyticsAdminClient) GetSearchAds360Link(ctx context.Context, req *adminpb.GetSearchAds360LinkRequest, ...) (*adminpb.SearchAds360Link, error)
- func (c *AnalyticsAdminClient) GetSubpropertyEventFilter(ctx context.Context, req *adminpb.GetSubpropertyEventFilterRequest, ...) (*adminpb.SubpropertyEventFilter, error)
- func (c *AnalyticsAdminClient) ListAccessBindings(ctx context.Context, req *adminpb.ListAccessBindingsRequest, ...) *AccessBindingIterator
- func (c *AnalyticsAdminClient) ListAccountSummaries(ctx context.Context, req *adminpb.ListAccountSummariesRequest, ...) *AccountSummaryIterator
- func (c *AnalyticsAdminClient) ListAccounts(ctx context.Context, req *adminpb.ListAccountsRequest, opts ...gax.CallOption) *AccountIterator
- func (c *AnalyticsAdminClient) ListAdSenseLinks(ctx context.Context, req *adminpb.ListAdSenseLinksRequest, ...) *AdSenseLinkIterator
- func (c *AnalyticsAdminClient) ListAudiences(ctx context.Context, req *adminpb.ListAudiencesRequest, opts ...gax.CallOption) *AudienceIterator
- func (c *AnalyticsAdminClient) ListBigQueryLinks(ctx context.Context, req *adminpb.ListBigQueryLinksRequest, ...) *BigQueryLinkIterator
- func (c *AnalyticsAdminClient) ListCalculatedMetrics(ctx context.Context, req *adminpb.ListCalculatedMetricsRequest, ...) *CalculatedMetricIterator
- func (c *AnalyticsAdminClient) ListChannelGroups(ctx context.Context, req *adminpb.ListChannelGroupsRequest, ...) *ChannelGroupIterator
- func (c *AnalyticsAdminClient) ListConnectedSiteTags(ctx context.Context, req *adminpb.ListConnectedSiteTagsRequest, ...) (*adminpb.ListConnectedSiteTagsResponse, error)
- func (c *AnalyticsAdminClient) ListConversionEvents(ctx context.Context, req *adminpb.ListConversionEventsRequest, ...) *ConversionEventIteratordeprecated
- func (c *AnalyticsAdminClient) ListCustomDimensions(ctx context.Context, req *adminpb.ListCustomDimensionsRequest, ...) *CustomDimensionIterator
- func (c *AnalyticsAdminClient) ListCustomMetrics(ctx context.Context, req *adminpb.ListCustomMetricsRequest, ...) *CustomMetricIterator
- func (c *AnalyticsAdminClient) ListDataStreams(ctx context.Context, req *adminpb.ListDataStreamsRequest, ...) *DataStreamIterator
- func (c *AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinkProposals(ctx context.Context, ...) *DisplayVideo360AdvertiserLinkProposalIterator
- func (c *AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinks(ctx context.Context, req *adminpb.ListDisplayVideo360AdvertiserLinksRequest, ...) *DisplayVideo360AdvertiserLinkIterator
- func (c *AnalyticsAdminClient) ListEventCreateRules(ctx context.Context, req *adminpb.ListEventCreateRulesRequest, ...) *EventCreateRuleIterator
- func (c *AnalyticsAdminClient) ListEventEditRules(ctx context.Context, req *adminpb.ListEventEditRulesRequest, ...) *EventEditRuleIterator
- func (c *AnalyticsAdminClient) ListExpandedDataSets(ctx context.Context, req *adminpb.ListExpandedDataSetsRequest, ...) *ExpandedDataSetIterator
- func (c *AnalyticsAdminClient) ListFirebaseLinks(ctx context.Context, req *adminpb.ListFirebaseLinksRequest, ...) *FirebaseLinkIterator
- func (c *AnalyticsAdminClient) ListGoogleAdsLinks(ctx context.Context, req *adminpb.ListGoogleAdsLinksRequest, ...) *GoogleAdsLinkIterator
- func (c *AnalyticsAdminClient) ListKeyEvents(ctx context.Context, req *adminpb.ListKeyEventsRequest, opts ...gax.CallOption) *KeyEventIterator
- func (c *AnalyticsAdminClient) ListMeasurementProtocolSecrets(ctx context.Context, req *adminpb.ListMeasurementProtocolSecretsRequest, ...) *MeasurementProtocolSecretIterator
- func (c *AnalyticsAdminClient) ListProperties(ctx context.Context, req *adminpb.ListPropertiesRequest, ...) *PropertyIterator
- func (c *AnalyticsAdminClient) ListRollupPropertySourceLinks(ctx context.Context, req *adminpb.ListRollupPropertySourceLinksRequest, ...) *RollupPropertySourceLinkIterator
- func (c *AnalyticsAdminClient) ListSKAdNetworkConversionValueSchemas(ctx context.Context, req *adminpb.ListSKAdNetworkConversionValueSchemasRequest, ...) *SKAdNetworkConversionValueSchemaIterator
- func (c *AnalyticsAdminClient) ListSearchAds360Links(ctx context.Context, req *adminpb.ListSearchAds360LinksRequest, ...) *SearchAds360LinkIterator
- func (c *AnalyticsAdminClient) ListSubpropertyEventFilters(ctx context.Context, req *adminpb.ListSubpropertyEventFiltersRequest, ...) *SubpropertyEventFilterIterator
- func (c *AnalyticsAdminClient) ProvisionAccountTicket(ctx context.Context, req *adminpb.ProvisionAccountTicketRequest, ...) (*adminpb.ProvisionAccountTicketResponse, error)
- func (c *AnalyticsAdminClient) ProvisionSubproperty(ctx context.Context, req *adminpb.ProvisionSubpropertyRequest, ...) (*adminpb.ProvisionSubpropertyResponse, error)
- func (c *AnalyticsAdminClient) ReorderEventEditRules(ctx context.Context, req *adminpb.ReorderEventEditRulesRequest, ...) error
- func (c *AnalyticsAdminClient) RunAccessReport(ctx context.Context, req *adminpb.RunAccessReportRequest, ...) (*adminpb.RunAccessReportResponse, error)
- func (c *AnalyticsAdminClient) SearchChangeHistoryEvents(ctx context.Context, req *adminpb.SearchChangeHistoryEventsRequest, ...) *ChangeHistoryEventIterator
- func (c *AnalyticsAdminClient) SetAutomatedGa4ConfigurationOptOut(ctx context.Context, req *adminpb.SetAutomatedGa4ConfigurationOptOutRequest, ...) (*adminpb.SetAutomatedGa4ConfigurationOptOutResponse, error)
- func (c *AnalyticsAdminClient) UpdateAccessBinding(ctx context.Context, req *adminpb.UpdateAccessBindingRequest, ...) (*adminpb.AccessBinding, error)
- func (c *AnalyticsAdminClient) UpdateAccount(ctx context.Context, req *adminpb.UpdateAccountRequest, opts ...gax.CallOption) (*adminpb.Account, error)
- func (c *AnalyticsAdminClient) UpdateAttributionSettings(ctx context.Context, req *adminpb.UpdateAttributionSettingsRequest, ...) (*adminpb.AttributionSettings, error)
- func (c *AnalyticsAdminClient) UpdateAudience(ctx context.Context, req *adminpb.UpdateAudienceRequest, ...) (*adminpb.Audience, error)
- func (c *AnalyticsAdminClient) UpdateBigQueryLink(ctx context.Context, req *adminpb.UpdateBigQueryLinkRequest, ...) (*adminpb.BigQueryLink, error)
- func (c *AnalyticsAdminClient) UpdateCalculatedMetric(ctx context.Context, req *adminpb.UpdateCalculatedMetricRequest, ...) (*adminpb.CalculatedMetric, error)
- func (c *AnalyticsAdminClient) UpdateChannelGroup(ctx context.Context, req *adminpb.UpdateChannelGroupRequest, ...) (*adminpb.ChannelGroup, error)
- func (c *AnalyticsAdminClient) UpdateConversionEvent(ctx context.Context, req *adminpb.UpdateConversionEventRequest, ...) (*adminpb.ConversionEvent, error)deprecated
- func (c *AnalyticsAdminClient) UpdateCustomDimension(ctx context.Context, req *adminpb.UpdateCustomDimensionRequest, ...) (*adminpb.CustomDimension, error)
- func (c *AnalyticsAdminClient) UpdateCustomMetric(ctx context.Context, req *adminpb.UpdateCustomMetricRequest, ...) (*adminpb.CustomMetric, error)
- func (c *AnalyticsAdminClient) UpdateDataRedactionSettings(ctx context.Context, req *adminpb.UpdateDataRedactionSettingsRequest, ...) (*adminpb.DataRedactionSettings, error)
- func (c *AnalyticsAdminClient) UpdateDataRetentionSettings(ctx context.Context, req *adminpb.UpdateDataRetentionSettingsRequest, ...) (*adminpb.DataRetentionSettings, error)
- func (c *AnalyticsAdminClient) UpdateDataStream(ctx context.Context, req *adminpb.UpdateDataStreamRequest, ...) (*adminpb.DataStream, error)
- func (c *AnalyticsAdminClient) UpdateDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.UpdateDisplayVideo360AdvertiserLinkRequest, ...) (*adminpb.DisplayVideo360AdvertiserLink, error)
- func (c *AnalyticsAdminClient) UpdateEnhancedMeasurementSettings(ctx context.Context, req *adminpb.UpdateEnhancedMeasurementSettingsRequest, ...) (*adminpb.EnhancedMeasurementSettings, error)
- func (c *AnalyticsAdminClient) UpdateEventCreateRule(ctx context.Context, req *adminpb.UpdateEventCreateRuleRequest, ...) (*adminpb.EventCreateRule, error)
- func (c *AnalyticsAdminClient) UpdateEventEditRule(ctx context.Context, req *adminpb.UpdateEventEditRuleRequest, ...) (*adminpb.EventEditRule, error)
- func (c *AnalyticsAdminClient) UpdateExpandedDataSet(ctx context.Context, req *adminpb.UpdateExpandedDataSetRequest, ...) (*adminpb.ExpandedDataSet, error)
- func (c *AnalyticsAdminClient) UpdateGoogleAdsLink(ctx context.Context, req *adminpb.UpdateGoogleAdsLinkRequest, ...) (*adminpb.GoogleAdsLink, error)
- func (c *AnalyticsAdminClient) UpdateGoogleSignalsSettings(ctx context.Context, req *adminpb.UpdateGoogleSignalsSettingsRequest, ...) (*adminpb.GoogleSignalsSettings, error)
- func (c *AnalyticsAdminClient) UpdateKeyEvent(ctx context.Context, req *adminpb.UpdateKeyEventRequest, ...) (*adminpb.KeyEvent, error)
- func (c *AnalyticsAdminClient) UpdateMeasurementProtocolSecret(ctx context.Context, req *adminpb.UpdateMeasurementProtocolSecretRequest, ...) (*adminpb.MeasurementProtocolSecret, error)
- func (c *AnalyticsAdminClient) UpdateProperty(ctx context.Context, req *adminpb.UpdatePropertyRequest, ...) (*adminpb.Property, error)
- func (c *AnalyticsAdminClient) UpdateSKAdNetworkConversionValueSchema(ctx context.Context, ...) (*adminpb.SKAdNetworkConversionValueSchema, error)
- func (c *AnalyticsAdminClient) UpdateSearchAds360Link(ctx context.Context, req *adminpb.UpdateSearchAds360LinkRequest, ...) (*adminpb.SearchAds360Link, error)
- func (c *AnalyticsAdminClient) UpdateSubpropertyEventFilter(ctx context.Context, req *adminpb.UpdateSubpropertyEventFilterRequest, ...) (*adminpb.SubpropertyEventFilter, error)
- type AudienceIterator
- type BigQueryLinkIterator
- type CalculatedMetricIterator
- type ChangeHistoryEventIterator
- type ChannelGroupIterator
- type ConversionEventIterator
- type CustomDimensionIterator
- type CustomMetricIterator
- type DataStreamIterator
- type DisplayVideo360AdvertiserLinkIterator
- type DisplayVideo360AdvertiserLinkProposalIterator
- func (it *DisplayVideo360AdvertiserLinkProposalIterator) All() iter.Seq2[*adminpb.DisplayVideo360AdvertiserLinkProposal, error]
- func (it *DisplayVideo360AdvertiserLinkProposalIterator) Next() (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
- func (it *DisplayVideo360AdvertiserLinkProposalIterator) PageInfo() *iterator.PageInfo
- type EventCreateRuleIterator
- type EventEditRuleIterator
- type ExpandedDataSetIterator
- type FirebaseLinkIterator
- type GoogleAdsLinkIterator
- type KeyEventIterator
- type MeasurementProtocolSecretIterator
- type PropertyIterator
- type RollupPropertySourceLinkIterator
- type SKAdNetworkConversionValueSchemaIterator
- func (it *SKAdNetworkConversionValueSchemaIterator) All() iter.Seq2[*adminpb.SKAdNetworkConversionValueSchema, error]
- func (it *SKAdNetworkConversionValueSchemaIterator) Next() (*adminpb.SKAdNetworkConversionValueSchema, error)
- func (it *SKAdNetworkConversionValueSchemaIterator) PageInfo() *iterator.PageInfo
- type SearchAds360LinkIterator
- type SubpropertyEventFilterIterator
Examples ¶
- AnalyticsAdminClient.AcknowledgeUserDataCollection
- AnalyticsAdminClient.ApproveDisplayVideo360AdvertiserLinkProposal
- AnalyticsAdminClient.ArchiveAudience
- AnalyticsAdminClient.ArchiveCustomDimension
- AnalyticsAdminClient.ArchiveCustomMetric
- AnalyticsAdminClient.BatchCreateAccessBindings
- AnalyticsAdminClient.BatchDeleteAccessBindings
- AnalyticsAdminClient.BatchGetAccessBindings
- AnalyticsAdminClient.BatchUpdateAccessBindings
- AnalyticsAdminClient.CancelDisplayVideo360AdvertiserLinkProposal
- AnalyticsAdminClient.CreateAccessBinding
- AnalyticsAdminClient.CreateAdSenseLink
- AnalyticsAdminClient.CreateAudience
- AnalyticsAdminClient.CreateBigQueryLink
- AnalyticsAdminClient.CreateCalculatedMetric
- AnalyticsAdminClient.CreateChannelGroup
- AnalyticsAdminClient.CreateConnectedSiteTag
- AnalyticsAdminClient.CreateConversionEvent
- AnalyticsAdminClient.CreateCustomDimension
- AnalyticsAdminClient.CreateCustomMetric
- AnalyticsAdminClient.CreateDataStream
- AnalyticsAdminClient.CreateDisplayVideo360AdvertiserLink
- AnalyticsAdminClient.CreateDisplayVideo360AdvertiserLinkProposal
- AnalyticsAdminClient.CreateEventCreateRule
- AnalyticsAdminClient.CreateEventEditRule
- AnalyticsAdminClient.CreateExpandedDataSet
- AnalyticsAdminClient.CreateFirebaseLink
- AnalyticsAdminClient.CreateGoogleAdsLink
- AnalyticsAdminClient.CreateKeyEvent
- AnalyticsAdminClient.CreateMeasurementProtocolSecret
- AnalyticsAdminClient.CreateProperty
- AnalyticsAdminClient.CreateRollupProperty
- AnalyticsAdminClient.CreateRollupPropertySourceLink
- AnalyticsAdminClient.CreateSKAdNetworkConversionValueSchema
- AnalyticsAdminClient.CreateSearchAds360Link
- AnalyticsAdminClient.CreateSubpropertyEventFilter
- AnalyticsAdminClient.DeleteAccessBinding
- AnalyticsAdminClient.DeleteAccount
- AnalyticsAdminClient.DeleteAdSenseLink
- AnalyticsAdminClient.DeleteBigQueryLink
- AnalyticsAdminClient.DeleteCalculatedMetric
- AnalyticsAdminClient.DeleteChannelGroup
- AnalyticsAdminClient.DeleteConnectedSiteTag
- AnalyticsAdminClient.DeleteConversionEvent
- AnalyticsAdminClient.DeleteDataStream
- AnalyticsAdminClient.DeleteDisplayVideo360AdvertiserLink
- AnalyticsAdminClient.DeleteDisplayVideo360AdvertiserLinkProposal
- AnalyticsAdminClient.DeleteEventCreateRule
- AnalyticsAdminClient.DeleteEventEditRule
- AnalyticsAdminClient.DeleteExpandedDataSet
- AnalyticsAdminClient.DeleteFirebaseLink
- AnalyticsAdminClient.DeleteGoogleAdsLink
- AnalyticsAdminClient.DeleteKeyEvent
- AnalyticsAdminClient.DeleteMeasurementProtocolSecret
- AnalyticsAdminClient.DeleteProperty
- AnalyticsAdminClient.DeleteRollupPropertySourceLink
- AnalyticsAdminClient.DeleteSKAdNetworkConversionValueSchema
- AnalyticsAdminClient.DeleteSearchAds360Link
- AnalyticsAdminClient.DeleteSubpropertyEventFilter
- AnalyticsAdminClient.FetchAutomatedGa4ConfigurationOptOut
- AnalyticsAdminClient.FetchConnectedGa4Property
- AnalyticsAdminClient.GetAccessBinding
- AnalyticsAdminClient.GetAccount
- AnalyticsAdminClient.GetAdSenseLink
- AnalyticsAdminClient.GetAttributionSettings
- AnalyticsAdminClient.GetAudience
- AnalyticsAdminClient.GetBigQueryLink
- AnalyticsAdminClient.GetCalculatedMetric
- AnalyticsAdminClient.GetChannelGroup
- AnalyticsAdminClient.GetConversionEvent
- AnalyticsAdminClient.GetCustomDimension
- AnalyticsAdminClient.GetCustomMetric
- AnalyticsAdminClient.GetDataRedactionSettings
- AnalyticsAdminClient.GetDataRetentionSettings
- AnalyticsAdminClient.GetDataSharingSettings
- AnalyticsAdminClient.GetDataStream
- AnalyticsAdminClient.GetDisplayVideo360AdvertiserLink
- AnalyticsAdminClient.GetDisplayVideo360AdvertiserLinkProposal
- AnalyticsAdminClient.GetEnhancedMeasurementSettings
- AnalyticsAdminClient.GetEventCreateRule
- AnalyticsAdminClient.GetEventEditRule
- AnalyticsAdminClient.GetExpandedDataSet
- AnalyticsAdminClient.GetGlobalSiteTag
- AnalyticsAdminClient.GetGoogleSignalsSettings
- AnalyticsAdminClient.GetKeyEvent
- AnalyticsAdminClient.GetMeasurementProtocolSecret
- AnalyticsAdminClient.GetProperty
- AnalyticsAdminClient.GetRollupPropertySourceLink
- AnalyticsAdminClient.GetSKAdNetworkConversionValueSchema
- AnalyticsAdminClient.GetSearchAds360Link
- AnalyticsAdminClient.GetSubpropertyEventFilter
- AnalyticsAdminClient.ListAccessBindings
- AnalyticsAdminClient.ListAccessBindings (All)
- AnalyticsAdminClient.ListAccountSummaries
- AnalyticsAdminClient.ListAccountSummaries (All)
- AnalyticsAdminClient.ListAccounts
- AnalyticsAdminClient.ListAccounts (All)
- AnalyticsAdminClient.ListAdSenseLinks
- AnalyticsAdminClient.ListAdSenseLinks (All)
- AnalyticsAdminClient.ListAudiences
- AnalyticsAdminClient.ListAudiences (All)
- AnalyticsAdminClient.ListBigQueryLinks
- AnalyticsAdminClient.ListBigQueryLinks (All)
- AnalyticsAdminClient.ListCalculatedMetrics
- AnalyticsAdminClient.ListCalculatedMetrics (All)
- AnalyticsAdminClient.ListChannelGroups
- AnalyticsAdminClient.ListChannelGroups (All)
- AnalyticsAdminClient.ListConnectedSiteTags
- AnalyticsAdminClient.ListConversionEvents
- AnalyticsAdminClient.ListConversionEvents (All)
- AnalyticsAdminClient.ListCustomDimensions
- AnalyticsAdminClient.ListCustomDimensions (All)
- AnalyticsAdminClient.ListCustomMetrics
- AnalyticsAdminClient.ListCustomMetrics (All)
- AnalyticsAdminClient.ListDataStreams
- AnalyticsAdminClient.ListDataStreams (All)
- AnalyticsAdminClient.ListDisplayVideo360AdvertiserLinkProposals
- AnalyticsAdminClient.ListDisplayVideo360AdvertiserLinkProposals (All)
- AnalyticsAdminClient.ListDisplayVideo360AdvertiserLinks
- AnalyticsAdminClient.ListDisplayVideo360AdvertiserLinks (All)
- AnalyticsAdminClient.ListEventCreateRules
- AnalyticsAdminClient.ListEventCreateRules (All)
- AnalyticsAdminClient.ListEventEditRules
- AnalyticsAdminClient.ListEventEditRules (All)
- AnalyticsAdminClient.ListExpandedDataSets
- AnalyticsAdminClient.ListExpandedDataSets (All)
- AnalyticsAdminClient.ListFirebaseLinks
- AnalyticsAdminClient.ListFirebaseLinks (All)
- AnalyticsAdminClient.ListGoogleAdsLinks
- AnalyticsAdminClient.ListGoogleAdsLinks (All)
- AnalyticsAdminClient.ListKeyEvents
- AnalyticsAdminClient.ListKeyEvents (All)
- AnalyticsAdminClient.ListMeasurementProtocolSecrets
- AnalyticsAdminClient.ListMeasurementProtocolSecrets (All)
- AnalyticsAdminClient.ListProperties
- AnalyticsAdminClient.ListProperties (All)
- AnalyticsAdminClient.ListRollupPropertySourceLinks
- AnalyticsAdminClient.ListRollupPropertySourceLinks (All)
- AnalyticsAdminClient.ListSKAdNetworkConversionValueSchemas
- AnalyticsAdminClient.ListSKAdNetworkConversionValueSchemas (All)
- AnalyticsAdminClient.ListSearchAds360Links
- AnalyticsAdminClient.ListSearchAds360Links (All)
- AnalyticsAdminClient.ListSubpropertyEventFilters
- AnalyticsAdminClient.ListSubpropertyEventFilters (All)
- AnalyticsAdminClient.ProvisionAccountTicket
- AnalyticsAdminClient.ProvisionSubproperty
- AnalyticsAdminClient.ReorderEventEditRules
- AnalyticsAdminClient.RunAccessReport
- AnalyticsAdminClient.SearchChangeHistoryEvents
- AnalyticsAdminClient.SearchChangeHistoryEvents (All)
- AnalyticsAdminClient.SetAutomatedGa4ConfigurationOptOut
- AnalyticsAdminClient.UpdateAccessBinding
- AnalyticsAdminClient.UpdateAccount
- AnalyticsAdminClient.UpdateAttributionSettings
- AnalyticsAdminClient.UpdateAudience
- AnalyticsAdminClient.UpdateBigQueryLink
- AnalyticsAdminClient.UpdateCalculatedMetric
- AnalyticsAdminClient.UpdateChannelGroup
- AnalyticsAdminClient.UpdateConversionEvent
- AnalyticsAdminClient.UpdateCustomDimension
- AnalyticsAdminClient.UpdateCustomMetric
- AnalyticsAdminClient.UpdateDataRedactionSettings
- AnalyticsAdminClient.UpdateDataRetentionSettings
- AnalyticsAdminClient.UpdateDataStream
- AnalyticsAdminClient.UpdateDisplayVideo360AdvertiserLink
- AnalyticsAdminClient.UpdateEnhancedMeasurementSettings
- AnalyticsAdminClient.UpdateEventCreateRule
- AnalyticsAdminClient.UpdateEventEditRule
- AnalyticsAdminClient.UpdateExpandedDataSet
- AnalyticsAdminClient.UpdateGoogleAdsLink
- AnalyticsAdminClient.UpdateGoogleSignalsSettings
- AnalyticsAdminClient.UpdateKeyEvent
- AnalyticsAdminClient.UpdateMeasurementProtocolSecret
- AnalyticsAdminClient.UpdateProperty
- AnalyticsAdminClient.UpdateSKAdNetworkConversionValueSchema
- AnalyticsAdminClient.UpdateSearchAds360Link
- AnalyticsAdminClient.UpdateSubpropertyEventFilter
- NewAnalyticsAdminClient
- NewAnalyticsAdminRESTClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAuthScopes ¶
func DefaultAuthScopes() []string
DefaultAuthScopes reports the default set of authentication scopes to use with this package.
Types ¶
type AccessBindingIterator ¶ added in v0.18.0
type AccessBindingIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.AccessBinding, nextPageToken string, err error) // contains filtered or unexported fields }
AccessBindingIterator manages a stream of *adminpb.AccessBinding.
func (*AccessBindingIterator) All ¶ added in v0.25.1
func (it *AccessBindingIterator) All() iter.Seq2[*adminpb.AccessBinding, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AccessBindingIterator) Next ¶ added in v0.18.0
func (it *AccessBindingIterator) Next() (*adminpb.AccessBinding, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*AccessBindingIterator) PageInfo ¶ added in v0.18.0
func (it *AccessBindingIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type AccountIterator ¶
type AccountIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.Account, nextPageToken string, err error) // contains filtered or unexported fields }
AccountIterator manages a stream of *adminpb.Account.
func (*AccountIterator) All ¶ added in v0.25.1
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AccountIterator) Next ¶
func (it *AccountIterator) Next() (*adminpb.Account, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*AccountIterator) PageInfo ¶
func (it *AccountIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type AccountSummaryIterator ¶
type AccountSummaryIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.AccountSummary, nextPageToken string, err error) // contains filtered or unexported fields }
AccountSummaryIterator manages a stream of *adminpb.AccountSummary.
func (*AccountSummaryIterator) All ¶ added in v0.25.1
func (it *AccountSummaryIterator) All() iter.Seq2[*adminpb.AccountSummary, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AccountSummaryIterator) Next ¶
func (it *AccountSummaryIterator) Next() (*adminpb.AccountSummary, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*AccountSummaryIterator) PageInfo ¶
func (it *AccountSummaryIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type AdSenseLinkIterator ¶ added in v0.20.0
type AdSenseLinkIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.AdSenseLink, nextPageToken string, err error) // contains filtered or unexported fields }
AdSenseLinkIterator manages a stream of *adminpb.AdSenseLink.
func (*AdSenseLinkIterator) All ¶ added in v0.25.1
func (it *AdSenseLinkIterator) All() iter.Seq2[*adminpb.AdSenseLink, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AdSenseLinkIterator) Next ¶ added in v0.20.0
func (it *AdSenseLinkIterator) Next() (*adminpb.AdSenseLink, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*AdSenseLinkIterator) PageInfo ¶ added in v0.20.0
func (it *AdSenseLinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type AnalyticsAdminCallOptions ¶
type AnalyticsAdminCallOptions struct { GetAccount []gax.CallOption ListAccounts []gax.CallOption DeleteAccount []gax.CallOption UpdateAccount []gax.CallOption ProvisionAccountTicket []gax.CallOption ListAccountSummaries []gax.CallOption GetProperty []gax.CallOption ListProperties []gax.CallOption CreateProperty []gax.CallOption DeleteProperty []gax.CallOption UpdateProperty []gax.CallOption CreateFirebaseLink []gax.CallOption DeleteFirebaseLink []gax.CallOption ListFirebaseLinks []gax.CallOption GetGlobalSiteTag []gax.CallOption CreateGoogleAdsLink []gax.CallOption UpdateGoogleAdsLink []gax.CallOption DeleteGoogleAdsLink []gax.CallOption ListGoogleAdsLinks []gax.CallOption GetDataSharingSettings []gax.CallOption GetMeasurementProtocolSecret []gax.CallOption ListMeasurementProtocolSecrets []gax.CallOption CreateMeasurementProtocolSecret []gax.CallOption DeleteMeasurementProtocolSecret []gax.CallOption UpdateMeasurementProtocolSecret []gax.CallOption AcknowledgeUserDataCollection []gax.CallOption GetSKAdNetworkConversionValueSchema []gax.CallOption CreateSKAdNetworkConversionValueSchema []gax.CallOption DeleteSKAdNetworkConversionValueSchema []gax.CallOption UpdateSKAdNetworkConversionValueSchema []gax.CallOption ListSKAdNetworkConversionValueSchemas []gax.CallOption SearchChangeHistoryEvents []gax.CallOption GetGoogleSignalsSettings []gax.CallOption UpdateGoogleSignalsSettings []gax.CallOption CreateConversionEvent []gax.CallOption UpdateConversionEvent []gax.CallOption GetConversionEvent []gax.CallOption DeleteConversionEvent []gax.CallOption ListConversionEvents []gax.CallOption CreateKeyEvent []gax.CallOption UpdateKeyEvent []gax.CallOption GetKeyEvent []gax.CallOption DeleteKeyEvent []gax.CallOption ListKeyEvents []gax.CallOption GetDisplayVideo360AdvertiserLink []gax.CallOption ListDisplayVideo360AdvertiserLinks []gax.CallOption CreateDisplayVideo360AdvertiserLink []gax.CallOption DeleteDisplayVideo360AdvertiserLink []gax.CallOption UpdateDisplayVideo360AdvertiserLink []gax.CallOption GetDisplayVideo360AdvertiserLinkProposal []gax.CallOption ListDisplayVideo360AdvertiserLinkProposals []gax.CallOption CreateDisplayVideo360AdvertiserLinkProposal []gax.CallOption DeleteDisplayVideo360AdvertiserLinkProposal []gax.CallOption ApproveDisplayVideo360AdvertiserLinkProposal []gax.CallOption CancelDisplayVideo360AdvertiserLinkProposal []gax.CallOption CreateCustomDimension []gax.CallOption UpdateCustomDimension []gax.CallOption ListCustomDimensions []gax.CallOption ArchiveCustomDimension []gax.CallOption GetCustomDimension []gax.CallOption CreateCustomMetric []gax.CallOption UpdateCustomMetric []gax.CallOption ListCustomMetrics []gax.CallOption ArchiveCustomMetric []gax.CallOption GetCustomMetric []gax.CallOption GetDataRetentionSettings []gax.CallOption UpdateDataRetentionSettings []gax.CallOption CreateDataStream []gax.CallOption DeleteDataStream []gax.CallOption UpdateDataStream []gax.CallOption ListDataStreams []gax.CallOption GetDataStream []gax.CallOption GetAudience []gax.CallOption ListAudiences []gax.CallOption CreateAudience []gax.CallOption UpdateAudience []gax.CallOption ArchiveAudience []gax.CallOption GetSearchAds360Link []gax.CallOption ListSearchAds360Links []gax.CallOption CreateSearchAds360Link []gax.CallOption DeleteSearchAds360Link []gax.CallOption UpdateSearchAds360Link []gax.CallOption GetAttributionSettings []gax.CallOption UpdateAttributionSettings []gax.CallOption RunAccessReport []gax.CallOption CreateAccessBinding []gax.CallOption GetAccessBinding []gax.CallOption UpdateAccessBinding []gax.CallOption DeleteAccessBinding []gax.CallOption ListAccessBindings []gax.CallOption BatchCreateAccessBindings []gax.CallOption BatchGetAccessBindings []gax.CallOption BatchUpdateAccessBindings []gax.CallOption BatchDeleteAccessBindings []gax.CallOption GetExpandedDataSet []gax.CallOption ListExpandedDataSets []gax.CallOption CreateExpandedDataSet []gax.CallOption UpdateExpandedDataSet []gax.CallOption DeleteExpandedDataSet []gax.CallOption GetChannelGroup []gax.CallOption ListChannelGroups []gax.CallOption CreateChannelGroup []gax.CallOption UpdateChannelGroup []gax.CallOption DeleteChannelGroup []gax.CallOption SetAutomatedGa4ConfigurationOptOut []gax.CallOption FetchAutomatedGa4ConfigurationOptOut []gax.CallOption CreateBigQueryLink []gax.CallOption GetBigQueryLink []gax.CallOption ListBigQueryLinks []gax.CallOption DeleteBigQueryLink []gax.CallOption UpdateBigQueryLink []gax.CallOption GetEnhancedMeasurementSettings []gax.CallOption UpdateEnhancedMeasurementSettings []gax.CallOption CreateConnectedSiteTag []gax.CallOption DeleteConnectedSiteTag []gax.CallOption ListConnectedSiteTags []gax.CallOption FetchConnectedGa4Property []gax.CallOption GetAdSenseLink []gax.CallOption CreateAdSenseLink []gax.CallOption DeleteAdSenseLink []gax.CallOption ListAdSenseLinks []gax.CallOption GetEventCreateRule []gax.CallOption ListEventCreateRules []gax.CallOption CreateEventCreateRule []gax.CallOption UpdateEventCreateRule []gax.CallOption DeleteEventCreateRule []gax.CallOption GetEventEditRule []gax.CallOption ListEventEditRules []gax.CallOption CreateEventEditRule []gax.CallOption UpdateEventEditRule []gax.CallOption DeleteEventEditRule []gax.CallOption ReorderEventEditRules []gax.CallOption UpdateDataRedactionSettings []gax.CallOption GetDataRedactionSettings []gax.CallOption GetCalculatedMetric []gax.CallOption CreateCalculatedMetric []gax.CallOption ListCalculatedMetrics []gax.CallOption UpdateCalculatedMetric []gax.CallOption DeleteCalculatedMetric []gax.CallOption CreateRollupProperty []gax.CallOption GetRollupPropertySourceLink []gax.CallOption ListRollupPropertySourceLinks []gax.CallOption CreateRollupPropertySourceLink []gax.CallOption DeleteRollupPropertySourceLink []gax.CallOption ProvisionSubproperty []gax.CallOption CreateSubpropertyEventFilter []gax.CallOption GetSubpropertyEventFilter []gax.CallOption ListSubpropertyEventFilters []gax.CallOption UpdateSubpropertyEventFilter []gax.CallOption DeleteSubpropertyEventFilter []gax.CallOption }
AnalyticsAdminCallOptions contains the retry settings for each method of AnalyticsAdminClient.
type AnalyticsAdminClient ¶
type AnalyticsAdminClient struct { // The call options for this service. CallOptions *AnalyticsAdminCallOptions // contains filtered or unexported fields }
AnalyticsAdminClient is a client for interacting with Google Analytics Admin API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Service Interface for the Analytics Admin API (GA4).
func NewAnalyticsAdminClient ¶
func NewAnalyticsAdminClient(ctx context.Context, opts ...option.ClientOption) (*AnalyticsAdminClient, error)
NewAnalyticsAdminClient creates a new analytics admin service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
Service Interface for the Analytics Admin API (GA4).
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() // TODO: Use client. _ = c }
Output:
func NewAnalyticsAdminRESTClient ¶ added in v0.8.0
func NewAnalyticsAdminRESTClient(ctx context.Context, opts ...option.ClientOption) (*AnalyticsAdminClient, error)
NewAnalyticsAdminRESTClient creates a new analytics admin service rest client.
Service Interface for the Analytics Admin API (GA4).
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminRESTClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() // TODO: Use client. _ = c }
Output:
func (*AnalyticsAdminClient) AcknowledgeUserDataCollection ¶ added in v0.3.0
func (c *AnalyticsAdminClient) AcknowledgeUserDataCollection(ctx context.Context, req *adminpb.AcknowledgeUserDataCollectionRequest, opts ...gax.CallOption) (*adminpb.AcknowledgeUserDataCollectionResponse, error)
AcknowledgeUserDataCollection acknowledges the terms of user data collection for the specified property.
This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.AcknowledgeUserDataCollectionRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#AcknowledgeUserDataCollectionRequest. } resp, err := c.AcknowledgeUserDataCollection(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) ApproveDisplayVideo360AdvertiserLinkProposal ¶ added in v0.2.0
func (c *AnalyticsAdminClient) ApproveDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.ApproveDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) (*adminpb.ApproveDisplayVideo360AdvertiserLinkProposalResponse, error)
ApproveDisplayVideo360AdvertiserLinkProposal approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal will be deleted and a new DisplayVideo360AdvertiserLink will be created.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ApproveDisplayVideo360AdvertiserLinkProposalRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ApproveDisplayVideo360AdvertiserLinkProposalRequest. } resp, err := c.ApproveDisplayVideo360AdvertiserLinkProposal(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) ArchiveAudience ¶ added in v0.9.0
func (c *AnalyticsAdminClient) ArchiveAudience(ctx context.Context, req *adminpb.ArchiveAudienceRequest, opts ...gax.CallOption) error
ArchiveAudience archives an Audience on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ArchiveAudienceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ArchiveAudienceRequest. } err = c.ArchiveAudience(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) ArchiveCustomDimension ¶
func (c *AnalyticsAdminClient) ArchiveCustomDimension(ctx context.Context, req *adminpb.ArchiveCustomDimensionRequest, opts ...gax.CallOption) error
ArchiveCustomDimension archives a CustomDimension on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ArchiveCustomDimensionRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ArchiveCustomDimensionRequest. } err = c.ArchiveCustomDimension(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) ArchiveCustomMetric ¶
func (c *AnalyticsAdminClient) ArchiveCustomMetric(ctx context.Context, req *adminpb.ArchiveCustomMetricRequest, opts ...gax.CallOption) error
ArchiveCustomMetric archives a CustomMetric on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ArchiveCustomMetricRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ArchiveCustomMetricRequest. } err = c.ArchiveCustomMetric(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) BatchCreateAccessBindings ¶ added in v0.18.0
func (c *AnalyticsAdminClient) BatchCreateAccessBindings(ctx context.Context, req *adminpb.BatchCreateAccessBindingsRequest, opts ...gax.CallOption) (*adminpb.BatchCreateAccessBindingsResponse, error)
BatchCreateAccessBindings creates information about multiple access bindings to an account or property.
This method is transactional. If any AccessBinding cannot be created, none of the AccessBindings will be created.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchCreateAccessBindingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#BatchCreateAccessBindingsRequest. } resp, err := c.BatchCreateAccessBindings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) BatchDeleteAccessBindings ¶ added in v0.18.0
func (c *AnalyticsAdminClient) BatchDeleteAccessBindings(ctx context.Context, req *adminpb.BatchDeleteAccessBindingsRequest, opts ...gax.CallOption) error
BatchDeleteAccessBindings deletes information about multiple users’ links to an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchDeleteAccessBindingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#BatchDeleteAccessBindingsRequest. } err = c.BatchDeleteAccessBindings(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) BatchGetAccessBindings ¶ added in v0.18.0
func (c *AnalyticsAdminClient) BatchGetAccessBindings(ctx context.Context, req *adminpb.BatchGetAccessBindingsRequest, opts ...gax.CallOption) (*adminpb.BatchGetAccessBindingsResponse, error)
BatchGetAccessBindings gets information about multiple access bindings to an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchGetAccessBindingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#BatchGetAccessBindingsRequest. } resp, err := c.BatchGetAccessBindings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) BatchUpdateAccessBindings ¶ added in v0.18.0
func (c *AnalyticsAdminClient) BatchUpdateAccessBindings(ctx context.Context, req *adminpb.BatchUpdateAccessBindingsRequest, opts ...gax.CallOption) (*adminpb.BatchUpdateAccessBindingsResponse, error)
BatchUpdateAccessBindings updates information about multiple access bindings to an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchUpdateAccessBindingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#BatchUpdateAccessBindingsRequest. } resp, err := c.BatchUpdateAccessBindings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CancelDisplayVideo360AdvertiserLinkProposal ¶ added in v0.2.0
func (c *AnalyticsAdminClient) CancelDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.CancelDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
CancelDisplayVideo360AdvertiserLinkProposal cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either:
Declining a proposal initiated from Display & Video 360 Withdrawing a proposal initiated from Google Analytics After being cancelled, a proposal will eventually be deleted automatically.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CancelDisplayVideo360AdvertiserLinkProposalRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CancelDisplayVideo360AdvertiserLinkProposalRequest. } resp, err := c.CancelDisplayVideo360AdvertiserLinkProposal(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) Close ¶
func (c *AnalyticsAdminClient) Close() error
Close closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*AnalyticsAdminClient) Connection
deprecated
func (c *AnalyticsAdminClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*AnalyticsAdminClient) CreateAccessBinding ¶ added in v0.18.0
func (c *AnalyticsAdminClient) CreateAccessBinding(ctx context.Context, req *adminpb.CreateAccessBindingRequest, opts ...gax.CallOption) (*adminpb.AccessBinding, error)
CreateAccessBinding creates an access binding on an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateAccessBindingRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateAccessBindingRequest. } resp, err := c.CreateAccessBinding(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateAdSenseLink ¶ added in v0.20.0
func (c *AnalyticsAdminClient) CreateAdSenseLink(ctx context.Context, req *adminpb.CreateAdSenseLinkRequest, opts ...gax.CallOption) (*adminpb.AdSenseLink, error)
CreateAdSenseLink creates an AdSenseLink.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateAdSenseLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateAdSenseLinkRequest. } resp, err := c.CreateAdSenseLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateAudience ¶ added in v0.9.0
func (c *AnalyticsAdminClient) CreateAudience(ctx context.Context, req *adminpb.CreateAudienceRequest, opts ...gax.CallOption) (*adminpb.Audience, error)
CreateAudience creates an Audience.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateAudienceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateAudienceRequest. } resp, err := c.CreateAudience(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateBigQueryLink ¶ added in v0.24.0
func (c *AnalyticsAdminClient) CreateBigQueryLink(ctx context.Context, req *adminpb.CreateBigQueryLinkRequest, opts ...gax.CallOption) (*adminpb.BigQueryLink, error)
CreateBigQueryLink creates a BigQueryLink.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateBigQueryLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateBigQueryLinkRequest. } resp, err := c.CreateBigQueryLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateCalculatedMetric ¶ added in v0.23.0
func (c *AnalyticsAdminClient) CreateCalculatedMetric(ctx context.Context, req *adminpb.CreateCalculatedMetricRequest, opts ...gax.CallOption) (*adminpb.CalculatedMetric, error)
CreateCalculatedMetric creates a CalculatedMetric.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateCalculatedMetricRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateCalculatedMetricRequest. } resp, err := c.CreateCalculatedMetric(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateChannelGroup ¶ added in v0.19.1
func (c *AnalyticsAdminClient) CreateChannelGroup(ctx context.Context, req *adminpb.CreateChannelGroupRequest, opts ...gax.CallOption) (*adminpb.ChannelGroup, error)
CreateChannelGroup creates a ChannelGroup.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateChannelGroupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateChannelGroupRequest. } resp, err := c.CreateChannelGroup(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateConnectedSiteTag ¶ added in v0.19.0
func (c *AnalyticsAdminClient) CreateConnectedSiteTag(ctx context.Context, req *adminpb.CreateConnectedSiteTagRequest, opts ...gax.CallOption) (*adminpb.CreateConnectedSiteTagResponse, error)
CreateConnectedSiteTag creates a connected site tag for a Universal Analytics property. You can create a maximum of 20 connected site tags per property. Note: This API cannot be used on GA4 properties.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateConnectedSiteTagRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateConnectedSiteTagRequest. } resp, err := c.CreateConnectedSiteTag(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateConversionEvent
deprecated
func (c *AnalyticsAdminClient) CreateConversionEvent(ctx context.Context, req *adminpb.CreateConversionEventRequest, opts ...gax.CallOption) (*adminpb.ConversionEvent, error)
CreateConversionEvent deprecated: Use CreateKeyEvent instead. Creates a conversion event with the specified attributes.
Deprecated: CreateConversionEvent may be removed in a future version.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateConversionEventRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateConversionEventRequest. } resp, err := c.CreateConversionEvent(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateCustomDimension ¶
func (c *AnalyticsAdminClient) CreateCustomDimension(ctx context.Context, req *adminpb.CreateCustomDimensionRequest, opts ...gax.CallOption) (*adminpb.CustomDimension, error)
CreateCustomDimension creates a CustomDimension.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateCustomDimensionRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateCustomDimensionRequest. } resp, err := c.CreateCustomDimension(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateCustomMetric ¶
func (c *AnalyticsAdminClient) CreateCustomMetric(ctx context.Context, req *adminpb.CreateCustomMetricRequest, opts ...gax.CallOption) (*adminpb.CustomMetric, error)
CreateCustomMetric creates a CustomMetric.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateCustomMetricRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateCustomMetricRequest. } resp, err := c.CreateCustomMetric(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateDataStream ¶ added in v0.3.0
func (c *AnalyticsAdminClient) CreateDataStream(ctx context.Context, req *adminpb.CreateDataStreamRequest, opts ...gax.CallOption) (*adminpb.DataStream, error)
CreateDataStream creates a DataStream.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateDataStreamRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateDataStreamRequest. } resp, err := c.CreateDataStream(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLink ¶ added in v0.2.0
func (c *AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.CreateDisplayVideo360AdvertiserLinkRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLink, error)
CreateDisplayVideo360AdvertiserLink creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper authorization both on the Google Analytics property and on the Display & Video 360 advertiser. Users who do not have access to the Display & Video 360 advertiser should instead seek to create a DisplayVideo360LinkProposal.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateDisplayVideo360AdvertiserLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateDisplayVideo360AdvertiserLinkRequest. } resp, err := c.CreateDisplayVideo360AdvertiserLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLinkProposal ¶ added in v0.2.0
func (c *AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.CreateDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
CreateDisplayVideo360AdvertiserLinkProposal creates a DisplayVideo360AdvertiserLinkProposal.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateDisplayVideo360AdvertiserLinkProposalRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateDisplayVideo360AdvertiserLinkProposalRequest. } resp, err := c.CreateDisplayVideo360AdvertiserLinkProposal(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateEventCreateRule ¶ added in v0.20.0
func (c *AnalyticsAdminClient) CreateEventCreateRule(ctx context.Context, req *adminpb.CreateEventCreateRuleRequest, opts ...gax.CallOption) (*adminpb.EventCreateRule, error)
CreateEventCreateRule creates an EventCreateRule.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateEventCreateRuleRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateEventCreateRuleRequest. } resp, err := c.CreateEventCreateRule(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateEventEditRule ¶ added in v0.24.0
func (c *AnalyticsAdminClient) CreateEventEditRule(ctx context.Context, req *adminpb.CreateEventEditRuleRequest, opts ...gax.CallOption) (*adminpb.EventEditRule, error)
CreateEventEditRule creates an EventEditRule.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateEventEditRuleRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateEventEditRuleRequest. } resp, err := c.CreateEventEditRule(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateExpandedDataSet ¶ added in v0.18.0
func (c *AnalyticsAdminClient) CreateExpandedDataSet(ctx context.Context, req *adminpb.CreateExpandedDataSetRequest, opts ...gax.CallOption) (*adminpb.ExpandedDataSet, error)
CreateExpandedDataSet creates a ExpandedDataSet.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateExpandedDataSetRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateExpandedDataSetRequest. } resp, err := c.CreateExpandedDataSet(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateFirebaseLink ¶
func (c *AnalyticsAdminClient) CreateFirebaseLink(ctx context.Context, req *adminpb.CreateFirebaseLinkRequest, opts ...gax.CallOption) (*adminpb.FirebaseLink, error)
CreateFirebaseLink creates a FirebaseLink.
Properties can have at most one FirebaseLink.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateFirebaseLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateFirebaseLinkRequest. } resp, err := c.CreateFirebaseLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateGoogleAdsLink ¶
func (c *AnalyticsAdminClient) CreateGoogleAdsLink(ctx context.Context, req *adminpb.CreateGoogleAdsLinkRequest, opts ...gax.CallOption) (*adminpb.GoogleAdsLink, error)
CreateGoogleAdsLink creates a GoogleAdsLink.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateGoogleAdsLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateGoogleAdsLinkRequest. } resp, err := c.CreateGoogleAdsLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateKeyEvent ¶ added in v0.24.0
func (c *AnalyticsAdminClient) CreateKeyEvent(ctx context.Context, req *adminpb.CreateKeyEventRequest, opts ...gax.CallOption) (*adminpb.KeyEvent, error)
CreateKeyEvent creates a Key Event.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateKeyEventRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateKeyEventRequest. } resp, err := c.CreateKeyEvent(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateMeasurementProtocolSecret ¶
func (c *AnalyticsAdminClient) CreateMeasurementProtocolSecret(ctx context.Context, req *adminpb.CreateMeasurementProtocolSecretRequest, opts ...gax.CallOption) (*adminpb.MeasurementProtocolSecret, error)
CreateMeasurementProtocolSecret creates a measurement protocol secret.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateMeasurementProtocolSecretRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateMeasurementProtocolSecretRequest. } resp, err := c.CreateMeasurementProtocolSecret(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateProperty ¶
func (c *AnalyticsAdminClient) CreateProperty(ctx context.Context, req *adminpb.CreatePropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
CreateProperty creates an “GA4” property with the specified location and attributes.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreatePropertyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreatePropertyRequest. } resp, err := c.CreateProperty(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateRollupProperty ¶ added in v0.21.6
func (c *AnalyticsAdminClient) CreateRollupProperty(ctx context.Context, req *adminpb.CreateRollupPropertyRequest, opts ...gax.CallOption) (*adminpb.CreateRollupPropertyResponse, error)
CreateRollupProperty create a roll-up property and all roll-up property source links.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateRollupPropertyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateRollupPropertyRequest. } resp, err := c.CreateRollupProperty(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateRollupPropertySourceLink ¶ added in v0.21.6
func (c *AnalyticsAdminClient) CreateRollupPropertySourceLink(ctx context.Context, req *adminpb.CreateRollupPropertySourceLinkRequest, opts ...gax.CallOption) (*adminpb.RollupPropertySourceLink, error)
CreateRollupPropertySourceLink creates a roll-up property source link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateRollupPropertySourceLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateRollupPropertySourceLinkRequest. } resp, err := c.CreateRollupPropertySourceLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateSKAdNetworkConversionValueSchema ¶ added in v0.21.4
func (c *AnalyticsAdminClient) CreateSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.CreateSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) (*adminpb.SKAdNetworkConversionValueSchema, error)
CreateSKAdNetworkConversionValueSchema creates a SKAdNetworkConversionValueSchema.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateSKAdNetworkConversionValueSchemaRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateSKAdNetworkConversionValueSchemaRequest. } resp, err := c.CreateSKAdNetworkConversionValueSchema(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateSearchAds360Link ¶ added in v0.17.0
func (c *AnalyticsAdminClient) CreateSearchAds360Link(ctx context.Context, req *adminpb.CreateSearchAds360LinkRequest, opts ...gax.CallOption) (*adminpb.SearchAds360Link, error)
CreateSearchAds360Link creates a SearchAds360Link.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateSearchAds360LinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateSearchAds360LinkRequest. } resp, err := c.CreateSearchAds360Link(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateSubpropertyEventFilter ¶ added in v0.21.6
func (c *AnalyticsAdminClient) CreateSubpropertyEventFilter(ctx context.Context, req *adminpb.CreateSubpropertyEventFilterRequest, opts ...gax.CallOption) (*adminpb.SubpropertyEventFilter, error)
CreateSubpropertyEventFilter creates a subproperty Event Filter.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateSubpropertyEventFilterRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateSubpropertyEventFilterRequest. } resp, err := c.CreateSubpropertyEventFilter(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) DeleteAccessBinding ¶ added in v0.18.0
func (c *AnalyticsAdminClient) DeleteAccessBinding(ctx context.Context, req *adminpb.DeleteAccessBindingRequest, opts ...gax.CallOption) error
DeleteAccessBinding deletes an access binding on an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteAccessBindingRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteAccessBindingRequest. } err = c.DeleteAccessBinding(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteAccount ¶
func (c *AnalyticsAdminClient) DeleteAccount(ctx context.Context, req *adminpb.DeleteAccountRequest, opts ...gax.CallOption) error
DeleteAccount marks target Account as soft-deleted (ie: “trashed”) and returns it.
This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI.
If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 (at https://support.google.com/analytics/answer/6154772)
Returns an error if the target is not found.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteAccountRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteAccountRequest. } err = c.DeleteAccount(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteAdSenseLink ¶ added in v0.20.0
func (c *AnalyticsAdminClient) DeleteAdSenseLink(ctx context.Context, req *adminpb.DeleteAdSenseLinkRequest, opts ...gax.CallOption) error
DeleteAdSenseLink deletes an AdSenseLink.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteAdSenseLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteAdSenseLinkRequest. } err = c.DeleteAdSenseLink(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteBigQueryLink ¶ added in v0.24.0
func (c *AnalyticsAdminClient) DeleteBigQueryLink(ctx context.Context, req *adminpb.DeleteBigQueryLinkRequest, opts ...gax.CallOption) error
DeleteBigQueryLink deletes a BigQueryLink on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteBigQueryLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteBigQueryLinkRequest. } err = c.DeleteBigQueryLink(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteCalculatedMetric ¶ added in v0.23.0
func (c *AnalyticsAdminClient) DeleteCalculatedMetric(ctx context.Context, req *adminpb.DeleteCalculatedMetricRequest, opts ...gax.CallOption) error
DeleteCalculatedMetric deletes a CalculatedMetric on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteCalculatedMetricRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteCalculatedMetricRequest. } err = c.DeleteCalculatedMetric(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteChannelGroup ¶ added in v0.19.1
func (c *AnalyticsAdminClient) DeleteChannelGroup(ctx context.Context, req *adminpb.DeleteChannelGroupRequest, opts ...gax.CallOption) error
DeleteChannelGroup deletes a ChannelGroup on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteChannelGroupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteChannelGroupRequest. } err = c.DeleteChannelGroup(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteConnectedSiteTag ¶ added in v0.19.0
func (c *AnalyticsAdminClient) DeleteConnectedSiteTag(ctx context.Context, req *adminpb.DeleteConnectedSiteTagRequest, opts ...gax.CallOption) error
DeleteConnectedSiteTag deletes a connected site tag for a Universal Analytics property. Note: this has no effect on GA4 properties.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteConnectedSiteTagRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteConnectedSiteTagRequest. } err = c.DeleteConnectedSiteTag(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteConversionEvent
deprecated
func (c *AnalyticsAdminClient) DeleteConversionEvent(ctx context.Context, req *adminpb.DeleteConversionEventRequest, opts ...gax.CallOption) error
DeleteConversionEvent deprecated: Use DeleteKeyEvent instead. Deletes a conversion event in a property.
Deprecated: DeleteConversionEvent may be removed in a future version.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteConversionEventRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteConversionEventRequest. } err = c.DeleteConversionEvent(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteDataStream ¶ added in v0.3.0
func (c *AnalyticsAdminClient) DeleteDataStream(ctx context.Context, req *adminpb.DeleteDataStreamRequest, opts ...gax.CallOption) error
DeleteDataStream deletes a DataStream on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteDataStreamRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteDataStreamRequest. } err = c.DeleteDataStream(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLink ¶ added in v0.2.0
func (c *AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.DeleteDisplayVideo360AdvertiserLinkRequest, opts ...gax.CallOption) error
DeleteDisplayVideo360AdvertiserLink deletes a DisplayVideo360AdvertiserLink on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteDisplayVideo360AdvertiserLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteDisplayVideo360AdvertiserLinkRequest. } err = c.DeleteDisplayVideo360AdvertiserLink(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLinkProposal ¶ added in v0.2.0
func (c *AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.DeleteDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) error
DeleteDisplayVideo360AdvertiserLinkProposal deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on cancelled proposals.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteDisplayVideo360AdvertiserLinkProposalRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteDisplayVideo360AdvertiserLinkProposalRequest. } err = c.DeleteDisplayVideo360AdvertiserLinkProposal(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteEventCreateRule ¶ added in v0.20.0
func (c *AnalyticsAdminClient) DeleteEventCreateRule(ctx context.Context, req *adminpb.DeleteEventCreateRuleRequest, opts ...gax.CallOption) error
DeleteEventCreateRule deletes an EventCreateRule.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteEventCreateRuleRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteEventCreateRuleRequest. } err = c.DeleteEventCreateRule(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteEventEditRule ¶ added in v0.24.0
func (c *AnalyticsAdminClient) DeleteEventEditRule(ctx context.Context, req *adminpb.DeleteEventEditRuleRequest, opts ...gax.CallOption) error
DeleteEventEditRule deletes an EventEditRule.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteEventEditRuleRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteEventEditRuleRequest. } err = c.DeleteEventEditRule(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteExpandedDataSet ¶ added in v0.18.0
func (c *AnalyticsAdminClient) DeleteExpandedDataSet(ctx context.Context, req *adminpb.DeleteExpandedDataSetRequest, opts ...gax.CallOption) error
DeleteExpandedDataSet deletes a ExpandedDataSet on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteExpandedDataSetRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteExpandedDataSetRequest. } err = c.DeleteExpandedDataSet(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteFirebaseLink ¶
func (c *AnalyticsAdminClient) DeleteFirebaseLink(ctx context.Context, req *adminpb.DeleteFirebaseLinkRequest, opts ...gax.CallOption) error
DeleteFirebaseLink deletes a FirebaseLink on a property
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteFirebaseLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteFirebaseLinkRequest. } err = c.DeleteFirebaseLink(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteGoogleAdsLink ¶
func (c *AnalyticsAdminClient) DeleteGoogleAdsLink(ctx context.Context, req *adminpb.DeleteGoogleAdsLinkRequest, opts ...gax.CallOption) error
DeleteGoogleAdsLink deletes a GoogleAdsLink on a property
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteGoogleAdsLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteGoogleAdsLinkRequest. } err = c.DeleteGoogleAdsLink(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteKeyEvent ¶ added in v0.24.0
func (c *AnalyticsAdminClient) DeleteKeyEvent(ctx context.Context, req *adminpb.DeleteKeyEventRequest, opts ...gax.CallOption) error
DeleteKeyEvent deletes a Key Event.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteKeyEventRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteKeyEventRequest. } err = c.DeleteKeyEvent(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteMeasurementProtocolSecret ¶
func (c *AnalyticsAdminClient) DeleteMeasurementProtocolSecret(ctx context.Context, req *adminpb.DeleteMeasurementProtocolSecretRequest, opts ...gax.CallOption) error
DeleteMeasurementProtocolSecret deletes target MeasurementProtocolSecret.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteMeasurementProtocolSecretRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteMeasurementProtocolSecretRequest. } err = c.DeleteMeasurementProtocolSecret(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteProperty ¶
func (c *AnalyticsAdminClient) DeleteProperty(ctx context.Context, req *adminpb.DeletePropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
DeleteProperty marks target Property as soft-deleted (ie: “trashed”) and returns it.
This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI.
If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 (at https://support.google.com/analytics/answer/6154772)
Returns an error if the target is not found, or is not a GA4 Property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeletePropertyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeletePropertyRequest. } resp, err := c.DeleteProperty(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) DeleteRollupPropertySourceLink ¶ added in v0.21.6
func (c *AnalyticsAdminClient) DeleteRollupPropertySourceLink(ctx context.Context, req *adminpb.DeleteRollupPropertySourceLinkRequest, opts ...gax.CallOption) error
DeleteRollupPropertySourceLink deletes a roll-up property source link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteRollupPropertySourceLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteRollupPropertySourceLinkRequest. } err = c.DeleteRollupPropertySourceLink(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteSKAdNetworkConversionValueSchema ¶ added in v0.21.4
func (c *AnalyticsAdminClient) DeleteSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.DeleteSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) error
DeleteSKAdNetworkConversionValueSchema deletes target SKAdNetworkConversionValueSchema.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteSKAdNetworkConversionValueSchemaRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteSKAdNetworkConversionValueSchemaRequest. } err = c.DeleteSKAdNetworkConversionValueSchema(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteSearchAds360Link ¶ added in v0.17.0
func (c *AnalyticsAdminClient) DeleteSearchAds360Link(ctx context.Context, req *adminpb.DeleteSearchAds360LinkRequest, opts ...gax.CallOption) error
DeleteSearchAds360Link deletes a SearchAds360Link on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteSearchAds360LinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteSearchAds360LinkRequest. } err = c.DeleteSearchAds360Link(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteSubpropertyEventFilter ¶ added in v0.21.6
func (c *AnalyticsAdminClient) DeleteSubpropertyEventFilter(ctx context.Context, req *adminpb.DeleteSubpropertyEventFilterRequest, opts ...gax.CallOption) error
DeleteSubpropertyEventFilter deletes a subproperty event filter.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteSubpropertyEventFilterRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteSubpropertyEventFilterRequest. } err = c.DeleteSubpropertyEventFilter(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) FetchAutomatedGa4ConfigurationOptOut ¶ added in v0.17.0
func (c *AnalyticsAdminClient) FetchAutomatedGa4ConfigurationOptOut(ctx context.Context, req *adminpb.FetchAutomatedGa4ConfigurationOptOutRequest, opts ...gax.CallOption) (*adminpb.FetchAutomatedGa4ConfigurationOptOutResponse, error)
FetchAutomatedGa4ConfigurationOptOut fetches the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.FetchAutomatedGa4ConfigurationOptOutRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#FetchAutomatedGa4ConfigurationOptOutRequest. } resp, err := c.FetchAutomatedGa4ConfigurationOptOut(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) FetchConnectedGa4Property ¶ added in v0.19.1
func (c *AnalyticsAdminClient) FetchConnectedGa4Property(ctx context.Context, req *adminpb.FetchConnectedGa4PropertyRequest, opts ...gax.CallOption) (*adminpb.FetchConnectedGa4PropertyResponse, error)
FetchConnectedGa4Property given a specified UA property, looks up the GA4 property connected to it. Note: this cannot be used with GA4 properties.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.FetchConnectedGa4PropertyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#FetchConnectedGa4PropertyRequest. } resp, err := c.FetchConnectedGa4Property(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetAccessBinding ¶ added in v0.18.0
func (c *AnalyticsAdminClient) GetAccessBinding(ctx context.Context, req *adminpb.GetAccessBindingRequest, opts ...gax.CallOption) (*adminpb.AccessBinding, error)
GetAccessBinding gets information about an access binding.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetAccessBindingRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetAccessBindingRequest. } resp, err := c.GetAccessBinding(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetAccount ¶
func (c *AnalyticsAdminClient) GetAccount(ctx context.Context, req *adminpb.GetAccountRequest, opts ...gax.CallOption) (*adminpb.Account, error)
GetAccount lookup for a single Account.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetAccountRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetAccountRequest. } resp, err := c.GetAccount(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetAdSenseLink ¶ added in v0.20.0
func (c *AnalyticsAdminClient) GetAdSenseLink(ctx context.Context, req *adminpb.GetAdSenseLinkRequest, opts ...gax.CallOption) (*adminpb.AdSenseLink, error)
GetAdSenseLink looks up a single AdSenseLink.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetAdSenseLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetAdSenseLinkRequest. } resp, err := c.GetAdSenseLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetAttributionSettings ¶ added in v0.9.0
func (c *AnalyticsAdminClient) GetAttributionSettings(ctx context.Context, req *adminpb.GetAttributionSettingsRequest, opts ...gax.CallOption) (*adminpb.AttributionSettings, error)
GetAttributionSettings lookup for a AttributionSettings singleton.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetAttributionSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetAttributionSettingsRequest. } resp, err := c.GetAttributionSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetAudience ¶ added in v0.9.0
func (c *AnalyticsAdminClient) GetAudience(ctx context.Context, req *adminpb.GetAudienceRequest, opts ...gax.CallOption) (*adminpb.Audience, error)
GetAudience lookup for a single Audience. Audiences created before 2020 may not be supported. Default audiences will not show filter definitions.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetAudienceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetAudienceRequest. } resp, err := c.GetAudience(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetBigQueryLink ¶ added in v0.17.0
func (c *AnalyticsAdminClient) GetBigQueryLink(ctx context.Context, req *adminpb.GetBigQueryLinkRequest, opts ...gax.CallOption) (*adminpb.BigQueryLink, error)
GetBigQueryLink lookup for a single BigQuery Link.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetBigQueryLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetBigQueryLinkRequest. } resp, err := c.GetBigQueryLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetCalculatedMetric ¶ added in v0.23.0
func (c *AnalyticsAdminClient) GetCalculatedMetric(ctx context.Context, req *adminpb.GetCalculatedMetricRequest, opts ...gax.CallOption) (*adminpb.CalculatedMetric, error)
GetCalculatedMetric lookup for a single CalculatedMetric.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetCalculatedMetricRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetCalculatedMetricRequest. } resp, err := c.GetCalculatedMetric(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetChannelGroup ¶ added in v0.19.1
func (c *AnalyticsAdminClient) GetChannelGroup(ctx context.Context, req *adminpb.GetChannelGroupRequest, opts ...gax.CallOption) (*adminpb.ChannelGroup, error)
GetChannelGroup lookup for a single ChannelGroup.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetChannelGroupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetChannelGroupRequest. } resp, err := c.GetChannelGroup(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetConversionEvent
deprecated
func (c *AnalyticsAdminClient) GetConversionEvent(ctx context.Context, req *adminpb.GetConversionEventRequest, opts ...gax.CallOption) (*adminpb.ConversionEvent, error)
GetConversionEvent deprecated: Use GetKeyEvent instead. Retrieve a single conversion event.
Deprecated: GetConversionEvent may be removed in a future version.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetConversionEventRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetConversionEventRequest. } resp, err := c.GetConversionEvent(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetCustomDimension ¶
func (c *AnalyticsAdminClient) GetCustomDimension(ctx context.Context, req *adminpb.GetCustomDimensionRequest, opts ...gax.CallOption) (*adminpb.CustomDimension, error)
GetCustomDimension lookup for a single CustomDimension.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetCustomDimensionRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetCustomDimensionRequest. } resp, err := c.GetCustomDimension(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetCustomMetric ¶
func (c *AnalyticsAdminClient) GetCustomMetric(ctx context.Context, req *adminpb.GetCustomMetricRequest, opts ...gax.CallOption) (*adminpb.CustomMetric, error)
GetCustomMetric lookup for a single CustomMetric.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetCustomMetricRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetCustomMetricRequest. } resp, err := c.GetCustomMetric(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetDataRedactionSettings ¶ added in v0.21.6
func (c *AnalyticsAdminClient) GetDataRedactionSettings(ctx context.Context, req *adminpb.GetDataRedactionSettingsRequest, opts ...gax.CallOption) (*adminpb.DataRedactionSettings, error)
GetDataRedactionSettings lookup for a single DataRedactionSettings.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetDataRedactionSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetDataRedactionSettingsRequest. } resp, err := c.GetDataRedactionSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetDataRetentionSettings ¶ added in v0.2.0
func (c *AnalyticsAdminClient) GetDataRetentionSettings(ctx context.Context, req *adminpb.GetDataRetentionSettingsRequest, opts ...gax.CallOption) (*adminpb.DataRetentionSettings, error)
GetDataRetentionSettings returns the singleton data retention settings for this property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetDataRetentionSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetDataRetentionSettingsRequest. } resp, err := c.GetDataRetentionSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetDataSharingSettings ¶
func (c *AnalyticsAdminClient) GetDataSharingSettings(ctx context.Context, req *adminpb.GetDataSharingSettingsRequest, opts ...gax.CallOption) (*adminpb.DataSharingSettings, error)
GetDataSharingSettings get data sharing settings on an account. Data sharing settings are singletons.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetDataSharingSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetDataSharingSettingsRequest. } resp, err := c.GetDataSharingSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetDataStream ¶ added in v0.3.0
func (c *AnalyticsAdminClient) GetDataStream(ctx context.Context, req *adminpb.GetDataStreamRequest, opts ...gax.CallOption) (*adminpb.DataStream, error)
GetDataStream lookup for a single DataStream.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetDataStreamRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetDataStreamRequest. } resp, err := c.GetDataStream(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetDisplayVideo360AdvertiserLink ¶ added in v0.2.0
func (c *AnalyticsAdminClient) GetDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.GetDisplayVideo360AdvertiserLinkRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLink, error)
GetDisplayVideo360AdvertiserLink look up a single DisplayVideo360AdvertiserLink
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetDisplayVideo360AdvertiserLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetDisplayVideo360AdvertiserLinkRequest. } resp, err := c.GetDisplayVideo360AdvertiserLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetDisplayVideo360AdvertiserLinkProposal ¶ added in v0.2.0
func (c *AnalyticsAdminClient) GetDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.GetDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
GetDisplayVideo360AdvertiserLinkProposal lookup for a single DisplayVideo360AdvertiserLinkProposal.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetDisplayVideo360AdvertiserLinkProposalRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetDisplayVideo360AdvertiserLinkProposalRequest. } resp, err := c.GetDisplayVideo360AdvertiserLinkProposal(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetEnhancedMeasurementSettings ¶
func (c *AnalyticsAdminClient) GetEnhancedMeasurementSettings(ctx context.Context, req *adminpb.GetEnhancedMeasurementSettingsRequest, opts ...gax.CallOption) (*adminpb.EnhancedMeasurementSettings, error)
GetEnhancedMeasurementSettings returns the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetEnhancedMeasurementSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetEnhancedMeasurementSettingsRequest. } resp, err := c.GetEnhancedMeasurementSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetEventCreateRule ¶ added in v0.20.0
func (c *AnalyticsAdminClient) GetEventCreateRule(ctx context.Context, req *adminpb.GetEventCreateRuleRequest, opts ...gax.CallOption) (*adminpb.EventCreateRule, error)
GetEventCreateRule lookup for a single EventCreateRule.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetEventCreateRuleRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetEventCreateRuleRequest. } resp, err := c.GetEventCreateRule(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetEventEditRule ¶ added in v0.24.0
func (c *AnalyticsAdminClient) GetEventEditRule(ctx context.Context, req *adminpb.GetEventEditRuleRequest, opts ...gax.CallOption) (*adminpb.EventEditRule, error)
GetEventEditRule lookup for a single EventEditRule.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetEventEditRuleRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetEventEditRuleRequest. } resp, err := c.GetEventEditRule(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetExpandedDataSet ¶ added in v0.18.0
func (c *AnalyticsAdminClient) GetExpandedDataSet(ctx context.Context, req *adminpb.GetExpandedDataSetRequest, opts ...gax.CallOption) (*adminpb.ExpandedDataSet, error)
GetExpandedDataSet lookup for a single ExpandedDataSet.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetExpandedDataSetRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetExpandedDataSetRequest. } resp, err := c.GetExpandedDataSet(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetGlobalSiteTag ¶
func (c *AnalyticsAdminClient) GetGlobalSiteTag(ctx context.Context, req *adminpb.GetGlobalSiteTagRequest, opts ...gax.CallOption) (*adminpb.GlobalSiteTag, error)
GetGlobalSiteTag returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetGlobalSiteTagRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetGlobalSiteTagRequest. } resp, err := c.GetGlobalSiteTag(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetGoogleSignalsSettings ¶
func (c *AnalyticsAdminClient) GetGoogleSignalsSettings(ctx context.Context, req *adminpb.GetGoogleSignalsSettingsRequest, opts ...gax.CallOption) (*adminpb.GoogleSignalsSettings, error)
GetGoogleSignalsSettings lookup for Google Signals settings for a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetGoogleSignalsSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetGoogleSignalsSettingsRequest. } resp, err := c.GetGoogleSignalsSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetKeyEvent ¶ added in v0.24.0
func (c *AnalyticsAdminClient) GetKeyEvent(ctx context.Context, req *adminpb.GetKeyEventRequest, opts ...gax.CallOption) (*adminpb.KeyEvent, error)
GetKeyEvent retrieve a single Key Event.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetKeyEventRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetKeyEventRequest. } resp, err := c.GetKeyEvent(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetMeasurementProtocolSecret ¶
func (c *AnalyticsAdminClient) GetMeasurementProtocolSecret(ctx context.Context, req *adminpb.GetMeasurementProtocolSecretRequest, opts ...gax.CallOption) (*adminpb.MeasurementProtocolSecret, error)
GetMeasurementProtocolSecret lookup for a single “GA4” MeasurementProtocolSecret.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetMeasurementProtocolSecretRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetMeasurementProtocolSecretRequest. } resp, err := c.GetMeasurementProtocolSecret(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetProperty ¶
func (c *AnalyticsAdminClient) GetProperty(ctx context.Context, req *adminpb.GetPropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
GetProperty lookup for a single “GA4” Property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetPropertyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetPropertyRequest. } resp, err := c.GetProperty(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetRollupPropertySourceLink ¶ added in v0.21.6
func (c *AnalyticsAdminClient) GetRollupPropertySourceLink(ctx context.Context, req *adminpb.GetRollupPropertySourceLinkRequest, opts ...gax.CallOption) (*adminpb.RollupPropertySourceLink, error)
GetRollupPropertySourceLink lookup for a single roll-up property source Link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetRollupPropertySourceLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetRollupPropertySourceLinkRequest. } resp, err := c.GetRollupPropertySourceLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetSKAdNetworkConversionValueSchema ¶ added in v0.21.4
func (c *AnalyticsAdminClient) GetSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.GetSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) (*adminpb.SKAdNetworkConversionValueSchema, error)
GetSKAdNetworkConversionValueSchema looks up a single SKAdNetworkConversionValueSchema.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetSKAdNetworkConversionValueSchemaRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetSKAdNetworkConversionValueSchemaRequest. } resp, err := c.GetSKAdNetworkConversionValueSchema(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetSearchAds360Link ¶ added in v0.17.0
func (c *AnalyticsAdminClient) GetSearchAds360Link(ctx context.Context, req *adminpb.GetSearchAds360LinkRequest, opts ...gax.CallOption) (*adminpb.SearchAds360Link, error)
GetSearchAds360Link look up a single SearchAds360Link
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetSearchAds360LinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetSearchAds360LinkRequest. } resp, err := c.GetSearchAds360Link(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetSubpropertyEventFilter ¶ added in v0.22.0
func (c *AnalyticsAdminClient) GetSubpropertyEventFilter(ctx context.Context, req *adminpb.GetSubpropertyEventFilterRequest, opts ...gax.CallOption) (*adminpb.SubpropertyEventFilter, error)
GetSubpropertyEventFilter lookup for a single subproperty Event Filter.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetSubpropertyEventFilterRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetSubpropertyEventFilterRequest. } resp, err := c.GetSubpropertyEventFilter(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) ListAccessBindings ¶ added in v0.18.0
func (c *AnalyticsAdminClient) ListAccessBindings(ctx context.Context, req *adminpb.ListAccessBindingsRequest, opts ...gax.CallOption) *AccessBindingIterator
ListAccessBindings lists all access bindings on an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAccessBindingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListAccessBindingsRequest. } it := c.ListAccessBindings(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListAccessBindingsResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAccessBindingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListAccessBindingsRequest. } for resp, err := range c.ListAccessBindings(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListAccountSummaries ¶
func (c *AnalyticsAdminClient) ListAccountSummaries(ctx context.Context, req *adminpb.ListAccountSummariesRequest, opts ...gax.CallOption) *AccountSummaryIterator
ListAccountSummaries returns summaries of all accounts accessible by the caller.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAccountSummariesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListAccountSummariesRequest. } it := c.ListAccountSummaries(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListAccountSummariesResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAccountSummariesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListAccountSummariesRequest. } for resp, err := range c.ListAccountSummaries(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListAccounts ¶
func (c *AnalyticsAdminClient) ListAccounts(ctx context.Context, req *adminpb.ListAccountsRequest, opts ...gax.CallOption) *AccountIterator
ListAccounts returns all accounts accessible by the caller.
Note that these accounts might not currently have GA4 properties. Soft-deleted (ie: “trashed”) accounts are excluded by default. Returns an empty list if no relevant accounts are found.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAccountsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListAccountsRequest. } it := c.ListAccounts(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListAccountsResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAccountsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListAccountsRequest. } for resp, err := range c.ListAccounts(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListAdSenseLinks ¶ added in v0.20.0
func (c *AnalyticsAdminClient) ListAdSenseLinks(ctx context.Context, req *adminpb.ListAdSenseLinksRequest, opts ...gax.CallOption) *AdSenseLinkIterator
ListAdSenseLinks lists AdSenseLinks on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAdSenseLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListAdSenseLinksRequest. } it := c.ListAdSenseLinks(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListAdSenseLinksResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAdSenseLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListAdSenseLinksRequest. } for resp, err := range c.ListAdSenseLinks(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListAudiences ¶ added in v0.9.0
func (c *AnalyticsAdminClient) ListAudiences(ctx context.Context, req *adminpb.ListAudiencesRequest, opts ...gax.CallOption) *AudienceIterator
ListAudiences lists Audiences on a property. Audiences created before 2020 may not be supported. Default audiences will not show filter definitions.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAudiencesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListAudiencesRequest. } it := c.ListAudiences(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListAudiencesResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAudiencesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListAudiencesRequest. } for resp, err := range c.ListAudiences(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListBigQueryLinks ¶ added in v0.17.0
func (c *AnalyticsAdminClient) ListBigQueryLinks(ctx context.Context, req *adminpb.ListBigQueryLinksRequest, opts ...gax.CallOption) *BigQueryLinkIterator
ListBigQueryLinks lists BigQuery Links on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListBigQueryLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListBigQueryLinksRequest. } it := c.ListBigQueryLinks(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListBigQueryLinksResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListBigQueryLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListBigQueryLinksRequest. } for resp, err := range c.ListBigQueryLinks(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListCalculatedMetrics ¶ added in v0.23.0
func (c *AnalyticsAdminClient) ListCalculatedMetrics(ctx context.Context, req *adminpb.ListCalculatedMetricsRequest, opts ...gax.CallOption) *CalculatedMetricIterator
ListCalculatedMetrics lists CalculatedMetrics on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListCalculatedMetricsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListCalculatedMetricsRequest. } it := c.ListCalculatedMetrics(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListCalculatedMetricsResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListCalculatedMetricsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListCalculatedMetricsRequest. } for resp, err := range c.ListCalculatedMetrics(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListChannelGroups ¶ added in v0.19.1
func (c *AnalyticsAdminClient) ListChannelGroups(ctx context.Context, req *adminpb.ListChannelGroupsRequest, opts ...gax.CallOption) *ChannelGroupIterator
ListChannelGroups lists ChannelGroups on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListChannelGroupsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListChannelGroupsRequest. } it := c.ListChannelGroups(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListChannelGroupsResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListChannelGroupsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListChannelGroupsRequest. } for resp, err := range c.ListChannelGroups(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListConnectedSiteTags ¶ added in v0.19.0
func (c *AnalyticsAdminClient) ListConnectedSiteTags(ctx context.Context, req *adminpb.ListConnectedSiteTagsRequest, opts ...gax.CallOption) (*adminpb.ListConnectedSiteTagsResponse, error)
ListConnectedSiteTags lists the connected site tags for a Universal Analytics property. A maximum of 20 connected site tags will be returned. Note: this has no effect on GA4 property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListConnectedSiteTagsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListConnectedSiteTagsRequest. } resp, err := c.ListConnectedSiteTags(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) ListConversionEvents
deprecated
func (c *AnalyticsAdminClient) ListConversionEvents(ctx context.Context, req *adminpb.ListConversionEventsRequest, opts ...gax.CallOption) *ConversionEventIterator
ListConversionEvents deprecated: Use ListKeyEvents instead. Returns a list of conversion events in the specified parent property.
Returns an empty list if no conversion events are found.
Deprecated: ListConversionEvents may be removed in a future version.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListConversionEventsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListConversionEventsRequest. } it := c.ListConversionEvents(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListConversionEventsResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListConversionEventsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListConversionEventsRequest. } for resp, err := range c.ListConversionEvents(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListCustomDimensions ¶
func (c *AnalyticsAdminClient) ListCustomDimensions(ctx context.Context, req *adminpb.ListCustomDimensionsRequest, opts ...gax.CallOption) *CustomDimensionIterator
ListCustomDimensions lists CustomDimensions on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListCustomDimensionsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListCustomDimensionsRequest. } it := c.ListCustomDimensions(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListCustomDimensionsResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListCustomDimensionsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListCustomDimensionsRequest. } for resp, err := range c.ListCustomDimensions(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListCustomMetrics ¶
func (c *AnalyticsAdminClient) ListCustomMetrics(ctx context.Context, req *adminpb.ListCustomMetricsRequest, opts ...gax.CallOption) *CustomMetricIterator
ListCustomMetrics lists CustomMetrics on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListCustomMetricsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListCustomMetricsRequest. } it := c.ListCustomMetrics(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListCustomMetricsResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListCustomMetricsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListCustomMetricsRequest. } for resp, err := range c.ListCustomMetrics(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListDataStreams ¶ added in v0.3.0
func (c *AnalyticsAdminClient) ListDataStreams(ctx context.Context, req *adminpb.ListDataStreamsRequest, opts ...gax.CallOption) *DataStreamIterator
ListDataStreams lists DataStreams on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListDataStreamsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListDataStreamsRequest. } it := c.ListDataStreams(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListDataStreamsResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListDataStreamsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListDataStreamsRequest. } for resp, err := range c.ListDataStreams(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinkProposals ¶ added in v0.2.0
func (c *AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinkProposals(ctx context.Context, req *adminpb.ListDisplayVideo360AdvertiserLinkProposalsRequest, opts ...gax.CallOption) *DisplayVideo360AdvertiserLinkProposalIterator
ListDisplayVideo360AdvertiserLinkProposals lists DisplayVideo360AdvertiserLinkProposals on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListDisplayVideo360AdvertiserLinkProposalsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListDisplayVideo360AdvertiserLinkProposalsRequest. } it := c.ListDisplayVideo360AdvertiserLinkProposals(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListDisplayVideo360AdvertiserLinkProposalsResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListDisplayVideo360AdvertiserLinkProposalsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListDisplayVideo360AdvertiserLinkProposalsRequest. } for resp, err := range c.ListDisplayVideo360AdvertiserLinkProposals(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinks ¶ added in v0.2.0
func (c *AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinks(ctx context.Context, req *adminpb.ListDisplayVideo360AdvertiserLinksRequest, opts ...gax.CallOption) *DisplayVideo360AdvertiserLinkIterator
ListDisplayVideo360AdvertiserLinks lists all DisplayVideo360AdvertiserLinks on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListDisplayVideo360AdvertiserLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListDisplayVideo360AdvertiserLinksRequest. } it := c.ListDisplayVideo360AdvertiserLinks(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListDisplayVideo360AdvertiserLinksResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListDisplayVideo360AdvertiserLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListDisplayVideo360AdvertiserLinksRequest. } for resp, err := range c.ListDisplayVideo360AdvertiserLinks(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListEventCreateRules ¶ added in v0.20.0
func (c *AnalyticsAdminClient) ListEventCreateRules(ctx context.Context, req *adminpb.ListEventCreateRulesRequest, opts ...gax.CallOption) *EventCreateRuleIterator
ListEventCreateRules lists EventCreateRules on a web data stream.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListEventCreateRulesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListEventCreateRulesRequest. } it := c.ListEventCreateRules(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListEventCreateRulesResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListEventCreateRulesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListEventCreateRulesRequest. } for resp, err := range c.ListEventCreateRules(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListEventEditRules ¶ added in v0.24.0
func (c *AnalyticsAdminClient) ListEventEditRules(ctx context.Context, req *adminpb.ListEventEditRulesRequest, opts ...gax.CallOption) *EventEditRuleIterator
ListEventEditRules lists EventEditRules on a web data stream.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListEventEditRulesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListEventEditRulesRequest. } it := c.ListEventEditRules(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListEventEditRulesResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListEventEditRulesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListEventEditRulesRequest. } for resp, err := range c.ListEventEditRules(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListExpandedDataSets ¶ added in v0.18.0
func (c *AnalyticsAdminClient) ListExpandedDataSets(ctx context.Context, req *adminpb.ListExpandedDataSetsRequest, opts ...gax.CallOption) *ExpandedDataSetIterator
ListExpandedDataSets lists ExpandedDataSets on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListExpandedDataSetsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListExpandedDataSetsRequest. } it := c.ListExpandedDataSets(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListExpandedDataSetsResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListExpandedDataSetsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListExpandedDataSetsRequest. } for resp, err := range c.ListExpandedDataSets(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListFirebaseLinks ¶
func (c *AnalyticsAdminClient) ListFirebaseLinks(ctx context.Context, req *adminpb.ListFirebaseLinksRequest, opts ...gax.CallOption) *FirebaseLinkIterator
ListFirebaseLinks lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListFirebaseLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListFirebaseLinksRequest. } it := c.ListFirebaseLinks(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListFirebaseLinksResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListFirebaseLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListFirebaseLinksRequest. } for resp, err := range c.ListFirebaseLinks(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListGoogleAdsLinks ¶
func (c *AnalyticsAdminClient) ListGoogleAdsLinks(ctx context.Context, req *adminpb.ListGoogleAdsLinksRequest, opts ...gax.CallOption) *GoogleAdsLinkIterator
ListGoogleAdsLinks lists GoogleAdsLinks on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListGoogleAdsLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListGoogleAdsLinksRequest. } it := c.ListGoogleAdsLinks(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListGoogleAdsLinksResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListGoogleAdsLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListGoogleAdsLinksRequest. } for resp, err := range c.ListGoogleAdsLinks(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListKeyEvents ¶ added in v0.24.0
func (c *AnalyticsAdminClient) ListKeyEvents(ctx context.Context, req *adminpb.ListKeyEventsRequest, opts ...gax.CallOption) *KeyEventIterator
ListKeyEvents returns a list of Key Events in the specified parent property. Returns an empty list if no Key Events are found.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListKeyEventsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListKeyEventsRequest. } it := c.ListKeyEvents(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListKeyEventsResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListKeyEventsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListKeyEventsRequest. } for resp, err := range c.ListKeyEvents(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListMeasurementProtocolSecrets ¶
func (c *AnalyticsAdminClient) ListMeasurementProtocolSecrets(ctx context.Context, req *adminpb.ListMeasurementProtocolSecretsRequest, opts ...gax.CallOption) *MeasurementProtocolSecretIterator
ListMeasurementProtocolSecrets returns child MeasurementProtocolSecrets under the specified parent Property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListMeasurementProtocolSecretsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListMeasurementProtocolSecretsRequest. } it := c.ListMeasurementProtocolSecrets(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListMeasurementProtocolSecretsResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListMeasurementProtocolSecretsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListMeasurementProtocolSecretsRequest. } for resp, err := range c.ListMeasurementProtocolSecrets(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListProperties ¶
func (c *AnalyticsAdminClient) ListProperties(ctx context.Context, req *adminpb.ListPropertiesRequest, opts ...gax.CallOption) *PropertyIterator
ListProperties returns child Properties under the specified parent Account.
Only “GA4” properties will be returned. Properties will be excluded if the caller does not have access. Soft-deleted (ie: “trashed”) properties are excluded by default. Returns an empty list if no relevant properties are found.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListPropertiesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListPropertiesRequest. } it := c.ListProperties(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListPropertiesResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListPropertiesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListPropertiesRequest. } for resp, err := range c.ListProperties(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListRollupPropertySourceLinks ¶ added in v0.21.6
func (c *AnalyticsAdminClient) ListRollupPropertySourceLinks(ctx context.Context, req *adminpb.ListRollupPropertySourceLinksRequest, opts ...gax.CallOption) *RollupPropertySourceLinkIterator
ListRollupPropertySourceLinks lists roll-up property source Links on a property. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListRollupPropertySourceLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListRollupPropertySourceLinksRequest. } it := c.ListRollupPropertySourceLinks(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListRollupPropertySourceLinksResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListRollupPropertySourceLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListRollupPropertySourceLinksRequest. } for resp, err := range c.ListRollupPropertySourceLinks(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListSKAdNetworkConversionValueSchemas ¶ added in v0.21.4
func (c *AnalyticsAdminClient) ListSKAdNetworkConversionValueSchemas(ctx context.Context, req *adminpb.ListSKAdNetworkConversionValueSchemasRequest, opts ...gax.CallOption) *SKAdNetworkConversionValueSchemaIterator
ListSKAdNetworkConversionValueSchemas lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one SKAdNetworkConversionValueSchema.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListSKAdNetworkConversionValueSchemasRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListSKAdNetworkConversionValueSchemasRequest. } it := c.ListSKAdNetworkConversionValueSchemas(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListSKAdNetworkConversionValueSchemasResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListSKAdNetworkConversionValueSchemasRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListSKAdNetworkConversionValueSchemasRequest. } for resp, err := range c.ListSKAdNetworkConversionValueSchemas(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListSearchAds360Links ¶ added in v0.17.0
func (c *AnalyticsAdminClient) ListSearchAds360Links(ctx context.Context, req *adminpb.ListSearchAds360LinksRequest, opts ...gax.CallOption) *SearchAds360LinkIterator
ListSearchAds360Links lists all SearchAds360Links on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListSearchAds360LinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListSearchAds360LinksRequest. } it := c.ListSearchAds360Links(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListSearchAds360LinksResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListSearchAds360LinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListSearchAds360LinksRequest. } for resp, err := range c.ListSearchAds360Links(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListSubpropertyEventFilters ¶ added in v0.22.0
func (c *AnalyticsAdminClient) ListSubpropertyEventFilters(ctx context.Context, req *adminpb.ListSubpropertyEventFiltersRequest, opts ...gax.CallOption) *SubpropertyEventFilterIterator
ListSubpropertyEventFilters list all subproperty Event Filters on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListSubpropertyEventFiltersRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListSubpropertyEventFiltersRequest. } it := c.ListSubpropertyEventFilters(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.ListSubpropertyEventFiltersResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListSubpropertyEventFiltersRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListSubpropertyEventFiltersRequest. } for resp, err := range c.ListSubpropertyEventFilters(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ProvisionAccountTicket ¶
func (c *AnalyticsAdminClient) ProvisionAccountTicket(ctx context.Context, req *adminpb.ProvisionAccountTicketRequest, opts ...gax.CallOption) (*adminpb.ProvisionAccountTicketResponse, error)
ProvisionAccountTicket requests a ticket for creating an account.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ProvisionAccountTicketRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ProvisionAccountTicketRequest. } resp, err := c.ProvisionAccountTicket(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) ProvisionSubproperty ¶ added in v0.24.0
func (c *AnalyticsAdminClient) ProvisionSubproperty(ctx context.Context, req *adminpb.ProvisionSubpropertyRequest, opts ...gax.CallOption) (*adminpb.ProvisionSubpropertyResponse, error)
ProvisionSubproperty create a subproperty and a subproperty event filter that applies to the created subproperty.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ProvisionSubpropertyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ProvisionSubpropertyRequest. } resp, err := c.ProvisionSubproperty(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) ReorderEventEditRules ¶ added in v0.24.0
func (c *AnalyticsAdminClient) ReorderEventEditRules(ctx context.Context, req *adminpb.ReorderEventEditRulesRequest, opts ...gax.CallOption) error
ReorderEventEditRules changes the processing order of event edit rules on the specified stream.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ReorderEventEditRulesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ReorderEventEditRulesRequest. } err = c.ReorderEventEditRules(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) RunAccessReport ¶ added in v0.9.0
func (c *AnalyticsAdminClient) RunAccessReport(ctx context.Context, req *adminpb.RunAccessReportRequest, opts ...gax.CallOption) (*adminpb.RunAccessReportResponse, error)
RunAccessReport returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years.
Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren’t related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators.
These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don’t include property configuration changes like adding a stream or changing a property’s time zone. For configuration change history, see searchChangeHistoryEvents (at https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.RunAccessReportRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#RunAccessReportRequest. } resp, err := c.RunAccessReport(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) SearchChangeHistoryEvents ¶
func (c *AnalyticsAdminClient) SearchChangeHistoryEvents(ctx context.Context, req *adminpb.SearchChangeHistoryEventsRequest, opts ...gax.CallOption) *ChangeHistoryEventIterator
SearchChangeHistoryEvents searches through all changes to an account or its children given the specified set of filters.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.SearchChangeHistoryEventsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#SearchChangeHistoryEventsRequest. } it := c.SearchChangeHistoryEvents(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp // If you need to access the underlying RPC response, // you can do so by casting the `Response` as below. // Otherwise, remove this line. Only populated after // first call to Next(). Not safe for concurrent access. _ = it.Response.(*adminpb.SearchChangeHistoryEventsResponse) } }
Output:
Example (All) ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.SearchChangeHistoryEventsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#SearchChangeHistoryEventsRequest. } for resp, err := range c.SearchChangeHistoryEvents(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) SetAutomatedGa4ConfigurationOptOut ¶ added in v0.17.0
func (c *AnalyticsAdminClient) SetAutomatedGa4ConfigurationOptOut(ctx context.Context, req *adminpb.SetAutomatedGa4ConfigurationOptOutRequest, opts ...gax.CallOption) (*adminpb.SetAutomatedGa4ConfigurationOptOutResponse, error)
SetAutomatedGa4ConfigurationOptOut sets the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.SetAutomatedGa4ConfigurationOptOutRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#SetAutomatedGa4ConfigurationOptOutRequest. } resp, err := c.SetAutomatedGa4ConfigurationOptOut(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateAccessBinding ¶ added in v0.18.0
func (c *AnalyticsAdminClient) UpdateAccessBinding(ctx context.Context, req *adminpb.UpdateAccessBindingRequest, opts ...gax.CallOption) (*adminpb.AccessBinding, error)
UpdateAccessBinding updates an access binding on an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateAccessBindingRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateAccessBindingRequest. } resp, err := c.UpdateAccessBinding(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateAccount ¶
func (c *AnalyticsAdminClient) UpdateAccount(ctx context.Context, req *adminpb.UpdateAccountRequest, opts ...gax.CallOption) (*adminpb.Account, error)
UpdateAccount updates an account.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateAccountRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateAccountRequest. } resp, err := c.UpdateAccount(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateAttributionSettings ¶ added in v0.9.0
func (c *AnalyticsAdminClient) UpdateAttributionSettings(ctx context.Context, req *adminpb.UpdateAttributionSettingsRequest, opts ...gax.CallOption) (*adminpb.AttributionSettings, error)
UpdateAttributionSettings updates attribution settings on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateAttributionSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateAttributionSettingsRequest. } resp, err := c.UpdateAttributionSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateAudience ¶ added in v0.9.0
func (c *AnalyticsAdminClient) UpdateAudience(ctx context.Context, req *adminpb.UpdateAudienceRequest, opts ...gax.CallOption) (*adminpb.Audience, error)
UpdateAudience updates an Audience on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateAudienceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateAudienceRequest. } resp, err := c.UpdateAudience(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateBigQueryLink ¶ added in v0.24.0
func (c *AnalyticsAdminClient) UpdateBigQueryLink(ctx context.Context, req *adminpb.UpdateBigQueryLinkRequest, opts ...gax.CallOption) (*adminpb.BigQueryLink, error)
UpdateBigQueryLink updates a BigQueryLink.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateBigQueryLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateBigQueryLinkRequest. } resp, err := c.UpdateBigQueryLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateCalculatedMetric ¶ added in v0.23.0
func (c *AnalyticsAdminClient) UpdateCalculatedMetric(ctx context.Context, req *adminpb.UpdateCalculatedMetricRequest, opts ...gax.CallOption) (*adminpb.CalculatedMetric, error)
UpdateCalculatedMetric updates a CalculatedMetric on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateCalculatedMetricRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateCalculatedMetricRequest. } resp, err := c.UpdateCalculatedMetric(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateChannelGroup ¶ added in v0.19.1
func (c *AnalyticsAdminClient) UpdateChannelGroup(ctx context.Context, req *adminpb.UpdateChannelGroupRequest, opts ...gax.CallOption) (*adminpb.ChannelGroup, error)
UpdateChannelGroup updates a ChannelGroup.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateChannelGroupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateChannelGroupRequest. } resp, err := c.UpdateChannelGroup(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateConversionEvent
deprecated
added in
v0.21.4
func (c *AnalyticsAdminClient) UpdateConversionEvent(ctx context.Context, req *adminpb.UpdateConversionEventRequest, opts ...gax.CallOption) (*adminpb.ConversionEvent, error)
UpdateConversionEvent deprecated: Use UpdateKeyEvent instead. Updates a conversion event with the specified attributes.
Deprecated: UpdateConversionEvent may be removed in a future version.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateConversionEventRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateConversionEventRequest. } resp, err := c.UpdateConversionEvent(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateCustomDimension ¶
func (c *AnalyticsAdminClient) UpdateCustomDimension(ctx context.Context, req *adminpb.UpdateCustomDimensionRequest, opts ...gax.CallOption) (*adminpb.CustomDimension, error)
UpdateCustomDimension updates a CustomDimension on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateCustomDimensionRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateCustomDimensionRequest. } resp, err := c.UpdateCustomDimension(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateCustomMetric ¶
func (c *AnalyticsAdminClient) UpdateCustomMetric(ctx context.Context, req *adminpb.UpdateCustomMetricRequest, opts ...gax.CallOption) (*adminpb.CustomMetric, error)
UpdateCustomMetric updates a CustomMetric on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateCustomMetricRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateCustomMetricRequest. } resp, err := c.UpdateCustomMetric(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateDataRedactionSettings ¶ added in v0.21.6
func (c *AnalyticsAdminClient) UpdateDataRedactionSettings(ctx context.Context, req *adminpb.UpdateDataRedactionSettingsRequest, opts ...gax.CallOption) (*adminpb.DataRedactionSettings, error)
UpdateDataRedactionSettings updates a DataRedactionSettings on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateDataRedactionSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateDataRedactionSettingsRequest. } resp, err := c.UpdateDataRedactionSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateDataRetentionSettings ¶ added in v0.2.0
func (c *AnalyticsAdminClient) UpdateDataRetentionSettings(ctx context.Context, req *adminpb.UpdateDataRetentionSettingsRequest, opts ...gax.CallOption) (*adminpb.DataRetentionSettings, error)
UpdateDataRetentionSettings updates the singleton data retention settings for this property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateDataRetentionSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateDataRetentionSettingsRequest. } resp, err := c.UpdateDataRetentionSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateDataStream ¶ added in v0.3.0
func (c *AnalyticsAdminClient) UpdateDataStream(ctx context.Context, req *adminpb.UpdateDataStreamRequest, opts ...gax.CallOption) (*adminpb.DataStream, error)
UpdateDataStream updates a DataStream on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateDataStreamRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateDataStreamRequest. } resp, err := c.UpdateDataStream(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateDisplayVideo360AdvertiserLink ¶ added in v0.2.0
func (c *AnalyticsAdminClient) UpdateDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.UpdateDisplayVideo360AdvertiserLinkRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLink, error)
UpdateDisplayVideo360AdvertiserLink updates a DisplayVideo360AdvertiserLink on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateDisplayVideo360AdvertiserLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateDisplayVideo360AdvertiserLinkRequest. } resp, err := c.UpdateDisplayVideo360AdvertiserLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateEnhancedMeasurementSettings ¶
func (c *AnalyticsAdminClient) UpdateEnhancedMeasurementSettings(ctx context.Context, req *adminpb.UpdateEnhancedMeasurementSettingsRequest, opts ...gax.CallOption) (*adminpb.EnhancedMeasurementSettings, error)
UpdateEnhancedMeasurementSettings updates the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateEnhancedMeasurementSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateEnhancedMeasurementSettingsRequest. } resp, err := c.UpdateEnhancedMeasurementSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateEventCreateRule ¶ added in v0.20.0
func (c *AnalyticsAdminClient) UpdateEventCreateRule(ctx context.Context, req *adminpb.UpdateEventCreateRuleRequest, opts ...gax.CallOption) (*adminpb.EventCreateRule, error)
UpdateEventCreateRule updates an EventCreateRule.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateEventCreateRuleRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateEventCreateRuleRequest. } resp, err := c.UpdateEventCreateRule(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateEventEditRule ¶ added in v0.24.0
func (c *AnalyticsAdminClient) UpdateEventEditRule(ctx context.Context, req *adminpb.UpdateEventEditRuleRequest, opts ...gax.CallOption) (*adminpb.EventEditRule, error)
UpdateEventEditRule updates an EventEditRule.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateEventEditRuleRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateEventEditRuleRequest. } resp, err := c.UpdateEventEditRule(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateExpandedDataSet ¶ added in v0.18.0
func (c *AnalyticsAdminClient) UpdateExpandedDataSet(ctx context.Context, req *adminpb.UpdateExpandedDataSetRequest, opts ...gax.CallOption) (*adminpb.ExpandedDataSet, error)
UpdateExpandedDataSet updates a ExpandedDataSet on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateExpandedDataSetRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateExpandedDataSetRequest. } resp, err := c.UpdateExpandedDataSet(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateGoogleAdsLink ¶
func (c *AnalyticsAdminClient) UpdateGoogleAdsLink(ctx context.Context, req *adminpb.UpdateGoogleAdsLinkRequest, opts ...gax.CallOption) (*adminpb.GoogleAdsLink, error)
UpdateGoogleAdsLink updates a GoogleAdsLink on a property
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateGoogleAdsLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateGoogleAdsLinkRequest. } resp, err := c.UpdateGoogleAdsLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateGoogleSignalsSettings ¶
func (c *AnalyticsAdminClient) UpdateGoogleSignalsSettings(ctx context.Context, req *adminpb.UpdateGoogleSignalsSettingsRequest, opts ...gax.CallOption) (*adminpb.GoogleSignalsSettings, error)
UpdateGoogleSignalsSettings updates Google Signals settings for a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateGoogleSignalsSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateGoogleSignalsSettingsRequest. } resp, err := c.UpdateGoogleSignalsSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateKeyEvent ¶ added in v0.24.0
func (c *AnalyticsAdminClient) UpdateKeyEvent(ctx context.Context, req *adminpb.UpdateKeyEventRequest, opts ...gax.CallOption) (*adminpb.KeyEvent, error)
UpdateKeyEvent updates a Key Event.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateKeyEventRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateKeyEventRequest. } resp, err := c.UpdateKeyEvent(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateMeasurementProtocolSecret ¶
func (c *AnalyticsAdminClient) UpdateMeasurementProtocolSecret(ctx context.Context, req *adminpb.UpdateMeasurementProtocolSecretRequest, opts ...gax.CallOption) (*adminpb.MeasurementProtocolSecret, error)
UpdateMeasurementProtocolSecret updates a measurement protocol secret.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateMeasurementProtocolSecretRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateMeasurementProtocolSecretRequest. } resp, err := c.UpdateMeasurementProtocolSecret(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateProperty ¶
func (c *AnalyticsAdminClient) UpdateProperty(ctx context.Context, req *adminpb.UpdatePropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
UpdateProperty updates a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdatePropertyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdatePropertyRequest. } resp, err := c.UpdateProperty(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateSKAdNetworkConversionValueSchema ¶ added in v0.21.4
func (c *AnalyticsAdminClient) UpdateSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.UpdateSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) (*adminpb.SKAdNetworkConversionValueSchema, error)
UpdateSKAdNetworkConversionValueSchema updates a SKAdNetworkConversionValueSchema.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateSKAdNetworkConversionValueSchemaRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateSKAdNetworkConversionValueSchemaRequest. } resp, err := c.UpdateSKAdNetworkConversionValueSchema(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateSearchAds360Link ¶ added in v0.17.0
func (c *AnalyticsAdminClient) UpdateSearchAds360Link(ctx context.Context, req *adminpb.UpdateSearchAds360LinkRequest, opts ...gax.CallOption) (*adminpb.SearchAds360Link, error)
UpdateSearchAds360Link updates a SearchAds360Link on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateSearchAds360LinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateSearchAds360LinkRequest. } resp, err := c.UpdateSearchAds360Link(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateSubpropertyEventFilter ¶ added in v0.22.0
func (c *AnalyticsAdminClient) UpdateSubpropertyEventFilter(ctx context.Context, req *adminpb.UpdateSubpropertyEventFilterRequest, opts ...gax.CallOption) (*adminpb.SubpropertyEventFilter, error)
UpdateSubpropertyEventFilter updates a subproperty Event Filter.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateSubpropertyEventFilterRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateSubpropertyEventFilterRequest. } resp, err := c.UpdateSubpropertyEventFilter(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
type AudienceIterator ¶ added in v0.9.0
type AudienceIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.Audience, nextPageToken string, err error) // contains filtered or unexported fields }
AudienceIterator manages a stream of *adminpb.Audience.
func (*AudienceIterator) All ¶ added in v0.25.1
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AudienceIterator) Next ¶ added in v0.9.0
func (it *AudienceIterator) Next() (*adminpb.Audience, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*AudienceIterator) PageInfo ¶ added in v0.9.0
func (it *AudienceIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type BigQueryLinkIterator ¶ added in v0.17.0
type BigQueryLinkIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.BigQueryLink, nextPageToken string, err error) // contains filtered or unexported fields }
BigQueryLinkIterator manages a stream of *adminpb.BigQueryLink.
func (*BigQueryLinkIterator) All ¶ added in v0.25.1
func (it *BigQueryLinkIterator) All() iter.Seq2[*adminpb.BigQueryLink, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*BigQueryLinkIterator) Next ¶ added in v0.17.0
func (it *BigQueryLinkIterator) Next() (*adminpb.BigQueryLink, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*BigQueryLinkIterator) PageInfo ¶ added in v0.17.0
func (it *BigQueryLinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type CalculatedMetricIterator ¶ added in v0.23.0
type CalculatedMetricIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.CalculatedMetric, nextPageToken string, err error) // contains filtered or unexported fields }
CalculatedMetricIterator manages a stream of *adminpb.CalculatedMetric.
func (*CalculatedMetricIterator) All ¶ added in v0.25.1
func (it *CalculatedMetricIterator) All() iter.Seq2[*adminpb.CalculatedMetric, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*CalculatedMetricIterator) Next ¶ added in v0.23.0
func (it *CalculatedMetricIterator) Next() (*adminpb.CalculatedMetric, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*CalculatedMetricIterator) PageInfo ¶ added in v0.23.0
func (it *CalculatedMetricIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ChangeHistoryEventIterator ¶
type ChangeHistoryEventIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.ChangeHistoryEvent, nextPageToken string, err error) // contains filtered or unexported fields }
ChangeHistoryEventIterator manages a stream of *adminpb.ChangeHistoryEvent.
func (*ChangeHistoryEventIterator) All ¶ added in v0.25.1
func (it *ChangeHistoryEventIterator) All() iter.Seq2[*adminpb.ChangeHistoryEvent, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ChangeHistoryEventIterator) Next ¶
func (it *ChangeHistoryEventIterator) Next() (*adminpb.ChangeHistoryEvent, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ChangeHistoryEventIterator) PageInfo ¶
func (it *ChangeHistoryEventIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ChannelGroupIterator ¶ added in v0.19.1
type ChannelGroupIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.ChannelGroup, nextPageToken string, err error) // contains filtered or unexported fields }
ChannelGroupIterator manages a stream of *adminpb.ChannelGroup.
func (*ChannelGroupIterator) All ¶ added in v0.25.1
func (it *ChannelGroupIterator) All() iter.Seq2[*adminpb.ChannelGroup, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ChannelGroupIterator) Next ¶ added in v0.19.1
func (it *ChannelGroupIterator) Next() (*adminpb.ChannelGroup, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ChannelGroupIterator) PageInfo ¶ added in v0.19.1
func (it *ChannelGroupIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ConversionEventIterator ¶
type ConversionEventIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.ConversionEvent, nextPageToken string, err error) // contains filtered or unexported fields }
ConversionEventIterator manages a stream of *adminpb.ConversionEvent.
func (*ConversionEventIterator) All ¶ added in v0.25.1
func (it *ConversionEventIterator) All() iter.Seq2[*adminpb.ConversionEvent, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ConversionEventIterator) Next ¶
func (it *ConversionEventIterator) Next() (*adminpb.ConversionEvent, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ConversionEventIterator) PageInfo ¶
func (it *ConversionEventIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type CustomDimensionIterator ¶
type CustomDimensionIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.CustomDimension, nextPageToken string, err error) // contains filtered or unexported fields }
CustomDimensionIterator manages a stream of *adminpb.CustomDimension.
func (*CustomDimensionIterator) All ¶ added in v0.25.1
func (it *CustomDimensionIterator) All() iter.Seq2[*adminpb.CustomDimension, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*CustomDimensionIterator) Next ¶
func (it *CustomDimensionIterator) Next() (*adminpb.CustomDimension, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*CustomDimensionIterator) PageInfo ¶
func (it *CustomDimensionIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type CustomMetricIterator ¶
type CustomMetricIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.CustomMetric, nextPageToken string, err error) // contains filtered or unexported fields }
CustomMetricIterator manages a stream of *adminpb.CustomMetric.
func (*CustomMetricIterator) All ¶ added in v0.25.1
func (it *CustomMetricIterator) All() iter.Seq2[*adminpb.CustomMetric, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*CustomMetricIterator) Next ¶
func (it *CustomMetricIterator) Next() (*adminpb.CustomMetric, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*CustomMetricIterator) PageInfo ¶
func (it *CustomMetricIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DataStreamIterator ¶ added in v0.3.0
type DataStreamIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.DataStream, nextPageToken string, err error) // contains filtered or unexported fields }
DataStreamIterator manages a stream of *adminpb.DataStream.
func (*DataStreamIterator) All ¶ added in v0.25.1
func (it *DataStreamIterator) All() iter.Seq2[*adminpb.DataStream, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*DataStreamIterator) Next ¶ added in v0.3.0
func (it *DataStreamIterator) Next() (*adminpb.DataStream, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*DataStreamIterator) PageInfo ¶ added in v0.3.0
func (it *DataStreamIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DisplayVideo360AdvertiserLinkIterator ¶ added in v0.2.0
type DisplayVideo360AdvertiserLinkIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.DisplayVideo360AdvertiserLink, nextPageToken string, err error) // contains filtered or unexported fields }
DisplayVideo360AdvertiserLinkIterator manages a stream of *adminpb.DisplayVideo360AdvertiserLink.
func (*DisplayVideo360AdvertiserLinkIterator) All ¶ added in v0.25.1
func (it *DisplayVideo360AdvertiserLinkIterator) All() iter.Seq2[*adminpb.DisplayVideo360AdvertiserLink, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*DisplayVideo360AdvertiserLinkIterator) Next ¶ added in v0.2.0
func (it *DisplayVideo360AdvertiserLinkIterator) Next() (*adminpb.DisplayVideo360AdvertiserLink, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*DisplayVideo360AdvertiserLinkIterator) PageInfo ¶ added in v0.2.0
func (it *DisplayVideo360AdvertiserLinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DisplayVideo360AdvertiserLinkProposalIterator ¶ added in v0.2.0
type DisplayVideo360AdvertiserLinkProposalIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.DisplayVideo360AdvertiserLinkProposal, nextPageToken string, err error) // contains filtered or unexported fields }
DisplayVideo360AdvertiserLinkProposalIterator manages a stream of *adminpb.DisplayVideo360AdvertiserLinkProposal.
func (*DisplayVideo360AdvertiserLinkProposalIterator) All ¶ added in v0.25.1
func (it *DisplayVideo360AdvertiserLinkProposalIterator) All() iter.Seq2[*adminpb.DisplayVideo360AdvertiserLinkProposal, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*DisplayVideo360AdvertiserLinkProposalIterator) Next ¶ added in v0.2.0
func (it *DisplayVideo360AdvertiserLinkProposalIterator) Next() (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*DisplayVideo360AdvertiserLinkProposalIterator) PageInfo ¶ added in v0.2.0
func (it *DisplayVideo360AdvertiserLinkProposalIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type EventCreateRuleIterator ¶ added in v0.20.0
type EventCreateRuleIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.EventCreateRule, nextPageToken string, err error) // contains filtered or unexported fields }
EventCreateRuleIterator manages a stream of *adminpb.EventCreateRule.
func (*EventCreateRuleIterator) All ¶ added in v0.25.1
func (it *EventCreateRuleIterator) All() iter.Seq2[*adminpb.EventCreateRule, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*EventCreateRuleIterator) Next ¶ added in v0.20.0
func (it *EventCreateRuleIterator) Next() (*adminpb.EventCreateRule, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*EventCreateRuleIterator) PageInfo ¶ added in v0.20.0
func (it *EventCreateRuleIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type EventEditRuleIterator ¶ added in v0.24.0
type EventEditRuleIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.EventEditRule, nextPageToken string, err error) // contains filtered or unexported fields }
EventEditRuleIterator manages a stream of *adminpb.EventEditRule.
func (*EventEditRuleIterator) All ¶ added in v0.25.1
func (it *EventEditRuleIterator) All() iter.Seq2[*adminpb.EventEditRule, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*EventEditRuleIterator) Next ¶ added in v0.24.0
func (it *EventEditRuleIterator) Next() (*adminpb.EventEditRule, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*EventEditRuleIterator) PageInfo ¶ added in v0.24.0
func (it *EventEditRuleIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ExpandedDataSetIterator ¶ added in v0.18.0
type ExpandedDataSetIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.ExpandedDataSet, nextPageToken string, err error) // contains filtered or unexported fields }
ExpandedDataSetIterator manages a stream of *adminpb.ExpandedDataSet.
func (*ExpandedDataSetIterator) All ¶ added in v0.25.1
func (it *ExpandedDataSetIterator) All() iter.Seq2[*adminpb.ExpandedDataSet, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ExpandedDataSetIterator) Next ¶ added in v0.18.0
func (it *ExpandedDataSetIterator) Next() (*adminpb.ExpandedDataSet, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ExpandedDataSetIterator) PageInfo ¶ added in v0.18.0
func (it *ExpandedDataSetIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type FirebaseLinkIterator ¶
type FirebaseLinkIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.FirebaseLink, nextPageToken string, err error) // contains filtered or unexported fields }
FirebaseLinkIterator manages a stream of *adminpb.FirebaseLink.
func (*FirebaseLinkIterator) All ¶ added in v0.25.1
func (it *FirebaseLinkIterator) All() iter.Seq2[*adminpb.FirebaseLink, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*FirebaseLinkIterator) Next ¶
func (it *FirebaseLinkIterator) Next() (*adminpb.FirebaseLink, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*FirebaseLinkIterator) PageInfo ¶
func (it *FirebaseLinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type GoogleAdsLinkIterator ¶
type GoogleAdsLinkIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.GoogleAdsLink, nextPageToken string, err error) // contains filtered or unexported fields }
GoogleAdsLinkIterator manages a stream of *adminpb.GoogleAdsLink.
func (*GoogleAdsLinkIterator) All ¶ added in v0.25.1
func (it *GoogleAdsLinkIterator) All() iter.Seq2[*adminpb.GoogleAdsLink, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*GoogleAdsLinkIterator) Next ¶
func (it *GoogleAdsLinkIterator) Next() (*adminpb.GoogleAdsLink, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*GoogleAdsLinkIterator) PageInfo ¶
func (it *GoogleAdsLinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type KeyEventIterator ¶ added in v0.24.0
type KeyEventIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.KeyEvent, nextPageToken string, err error) // contains filtered or unexported fields }
KeyEventIterator manages a stream of *adminpb.KeyEvent.
func (*KeyEventIterator) All ¶ added in v0.25.1
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*KeyEventIterator) Next ¶ added in v0.24.0
func (it *KeyEventIterator) Next() (*adminpb.KeyEvent, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*KeyEventIterator) PageInfo ¶ added in v0.24.0
func (it *KeyEventIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type MeasurementProtocolSecretIterator ¶
type MeasurementProtocolSecretIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.MeasurementProtocolSecret, nextPageToken string, err error) // contains filtered or unexported fields }
MeasurementProtocolSecretIterator manages a stream of *adminpb.MeasurementProtocolSecret.
func (*MeasurementProtocolSecretIterator) All ¶ added in v0.25.1
func (it *MeasurementProtocolSecretIterator) All() iter.Seq2[*adminpb.MeasurementProtocolSecret, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*MeasurementProtocolSecretIterator) Next ¶
func (it *MeasurementProtocolSecretIterator) Next() (*adminpb.MeasurementProtocolSecret, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*MeasurementProtocolSecretIterator) PageInfo ¶
func (it *MeasurementProtocolSecretIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type PropertyIterator ¶
type PropertyIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.Property, nextPageToken string, err error) // contains filtered or unexported fields }
PropertyIterator manages a stream of *adminpb.Property.
func (*PropertyIterator) All ¶ added in v0.25.1
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*PropertyIterator) Next ¶
func (it *PropertyIterator) Next() (*adminpb.Property, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*PropertyIterator) PageInfo ¶
func (it *PropertyIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type RollupPropertySourceLinkIterator ¶ added in v0.21.6
type RollupPropertySourceLinkIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.RollupPropertySourceLink, nextPageToken string, err error) // contains filtered or unexported fields }
RollupPropertySourceLinkIterator manages a stream of *adminpb.RollupPropertySourceLink.
func (*RollupPropertySourceLinkIterator) All ¶ added in v0.25.1
func (it *RollupPropertySourceLinkIterator) All() iter.Seq2[*adminpb.RollupPropertySourceLink, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*RollupPropertySourceLinkIterator) Next ¶ added in v0.21.6
func (it *RollupPropertySourceLinkIterator) Next() (*adminpb.RollupPropertySourceLink, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*RollupPropertySourceLinkIterator) PageInfo ¶ added in v0.21.6
func (it *RollupPropertySourceLinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type SKAdNetworkConversionValueSchemaIterator ¶ added in v0.21.4
type SKAdNetworkConversionValueSchemaIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.SKAdNetworkConversionValueSchema, nextPageToken string, err error) // contains filtered or unexported fields }
SKAdNetworkConversionValueSchemaIterator manages a stream of *adminpb.SKAdNetworkConversionValueSchema.
func (*SKAdNetworkConversionValueSchemaIterator) All ¶ added in v0.25.1
func (it *SKAdNetworkConversionValueSchemaIterator) All() iter.Seq2[*adminpb.SKAdNetworkConversionValueSchema, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*SKAdNetworkConversionValueSchemaIterator) Next ¶ added in v0.21.4
func (it *SKAdNetworkConversionValueSchemaIterator) Next() (*adminpb.SKAdNetworkConversionValueSchema, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*SKAdNetworkConversionValueSchemaIterator) PageInfo ¶ added in v0.21.4
func (it *SKAdNetworkConversionValueSchemaIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type SearchAds360LinkIterator ¶ added in v0.17.0
type SearchAds360LinkIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.SearchAds360Link, nextPageToken string, err error) // contains filtered or unexported fields }
SearchAds360LinkIterator manages a stream of *adminpb.SearchAds360Link.
func (*SearchAds360LinkIterator) All ¶ added in v0.25.1
func (it *SearchAds360LinkIterator) All() iter.Seq2[*adminpb.SearchAds360Link, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*SearchAds360LinkIterator) Next ¶ added in v0.17.0
func (it *SearchAds360LinkIterator) Next() (*adminpb.SearchAds360Link, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*SearchAds360LinkIterator) PageInfo ¶ added in v0.17.0
func (it *SearchAds360LinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type SubpropertyEventFilterIterator ¶ added in v0.22.0
type SubpropertyEventFilterIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.SubpropertyEventFilter, nextPageToken string, err error) // contains filtered or unexported fields }
SubpropertyEventFilterIterator manages a stream of *adminpb.SubpropertyEventFilter.
func (*SubpropertyEventFilterIterator) All ¶ added in v0.25.1
func (it *SubpropertyEventFilterIterator) All() iter.Seq2[*adminpb.SubpropertyEventFilter, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*SubpropertyEventFilterIterator) Next ¶ added in v0.22.0
func (it *SubpropertyEventFilterIterator) Next() (*adminpb.SubpropertyEventFilter, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*SubpropertyEventFilterIterator) PageInfo ¶ added in v0.22.0
func (it *SubpropertyEventFilterIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.