package admin
import "cloud.google.com/go/analytics/admin/apiv1alpha"
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.
// go get cloud.google.com/go/analytics/admin/apiv1alpha@latest 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, mentioned above.
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
- func (it *AccessBindingIterator) All() iter.Seq2[*adminpb.AccessBinding, error]
- func (it *AccessBindingIterator) Next() (*adminpb.AccessBinding, error)
- func (it *AccessBindingIterator) PageInfo() *iterator.PageInfo
- type AccountIterator
- func (it *AccountIterator) All() iter.Seq2[*adminpb.Account, error]
- func (it *AccountIterator) Next() (*adminpb.Account, error)
- func (it *AccountIterator) PageInfo() *iterator.PageInfo
- type AccountSummaryIterator
- func (it *AccountSummaryIterator) All() iter.Seq2[*adminpb.AccountSummary, error]
- func (it *AccountSummaryIterator) Next() (*adminpb.AccountSummary, error)
- func (it *AccountSummaryIterator) PageInfo() *iterator.PageInfo
- type AdSenseLinkIterator
- func (it *AdSenseLinkIterator) All() iter.Seq2[*adminpb.AdSenseLink, error]
- func (it *AdSenseLinkIterator) Next() (*adminpb.AdSenseLink, error)
- func (it *AdSenseLinkIterator) PageInfo() *iterator.PageInfo
- type AnalyticsAdminCallOptions
- type AnalyticsAdminClient
- func NewAnalyticsAdminClient(ctx context.Context, opts ...option.ClientOption) (*AnalyticsAdminClient, error)
- func NewAnalyticsAdminRESTClient(ctx context.Context, opts ...option.ClientOption) (*AnalyticsAdminClient, error)
- func (c *AnalyticsAdminClient) AcknowledgeUserDataCollection(ctx context.Context, req *adminpb.AcknowledgeUserDataCollectionRequest, opts ...gax.CallOption) (*adminpb.AcknowledgeUserDataCollectionResponse, error)
- func (c *AnalyticsAdminClient) ApproveDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.ApproveDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) (*adminpb.ApproveDisplayVideo360AdvertiserLinkProposalResponse, error)
- func (c *AnalyticsAdminClient) ArchiveAudience(ctx context.Context, req *adminpb.ArchiveAudienceRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) ArchiveCustomDimension(ctx context.Context, req *adminpb.ArchiveCustomDimensionRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) ArchiveCustomMetric(ctx context.Context, req *adminpb.ArchiveCustomMetricRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) BatchCreateAccessBindings(ctx context.Context, req *adminpb.BatchCreateAccessBindingsRequest, opts ...gax.CallOption) (*adminpb.BatchCreateAccessBindingsResponse, error)
- func (c *AnalyticsAdminClient) BatchDeleteAccessBindings(ctx context.Context, req *adminpb.BatchDeleteAccessBindingsRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) BatchGetAccessBindings(ctx context.Context, req *adminpb.BatchGetAccessBindingsRequest, opts ...gax.CallOption) (*adminpb.BatchGetAccessBindingsResponse, error)
- func (c *AnalyticsAdminClient) BatchUpdateAccessBindings(ctx context.Context, req *adminpb.BatchUpdateAccessBindingsRequest, opts ...gax.CallOption) (*adminpb.BatchUpdateAccessBindingsResponse, error)
- func (c *AnalyticsAdminClient) CancelDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.CancelDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
- func (c *AnalyticsAdminClient) Close() error
- func (c *AnalyticsAdminClient) Connection() *grpc.ClientConn
- func (c *AnalyticsAdminClient) CreateAccessBinding(ctx context.Context, req *adminpb.CreateAccessBindingRequest, opts ...gax.CallOption) (*adminpb.AccessBinding, error)
- func (c *AnalyticsAdminClient) CreateAdSenseLink(ctx context.Context, req *adminpb.CreateAdSenseLinkRequest, opts ...gax.CallOption) (*adminpb.AdSenseLink, error)
- func (c *AnalyticsAdminClient) CreateAudience(ctx context.Context, req *adminpb.CreateAudienceRequest, opts ...gax.CallOption) (*adminpb.Audience, error)
- func (c *AnalyticsAdminClient) CreateBigQueryLink(ctx context.Context, req *adminpb.CreateBigQueryLinkRequest, opts ...gax.CallOption) (*adminpb.BigQueryLink, error)
- func (c *AnalyticsAdminClient) CreateCalculatedMetric(ctx context.Context, req *adminpb.CreateCalculatedMetricRequest, opts ...gax.CallOption) (*adminpb.CalculatedMetric, error)
- func (c *AnalyticsAdminClient) CreateChannelGroup(ctx context.Context, req *adminpb.CreateChannelGroupRequest, opts ...gax.CallOption) (*adminpb.ChannelGroup, error)
- func (c *AnalyticsAdminClient) CreateConnectedSiteTag(ctx context.Context, req *adminpb.CreateConnectedSiteTagRequest, opts ...gax.CallOption) (*adminpb.CreateConnectedSiteTagResponse, error)
- func (c *AnalyticsAdminClient) CreateConversionEvent(ctx context.Context, req *adminpb.CreateConversionEventRequest, opts ...gax.CallOption) (*adminpb.ConversionEvent, error)
- func (c *AnalyticsAdminClient) CreateCustomDimension(ctx context.Context, req *adminpb.CreateCustomDimensionRequest, opts ...gax.CallOption) (*adminpb.CustomDimension, error)
- func (c *AnalyticsAdminClient) CreateCustomMetric(ctx context.Context, req *adminpb.CreateCustomMetricRequest, opts ...gax.CallOption) (*adminpb.CustomMetric, error)
- func (c *AnalyticsAdminClient) CreateDataStream(ctx context.Context, req *adminpb.CreateDataStreamRequest, opts ...gax.CallOption) (*adminpb.DataStream, error)
- func (c *AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.CreateDisplayVideo360AdvertiserLinkRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLink, error)
- func (c *AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.CreateDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
- func (c *AnalyticsAdminClient) CreateEventCreateRule(ctx context.Context, req *adminpb.CreateEventCreateRuleRequest, opts ...gax.CallOption) (*adminpb.EventCreateRule, error)
- func (c *AnalyticsAdminClient) CreateEventEditRule(ctx context.Context, req *adminpb.CreateEventEditRuleRequest, opts ...gax.CallOption) (*adminpb.EventEditRule, error)
- func (c *AnalyticsAdminClient) CreateExpandedDataSet(ctx context.Context, req *adminpb.CreateExpandedDataSetRequest, opts ...gax.CallOption) (*adminpb.ExpandedDataSet, error)
- func (c *AnalyticsAdminClient) CreateFirebaseLink(ctx context.Context, req *adminpb.CreateFirebaseLinkRequest, opts ...gax.CallOption) (*adminpb.FirebaseLink, error)
- func (c *AnalyticsAdminClient) CreateGoogleAdsLink(ctx context.Context, req *adminpb.CreateGoogleAdsLinkRequest, opts ...gax.CallOption) (*adminpb.GoogleAdsLink, error)
- func (c *AnalyticsAdminClient) CreateKeyEvent(ctx context.Context, req *adminpb.CreateKeyEventRequest, opts ...gax.CallOption) (*adminpb.KeyEvent, error)
- func (c *AnalyticsAdminClient) CreateMeasurementProtocolSecret(ctx context.Context, req *adminpb.CreateMeasurementProtocolSecretRequest, opts ...gax.CallOption) (*adminpb.MeasurementProtocolSecret, error)
- func (c *AnalyticsAdminClient) CreateProperty(ctx context.Context, req *adminpb.CreatePropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
- func (c *AnalyticsAdminClient) CreateRollupProperty(ctx context.Context, req *adminpb.CreateRollupPropertyRequest, opts ...gax.CallOption) (*adminpb.CreateRollupPropertyResponse, error)
- func (c *AnalyticsAdminClient) CreateRollupPropertySourceLink(ctx context.Context, req *adminpb.CreateRollupPropertySourceLinkRequest, opts ...gax.CallOption) (*adminpb.RollupPropertySourceLink, error)
- func (c *AnalyticsAdminClient) CreateSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.CreateSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) (*adminpb.SKAdNetworkConversionValueSchema, error)
- func (c *AnalyticsAdminClient) CreateSearchAds360Link(ctx context.Context, req *adminpb.CreateSearchAds360LinkRequest, opts ...gax.CallOption) (*adminpb.SearchAds360Link, error)
- func (c *AnalyticsAdminClient) CreateSubpropertyEventFilter(ctx context.Context, req *adminpb.CreateSubpropertyEventFilterRequest, opts ...gax.CallOption) (*adminpb.SubpropertyEventFilter, error)
- func (c *AnalyticsAdminClient) DeleteAccessBinding(ctx context.Context, req *adminpb.DeleteAccessBindingRequest, opts ...gax.CallOption) 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, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteBigQueryLink(ctx context.Context, req *adminpb.DeleteBigQueryLinkRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteCalculatedMetric(ctx context.Context, req *adminpb.DeleteCalculatedMetricRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteChannelGroup(ctx context.Context, req *adminpb.DeleteChannelGroupRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteConnectedSiteTag(ctx context.Context, req *adminpb.DeleteConnectedSiteTagRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteConversionEvent(ctx context.Context, req *adminpb.DeleteConversionEventRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteDataStream(ctx context.Context, req *adminpb.DeleteDataStreamRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.DeleteDisplayVideo360AdvertiserLinkRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.DeleteDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteEventCreateRule(ctx context.Context, req *adminpb.DeleteEventCreateRuleRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteEventEditRule(ctx context.Context, req *adminpb.DeleteEventEditRuleRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteExpandedDataSet(ctx context.Context, req *adminpb.DeleteExpandedDataSetRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteFirebaseLink(ctx context.Context, req *adminpb.DeleteFirebaseLinkRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteGoogleAdsLink(ctx context.Context, req *adminpb.DeleteGoogleAdsLinkRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteKeyEvent(ctx context.Context, req *adminpb.DeleteKeyEventRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteMeasurementProtocolSecret(ctx context.Context, req *adminpb.DeleteMeasurementProtocolSecretRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteProperty(ctx context.Context, req *adminpb.DeletePropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
- func (c *AnalyticsAdminClient) DeleteRollupPropertySourceLink(ctx context.Context, req *adminpb.DeleteRollupPropertySourceLinkRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.DeleteSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteSearchAds360Link(ctx context.Context, req *adminpb.DeleteSearchAds360LinkRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteSubpropertyEventFilter(ctx context.Context, req *adminpb.DeleteSubpropertyEventFilterRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) FetchAutomatedGa4ConfigurationOptOut(ctx context.Context, req *adminpb.FetchAutomatedGa4ConfigurationOptOutRequest, opts ...gax.CallOption) (*adminpb.FetchAutomatedGa4ConfigurationOptOutResponse, error)
- func (c *AnalyticsAdminClient) FetchConnectedGa4Property(ctx context.Context, req *adminpb.FetchConnectedGa4PropertyRequest, opts ...gax.CallOption) (*adminpb.FetchConnectedGa4PropertyResponse, error)
- func (c *AnalyticsAdminClient) GetAccessBinding(ctx context.Context, req *adminpb.GetAccessBindingRequest, opts ...gax.CallOption) (*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, opts ...gax.CallOption) (*adminpb.AdSenseLink, error)
- func (c *AnalyticsAdminClient) GetAttributionSettings(ctx context.Context, req *adminpb.GetAttributionSettingsRequest, opts ...gax.CallOption) (*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, opts ...gax.CallOption) (*adminpb.BigQueryLink, error)
- func (c *AnalyticsAdminClient) GetCalculatedMetric(ctx context.Context, req *adminpb.GetCalculatedMetricRequest, opts ...gax.CallOption) (*adminpb.CalculatedMetric, error)
- func (c *AnalyticsAdminClient) GetChannelGroup(ctx context.Context, req *adminpb.GetChannelGroupRequest, opts ...gax.CallOption) (*adminpb.ChannelGroup, error)
- func (c *AnalyticsAdminClient) GetConversionEvent(ctx context.Context, req *adminpb.GetConversionEventRequest, opts ...gax.CallOption) (*adminpb.ConversionEvent, error)
- func (c *AnalyticsAdminClient) GetCustomDimension(ctx context.Context, req *adminpb.GetCustomDimensionRequest, opts ...gax.CallOption) (*adminpb.CustomDimension, error)
- func (c *AnalyticsAdminClient) GetCustomMetric(ctx context.Context, req *adminpb.GetCustomMetricRequest, opts ...gax.CallOption) (*adminpb.CustomMetric, error)
- func (c *AnalyticsAdminClient) GetDataRedactionSettings(ctx context.Context, req *adminpb.GetDataRedactionSettingsRequest, opts ...gax.CallOption) (*adminpb.DataRedactionSettings, error)
- func (c *AnalyticsAdminClient) GetDataRetentionSettings(ctx context.Context, req *adminpb.GetDataRetentionSettingsRequest, opts ...gax.CallOption) (*adminpb.DataRetentionSettings, error)
- func (c *AnalyticsAdminClient) GetDataSharingSettings(ctx context.Context, req *adminpb.GetDataSharingSettingsRequest, opts ...gax.CallOption) (*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, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLink, error)
- func (c *AnalyticsAdminClient) GetDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.GetDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
- func (c *AnalyticsAdminClient) GetEnhancedMeasurementSettings(ctx context.Context, req *adminpb.GetEnhancedMeasurementSettingsRequest, opts ...gax.CallOption) (*adminpb.EnhancedMeasurementSettings, error)
- func (c *AnalyticsAdminClient) GetEventCreateRule(ctx context.Context, req *adminpb.GetEventCreateRuleRequest, opts ...gax.CallOption) (*adminpb.EventCreateRule, error)
- func (c *AnalyticsAdminClient) GetEventEditRule(ctx context.Context, req *adminpb.GetEventEditRuleRequest, opts ...gax.CallOption) (*adminpb.EventEditRule, error)
- func (c *AnalyticsAdminClient) GetExpandedDataSet(ctx context.Context, req *adminpb.GetExpandedDataSetRequest, opts ...gax.CallOption) (*adminpb.ExpandedDataSet, error)
- func (c *AnalyticsAdminClient) GetGlobalSiteTag(ctx context.Context, req *adminpb.GetGlobalSiteTagRequest, opts ...gax.CallOption) (*adminpb.GlobalSiteTag, error)
- func (c *AnalyticsAdminClient) GetGoogleSignalsSettings(ctx context.Context, req *adminpb.GetGoogleSignalsSettingsRequest, opts ...gax.CallOption) (*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, opts ...gax.CallOption) (*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, opts ...gax.CallOption) (*adminpb.RollupPropertySourceLink, error)
- func (c *AnalyticsAdminClient) GetSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.GetSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) (*adminpb.SKAdNetworkConversionValueSchema, error)
- func (c *AnalyticsAdminClient) GetSearchAds360Link(ctx context.Context, req *adminpb.GetSearchAds360LinkRequest, opts ...gax.CallOption) (*adminpb.SearchAds360Link, error)
- func (c *AnalyticsAdminClient) GetSubpropertyEventFilter(ctx context.Context, req *adminpb.GetSubpropertyEventFilterRequest, opts ...gax.CallOption) (*adminpb.SubpropertyEventFilter, error)
- func (c *AnalyticsAdminClient) ListAccessBindings(ctx context.Context, req *adminpb.ListAccessBindingsRequest, opts ...gax.CallOption) *AccessBindingIterator
- func (c *AnalyticsAdminClient) ListAccountSummaries(ctx context.Context, req *adminpb.ListAccountSummariesRequest, opts ...gax.CallOption) *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, opts ...gax.CallOption) *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, opts ...gax.CallOption) *BigQueryLinkIterator
- func (c *AnalyticsAdminClient) ListCalculatedMetrics(ctx context.Context, req *adminpb.ListCalculatedMetricsRequest, opts ...gax.CallOption) *CalculatedMetricIterator
- func (c *AnalyticsAdminClient) ListChannelGroups(ctx context.Context, req *adminpb.ListChannelGroupsRequest, opts ...gax.CallOption) *ChannelGroupIterator
- func (c *AnalyticsAdminClient) ListConnectedSiteTags(ctx context.Context, req *adminpb.ListConnectedSiteTagsRequest, opts ...gax.CallOption) (*adminpb.ListConnectedSiteTagsResponse, error)
- func (c *AnalyticsAdminClient) ListConversionEvents(ctx context.Context, req *adminpb.ListConversionEventsRequest, opts ...gax.CallOption) *ConversionEventIterator
- func (c *AnalyticsAdminClient) ListCustomDimensions(ctx context.Context, req *adminpb.ListCustomDimensionsRequest, opts ...gax.CallOption) *CustomDimensionIterator
- func (c *AnalyticsAdminClient) ListCustomMetrics(ctx context.Context, req *adminpb.ListCustomMetricsRequest, opts ...gax.CallOption) *CustomMetricIterator
- func (c *AnalyticsAdminClient) ListDataStreams(ctx context.Context, req *adminpb.ListDataStreamsRequest, opts ...gax.CallOption) *DataStreamIterator
- func (c *AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinkProposals(ctx context.Context, req *adminpb.ListDisplayVideo360AdvertiserLinkProposalsRequest, opts ...gax.CallOption) *DisplayVideo360AdvertiserLinkProposalIterator
- func (c *AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinks(ctx context.Context, req *adminpb.ListDisplayVideo360AdvertiserLinksRequest, opts ...gax.CallOption) *DisplayVideo360AdvertiserLinkIterator
- func (c *AnalyticsAdminClient) ListEventCreateRules(ctx context.Context, req *adminpb.ListEventCreateRulesRequest, opts ...gax.CallOption) *EventCreateRuleIterator
- func (c *AnalyticsAdminClient) ListEventEditRules(ctx context.Context, req *adminpb.ListEventEditRulesRequest, opts ...gax.CallOption) *EventEditRuleIterator
- func (c *AnalyticsAdminClient) ListExpandedDataSets(ctx context.Context, req *adminpb.ListExpandedDataSetsRequest, opts ...gax.CallOption) *ExpandedDataSetIterator
- func (c *AnalyticsAdminClient) ListFirebaseLinks(ctx context.Context, req *adminpb.ListFirebaseLinksRequest, opts ...gax.CallOption) *FirebaseLinkIterator
- func (c *AnalyticsAdminClient) ListGoogleAdsLinks(ctx context.Context, req *adminpb.ListGoogleAdsLinksRequest, opts ...gax.CallOption) *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, opts ...gax.CallOption) *MeasurementProtocolSecretIterator
- func (c *AnalyticsAdminClient) ListProperties(ctx context.Context, req *adminpb.ListPropertiesRequest, opts ...gax.CallOption) *PropertyIterator
- func (c *AnalyticsAdminClient) ListRollupPropertySourceLinks(ctx context.Context, req *adminpb.ListRollupPropertySourceLinksRequest, opts ...gax.CallOption) *RollupPropertySourceLinkIterator
- func (c *AnalyticsAdminClient) ListSKAdNetworkConversionValueSchemas(ctx context.Context, req *adminpb.ListSKAdNetworkConversionValueSchemasRequest, opts ...gax.CallOption) *SKAdNetworkConversionValueSchemaIterator
- func (c *AnalyticsAdminClient) ListSearchAds360Links(ctx context.Context, req *adminpb.ListSearchAds360LinksRequest, opts ...gax.CallOption) *SearchAds360LinkIterator
- func (c *AnalyticsAdminClient) ListSubpropertyEventFilters(ctx context.Context, req *adminpb.ListSubpropertyEventFiltersRequest, opts ...gax.CallOption) *SubpropertyEventFilterIterator
- func (c *AnalyticsAdminClient) ProvisionAccountTicket(ctx context.Context, req *adminpb.ProvisionAccountTicketRequest, opts ...gax.CallOption) (*adminpb.ProvisionAccountTicketResponse, error)
- func (c *AnalyticsAdminClient) ProvisionSubproperty(ctx context.Context, req *adminpb.ProvisionSubpropertyRequest, opts ...gax.CallOption) (*adminpb.ProvisionSubpropertyResponse, error)
- func (c *AnalyticsAdminClient) ReorderEventEditRules(ctx context.Context, req *adminpb.ReorderEventEditRulesRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) RunAccessReport(ctx context.Context, req *adminpb.RunAccessReportRequest, opts ...gax.CallOption) (*adminpb.RunAccessReportResponse, error)
- func (c *AnalyticsAdminClient) SearchChangeHistoryEvents(ctx context.Context, req *adminpb.SearchChangeHistoryEventsRequest, opts ...gax.CallOption) *ChangeHistoryEventIterator
- func (c *AnalyticsAdminClient) SetAutomatedGa4ConfigurationOptOut(ctx context.Context, req *adminpb.SetAutomatedGa4ConfigurationOptOutRequest, opts ...gax.CallOption) (*adminpb.SetAutomatedGa4ConfigurationOptOutResponse, error)
- func (c *AnalyticsAdminClient) UpdateAccessBinding(ctx context.Context, req *adminpb.UpdateAccessBindingRequest, opts ...gax.CallOption) (*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, opts ...gax.CallOption) (*adminpb.AttributionSettings, error)
- func (c *AnalyticsAdminClient) UpdateAudience(ctx context.Context, req *adminpb.UpdateAudienceRequest, opts ...gax.CallOption) (*adminpb.Audience, error)
- func (c *AnalyticsAdminClient) UpdateBigQueryLink(ctx context.Context, req *adminpb.UpdateBigQueryLinkRequest, opts ...gax.CallOption) (*adminpb.BigQueryLink, error)
- func (c *AnalyticsAdminClient) UpdateCalculatedMetric(ctx context.Context, req *adminpb.UpdateCalculatedMetricRequest, opts ...gax.CallOption) (*adminpb.CalculatedMetric, error)
- func (c *AnalyticsAdminClient) UpdateChannelGroup(ctx context.Context, req *adminpb.UpdateChannelGroupRequest, opts ...gax.CallOption) (*adminpb.ChannelGroup, error)
- func (c *AnalyticsAdminClient) UpdateConversionEvent(ctx context.Context, req *adminpb.UpdateConversionEventRequest, opts ...gax.CallOption) (*adminpb.ConversionEvent, error)
- func (c *AnalyticsAdminClient) UpdateCustomDimension(ctx context.Context, req *adminpb.UpdateCustomDimensionRequest, opts ...gax.CallOption) (*adminpb.CustomDimension, error)
- func (c *AnalyticsAdminClient) UpdateCustomMetric(ctx context.Context, req *adminpb.UpdateCustomMetricRequest, opts ...gax.CallOption) (*adminpb.CustomMetric, error)
- func (c *AnalyticsAdminClient) UpdateDataRedactionSettings(ctx context.Context, req *adminpb.UpdateDataRedactionSettingsRequest, opts ...gax.CallOption) (*adminpb.DataRedactionSettings, error)
- func (c *AnalyticsAdminClient) UpdateDataRetentionSettings(ctx context.Context, req *adminpb.UpdateDataRetentionSettingsRequest, opts ...gax.CallOption) (*adminpb.DataRetentionSettings, error)
- func (c *AnalyticsAdminClient) UpdateDataStream(ctx context.Context, req *adminpb.UpdateDataStreamRequest, opts ...gax.CallOption) (*adminpb.DataStream, error)
- func (c *AnalyticsAdminClient) UpdateDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.UpdateDisplayVideo360AdvertiserLinkRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLink, error)
- func (c *AnalyticsAdminClient) UpdateEnhancedMeasurementSettings(ctx context.Context, req *adminpb.UpdateEnhancedMeasurementSettingsRequest, opts ...gax.CallOption) (*adminpb.EnhancedMeasurementSettings, error)
- func (c *AnalyticsAdminClient) UpdateEventCreateRule(ctx context.Context, req *adminpb.UpdateEventCreateRuleRequest, opts ...gax.CallOption) (*adminpb.EventCreateRule, error)
- func (c *AnalyticsAdminClient) UpdateEventEditRule(ctx context.Context, req *adminpb.UpdateEventEditRuleRequest, opts ...gax.CallOption) (*adminpb.EventEditRule, error)
- func (c *AnalyticsAdminClient) UpdateExpandedDataSet(ctx context.Context, req *adminpb.UpdateExpandedDataSetRequest, opts ...gax.CallOption) (*adminpb.ExpandedDataSet, error)
- func (c *AnalyticsAdminClient) UpdateGoogleAdsLink(ctx context.Context, req *adminpb.UpdateGoogleAdsLinkRequest, opts ...gax.CallOption) (*adminpb.GoogleAdsLink, error)
- func (c *AnalyticsAdminClient) UpdateGoogleSignalsSettings(ctx context.Context, req *adminpb.UpdateGoogleSignalsSettingsRequest, opts ...gax.CallOption) (*adminpb.GoogleSignalsSettings, error)
- func (c *AnalyticsAdminClient) UpdateKeyEvent(ctx context.Context, req *adminpb.UpdateKeyEventRequest, opts ...gax.CallOption) (*adminpb.KeyEvent, error)
- func (c *AnalyticsAdminClient) UpdateMeasurementProtocolSecret(ctx context.Context, req *adminpb.UpdateMeasurementProtocolSecretRequest, opts ...gax.CallOption) (*adminpb.MeasurementProtocolSecret, error)
- func (c *AnalyticsAdminClient) UpdateProperty(ctx context.Context, req *adminpb.UpdatePropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
- func (c *AnalyticsAdminClient) UpdateSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.UpdateSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) (*adminpb.SKAdNetworkConversionValueSchema, error)
- func (c *AnalyticsAdminClient) UpdateSearchAds360Link(ctx context.Context, req *adminpb.UpdateSearchAds360LinkRequest, opts ...gax.CallOption) (*adminpb.SearchAds360Link, error)
- func (c *AnalyticsAdminClient) UpdateSubpropertyEventFilter(ctx context.Context, req *adminpb.UpdateSubpropertyEventFilterRequest, opts ...gax.CallOption) (*adminpb.SubpropertyEventFilter, error)
- type AudienceIterator
- func (it *AudienceIterator) All() iter.Seq2[*adminpb.Audience, error]
- func (it *AudienceIterator) Next() (*adminpb.Audience, error)
- func (it *AudienceIterator) PageInfo() *iterator.PageInfo
- type BigQueryLinkIterator
- func (it *BigQueryLinkIterator) All() iter.Seq2[*adminpb.BigQueryLink, error]
- func (it *BigQueryLinkIterator) Next() (*adminpb.BigQueryLink, error)
- func (it *BigQueryLinkIterator) PageInfo() *iterator.PageInfo
- type CalculatedMetricIterator
- func (it *CalculatedMetricIterator) All() iter.Seq2[*adminpb.CalculatedMetric, error]
- func (it *CalculatedMetricIterator) Next() (*adminpb.CalculatedMetric, error)
- func (it *CalculatedMetricIterator) PageInfo() *iterator.PageInfo
- type ChangeHistoryEventIterator
- func (it *ChangeHistoryEventIterator) All() iter.Seq2[*adminpb.ChangeHistoryEvent, error]
- func (it *ChangeHistoryEventIterator) Next() (*adminpb.ChangeHistoryEvent, error)
- func (it *ChangeHistoryEventIterator) PageInfo() *iterator.PageInfo
- type ChannelGroupIterator
- func (it *ChannelGroupIterator) All() iter.Seq2[*adminpb.ChannelGroup, error]
- func (it *ChannelGroupIterator) Next() (*adminpb.ChannelGroup, error)
- func (it *ChannelGroupIterator) PageInfo() *iterator.PageInfo
- type ConversionEventIterator
- func (it *ConversionEventIterator) All() iter.Seq2[*adminpb.ConversionEvent, error]
- func (it *ConversionEventIterator) Next() (*adminpb.ConversionEvent, error)
- func (it *ConversionEventIterator) PageInfo() *iterator.PageInfo
- type CustomDimensionIterator
- func (it *CustomDimensionIterator) All() iter.Seq2[*adminpb.CustomDimension, error]
- func (it *CustomDimensionIterator) Next() (*adminpb.CustomDimension, error)
- func (it *CustomDimensionIterator) PageInfo() *iterator.PageInfo
- type CustomMetricIterator
- func (it *CustomMetricIterator) All() iter.Seq2[*adminpb.CustomMetric, error]
- func (it *CustomMetricIterator) Next() (*adminpb.CustomMetric, error)
- func (it *CustomMetricIterator) PageInfo() *iterator.PageInfo
- type DataStreamIterator
- func (it *DataStreamIterator) All() iter.Seq2[*adminpb.DataStream, error]
- func (it *DataStreamIterator) Next() (*adminpb.DataStream, error)
- func (it *DataStreamIterator) PageInfo() *iterator.PageInfo
- type DisplayVideo360AdvertiserLinkIterator
- func (it *DisplayVideo360AdvertiserLinkIterator) All() iter.Seq2[*adminpb.DisplayVideo360AdvertiserLink, error]
- func (it *DisplayVideo360AdvertiserLinkIterator) Next() (*adminpb.DisplayVideo360AdvertiserLink, error)
- func (it *DisplayVideo360AdvertiserLinkIterator) PageInfo() *iterator.PageInfo
- 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
- func (it *EventCreateRuleIterator) All() iter.Seq2[*adminpb.EventCreateRule, error]
- func (it *EventCreateRuleIterator) Next() (*adminpb.EventCreateRule, error)
- func (it *EventCreateRuleIterator) PageInfo() *iterator.PageInfo
- type EventEditRuleIterator
- func (it *EventEditRuleIterator) All() iter.Seq2[*adminpb.EventEditRule, error]
- func (it *EventEditRuleIterator) Next() (*adminpb.EventEditRule, error)
- func (it *EventEditRuleIterator) PageInfo() *iterator.PageInfo
- type ExpandedDataSetIterator
- func (it *ExpandedDataSetIterator) All() iter.Seq2[*adminpb.ExpandedDataSet, error]
- func (it *ExpandedDataSetIterator) Next() (*adminpb.ExpandedDataSet, error)
- func (it *ExpandedDataSetIterator) PageInfo() *iterator.PageInfo
- type FirebaseLinkIterator
- func (it *FirebaseLinkIterator) All() iter.Seq2[*adminpb.FirebaseLink, error]
- func (it *FirebaseLinkIterator) Next() (*adminpb.FirebaseLink, error)
- func (it *FirebaseLinkIterator) PageInfo() *iterator.PageInfo
- type GoogleAdsLinkIterator
- func (it *GoogleAdsLinkIterator) All() iter.Seq2[*adminpb.GoogleAdsLink, error]
- func (it *GoogleAdsLinkIterator) Next() (*adminpb.GoogleAdsLink, error)
- func (it *GoogleAdsLinkIterator) PageInfo() *iterator.PageInfo
- type KeyEventIterator
- func (it *KeyEventIterator) All() iter.Seq2[*adminpb.KeyEvent, error]
- func (it *KeyEventIterator) Next() (*adminpb.KeyEvent, error)
- func (it *KeyEventIterator) PageInfo() *iterator.PageInfo
- type MeasurementProtocolSecretIterator
- func (it *MeasurementProtocolSecretIterator) All() iter.Seq2[*adminpb.MeasurementProtocolSecret, error]
- func (it *MeasurementProtocolSecretIterator) Next() (*adminpb.MeasurementProtocolSecret, error)
- func (it *MeasurementProtocolSecretIterator) PageInfo() *iterator.PageInfo
- type PropertyIterator
- func (it *PropertyIterator) All() iter.Seq2[*adminpb.Property, error]
- func (it *PropertyIterator) Next() (*adminpb.Property, error)
- func (it *PropertyIterator) PageInfo() *iterator.PageInfo
- type RollupPropertySourceLinkIterator
- func (it *RollupPropertySourceLinkIterator) All() iter.Seq2[*adminpb.RollupPropertySourceLink, error]
- func (it *RollupPropertySourceLinkIterator) Next() (*adminpb.RollupPropertySourceLink, error)
- func (it *RollupPropertySourceLinkIterator) PageInfo() *iterator.PageInfo
- 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
- func (it *SearchAds360LinkIterator) All() iter.Seq2[*adminpb.SearchAds360Link, error]
- func (it *SearchAds360LinkIterator) Next() (*adminpb.SearchAds360Link, error)
- func (it *SearchAds360LinkIterator) PageInfo() *iterator.PageInfo
- 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
Functions ¶
func DefaultAuthScopes ¶
func DefaultAuthScopes() []string
DefaultAuthScopes reports the default set of authentication scopes to use with this package.
Types ¶
type AccessBindingIterator ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 Google Analytics Admin API.
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 Google Analytics Admin API.
Code:play
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
}
func NewAnalyticsAdminRESTClient ¶
func NewAnalyticsAdminRESTClient(ctx context.Context, opts ...option.ClientOption) (*AnalyticsAdminClient, error)
NewAnalyticsAdminRESTClient creates a new analytics admin service rest client.
Service Interface for the Google Analytics Admin API.
Code:play
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
}
func (*AnalyticsAdminClient) AcknowledgeUserDataCollection ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) ApproveDisplayVideo360AdvertiserLinkProposal ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) ArchiveAudience ¶
func (c *AnalyticsAdminClient) ArchiveAudience(ctx context.Context, req *adminpb.ArchiveAudienceRequest, opts ...gax.CallOption) error
ArchiveAudience archives an Audience on a property.
Code:play
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.
}
}
func (*AnalyticsAdminClient) ArchiveCustomDimension ¶
func (c *AnalyticsAdminClient) ArchiveCustomDimension(ctx context.Context, req *adminpb.ArchiveCustomDimensionRequest, opts ...gax.CallOption) error
ArchiveCustomDimension archives a CustomDimension on a property.
Code:play
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.
}
}
func (*AnalyticsAdminClient) ArchiveCustomMetric ¶
func (c *AnalyticsAdminClient) ArchiveCustomMetric(ctx context.Context, req *adminpb.ArchiveCustomMetricRequest, opts ...gax.CallOption) error
ArchiveCustomMetric archives a CustomMetric on a property.
Code:play
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.
}
}
func (*AnalyticsAdminClient) BatchCreateAccessBindings ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) BatchDeleteAccessBindings ¶
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.
Code:play
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.
}
}
func (*AnalyticsAdminClient) BatchGetAccessBindings ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) BatchUpdateAccessBindings ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) CancelDisplayVideo360AdvertiserLinkProposal ¶
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¶
Code:play
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 }
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 ¶
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 ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) CreateAdSenseLink ¶
func (c *AnalyticsAdminClient) CreateAdSenseLink(ctx context.Context, req *adminpb.CreateAdSenseLinkRequest, opts ...gax.CallOption) (*adminpb.AdSenseLink, error)
CreateAdSenseLink creates an AdSenseLink.
Code:play
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
}
func (*AnalyticsAdminClient) CreateAudience ¶
func (c *AnalyticsAdminClient) CreateAudience(ctx context.Context, req *adminpb.CreateAudienceRequest, opts ...gax.CallOption) (*adminpb.Audience, error)
CreateAudience creates an Audience.
Code:play
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
}
func (*AnalyticsAdminClient) CreateBigQueryLink ¶
func (c *AnalyticsAdminClient) CreateBigQueryLink(ctx context.Context, req *adminpb.CreateBigQueryLinkRequest, opts ...gax.CallOption) (*adminpb.BigQueryLink, error)
CreateBigQueryLink creates a BigQueryLink.
Code:play
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
}
func (*AnalyticsAdminClient) CreateCalculatedMetric ¶
func (c *AnalyticsAdminClient) CreateCalculatedMetric(ctx context.Context, req *adminpb.CreateCalculatedMetricRequest, opts ...gax.CallOption) (*adminpb.CalculatedMetric, error)
CreateCalculatedMetric creates a CalculatedMetric.
Code:play
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
}
func (*AnalyticsAdminClient) CreateChannelGroup ¶
func (c *AnalyticsAdminClient) CreateChannelGroup(ctx context.Context, req *adminpb.CreateChannelGroupRequest, opts ...gax.CallOption) (*adminpb.ChannelGroup, error)
CreateChannelGroup creates a ChannelGroup.
Code:play
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
}
func (*AnalyticsAdminClient) CreateConnectedSiteTag ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) CreateConversionEvent ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) CreateCustomDimension ¶
func (c *AnalyticsAdminClient) CreateCustomDimension(ctx context.Context, req *adminpb.CreateCustomDimensionRequest, opts ...gax.CallOption) (*adminpb.CustomDimension, error)
CreateCustomDimension creates a CustomDimension.
Code:play
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
}
func (*AnalyticsAdminClient) CreateCustomMetric ¶
func (c *AnalyticsAdminClient) CreateCustomMetric(ctx context.Context, req *adminpb.CreateCustomMetricRequest, opts ...gax.CallOption) (*adminpb.CustomMetric, error)
CreateCustomMetric creates a CustomMetric.
Code:play
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
}
func (*AnalyticsAdminClient) CreateDataStream ¶
func (c *AnalyticsAdminClient) CreateDataStream(ctx context.Context, req *adminpb.CreateDataStreamRequest, opts ...gax.CallOption) (*adminpb.DataStream, error)
CreateDataStream creates a DataStream.
Code:play
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
}
func (*AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLink ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLinkProposal ¶
func (c *AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.CreateDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
CreateDisplayVideo360AdvertiserLinkProposal creates a DisplayVideo360AdvertiserLinkProposal.
Code:play
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
}
func (*AnalyticsAdminClient) CreateEventCreateRule ¶
func (c *AnalyticsAdminClient) CreateEventCreateRule(ctx context.Context, req *adminpb.CreateEventCreateRuleRequest, opts ...gax.CallOption) (*adminpb.EventCreateRule, error)
CreateEventCreateRule creates an EventCreateRule.
Code:play
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
}
func (*AnalyticsAdminClient) CreateEventEditRule ¶
func (c *AnalyticsAdminClient) CreateEventEditRule(ctx context.Context, req *adminpb.CreateEventEditRuleRequest, opts ...gax.CallOption) (*adminpb.EventEditRule, error)
CreateEventEditRule creates an EventEditRule.
Code:play
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
}
func (*AnalyticsAdminClient) CreateExpandedDataSet ¶
func (c *AnalyticsAdminClient) CreateExpandedDataSet(ctx context.Context, req *adminpb.CreateExpandedDataSetRequest, opts ...gax.CallOption) (*adminpb.ExpandedDataSet, error)
CreateExpandedDataSet creates a ExpandedDataSet.
Code:play
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
}
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.
Code:play
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
}
func (*AnalyticsAdminClient) CreateGoogleAdsLink ¶
func (c *AnalyticsAdminClient) CreateGoogleAdsLink(ctx context.Context, req *adminpb.CreateGoogleAdsLinkRequest, opts ...gax.CallOption) (*adminpb.GoogleAdsLink, error)
CreateGoogleAdsLink creates a GoogleAdsLink.
Code:play
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
}
func (*AnalyticsAdminClient) CreateKeyEvent ¶
func (c *AnalyticsAdminClient) CreateKeyEvent(ctx context.Context, req *adminpb.CreateKeyEventRequest, opts ...gax.CallOption) (*adminpb.KeyEvent, error)
CreateKeyEvent creates a Key Event.
Code:play
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
}
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.
Code:play
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
}
func (*AnalyticsAdminClient) CreateProperty ¶
func (c *AnalyticsAdminClient) CreateProperty(ctx context.Context, req *adminpb.CreatePropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
CreateProperty creates a Google Analytics property with the specified location and
attributes.
Code:play
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
}
func (*AnalyticsAdminClient) CreateRollupProperty ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) CreateRollupPropertySourceLink ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) CreateSKAdNetworkConversionValueSchema ¶
func (c *AnalyticsAdminClient) CreateSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.CreateSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) (*adminpb.SKAdNetworkConversionValueSchema, error)
CreateSKAdNetworkConversionValueSchema creates a SKAdNetworkConversionValueSchema.
Code:play
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
}
func (*AnalyticsAdminClient) CreateSearchAds360Link ¶
func (c *AnalyticsAdminClient) CreateSearchAds360Link(ctx context.Context, req *adminpb.CreateSearchAds360LinkRequest, opts ...gax.CallOption) (*adminpb.SearchAds360Link, error)
CreateSearchAds360Link creates a SearchAds360Link.
Code:play
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
}
func (*AnalyticsAdminClient) CreateSubpropertyEventFilter ¶
func (c *AnalyticsAdminClient) CreateSubpropertyEventFilter(ctx context.Context, req *adminpb.CreateSubpropertyEventFilterRequest, opts ...gax.CallOption) (*adminpb.SubpropertyEventFilter, error)
CreateSubpropertyEventFilter creates a subproperty Event Filter.
Code:play
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
}
func (*AnalyticsAdminClient) DeleteAccessBinding ¶
func (c *AnalyticsAdminClient) DeleteAccessBinding(ctx context.Context, req *adminpb.DeleteAccessBindingRequest, opts ...gax.CallOption) error
DeleteAccessBinding deletes an access binding on an account or property.
Code:play
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.
}
}
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.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteAdSenseLink ¶
func (c *AnalyticsAdminClient) DeleteAdSenseLink(ctx context.Context, req *adminpb.DeleteAdSenseLinkRequest, opts ...gax.CallOption) error
DeleteAdSenseLink deletes an AdSenseLink.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteBigQueryLink ¶
func (c *AnalyticsAdminClient) DeleteBigQueryLink(ctx context.Context, req *adminpb.DeleteBigQueryLinkRequest, opts ...gax.CallOption) error
DeleteBigQueryLink deletes a BigQueryLink on a property.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteCalculatedMetric ¶
func (c *AnalyticsAdminClient) DeleteCalculatedMetric(ctx context.Context, req *adminpb.DeleteCalculatedMetricRequest, opts ...gax.CallOption) error
DeleteCalculatedMetric deletes a CalculatedMetric on a property.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteChannelGroup ¶
func (c *AnalyticsAdminClient) DeleteChannelGroup(ctx context.Context, req *adminpb.DeleteChannelGroupRequest, opts ...gax.CallOption) error
DeleteChannelGroup deletes a ChannelGroup on a property.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteConnectedSiteTag ¶
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.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteConversionEvent ¶
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.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteDataStream ¶
func (c *AnalyticsAdminClient) DeleteDataStream(ctx context.Context, req *adminpb.DeleteDataStreamRequest, opts ...gax.CallOption) error
DeleteDataStream deletes a DataStream on a property.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLink ¶
func (c *AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.DeleteDisplayVideo360AdvertiserLinkRequest, opts ...gax.CallOption) error
DeleteDisplayVideo360AdvertiserLink deletes a DisplayVideo360AdvertiserLink on a property.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLinkProposal ¶
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.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteEventCreateRule ¶
func (c *AnalyticsAdminClient) DeleteEventCreateRule(ctx context.Context, req *adminpb.DeleteEventCreateRuleRequest, opts ...gax.CallOption) error
DeleteEventCreateRule deletes an EventCreateRule.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteEventEditRule ¶
func (c *AnalyticsAdminClient) DeleteEventEditRule(ctx context.Context, req *adminpb.DeleteEventEditRuleRequest, opts ...gax.CallOption) error
DeleteEventEditRule deletes an EventEditRule.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteExpandedDataSet ¶
func (c *AnalyticsAdminClient) DeleteExpandedDataSet(ctx context.Context, req *adminpb.DeleteExpandedDataSetRequest, opts ...gax.CallOption) error
DeleteExpandedDataSet deletes a ExpandedDataSet on a property.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteFirebaseLink ¶
func (c *AnalyticsAdminClient) DeleteFirebaseLink(ctx context.Context, req *adminpb.DeleteFirebaseLinkRequest, opts ...gax.CallOption) error
DeleteFirebaseLink deletes a FirebaseLink on a property
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteGoogleAdsLink ¶
func (c *AnalyticsAdminClient) DeleteGoogleAdsLink(ctx context.Context, req *adminpb.DeleteGoogleAdsLinkRequest, opts ...gax.CallOption) error
DeleteGoogleAdsLink deletes a GoogleAdsLink on a property
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteKeyEvent ¶
func (c *AnalyticsAdminClient) DeleteKeyEvent(ctx context.Context, req *adminpb.DeleteKeyEventRequest, opts ...gax.CallOption) error
DeleteKeyEvent deletes a Key Event.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteMeasurementProtocolSecret ¶
func (c *AnalyticsAdminClient) DeleteMeasurementProtocolSecret(ctx context.Context, req *adminpb.DeleteMeasurementProtocolSecretRequest, opts ...gax.CallOption) error
DeleteMeasurementProtocolSecret deletes target MeasurementProtocolSecret.
Code:play
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.
}
}
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.
Code:play
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
}
func (*AnalyticsAdminClient) DeleteRollupPropertySourceLink ¶
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.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteSKAdNetworkConversionValueSchema ¶
func (c *AnalyticsAdminClient) DeleteSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.DeleteSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) error
DeleteSKAdNetworkConversionValueSchema deletes target SKAdNetworkConversionValueSchema.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteSearchAds360Link ¶
func (c *AnalyticsAdminClient) DeleteSearchAds360Link(ctx context.Context, req *adminpb.DeleteSearchAds360LinkRequest, opts ...gax.CallOption) error
DeleteSearchAds360Link deletes a SearchAds360Link on a property.
Code:play
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.
}
}
func (*AnalyticsAdminClient) DeleteSubpropertyEventFilter ¶
func (c *AnalyticsAdminClient) DeleteSubpropertyEventFilter(ctx context.Context, req *adminpb.DeleteSubpropertyEventFilterRequest, opts ...gax.CallOption) error
DeleteSubpropertyEventFilter deletes a subproperty event filter.
Code:play
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.
}
}
func (*AnalyticsAdminClient) FetchAutomatedGa4ConfigurationOptOut ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) FetchConnectedGa4Property ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) GetAccessBinding ¶
func (c *AnalyticsAdminClient) GetAccessBinding(ctx context.Context, req *adminpb.GetAccessBindingRequest, opts ...gax.CallOption) (*adminpb.AccessBinding, error)
GetAccessBinding gets information about an access binding.
Code:play
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
}
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.
Code:play
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
}
func (*AnalyticsAdminClient) GetAdSenseLink ¶
func (c *AnalyticsAdminClient) GetAdSenseLink(ctx context.Context, req *adminpb.GetAdSenseLinkRequest, opts ...gax.CallOption) (*adminpb.AdSenseLink, error)
GetAdSenseLink looks up a single AdSenseLink.
Code:play
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
}
func (*AnalyticsAdminClient) GetAttributionSettings ¶
func (c *AnalyticsAdminClient) GetAttributionSettings(ctx context.Context, req *adminpb.GetAttributionSettingsRequest, opts ...gax.CallOption) (*adminpb.AttributionSettings, error)
GetAttributionSettings lookup for a AttributionSettings singleton.
Code:play
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
}
func (*AnalyticsAdminClient) GetAudience ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) GetBigQueryLink ¶
func (c *AnalyticsAdminClient) GetBigQueryLink(ctx context.Context, req *adminpb.GetBigQueryLinkRequest, opts ...gax.CallOption) (*adminpb.BigQueryLink, error)
GetBigQueryLink lookup for a single BigQuery Link.
Code:play
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
}
func (*AnalyticsAdminClient) GetCalculatedMetric ¶
func (c *AnalyticsAdminClient) GetCalculatedMetric(ctx context.Context, req *adminpb.GetCalculatedMetricRequest, opts ...gax.CallOption) (*adminpb.CalculatedMetric, error)
GetCalculatedMetric lookup for a single CalculatedMetric.
Code:play
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
}
func (*AnalyticsAdminClient) GetChannelGroup ¶
func (c *AnalyticsAdminClient) GetChannelGroup(ctx context.Context, req *adminpb.GetChannelGroupRequest, opts ...gax.CallOption) (*adminpb.ChannelGroup, error)
GetChannelGroup lookup for a single ChannelGroup.
Code:play
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
}
func (*AnalyticsAdminClient) GetConversionEvent ¶
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.
Code:play
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
}
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.
Code:play
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
}
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.
Code:play
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
}
func (*AnalyticsAdminClient) GetDataRedactionSettings ¶
func (c *AnalyticsAdminClient) GetDataRedactionSettings(ctx context.Context, req *adminpb.GetDataRedactionSettingsRequest, opts ...gax.CallOption) (*adminpb.DataRedactionSettings, error)
GetDataRedactionSettings lookup for a single DataRedactionSettings.
Code:play
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
}
func (*AnalyticsAdminClient) GetDataRetentionSettings ¶
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.
Code:play
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
}
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.
Code:play
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
}
func (*AnalyticsAdminClient) GetDataStream ¶
func (c *AnalyticsAdminClient) GetDataStream(ctx context.Context, req *adminpb.GetDataStreamRequest, opts ...gax.CallOption) (*adminpb.DataStream, error)
GetDataStream lookup for a single DataStream.
Code:play
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
}
func (*AnalyticsAdminClient) GetDisplayVideo360AdvertiserLink ¶
func (c *AnalyticsAdminClient) GetDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.GetDisplayVideo360AdvertiserLinkRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLink, error)
GetDisplayVideo360AdvertiserLink look up a single DisplayVideo360AdvertiserLink
Code:play
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
}
func (*AnalyticsAdminClient) GetDisplayVideo360AdvertiserLinkProposal ¶
func (c *AnalyticsAdminClient) GetDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.GetDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
GetDisplayVideo360AdvertiserLinkProposal lookup for a single DisplayVideo360AdvertiserLinkProposal.
Code:play
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
}
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.
Code:play
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
}
func (*AnalyticsAdminClient) GetEventCreateRule ¶
func (c *AnalyticsAdminClient) GetEventCreateRule(ctx context.Context, req *adminpb.GetEventCreateRuleRequest, opts ...gax.CallOption) (*adminpb.EventCreateRule, error)
GetEventCreateRule lookup for a single EventCreateRule.
Code:play
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
}
func (*AnalyticsAdminClient) GetEventEditRule ¶
func (c *AnalyticsAdminClient) GetEventEditRule(ctx context.Context, req *adminpb.GetEventEditRuleRequest, opts ...gax.CallOption) (*adminpb.EventEditRule, error)
GetEventEditRule lookup for a single EventEditRule.
Code:play
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
}
func (*AnalyticsAdminClient) GetExpandedDataSet ¶
func (c *AnalyticsAdminClient) GetExpandedDataSet(ctx context.Context, req *adminpb.GetExpandedDataSetRequest, opts ...gax.CallOption) (*adminpb.ExpandedDataSet, error)
GetExpandedDataSet lookup for a single ExpandedDataSet.
Code:play
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
}
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.
Code:play
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
}
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.
Code:play
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
}
func (*AnalyticsAdminClient) GetKeyEvent ¶
func (c *AnalyticsAdminClient) GetKeyEvent(ctx context.Context, req *adminpb.GetKeyEventRequest, opts ...gax.CallOption) (*adminpb.KeyEvent, error)
GetKeyEvent retrieve a single Key Event.
Code:play
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
}
func (*AnalyticsAdminClient) GetMeasurementProtocolSecret ¶
func (c *AnalyticsAdminClient) GetMeasurementProtocolSecret(ctx context.Context, req *adminpb.GetMeasurementProtocolSecretRequest, opts ...gax.CallOption) (*adminpb.MeasurementProtocolSecret, error)
GetMeasurementProtocolSecret lookup for a single MeasurementProtocolSecret.
Code:play
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
}
func (*AnalyticsAdminClient) GetProperty ¶
func (c *AnalyticsAdminClient) GetProperty(ctx context.Context, req *adminpb.GetPropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
GetProperty lookup for a single GA Property.
Code:play
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
}
func (*AnalyticsAdminClient) GetRollupPropertySourceLink ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) GetSKAdNetworkConversionValueSchema ¶
func (c *AnalyticsAdminClient) GetSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.GetSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) (*adminpb.SKAdNetworkConversionValueSchema, error)
GetSKAdNetworkConversionValueSchema looks up a single SKAdNetworkConversionValueSchema.
Code:play
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
}
func (*AnalyticsAdminClient) GetSearchAds360Link ¶
func (c *AnalyticsAdminClient) GetSearchAds360Link(ctx context.Context, req *adminpb.GetSearchAds360LinkRequest, opts ...gax.CallOption) (*adminpb.SearchAds360Link, error)
GetSearchAds360Link look up a single SearchAds360Link
Code:play
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
}
func (*AnalyticsAdminClient) GetSubpropertyEventFilter ¶
func (c *AnalyticsAdminClient) GetSubpropertyEventFilter(ctx context.Context, req *adminpb.GetSubpropertyEventFilterRequest, opts ...gax.CallOption) (*adminpb.SubpropertyEventFilter, error)
GetSubpropertyEventFilter lookup for a single subproperty Event Filter.
Code:play
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
}
func (*AnalyticsAdminClient) ListAccessBindings ¶
func (c *AnalyticsAdminClient) ListAccessBindings(ctx context.Context, req *adminpb.ListAccessBindingsRequest, opts ...gax.CallOption) *AccessBindingIterator
ListAccessBindings lists all access bindings on an account or property.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
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.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
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 GA properties.
Soft-deleted (ie: “trashed”) accounts are excluded by default.
Returns an empty list if no relevant accounts are found.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListAdSenseLinks ¶
func (c *AnalyticsAdminClient) ListAdSenseLinks(ctx context.Context, req *adminpb.ListAdSenseLinksRequest, opts ...gax.CallOption) *AdSenseLinkIterator
ListAdSenseLinks lists AdSenseLinks on a property.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListAudiences ¶
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.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListBigQueryLinks ¶
func (c *AnalyticsAdminClient) ListBigQueryLinks(ctx context.Context, req *adminpb.ListBigQueryLinksRequest, opts ...gax.CallOption) *BigQueryLinkIterator
ListBigQueryLinks lists BigQuery Links on a property.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListCalculatedMetrics ¶
func (c *AnalyticsAdminClient) ListCalculatedMetrics(ctx context.Context, req *adminpb.ListCalculatedMetricsRequest, opts ...gax.CallOption) *CalculatedMetricIterator
ListCalculatedMetrics lists CalculatedMetrics on a property.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListChannelGroups ¶
func (c *AnalyticsAdminClient) ListChannelGroups(ctx context.Context, req *adminpb.ListChannelGroupsRequest, opts ...gax.CallOption) *ChannelGroupIterator
ListChannelGroups lists ChannelGroups on a property.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListConnectedSiteTags ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) ListConversionEvents ¶
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.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListCustomDimensions ¶
func (c *AnalyticsAdminClient) ListCustomDimensions(ctx context.Context, req *adminpb.ListCustomDimensionsRequest, opts ...gax.CallOption) *CustomDimensionIterator
ListCustomDimensions lists CustomDimensions on a property.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListCustomMetrics ¶
func (c *AnalyticsAdminClient) ListCustomMetrics(ctx context.Context, req *adminpb.ListCustomMetricsRequest, opts ...gax.CallOption) *CustomMetricIterator
ListCustomMetrics lists CustomMetrics on a property.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListDataStreams ¶
func (c *AnalyticsAdminClient) ListDataStreams(ctx context.Context, req *adminpb.ListDataStreamsRequest, opts ...gax.CallOption) *DataStreamIterator
ListDataStreams lists DataStreams on a property.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinkProposals ¶
func (c *AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinkProposals(ctx context.Context, req *adminpb.ListDisplayVideo360AdvertiserLinkProposalsRequest, opts ...gax.CallOption) *DisplayVideo360AdvertiserLinkProposalIterator
ListDisplayVideo360AdvertiserLinkProposals lists DisplayVideo360AdvertiserLinkProposals on a property.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinks ¶
func (c *AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinks(ctx context.Context, req *adminpb.ListDisplayVideo360AdvertiserLinksRequest, opts ...gax.CallOption) *DisplayVideo360AdvertiserLinkIterator
ListDisplayVideo360AdvertiserLinks lists all DisplayVideo360AdvertiserLinks on a property.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListEventCreateRules ¶
func (c *AnalyticsAdminClient) ListEventCreateRules(ctx context.Context, req *adminpb.ListEventCreateRulesRequest, opts ...gax.CallOption) *EventCreateRuleIterator
ListEventCreateRules lists EventCreateRules on a web data stream.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListEventEditRules ¶
func (c *AnalyticsAdminClient) ListEventEditRules(ctx context.Context, req *adminpb.ListEventEditRulesRequest, opts ...gax.CallOption) *EventEditRuleIterator
ListEventEditRules lists EventEditRules on a web data stream.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListExpandedDataSets ¶
func (c *AnalyticsAdminClient) ListExpandedDataSets(ctx context.Context, req *adminpb.ListExpandedDataSetsRequest, opts ...gax.CallOption) *ExpandedDataSetIterator
ListExpandedDataSets lists ExpandedDataSets on a property.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
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.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListGoogleAdsLinks ¶
func (c *AnalyticsAdminClient) ListGoogleAdsLinks(ctx context.Context, req *adminpb.ListGoogleAdsLinksRequest, opts ...gax.CallOption) *GoogleAdsLinkIterator
ListGoogleAdsLinks lists GoogleAdsLinks on a property.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListKeyEvents ¶
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.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
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.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
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.
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.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListRollupPropertySourceLinks ¶
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.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListSKAdNetworkConversionValueSchemas ¶
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.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListSearchAds360Links ¶
func (c *AnalyticsAdminClient) ListSearchAds360Links(ctx context.Context, req *adminpb.ListSearchAds360LinksRequest, opts ...gax.CallOption) *SearchAds360LinkIterator
ListSearchAds360Links lists all SearchAds360Links on a property.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) ListSubpropertyEventFilters ¶
func (c *AnalyticsAdminClient) ListSubpropertyEventFilters(ctx context.Context, req *adminpb.ListSubpropertyEventFiltersRequest, opts ...gax.CallOption) *SubpropertyEventFilterIterator
ListSubpropertyEventFilters list all subproperty Event Filters on a property.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
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.
Code:play
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
}
func (*AnalyticsAdminClient) ProvisionSubproperty ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) ReorderEventEditRules ¶
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.
Code:play
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.
}
}
func (*AnalyticsAdminClient) RunAccessReport ¶
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 GA UI Reporting, GA UI Explorations, GA 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).
To give your feedback on this API, complete the Google Analytics Access
Reports
feedback (at https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform)
form.
Code:play
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
}
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.
Only returns the subset of changes supported by the API. The UI may return
additional changes.
Code:play
Code:play
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)
}
}
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 and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*AnalyticsAdminClient) SetAutomatedGa4ConfigurationOptOut ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateAccessBinding ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateAccount ¶
func (c *AnalyticsAdminClient) UpdateAccount(ctx context.Context, req *adminpb.UpdateAccountRequest, opts ...gax.CallOption) (*adminpb.Account, error)
UpdateAccount updates an account.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateAttributionSettings ¶
func (c *AnalyticsAdminClient) UpdateAttributionSettings(ctx context.Context, req *adminpb.UpdateAttributionSettingsRequest, opts ...gax.CallOption) (*adminpb.AttributionSettings, error)
UpdateAttributionSettings updates attribution settings on a property.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateAudience ¶
func (c *AnalyticsAdminClient) UpdateAudience(ctx context.Context, req *adminpb.UpdateAudienceRequest, opts ...gax.CallOption) (*adminpb.Audience, error)
UpdateAudience updates an Audience on a property.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateBigQueryLink ¶
func (c *AnalyticsAdminClient) UpdateBigQueryLink(ctx context.Context, req *adminpb.UpdateBigQueryLinkRequest, opts ...gax.CallOption) (*adminpb.BigQueryLink, error)
UpdateBigQueryLink updates a BigQueryLink.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateCalculatedMetric ¶
func (c *AnalyticsAdminClient) UpdateCalculatedMetric(ctx context.Context, req *adminpb.UpdateCalculatedMetricRequest, opts ...gax.CallOption) (*adminpb.CalculatedMetric, error)
UpdateCalculatedMetric updates a CalculatedMetric on a property.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateChannelGroup ¶
func (c *AnalyticsAdminClient) UpdateChannelGroup(ctx context.Context, req *adminpb.UpdateChannelGroupRequest, opts ...gax.CallOption) (*adminpb.ChannelGroup, error)
UpdateChannelGroup updates a ChannelGroup.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateConversionEvent ¶
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.
Code:play
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
}
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.
Code:play
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
}
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.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateDataRedactionSettings ¶
func (c *AnalyticsAdminClient) UpdateDataRedactionSettings(ctx context.Context, req *adminpb.UpdateDataRedactionSettingsRequest, opts ...gax.CallOption) (*adminpb.DataRedactionSettings, error)
UpdateDataRedactionSettings updates a DataRedactionSettings on a property.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateDataRetentionSettings ¶
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.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateDataStream ¶
func (c *AnalyticsAdminClient) UpdateDataStream(ctx context.Context, req *adminpb.UpdateDataStreamRequest, opts ...gax.CallOption) (*adminpb.DataStream, error)
UpdateDataStream updates a DataStream on a property.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateDisplayVideo360AdvertiserLink ¶
func (c *AnalyticsAdminClient) UpdateDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.UpdateDisplayVideo360AdvertiserLinkRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLink, error)
UpdateDisplayVideo360AdvertiserLink updates a DisplayVideo360AdvertiserLink on a property.
Code:play
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
}
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.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateEventCreateRule ¶
func (c *AnalyticsAdminClient) UpdateEventCreateRule(ctx context.Context, req *adminpb.UpdateEventCreateRuleRequest, opts ...gax.CallOption) (*adminpb.EventCreateRule, error)
UpdateEventCreateRule updates an EventCreateRule.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateEventEditRule ¶
func (c *AnalyticsAdminClient) UpdateEventEditRule(ctx context.Context, req *adminpb.UpdateEventEditRuleRequest, opts ...gax.CallOption) (*adminpb.EventEditRule, error)
UpdateEventEditRule updates an EventEditRule.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateExpandedDataSet ¶
func (c *AnalyticsAdminClient) UpdateExpandedDataSet(ctx context.Context, req *adminpb.UpdateExpandedDataSetRequest, opts ...gax.CallOption) (*adminpb.ExpandedDataSet, error)
UpdateExpandedDataSet updates a ExpandedDataSet on a property.
Code:play
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
}
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
Code:play
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
}
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.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateKeyEvent ¶
func (c *AnalyticsAdminClient) UpdateKeyEvent(ctx context.Context, req *adminpb.UpdateKeyEventRequest, opts ...gax.CallOption) (*adminpb.KeyEvent, error)
UpdateKeyEvent updates a Key Event.
Code:play
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
}
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.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateProperty ¶
func (c *AnalyticsAdminClient) UpdateProperty(ctx context.Context, req *adminpb.UpdatePropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
UpdateProperty updates a property.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateSKAdNetworkConversionValueSchema ¶
func (c *AnalyticsAdminClient) UpdateSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.UpdateSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) (*adminpb.SKAdNetworkConversionValueSchema, error)
UpdateSKAdNetworkConversionValueSchema updates a SKAdNetworkConversionValueSchema.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateSearchAds360Link ¶
func (c *AnalyticsAdminClient) UpdateSearchAds360Link(ctx context.Context, req *adminpb.UpdateSearchAds360LinkRequest, opts ...gax.CallOption) (*adminpb.SearchAds360Link, error)
UpdateSearchAds360Link updates a SearchAds360Link on a property.
Code:play
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
}
func (*AnalyticsAdminClient) UpdateSubpropertyEventFilter ¶
func (c *AnalyticsAdminClient) UpdateSubpropertyEventFilter(ctx context.Context, req *adminpb.UpdateSubpropertyEventFilterRequest, opts ...gax.CallOption) (*adminpb.SubpropertyEventFilter, error)
UpdateSubpropertyEventFilter updates a subproperty Event Filter.
Code:play
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
}
type AudienceIterator ¶
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 ¶
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AudienceIterator) Next ¶
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 ¶
func (it *AudienceIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type BigQueryLinkIterator ¶
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 ¶
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 ¶
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 ¶
func (it *BigQueryLinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type CalculatedMetricIterator ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (it *DataStreamIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DisplayVideo360AdvertiserLinkIterator ¶
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 ¶
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 ¶
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 ¶
func (it *DisplayVideo360AdvertiserLinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DisplayVideo360AdvertiserLinkProposalIterator ¶
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 ¶
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 ¶
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 ¶
func (it *DisplayVideo360AdvertiserLinkProposalIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type EventCreateRuleIterator ¶
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 ¶
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 ¶
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 ¶
func (it *EventCreateRuleIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type EventEditRuleIterator ¶
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 ¶
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 ¶
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 ¶
func (it *EventEditRuleIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ExpandedDataSetIterator ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*KeyEventIterator) Next ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (it *RollupPropertySourceLinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type SKAdNetworkConversionValueSchemaIterator ¶
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 ¶
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 ¶
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 ¶
func (it *SKAdNetworkConversionValueSchemaIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type SearchAds360LinkIterator ¶
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 ¶
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 ¶
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 ¶
func (it *SearchAds360LinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type SubpropertyEventFilterIterator ¶
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 ¶
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 ¶
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 ¶
func (it *SubpropertyEventFilterIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
Source Files ¶
analytics_admin_client.go auxiliary.go auxiliary_go123.go doc.go helpers.go version.go
Directories ¶
Path | Synopsis |
---|---|
admin/apiv1alpha/adminpb |
- Version
- v0.26.0 (latest)
- Published
- Jan 30, 2025
- Platform
- linux/amd64
- Imports
- 26 packages
- Last checked
- 3 days ago –
Tools for package owners.