Documentation ¶
Overview ¶
Package admin is an auto-generated package for the Google Analytics Admin API.
Manage properties in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning.
NOTE: This package is in alpha. It is not stable, and is likely to change.
General documentation ¶
For information that is relevant for all client libraries please reference https://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on this page includes:
- Authentication and Authorization
- Timeouts and Cancellation
- Testing against Client Libraries
- Debugging Client Libraries
- Inspecting errors
Example usage ¶
To get started with this package, create a client.
ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close()
The client will use your default application credentials. Clients should be reused instead of created as needed. The methods of Client are safe for concurrent use by multiple goroutines. The returned client must be Closed when it is done being used.
Using the Client ¶
The following is an example of making an API call with the newly created client.
ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.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
Use of Context ¶
The ctx passed to NewAnalyticsAdminClient is used for authentication requests and for creating the underlying connection, but is not used for subsequent calls. Individual methods on the client use the ctx given to them.
To close the open connection, use the Close() method.
Index ¶
- func DefaultAuthScopes() []string
- type AccessBindingIterator
- type AccountIterator
- type AccountSummaryIterator
- type AdSenseLinkIterator
- type AnalyticsAdminCallOptions
- type AnalyticsAdminClient
- func (c *AnalyticsAdminClient) AcknowledgeUserDataCollection(ctx context.Context, req *adminpb.AcknowledgeUserDataCollectionRequest, ...) (*adminpb.AcknowledgeUserDataCollectionResponse, error)
- func (c *AnalyticsAdminClient) ApproveDisplayVideo360AdvertiserLinkProposal(ctx context.Context, ...) (*adminpb.ApproveDisplayVideo360AdvertiserLinkProposalResponse, error)
- func (c *AnalyticsAdminClient) ArchiveAudience(ctx context.Context, req *adminpb.ArchiveAudienceRequest, ...) error
- func (c *AnalyticsAdminClient) ArchiveCustomDimension(ctx context.Context, req *adminpb.ArchiveCustomDimensionRequest, ...) error
- func (c *AnalyticsAdminClient) ArchiveCustomMetric(ctx context.Context, req *adminpb.ArchiveCustomMetricRequest, ...) error
- func (c *AnalyticsAdminClient) AuditUserLinks(ctx context.Context, req *adminpb.AuditUserLinksRequest, ...) *AuditUserLinkIterator
- func (c *AnalyticsAdminClient) BatchCreateAccessBindings(ctx context.Context, req *adminpb.BatchCreateAccessBindingsRequest, ...) (*adminpb.BatchCreateAccessBindingsResponse, error)
- func (c *AnalyticsAdminClient) BatchCreateUserLinks(ctx context.Context, req *adminpb.BatchCreateUserLinksRequest, ...) (*adminpb.BatchCreateUserLinksResponse, error)
- func (c *AnalyticsAdminClient) BatchDeleteAccessBindings(ctx context.Context, req *adminpb.BatchDeleteAccessBindingsRequest, ...) error
- func (c *AnalyticsAdminClient) BatchDeleteUserLinks(ctx context.Context, req *adminpb.BatchDeleteUserLinksRequest, ...) error
- func (c *AnalyticsAdminClient) BatchGetAccessBindings(ctx context.Context, req *adminpb.BatchGetAccessBindingsRequest, ...) (*adminpb.BatchGetAccessBindingsResponse, error)
- func (c *AnalyticsAdminClient) BatchGetUserLinks(ctx context.Context, req *adminpb.BatchGetUserLinksRequest, ...) (*adminpb.BatchGetUserLinksResponse, error)
- func (c *AnalyticsAdminClient) BatchUpdateAccessBindings(ctx context.Context, req *adminpb.BatchUpdateAccessBindingsRequest, ...) (*adminpb.BatchUpdateAccessBindingsResponse, error)
- func (c *AnalyticsAdminClient) BatchUpdateUserLinks(ctx context.Context, req *adminpb.BatchUpdateUserLinksRequest, ...) (*adminpb.BatchUpdateUserLinksResponse, error)
- func (c *AnalyticsAdminClient) CancelDisplayVideo360AdvertiserLinkProposal(ctx context.Context, ...) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
- func (c *AnalyticsAdminClient) Close() error
- func (c *AnalyticsAdminClient) Connection() *grpc.ClientConndeprecated
- func (c *AnalyticsAdminClient) CreateAccessBinding(ctx context.Context, req *adminpb.CreateAccessBindingRequest, ...) (*adminpb.AccessBinding, error)
- func (c *AnalyticsAdminClient) CreateAdSenseLink(ctx context.Context, req *adminpb.CreateAdSenseLinkRequest, ...) (*adminpb.AdSenseLink, error)
- func (c *AnalyticsAdminClient) CreateAudience(ctx context.Context, req *adminpb.CreateAudienceRequest, ...) (*adminpb.Audience, error)
- func (c *AnalyticsAdminClient) CreateChannelGroup(ctx context.Context, req *adminpb.CreateChannelGroupRequest, ...) (*adminpb.ChannelGroup, error)
- func (c *AnalyticsAdminClient) CreateConnectedSiteTag(ctx context.Context, req *adminpb.CreateConnectedSiteTagRequest, ...) (*adminpb.CreateConnectedSiteTagResponse, error)
- func (c *AnalyticsAdminClient) CreateConversionEvent(ctx context.Context, req *adminpb.CreateConversionEventRequest, ...) (*adminpb.ConversionEvent, error)
- func (c *AnalyticsAdminClient) CreateCustomDimension(ctx context.Context, req *adminpb.CreateCustomDimensionRequest, ...) (*adminpb.CustomDimension, error)
- func (c *AnalyticsAdminClient) CreateCustomMetric(ctx context.Context, req *adminpb.CreateCustomMetricRequest, ...) (*adminpb.CustomMetric, error)
- func (c *AnalyticsAdminClient) CreateDataStream(ctx context.Context, req *adminpb.CreateDataStreamRequest, ...) (*adminpb.DataStream, error)
- func (c *AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.CreateDisplayVideo360AdvertiserLinkRequest, ...) (*adminpb.DisplayVideo360AdvertiserLink, error)
- func (c *AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLinkProposal(ctx context.Context, ...) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
- func (c *AnalyticsAdminClient) CreateEventCreateRule(ctx context.Context, req *adminpb.CreateEventCreateRuleRequest, ...) (*adminpb.EventCreateRule, error)
- func (c *AnalyticsAdminClient) CreateExpandedDataSet(ctx context.Context, req *adminpb.CreateExpandedDataSetRequest, ...) (*adminpb.ExpandedDataSet, error)
- func (c *AnalyticsAdminClient) CreateFirebaseLink(ctx context.Context, req *adminpb.CreateFirebaseLinkRequest, ...) (*adminpb.FirebaseLink, error)
- func (c *AnalyticsAdminClient) CreateGoogleAdsLink(ctx context.Context, req *adminpb.CreateGoogleAdsLinkRequest, ...) (*adminpb.GoogleAdsLink, error)
- func (c *AnalyticsAdminClient) CreateMeasurementProtocolSecret(ctx context.Context, req *adminpb.CreateMeasurementProtocolSecretRequest, ...) (*adminpb.MeasurementProtocolSecret, error)
- func (c *AnalyticsAdminClient) CreateProperty(ctx context.Context, req *adminpb.CreatePropertyRequest, ...) (*adminpb.Property, error)
- func (c *AnalyticsAdminClient) CreateSKAdNetworkConversionValueSchema(ctx context.Context, ...) (*adminpb.SKAdNetworkConversionValueSchema, error)
- func (c *AnalyticsAdminClient) CreateSearchAds360Link(ctx context.Context, req *adminpb.CreateSearchAds360LinkRequest, ...) (*adminpb.SearchAds360Link, error)
- func (c *AnalyticsAdminClient) CreateUserLink(ctx context.Context, req *adminpb.CreateUserLinkRequest, ...) (*adminpb.UserLink, error)
- func (c *AnalyticsAdminClient) DeleteAccessBinding(ctx context.Context, req *adminpb.DeleteAccessBindingRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteAccount(ctx context.Context, req *adminpb.DeleteAccountRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteAdSenseLink(ctx context.Context, req *adminpb.DeleteAdSenseLinkRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteChannelGroup(ctx context.Context, req *adminpb.DeleteChannelGroupRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteConnectedSiteTag(ctx context.Context, req *adminpb.DeleteConnectedSiteTagRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteConversionEvent(ctx context.Context, req *adminpb.DeleteConversionEventRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteDataStream(ctx context.Context, req *adminpb.DeleteDataStreamRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.DeleteDisplayVideo360AdvertiserLinkRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLinkProposal(ctx context.Context, ...) error
- func (c *AnalyticsAdminClient) DeleteEventCreateRule(ctx context.Context, req *adminpb.DeleteEventCreateRuleRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteExpandedDataSet(ctx context.Context, req *adminpb.DeleteExpandedDataSetRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteFirebaseLink(ctx context.Context, req *adminpb.DeleteFirebaseLinkRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteGoogleAdsLink(ctx context.Context, req *adminpb.DeleteGoogleAdsLinkRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteMeasurementProtocolSecret(ctx context.Context, req *adminpb.DeleteMeasurementProtocolSecretRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteProperty(ctx context.Context, req *adminpb.DeletePropertyRequest, ...) (*adminpb.Property, error)
- func (c *AnalyticsAdminClient) DeleteSKAdNetworkConversionValueSchema(ctx context.Context, ...) error
- func (c *AnalyticsAdminClient) DeleteSearchAds360Link(ctx context.Context, req *adminpb.DeleteSearchAds360LinkRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteUserLink(ctx context.Context, req *adminpb.DeleteUserLinkRequest, ...) error
- func (c *AnalyticsAdminClient) FetchAutomatedGa4ConfigurationOptOut(ctx context.Context, req *adminpb.FetchAutomatedGa4ConfigurationOptOutRequest, ...) (*adminpb.FetchAutomatedGa4ConfigurationOptOutResponse, error)
- func (c *AnalyticsAdminClient) FetchConnectedGa4Property(ctx context.Context, req *adminpb.FetchConnectedGa4PropertyRequest, ...) (*adminpb.FetchConnectedGa4PropertyResponse, error)
- func (c *AnalyticsAdminClient) GetAccessBinding(ctx context.Context, req *adminpb.GetAccessBindingRequest, ...) (*adminpb.AccessBinding, error)
- func (c *AnalyticsAdminClient) GetAccount(ctx context.Context, req *adminpb.GetAccountRequest, opts ...gax.CallOption) (*adminpb.Account, error)
- func (c *AnalyticsAdminClient) GetAdSenseLink(ctx context.Context, req *adminpb.GetAdSenseLinkRequest, ...) (*adminpb.AdSenseLink, error)
- func (c *AnalyticsAdminClient) GetAttributionSettings(ctx context.Context, req *adminpb.GetAttributionSettingsRequest, ...) (*adminpb.AttributionSettings, error)
- func (c *AnalyticsAdminClient) GetAudience(ctx context.Context, req *adminpb.GetAudienceRequest, opts ...gax.CallOption) (*adminpb.Audience, error)
- func (c *AnalyticsAdminClient) GetBigQueryLink(ctx context.Context, req *adminpb.GetBigQueryLinkRequest, ...) (*adminpb.BigQueryLink, error)
- func (c *AnalyticsAdminClient) GetChannelGroup(ctx context.Context, req *adminpb.GetChannelGroupRequest, ...) (*adminpb.ChannelGroup, error)
- func (c *AnalyticsAdminClient) GetConversionEvent(ctx context.Context, req *adminpb.GetConversionEventRequest, ...) (*adminpb.ConversionEvent, error)
- func (c *AnalyticsAdminClient) GetCustomDimension(ctx context.Context, req *adminpb.GetCustomDimensionRequest, ...) (*adminpb.CustomDimension, error)
- func (c *AnalyticsAdminClient) GetCustomMetric(ctx context.Context, req *adminpb.GetCustomMetricRequest, ...) (*adminpb.CustomMetric, error)
- func (c *AnalyticsAdminClient) GetDataRetentionSettings(ctx context.Context, req *adminpb.GetDataRetentionSettingsRequest, ...) (*adminpb.DataRetentionSettings, error)
- func (c *AnalyticsAdminClient) GetDataSharingSettings(ctx context.Context, req *adminpb.GetDataSharingSettingsRequest, ...) (*adminpb.DataSharingSettings, error)
- func (c *AnalyticsAdminClient) GetDataStream(ctx context.Context, req *adminpb.GetDataStreamRequest, opts ...gax.CallOption) (*adminpb.DataStream, error)
- func (c *AnalyticsAdminClient) GetDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.GetDisplayVideo360AdvertiserLinkRequest, ...) (*adminpb.DisplayVideo360AdvertiserLink, error)
- func (c *AnalyticsAdminClient) GetDisplayVideo360AdvertiserLinkProposal(ctx context.Context, ...) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
- func (c *AnalyticsAdminClient) GetEnhancedMeasurementSettings(ctx context.Context, req *adminpb.GetEnhancedMeasurementSettingsRequest, ...) (*adminpb.EnhancedMeasurementSettings, error)
- func (c *AnalyticsAdminClient) GetEventCreateRule(ctx context.Context, req *adminpb.GetEventCreateRuleRequest, ...) (*adminpb.EventCreateRule, error)
- func (c *AnalyticsAdminClient) GetExpandedDataSet(ctx context.Context, req *adminpb.GetExpandedDataSetRequest, ...) (*adminpb.ExpandedDataSet, error)
- func (c *AnalyticsAdminClient) GetGlobalSiteTag(ctx context.Context, req *adminpb.GetGlobalSiteTagRequest, ...) (*adminpb.GlobalSiteTag, error)
- func (c *AnalyticsAdminClient) GetGoogleSignalsSettings(ctx context.Context, req *adminpb.GetGoogleSignalsSettingsRequest, ...) (*adminpb.GoogleSignalsSettings, error)
- func (c *AnalyticsAdminClient) GetMeasurementProtocolSecret(ctx context.Context, req *adminpb.GetMeasurementProtocolSecretRequest, ...) (*adminpb.MeasurementProtocolSecret, error)
- func (c *AnalyticsAdminClient) GetProperty(ctx context.Context, req *adminpb.GetPropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
- func (c *AnalyticsAdminClient) GetSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.GetSKAdNetworkConversionValueSchemaRequest, ...) (*adminpb.SKAdNetworkConversionValueSchema, error)
- func (c *AnalyticsAdminClient) GetSearchAds360Link(ctx context.Context, req *adminpb.GetSearchAds360LinkRequest, ...) (*adminpb.SearchAds360Link, error)
- func (c *AnalyticsAdminClient) GetUserLink(ctx context.Context, req *adminpb.GetUserLinkRequest, opts ...gax.CallOption) (*adminpb.UserLink, error)
- func (c *AnalyticsAdminClient) ListAccessBindings(ctx context.Context, req *adminpb.ListAccessBindingsRequest, ...) *AccessBindingIterator
- func (c *AnalyticsAdminClient) ListAccountSummaries(ctx context.Context, req *adminpb.ListAccountSummariesRequest, ...) *AccountSummaryIterator
- func (c *AnalyticsAdminClient) ListAccounts(ctx context.Context, req *adminpb.ListAccountsRequest, opts ...gax.CallOption) *AccountIterator
- func (c *AnalyticsAdminClient) ListAdSenseLinks(ctx context.Context, req *adminpb.ListAdSenseLinksRequest, ...) *AdSenseLinkIterator
- func (c *AnalyticsAdminClient) ListAudiences(ctx context.Context, req *adminpb.ListAudiencesRequest, opts ...gax.CallOption) *AudienceIterator
- func (c *AnalyticsAdminClient) ListBigQueryLinks(ctx context.Context, req *adminpb.ListBigQueryLinksRequest, ...) *BigQueryLinkIterator
- func (c *AnalyticsAdminClient) ListChannelGroups(ctx context.Context, req *adminpb.ListChannelGroupsRequest, ...) *ChannelGroupIterator
- func (c *AnalyticsAdminClient) ListConnectedSiteTags(ctx context.Context, req *adminpb.ListConnectedSiteTagsRequest, ...) (*adminpb.ListConnectedSiteTagsResponse, error)
- func (c *AnalyticsAdminClient) ListConversionEvents(ctx context.Context, req *adminpb.ListConversionEventsRequest, ...) *ConversionEventIterator
- func (c *AnalyticsAdminClient) ListCustomDimensions(ctx context.Context, req *adminpb.ListCustomDimensionsRequest, ...) *CustomDimensionIterator
- func (c *AnalyticsAdminClient) ListCustomMetrics(ctx context.Context, req *adminpb.ListCustomMetricsRequest, ...) *CustomMetricIterator
- func (c *AnalyticsAdminClient) ListDataStreams(ctx context.Context, req *adminpb.ListDataStreamsRequest, ...) *DataStreamIterator
- func (c *AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinkProposals(ctx context.Context, ...) *DisplayVideo360AdvertiserLinkProposalIterator
- func (c *AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinks(ctx context.Context, req *adminpb.ListDisplayVideo360AdvertiserLinksRequest, ...) *DisplayVideo360AdvertiserLinkIterator
- func (c *AnalyticsAdminClient) ListEventCreateRules(ctx context.Context, req *adminpb.ListEventCreateRulesRequest, ...) *EventCreateRuleIterator
- func (c *AnalyticsAdminClient) ListExpandedDataSets(ctx context.Context, req *adminpb.ListExpandedDataSetsRequest, ...) *ExpandedDataSetIterator
- func (c *AnalyticsAdminClient) ListFirebaseLinks(ctx context.Context, req *adminpb.ListFirebaseLinksRequest, ...) *FirebaseLinkIterator
- func (c *AnalyticsAdminClient) ListGoogleAdsLinks(ctx context.Context, req *adminpb.ListGoogleAdsLinksRequest, ...) *GoogleAdsLinkIterator
- func (c *AnalyticsAdminClient) ListMeasurementProtocolSecrets(ctx context.Context, req *adminpb.ListMeasurementProtocolSecretsRequest, ...) *MeasurementProtocolSecretIterator
- func (c *AnalyticsAdminClient) ListProperties(ctx context.Context, req *adminpb.ListPropertiesRequest, ...) *PropertyIterator
- func (c *AnalyticsAdminClient) ListSKAdNetworkConversionValueSchemas(ctx context.Context, req *adminpb.ListSKAdNetworkConversionValueSchemasRequest, ...) *SKAdNetworkConversionValueSchemaIterator
- func (c *AnalyticsAdminClient) ListSearchAds360Links(ctx context.Context, req *adminpb.ListSearchAds360LinksRequest, ...) *SearchAds360LinkIterator
- func (c *AnalyticsAdminClient) ListUserLinks(ctx context.Context, req *adminpb.ListUserLinksRequest, opts ...gax.CallOption) *UserLinkIterator
- func (c *AnalyticsAdminClient) ProvisionAccountTicket(ctx context.Context, req *adminpb.ProvisionAccountTicketRequest, ...) (*adminpb.ProvisionAccountTicketResponse, error)
- func (c *AnalyticsAdminClient) RunAccessReport(ctx context.Context, req *adminpb.RunAccessReportRequest, ...) (*adminpb.RunAccessReportResponse, error)
- func (c *AnalyticsAdminClient) SearchChangeHistoryEvents(ctx context.Context, req *adminpb.SearchChangeHistoryEventsRequest, ...) *ChangeHistoryEventIterator
- func (c *AnalyticsAdminClient) SetAutomatedGa4ConfigurationOptOut(ctx context.Context, req *adminpb.SetAutomatedGa4ConfigurationOptOutRequest, ...) (*adminpb.SetAutomatedGa4ConfigurationOptOutResponse, error)
- func (c *AnalyticsAdminClient) UpdateAccessBinding(ctx context.Context, req *adminpb.UpdateAccessBindingRequest, ...) (*adminpb.AccessBinding, error)
- func (c *AnalyticsAdminClient) UpdateAccount(ctx context.Context, req *adminpb.UpdateAccountRequest, opts ...gax.CallOption) (*adminpb.Account, error)
- func (c *AnalyticsAdminClient) UpdateAttributionSettings(ctx context.Context, req *adminpb.UpdateAttributionSettingsRequest, ...) (*adminpb.AttributionSettings, error)
- func (c *AnalyticsAdminClient) UpdateAudience(ctx context.Context, req *adminpb.UpdateAudienceRequest, ...) (*adminpb.Audience, error)
- func (c *AnalyticsAdminClient) UpdateChannelGroup(ctx context.Context, req *adminpb.UpdateChannelGroupRequest, ...) (*adminpb.ChannelGroup, error)
- func (c *AnalyticsAdminClient) UpdateConversionEvent(ctx context.Context, req *adminpb.UpdateConversionEventRequest, ...) (*adminpb.ConversionEvent, error)
- func (c *AnalyticsAdminClient) UpdateCustomDimension(ctx context.Context, req *adminpb.UpdateCustomDimensionRequest, ...) (*adminpb.CustomDimension, error)
- func (c *AnalyticsAdminClient) UpdateCustomMetric(ctx context.Context, req *adminpb.UpdateCustomMetricRequest, ...) (*adminpb.CustomMetric, error)
- func (c *AnalyticsAdminClient) UpdateDataRetentionSettings(ctx context.Context, req *adminpb.UpdateDataRetentionSettingsRequest, ...) (*adminpb.DataRetentionSettings, error)
- func (c *AnalyticsAdminClient) UpdateDataStream(ctx context.Context, req *adminpb.UpdateDataStreamRequest, ...) (*adminpb.DataStream, error)
- func (c *AnalyticsAdminClient) UpdateDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.UpdateDisplayVideo360AdvertiserLinkRequest, ...) (*adminpb.DisplayVideo360AdvertiserLink, error)
- func (c *AnalyticsAdminClient) UpdateEnhancedMeasurementSettings(ctx context.Context, req *adminpb.UpdateEnhancedMeasurementSettingsRequest, ...) (*adminpb.EnhancedMeasurementSettings, error)
- func (c *AnalyticsAdminClient) UpdateEventCreateRule(ctx context.Context, req *adminpb.UpdateEventCreateRuleRequest, ...) (*adminpb.EventCreateRule, error)
- func (c *AnalyticsAdminClient) UpdateExpandedDataSet(ctx context.Context, req *adminpb.UpdateExpandedDataSetRequest, ...) (*adminpb.ExpandedDataSet, error)
- func (c *AnalyticsAdminClient) UpdateGoogleAdsLink(ctx context.Context, req *adminpb.UpdateGoogleAdsLinkRequest, ...) (*adminpb.GoogleAdsLink, error)
- func (c *AnalyticsAdminClient) UpdateGoogleSignalsSettings(ctx context.Context, req *adminpb.UpdateGoogleSignalsSettingsRequest, ...) (*adminpb.GoogleSignalsSettings, error)
- func (c *AnalyticsAdminClient) UpdateMeasurementProtocolSecret(ctx context.Context, req *adminpb.UpdateMeasurementProtocolSecretRequest, ...) (*adminpb.MeasurementProtocolSecret, error)
- func (c *AnalyticsAdminClient) UpdateProperty(ctx context.Context, req *adminpb.UpdatePropertyRequest, ...) (*adminpb.Property, error)
- func (c *AnalyticsAdminClient) UpdateSKAdNetworkConversionValueSchema(ctx context.Context, ...) (*adminpb.SKAdNetworkConversionValueSchema, error)
- func (c *AnalyticsAdminClient) UpdateSearchAds360Link(ctx context.Context, req *adminpb.UpdateSearchAds360LinkRequest, ...) (*adminpb.SearchAds360Link, error)
- func (c *AnalyticsAdminClient) UpdateUserLink(ctx context.Context, req *adminpb.UpdateUserLinkRequest, ...) (*adminpb.UserLink, error)
- type AudienceIterator
- type AuditUserLinkIterator
- type BigQueryLinkIterator
- type ChangeHistoryEventIterator
- type ChannelGroupIterator
- type ConversionEventIterator
- type CustomDimensionIterator
- type CustomMetricIterator
- type DataStreamIterator
- type DisplayVideo360AdvertiserLinkIterator
- type DisplayVideo360AdvertiserLinkProposalIterator
- type EventCreateRuleIterator
- type ExpandedDataSetIterator
- type FirebaseLinkIterator
- type GoogleAdsLinkIterator
- type MeasurementProtocolSecretIterator
- type PropertyIterator
- type SKAdNetworkConversionValueSchemaIterator
- type SearchAds360LinkIterator
- type UserLinkIterator
Examples ¶
- AnalyticsAdminClient.AcknowledgeUserDataCollection
- AnalyticsAdminClient.ApproveDisplayVideo360AdvertiserLinkProposal
- AnalyticsAdminClient.ArchiveAudience
- AnalyticsAdminClient.ArchiveCustomDimension
- AnalyticsAdminClient.ArchiveCustomMetric
- AnalyticsAdminClient.AuditUserLinks
- AnalyticsAdminClient.BatchCreateAccessBindings
- AnalyticsAdminClient.BatchCreateUserLinks
- AnalyticsAdminClient.BatchDeleteAccessBindings
- AnalyticsAdminClient.BatchDeleteUserLinks
- AnalyticsAdminClient.BatchGetAccessBindings
- AnalyticsAdminClient.BatchGetUserLinks
- AnalyticsAdminClient.BatchUpdateAccessBindings
- AnalyticsAdminClient.BatchUpdateUserLinks
- AnalyticsAdminClient.CancelDisplayVideo360AdvertiserLinkProposal
- AnalyticsAdminClient.CreateAccessBinding
- AnalyticsAdminClient.CreateAdSenseLink
- AnalyticsAdminClient.CreateAudience
- AnalyticsAdminClient.CreateChannelGroup
- AnalyticsAdminClient.CreateConnectedSiteTag
- AnalyticsAdminClient.CreateConversionEvent
- AnalyticsAdminClient.CreateCustomDimension
- AnalyticsAdminClient.CreateCustomMetric
- AnalyticsAdminClient.CreateDataStream
- AnalyticsAdminClient.CreateDisplayVideo360AdvertiserLink
- AnalyticsAdminClient.CreateDisplayVideo360AdvertiserLinkProposal
- AnalyticsAdminClient.CreateEventCreateRule
- AnalyticsAdminClient.CreateExpandedDataSet
- AnalyticsAdminClient.CreateFirebaseLink
- AnalyticsAdminClient.CreateGoogleAdsLink
- AnalyticsAdminClient.CreateMeasurementProtocolSecret
- AnalyticsAdminClient.CreateProperty
- AnalyticsAdminClient.CreateSKAdNetworkConversionValueSchema
- AnalyticsAdminClient.CreateSearchAds360Link
- AnalyticsAdminClient.CreateUserLink
- AnalyticsAdminClient.DeleteAccessBinding
- AnalyticsAdminClient.DeleteAccount
- AnalyticsAdminClient.DeleteAdSenseLink
- AnalyticsAdminClient.DeleteChannelGroup
- AnalyticsAdminClient.DeleteConnectedSiteTag
- AnalyticsAdminClient.DeleteConversionEvent
- AnalyticsAdminClient.DeleteDataStream
- AnalyticsAdminClient.DeleteDisplayVideo360AdvertiserLink
- AnalyticsAdminClient.DeleteDisplayVideo360AdvertiserLinkProposal
- AnalyticsAdminClient.DeleteEventCreateRule
- AnalyticsAdminClient.DeleteExpandedDataSet
- AnalyticsAdminClient.DeleteFirebaseLink
- AnalyticsAdminClient.DeleteGoogleAdsLink
- AnalyticsAdminClient.DeleteMeasurementProtocolSecret
- AnalyticsAdminClient.DeleteProperty
- AnalyticsAdminClient.DeleteSKAdNetworkConversionValueSchema
- AnalyticsAdminClient.DeleteSearchAds360Link
- AnalyticsAdminClient.DeleteUserLink
- AnalyticsAdminClient.FetchAutomatedGa4ConfigurationOptOut
- AnalyticsAdminClient.FetchConnectedGa4Property
- AnalyticsAdminClient.GetAccessBinding
- AnalyticsAdminClient.GetAccount
- AnalyticsAdminClient.GetAdSenseLink
- AnalyticsAdminClient.GetAttributionSettings
- AnalyticsAdminClient.GetAudience
- AnalyticsAdminClient.GetBigQueryLink
- AnalyticsAdminClient.GetChannelGroup
- AnalyticsAdminClient.GetConversionEvent
- AnalyticsAdminClient.GetCustomDimension
- AnalyticsAdminClient.GetCustomMetric
- AnalyticsAdminClient.GetDataRetentionSettings
- AnalyticsAdminClient.GetDataSharingSettings
- AnalyticsAdminClient.GetDataStream
- AnalyticsAdminClient.GetDisplayVideo360AdvertiserLink
- AnalyticsAdminClient.GetDisplayVideo360AdvertiserLinkProposal
- AnalyticsAdminClient.GetEnhancedMeasurementSettings
- AnalyticsAdminClient.GetEventCreateRule
- AnalyticsAdminClient.GetExpandedDataSet
- AnalyticsAdminClient.GetGlobalSiteTag
- AnalyticsAdminClient.GetGoogleSignalsSettings
- AnalyticsAdminClient.GetMeasurementProtocolSecret
- AnalyticsAdminClient.GetProperty
- AnalyticsAdminClient.GetSKAdNetworkConversionValueSchema
- AnalyticsAdminClient.GetSearchAds360Link
- AnalyticsAdminClient.GetUserLink
- AnalyticsAdminClient.ListAccessBindings
- AnalyticsAdminClient.ListAccountSummaries
- AnalyticsAdminClient.ListAccounts
- AnalyticsAdminClient.ListAdSenseLinks
- AnalyticsAdminClient.ListAudiences
- AnalyticsAdminClient.ListBigQueryLinks
- AnalyticsAdminClient.ListChannelGroups
- AnalyticsAdminClient.ListConnectedSiteTags
- AnalyticsAdminClient.ListConversionEvents
- AnalyticsAdminClient.ListCustomDimensions
- AnalyticsAdminClient.ListCustomMetrics
- AnalyticsAdminClient.ListDataStreams
- AnalyticsAdminClient.ListDisplayVideo360AdvertiserLinkProposals
- AnalyticsAdminClient.ListDisplayVideo360AdvertiserLinks
- AnalyticsAdminClient.ListEventCreateRules
- AnalyticsAdminClient.ListExpandedDataSets
- AnalyticsAdminClient.ListFirebaseLinks
- AnalyticsAdminClient.ListGoogleAdsLinks
- AnalyticsAdminClient.ListMeasurementProtocolSecrets
- AnalyticsAdminClient.ListProperties
- AnalyticsAdminClient.ListSKAdNetworkConversionValueSchemas
- AnalyticsAdminClient.ListSearchAds360Links
- AnalyticsAdminClient.ListUserLinks
- AnalyticsAdminClient.ProvisionAccountTicket
- AnalyticsAdminClient.RunAccessReport
- AnalyticsAdminClient.SearchChangeHistoryEvents
- AnalyticsAdminClient.SetAutomatedGa4ConfigurationOptOut
- AnalyticsAdminClient.UpdateAccessBinding
- AnalyticsAdminClient.UpdateAccount
- AnalyticsAdminClient.UpdateAttributionSettings
- AnalyticsAdminClient.UpdateAudience
- AnalyticsAdminClient.UpdateChannelGroup
- AnalyticsAdminClient.UpdateConversionEvent
- AnalyticsAdminClient.UpdateCustomDimension
- AnalyticsAdminClient.UpdateCustomMetric
- AnalyticsAdminClient.UpdateDataRetentionSettings
- AnalyticsAdminClient.UpdateDataStream
- AnalyticsAdminClient.UpdateDisplayVideo360AdvertiserLink
- AnalyticsAdminClient.UpdateEnhancedMeasurementSettings
- AnalyticsAdminClient.UpdateEventCreateRule
- AnalyticsAdminClient.UpdateExpandedDataSet
- AnalyticsAdminClient.UpdateGoogleAdsLink
- AnalyticsAdminClient.UpdateGoogleSignalsSettings
- AnalyticsAdminClient.UpdateMeasurementProtocolSecret
- AnalyticsAdminClient.UpdateProperty
- AnalyticsAdminClient.UpdateSKAdNetworkConversionValueSchema
- AnalyticsAdminClient.UpdateSearchAds360Link
- AnalyticsAdminClient.UpdateUserLink
- NewAnalyticsAdminClient
- NewAnalyticsAdminRESTClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAuthScopes ¶
func DefaultAuthScopes() []string
DefaultAuthScopes reports the default set of authentication scopes to use with this package.
Types ¶
type AccessBindingIterator ¶ added in v0.18.0
type AccessBindingIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.AccessBinding, nextPageToken string, err error) // contains filtered or unexported fields }
AccessBindingIterator manages a stream of *adminpb.AccessBinding.
func (*AccessBindingIterator) Next ¶ added in v0.18.0
func (it *AccessBindingIterator) Next() (*adminpb.AccessBinding, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*AccessBindingIterator) PageInfo ¶ added in v0.18.0
func (it *AccessBindingIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type AccountIterator ¶
type AccountIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.Account, nextPageToken string, err error) // contains filtered or unexported fields }
AccountIterator manages a stream of *adminpb.Account.
func (*AccountIterator) 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) Next ¶
func (it *AccountSummaryIterator) Next() (*adminpb.AccountSummary, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*AccountSummaryIterator) PageInfo ¶
func (it *AccountSummaryIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type AdSenseLinkIterator ¶ added in v0.20.0
type AdSenseLinkIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.AdSenseLink, nextPageToken string, err error) // contains filtered or unexported fields }
AdSenseLinkIterator manages a stream of *adminpb.AdSenseLink.
func (*AdSenseLinkIterator) Next ¶ added in v0.20.0
func (it *AdSenseLinkIterator) Next() (*adminpb.AdSenseLink, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*AdSenseLinkIterator) PageInfo ¶ added in v0.20.0
func (it *AdSenseLinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type AnalyticsAdminCallOptions ¶
type AnalyticsAdminCallOptions struct { GetAccount []gax.CallOption ListAccounts []gax.CallOption DeleteAccount []gax.CallOption UpdateAccount []gax.CallOption ProvisionAccountTicket []gax.CallOption ListAccountSummaries []gax.CallOption GetProperty []gax.CallOption ListProperties []gax.CallOption CreateProperty []gax.CallOption DeleteProperty []gax.CallOption UpdateProperty []gax.CallOption GetUserLink []gax.CallOption BatchGetUserLinks []gax.CallOption ListUserLinks []gax.CallOption AuditUserLinks []gax.CallOption CreateUserLink []gax.CallOption BatchCreateUserLinks []gax.CallOption UpdateUserLink []gax.CallOption BatchUpdateUserLinks []gax.CallOption DeleteUserLink []gax.CallOption BatchDeleteUserLinks []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 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 GetBigQueryLink []gax.CallOption ListBigQueryLinks []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 }
AnalyticsAdminCallOptions contains the retry settings for each method of AnalyticsAdminClient.
type AnalyticsAdminClient ¶
type AnalyticsAdminClient struct { // The call options for this service. CallOptions *AnalyticsAdminCallOptions // contains filtered or unexported fields }
AnalyticsAdminClient is a client for interacting with Google Analytics Admin API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Service Interface for the Analytics Admin API (GA4).
func NewAnalyticsAdminClient ¶
func NewAnalyticsAdminClient(ctx context.Context, opts ...option.ClientOption) (*AnalyticsAdminClient, error)
NewAnalyticsAdminClient creates a new analytics admin service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
Service Interface for the Analytics Admin API (GA4).
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() // TODO: Use client. _ = c }
Output:
func NewAnalyticsAdminRESTClient ¶ added in v0.8.0
func NewAnalyticsAdminRESTClient(ctx context.Context, opts ...option.ClientOption) (*AnalyticsAdminClient, error)
NewAnalyticsAdminRESTClient creates a new analytics admin service rest client.
Service Interface for the Analytics Admin API (GA4).
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminRESTClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() // TODO: Use client. _ = c }
Output:
func (*AnalyticsAdminClient) AcknowledgeUserDataCollection ¶ added in v0.3.0
func (c *AnalyticsAdminClient) AcknowledgeUserDataCollection(ctx context.Context, req *adminpb.AcknowledgeUserDataCollectionRequest, opts ...gax.CallOption) (*adminpb.AcknowledgeUserDataCollectionResponse, error)
AcknowledgeUserDataCollection acknowledges the terms of user data collection for the specified property.
This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.AcknowledgeUserDataCollectionRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#AcknowledgeUserDataCollectionRequest. } resp, err := c.AcknowledgeUserDataCollection(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) ApproveDisplayVideo360AdvertiserLinkProposal ¶ added in v0.2.0
func (c *AnalyticsAdminClient) ApproveDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.ApproveDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) (*adminpb.ApproveDisplayVideo360AdvertiserLinkProposalResponse, error)
ApproveDisplayVideo360AdvertiserLinkProposal approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal will be deleted and a new DisplayVideo360AdvertiserLink will be created.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ApproveDisplayVideo360AdvertiserLinkProposalRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ApproveDisplayVideo360AdvertiserLinkProposalRequest. } resp, err := c.ApproveDisplayVideo360AdvertiserLinkProposal(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) ArchiveAudience ¶ added in v0.9.0
func (c *AnalyticsAdminClient) ArchiveAudience(ctx context.Context, req *adminpb.ArchiveAudienceRequest, opts ...gax.CallOption) error
ArchiveAudience archives an Audience on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ArchiveAudienceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ArchiveAudienceRequest. } err = c.ArchiveAudience(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) ArchiveCustomDimension ¶
func (c *AnalyticsAdminClient) ArchiveCustomDimension(ctx context.Context, req *adminpb.ArchiveCustomDimensionRequest, opts ...gax.CallOption) error
ArchiveCustomDimension archives a CustomDimension on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ArchiveCustomDimensionRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ArchiveCustomDimensionRequest. } err = c.ArchiveCustomDimension(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) ArchiveCustomMetric ¶
func (c *AnalyticsAdminClient) ArchiveCustomMetric(ctx context.Context, req *adminpb.ArchiveCustomMetricRequest, opts ...gax.CallOption) error
ArchiveCustomMetric archives a CustomMetric on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ArchiveCustomMetricRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ArchiveCustomMetricRequest. } err = c.ArchiveCustomMetric(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) AuditUserLinks ¶
func (c *AnalyticsAdminClient) AuditUserLinks(ctx context.Context, req *adminpb.AuditUserLinksRequest, opts ...gax.CallOption) *AuditUserLinkIterator
AuditUserLinks lists all user links on an account or property, including implicit ones that come from effective permissions granted by groups or organization admin roles.
If a returned user link does not have direct permissions, they cannot be removed from the account or property directly with the DeleteUserLink command. They have to be removed from the group/etc that gives them permissions, which is currently only usable/discoverable in the GA or GMP UIs.
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.AuditUserLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#AuditUserLinksRequest. } it := c.AuditUserLinks(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) BatchCreateAccessBindings ¶ added in v0.18.0
func (c *AnalyticsAdminClient) BatchCreateAccessBindings(ctx context.Context, req *adminpb.BatchCreateAccessBindingsRequest, opts ...gax.CallOption) (*adminpb.BatchCreateAccessBindingsResponse, error)
BatchCreateAccessBindings creates information about multiple access bindings to an account or property.
This method is transactional. If any AccessBinding cannot be created, none of the AccessBindings will be created.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchCreateAccessBindingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#BatchCreateAccessBindingsRequest. } resp, err := c.BatchCreateAccessBindings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) BatchCreateUserLinks ¶
func (c *AnalyticsAdminClient) BatchCreateUserLinks(ctx context.Context, req *adminpb.BatchCreateUserLinksRequest, opts ...gax.CallOption) (*adminpb.BatchCreateUserLinksResponse, error)
BatchCreateUserLinks creates information about multiple users’ links to an account or property.
This method is transactional. If any UserLink cannot be created, none of the UserLinks will be created.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchCreateUserLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#BatchCreateUserLinksRequest. } resp, err := c.BatchCreateUserLinks(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) BatchDeleteAccessBindings ¶ added in v0.18.0
func (c *AnalyticsAdminClient) BatchDeleteAccessBindings(ctx context.Context, req *adminpb.BatchDeleteAccessBindingsRequest, opts ...gax.CallOption) error
BatchDeleteAccessBindings deletes information about multiple users’ links to an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchDeleteAccessBindingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#BatchDeleteAccessBindingsRequest. } err = c.BatchDeleteAccessBindings(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) BatchDeleteUserLinks ¶
func (c *AnalyticsAdminClient) BatchDeleteUserLinks(ctx context.Context, req *adminpb.BatchDeleteUserLinksRequest, opts ...gax.CallOption) error
BatchDeleteUserLinks deletes information about multiple users’ links to an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchDeleteUserLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#BatchDeleteUserLinksRequest. } err = c.BatchDeleteUserLinks(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) BatchGetAccessBindings ¶ added in v0.18.0
func (c *AnalyticsAdminClient) BatchGetAccessBindings(ctx context.Context, req *adminpb.BatchGetAccessBindingsRequest, opts ...gax.CallOption) (*adminpb.BatchGetAccessBindingsResponse, error)
BatchGetAccessBindings gets information about multiple access bindings to an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchGetAccessBindingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#BatchGetAccessBindingsRequest. } resp, err := c.BatchGetAccessBindings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) BatchGetUserLinks ¶
func (c *AnalyticsAdminClient) BatchGetUserLinks(ctx context.Context, req *adminpb.BatchGetUserLinksRequest, opts ...gax.CallOption) (*adminpb.BatchGetUserLinksResponse, error)
BatchGetUserLinks gets information about multiple users’ links to an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchGetUserLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#BatchGetUserLinksRequest. } resp, err := c.BatchGetUserLinks(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) BatchUpdateAccessBindings ¶ added in v0.18.0
func (c *AnalyticsAdminClient) BatchUpdateAccessBindings(ctx context.Context, req *adminpb.BatchUpdateAccessBindingsRequest, opts ...gax.CallOption) (*adminpb.BatchUpdateAccessBindingsResponse, error)
BatchUpdateAccessBindings updates information about multiple access bindings to an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchUpdateAccessBindingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#BatchUpdateAccessBindingsRequest. } resp, err := c.BatchUpdateAccessBindings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) BatchUpdateUserLinks ¶
func (c *AnalyticsAdminClient) BatchUpdateUserLinks(ctx context.Context, req *adminpb.BatchUpdateUserLinksRequest, opts ...gax.CallOption) (*adminpb.BatchUpdateUserLinksResponse, error)
BatchUpdateUserLinks updates information about multiple users’ links to an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchUpdateUserLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#BatchUpdateUserLinksRequest. } resp, err := c.BatchUpdateUserLinks(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CancelDisplayVideo360AdvertiserLinkProposal ¶ added in v0.2.0
func (c *AnalyticsAdminClient) CancelDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.CancelDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
CancelDisplayVideo360AdvertiserLinkProposal cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either:
Declining a proposal initiated from Display & Video 360 Withdrawing a proposal initiated from Google Analytics After being cancelled, a proposal will eventually be deleted automatically.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CancelDisplayVideo360AdvertiserLinkProposalRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CancelDisplayVideo360AdvertiserLinkProposalRequest. } resp, err := c.CancelDisplayVideo360AdvertiserLinkProposal(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) Close ¶
func (c *AnalyticsAdminClient) Close() error
Close closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*AnalyticsAdminClient) Connection
deprecated
func (c *AnalyticsAdminClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*AnalyticsAdminClient) CreateAccessBinding ¶ added in v0.18.0
func (c *AnalyticsAdminClient) CreateAccessBinding(ctx context.Context, req *adminpb.CreateAccessBindingRequest, opts ...gax.CallOption) (*adminpb.AccessBinding, error)
CreateAccessBinding creates an access binding on an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateAccessBindingRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateAccessBindingRequest. } resp, err := c.CreateAccessBinding(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateAdSenseLink ¶ added in v0.20.0
func (c *AnalyticsAdminClient) CreateAdSenseLink(ctx context.Context, req *adminpb.CreateAdSenseLinkRequest, opts ...gax.CallOption) (*adminpb.AdSenseLink, error)
CreateAdSenseLink creates an AdSenseLink.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateAdSenseLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateAdSenseLinkRequest. } resp, err := c.CreateAdSenseLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateAudience ¶ added in v0.9.0
func (c *AnalyticsAdminClient) CreateAudience(ctx context.Context, req *adminpb.CreateAudienceRequest, opts ...gax.CallOption) (*adminpb.Audience, error)
CreateAudience creates an Audience.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateAudienceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateAudienceRequest. } resp, err := c.CreateAudience(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateChannelGroup ¶ added in v0.19.1
func (c *AnalyticsAdminClient) CreateChannelGroup(ctx context.Context, req *adminpb.CreateChannelGroupRequest, opts ...gax.CallOption) (*adminpb.ChannelGroup, error)
CreateChannelGroup creates a ChannelGroup.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateChannelGroupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateChannelGroupRequest. } resp, err := c.CreateChannelGroup(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateConnectedSiteTag ¶ added in v0.19.0
func (c *AnalyticsAdminClient) CreateConnectedSiteTag(ctx context.Context, req *adminpb.CreateConnectedSiteTagRequest, opts ...gax.CallOption) (*adminpb.CreateConnectedSiteTagResponse, error)
CreateConnectedSiteTag creates a connected site tag for a Universal Analytics property. You can create a maximum of 20 connected site tags per property. Note: This API cannot be used on GA4 properties.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateConnectedSiteTagRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateConnectedSiteTagRequest. } resp, err := c.CreateConnectedSiteTag(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateConversionEvent ¶
func (c *AnalyticsAdminClient) CreateConversionEvent(ctx context.Context, req *adminpb.CreateConversionEventRequest, opts ...gax.CallOption) (*adminpb.ConversionEvent, error)
CreateConversionEvent creates a conversion event with the specified attributes.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateConversionEventRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateConversionEventRequest. } resp, err := c.CreateConversionEvent(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateCustomDimension ¶
func (c *AnalyticsAdminClient) CreateCustomDimension(ctx context.Context, req *adminpb.CreateCustomDimensionRequest, opts ...gax.CallOption) (*adminpb.CustomDimension, error)
CreateCustomDimension creates a CustomDimension.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateCustomDimensionRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateCustomDimensionRequest. } resp, err := c.CreateCustomDimension(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateCustomMetric ¶
func (c *AnalyticsAdminClient) CreateCustomMetric(ctx context.Context, req *adminpb.CreateCustomMetricRequest, opts ...gax.CallOption) (*adminpb.CustomMetric, error)
CreateCustomMetric creates a CustomMetric.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateCustomMetricRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateCustomMetricRequest. } resp, err := c.CreateCustomMetric(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateDataStream ¶ added in v0.3.0
func (c *AnalyticsAdminClient) CreateDataStream(ctx context.Context, req *adminpb.CreateDataStreamRequest, opts ...gax.CallOption) (*adminpb.DataStream, error)
CreateDataStream creates a DataStream.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateDataStreamRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateDataStreamRequest. } resp, err := c.CreateDataStream(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLink ¶ added in v0.2.0
func (c *AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.CreateDisplayVideo360AdvertiserLinkRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLink, error)
CreateDisplayVideo360AdvertiserLink creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper authorization both on the Google Analytics property and on the Display & Video 360 advertiser. Users who do not have access to the Display & Video 360 advertiser should instead seek to create a DisplayVideo360LinkProposal.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateDisplayVideo360AdvertiserLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateDisplayVideo360AdvertiserLinkRequest. } resp, err := c.CreateDisplayVideo360AdvertiserLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLinkProposal ¶ added in v0.2.0
func (c *AnalyticsAdminClient) CreateDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.CreateDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
CreateDisplayVideo360AdvertiserLinkProposal creates a DisplayVideo360AdvertiserLinkProposal.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateDisplayVideo360AdvertiserLinkProposalRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateDisplayVideo360AdvertiserLinkProposalRequest. } resp, err := c.CreateDisplayVideo360AdvertiserLinkProposal(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateEventCreateRule ¶ added in v0.20.0
func (c *AnalyticsAdminClient) CreateEventCreateRule(ctx context.Context, req *adminpb.CreateEventCreateRuleRequest, opts ...gax.CallOption) (*adminpb.EventCreateRule, error)
CreateEventCreateRule creates an EventCreateRule.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateEventCreateRuleRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateEventCreateRuleRequest. } resp, err := c.CreateEventCreateRule(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateExpandedDataSet ¶ added in v0.18.0
func (c *AnalyticsAdminClient) CreateExpandedDataSet(ctx context.Context, req *adminpb.CreateExpandedDataSetRequest, opts ...gax.CallOption) (*adminpb.ExpandedDataSet, error)
CreateExpandedDataSet creates a ExpandedDataSet.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateExpandedDataSetRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateExpandedDataSetRequest. } resp, err := c.CreateExpandedDataSet(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateFirebaseLink ¶
func (c *AnalyticsAdminClient) CreateFirebaseLink(ctx context.Context, req *adminpb.CreateFirebaseLinkRequest, opts ...gax.CallOption) (*adminpb.FirebaseLink, error)
CreateFirebaseLink creates a FirebaseLink.
Properties can have at most one FirebaseLink.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateFirebaseLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateFirebaseLinkRequest. } resp, err := c.CreateFirebaseLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateGoogleAdsLink ¶
func (c *AnalyticsAdminClient) CreateGoogleAdsLink(ctx context.Context, req *adminpb.CreateGoogleAdsLinkRequest, opts ...gax.CallOption) (*adminpb.GoogleAdsLink, error)
CreateGoogleAdsLink creates a GoogleAdsLink.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateGoogleAdsLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateGoogleAdsLinkRequest. } resp, err := c.CreateGoogleAdsLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateMeasurementProtocolSecret ¶
func (c *AnalyticsAdminClient) CreateMeasurementProtocolSecret(ctx context.Context, req *adminpb.CreateMeasurementProtocolSecretRequest, opts ...gax.CallOption) (*adminpb.MeasurementProtocolSecret, error)
CreateMeasurementProtocolSecret creates a measurement protocol secret.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateMeasurementProtocolSecretRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateMeasurementProtocolSecretRequest. } resp, err := c.CreateMeasurementProtocolSecret(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateProperty ¶
func (c *AnalyticsAdminClient) CreateProperty(ctx context.Context, req *adminpb.CreatePropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
CreateProperty creates an “GA4” property with the specified location and attributes.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreatePropertyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreatePropertyRequest. } resp, err := c.CreateProperty(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateSKAdNetworkConversionValueSchema ¶ added in v0.21.4
func (c *AnalyticsAdminClient) CreateSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.CreateSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) (*adminpb.SKAdNetworkConversionValueSchema, error)
CreateSKAdNetworkConversionValueSchema creates a SKAdNetworkConversionValueSchema.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateSKAdNetworkConversionValueSchemaRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateSKAdNetworkConversionValueSchemaRequest. } resp, err := c.CreateSKAdNetworkConversionValueSchema(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateSearchAds360Link ¶ added in v0.17.0
func (c *AnalyticsAdminClient) CreateSearchAds360Link(ctx context.Context, req *adminpb.CreateSearchAds360LinkRequest, opts ...gax.CallOption) (*adminpb.SearchAds360Link, error)
CreateSearchAds360Link creates a SearchAds360Link.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateSearchAds360LinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateSearchAds360LinkRequest. } resp, err := c.CreateSearchAds360Link(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateUserLink ¶
func (c *AnalyticsAdminClient) CreateUserLink(ctx context.Context, req *adminpb.CreateUserLinkRequest, opts ...gax.CallOption) (*adminpb.UserLink, error)
CreateUserLink creates a user link on an account or property.
If the user with the specified email already has permissions on the account or property, then the user’s existing permissions will be unioned with the permissions specified in the new UserLink.
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.CreateUserLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#CreateUserLinkRequest. } resp, err := c.CreateUserLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) DeleteAccessBinding ¶ added in v0.18.0
func (c *AnalyticsAdminClient) DeleteAccessBinding(ctx context.Context, req *adminpb.DeleteAccessBindingRequest, opts ...gax.CallOption) error
DeleteAccessBinding deletes an access binding on an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteAccessBindingRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteAccessBindingRequest. } err = c.DeleteAccessBinding(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteAccount ¶
func (c *AnalyticsAdminClient) DeleteAccount(ctx context.Context, req *adminpb.DeleteAccountRequest, opts ...gax.CallOption) error
DeleteAccount marks target Account as soft-deleted (ie: “trashed”) and returns it.
This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI.
If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 (at https://support.google.com/analytics/answer/6154772)
Returns an error if the target is not found.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteAccountRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteAccountRequest. } err = c.DeleteAccount(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteAdSenseLink ¶ added in v0.20.0
func (c *AnalyticsAdminClient) DeleteAdSenseLink(ctx context.Context, req *adminpb.DeleteAdSenseLinkRequest, opts ...gax.CallOption) error
DeleteAdSenseLink deletes an AdSenseLink.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteAdSenseLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteAdSenseLinkRequest. } err = c.DeleteAdSenseLink(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteChannelGroup ¶ added in v0.19.1
func (c *AnalyticsAdminClient) DeleteChannelGroup(ctx context.Context, req *adminpb.DeleteChannelGroupRequest, opts ...gax.CallOption) error
DeleteChannelGroup deletes a ChannelGroup on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteChannelGroupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteChannelGroupRequest. } err = c.DeleteChannelGroup(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteConnectedSiteTag ¶ added in v0.19.0
func (c *AnalyticsAdminClient) DeleteConnectedSiteTag(ctx context.Context, req *adminpb.DeleteConnectedSiteTagRequest, opts ...gax.CallOption) error
DeleteConnectedSiteTag deletes a connected site tag for a Universal Analytics property. Note: this has no effect on GA4 properties.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteConnectedSiteTagRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteConnectedSiteTagRequest. } err = c.DeleteConnectedSiteTag(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteConversionEvent ¶
func (c *AnalyticsAdminClient) DeleteConversionEvent(ctx context.Context, req *adminpb.DeleteConversionEventRequest, opts ...gax.CallOption) error
DeleteConversionEvent deletes a conversion event in a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteConversionEventRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteConversionEventRequest. } err = c.DeleteConversionEvent(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteDataStream ¶ added in v0.3.0
func (c *AnalyticsAdminClient) DeleteDataStream(ctx context.Context, req *adminpb.DeleteDataStreamRequest, opts ...gax.CallOption) error
DeleteDataStream deletes a DataStream on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteDataStreamRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteDataStreamRequest. } err = c.DeleteDataStream(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLink ¶ added in v0.2.0
func (c *AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.DeleteDisplayVideo360AdvertiserLinkRequest, opts ...gax.CallOption) error
DeleteDisplayVideo360AdvertiserLink deletes a DisplayVideo360AdvertiserLink on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteDisplayVideo360AdvertiserLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteDisplayVideo360AdvertiserLinkRequest. } err = c.DeleteDisplayVideo360AdvertiserLink(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLinkProposal ¶ added in v0.2.0
func (c *AnalyticsAdminClient) DeleteDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.DeleteDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) error
DeleteDisplayVideo360AdvertiserLinkProposal deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on cancelled proposals.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteDisplayVideo360AdvertiserLinkProposalRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteDisplayVideo360AdvertiserLinkProposalRequest. } err = c.DeleteDisplayVideo360AdvertiserLinkProposal(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteEventCreateRule ¶ added in v0.20.0
func (c *AnalyticsAdminClient) DeleteEventCreateRule(ctx context.Context, req *adminpb.DeleteEventCreateRuleRequest, opts ...gax.CallOption) error
DeleteEventCreateRule deletes an EventCreateRule.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteEventCreateRuleRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteEventCreateRuleRequest. } err = c.DeleteEventCreateRule(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteExpandedDataSet ¶ added in v0.18.0
func (c *AnalyticsAdminClient) DeleteExpandedDataSet(ctx context.Context, req *adminpb.DeleteExpandedDataSetRequest, opts ...gax.CallOption) error
DeleteExpandedDataSet deletes a ExpandedDataSet on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteExpandedDataSetRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteExpandedDataSetRequest. } err = c.DeleteExpandedDataSet(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteFirebaseLink ¶
func (c *AnalyticsAdminClient) DeleteFirebaseLink(ctx context.Context, req *adminpb.DeleteFirebaseLinkRequest, opts ...gax.CallOption) error
DeleteFirebaseLink deletes a FirebaseLink on a property
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteFirebaseLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteFirebaseLinkRequest. } err = c.DeleteFirebaseLink(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteGoogleAdsLink ¶
func (c *AnalyticsAdminClient) DeleteGoogleAdsLink(ctx context.Context, req *adminpb.DeleteGoogleAdsLinkRequest, opts ...gax.CallOption) error
DeleteGoogleAdsLink deletes a GoogleAdsLink on a property
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteGoogleAdsLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteGoogleAdsLinkRequest. } err = c.DeleteGoogleAdsLink(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteMeasurementProtocolSecret ¶
func (c *AnalyticsAdminClient) DeleteMeasurementProtocolSecret(ctx context.Context, req *adminpb.DeleteMeasurementProtocolSecretRequest, opts ...gax.CallOption) error
DeleteMeasurementProtocolSecret deletes target MeasurementProtocolSecret.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteMeasurementProtocolSecretRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteMeasurementProtocolSecretRequest. } err = c.DeleteMeasurementProtocolSecret(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteProperty ¶
func (c *AnalyticsAdminClient) DeleteProperty(ctx context.Context, req *adminpb.DeletePropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
DeleteProperty marks target Property as soft-deleted (ie: “trashed”) and returns it.
This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI.
If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 (at https://support.google.com/analytics/answer/6154772)
Returns an error if the target is not found, or is not a GA4 Property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeletePropertyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeletePropertyRequest. } resp, err := c.DeleteProperty(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) DeleteSKAdNetworkConversionValueSchema ¶ added in v0.21.4
func (c *AnalyticsAdminClient) DeleteSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.DeleteSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) error
DeleteSKAdNetworkConversionValueSchema deletes target SKAdNetworkConversionValueSchema.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteSKAdNetworkConversionValueSchemaRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteSKAdNetworkConversionValueSchemaRequest. } err = c.DeleteSKAdNetworkConversionValueSchema(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteSearchAds360Link ¶ added in v0.17.0
func (c *AnalyticsAdminClient) DeleteSearchAds360Link(ctx context.Context, req *adminpb.DeleteSearchAds360LinkRequest, opts ...gax.CallOption) error
DeleteSearchAds360Link deletes a SearchAds360Link on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteSearchAds360LinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteSearchAds360LinkRequest. } err = c.DeleteSearchAds360Link(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteUserLink ¶
func (c *AnalyticsAdminClient) DeleteUserLink(ctx context.Context, req *adminpb.DeleteUserLinkRequest, opts ...gax.CallOption) error
DeleteUserLink deletes a user link on an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteUserLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#DeleteUserLinkRequest. } err = c.DeleteUserLink(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) FetchAutomatedGa4ConfigurationOptOut ¶ added in v0.17.0
func (c *AnalyticsAdminClient) FetchAutomatedGa4ConfigurationOptOut(ctx context.Context, req *adminpb.FetchAutomatedGa4ConfigurationOptOutRequest, opts ...gax.CallOption) (*adminpb.FetchAutomatedGa4ConfigurationOptOutResponse, error)
FetchAutomatedGa4ConfigurationOptOut fetches the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.FetchAutomatedGa4ConfigurationOptOutRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#FetchAutomatedGa4ConfigurationOptOutRequest. } resp, err := c.FetchAutomatedGa4ConfigurationOptOut(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) FetchConnectedGa4Property ¶ added in v0.19.1
func (c *AnalyticsAdminClient) FetchConnectedGa4Property(ctx context.Context, req *adminpb.FetchConnectedGa4PropertyRequest, opts ...gax.CallOption) (*adminpb.FetchConnectedGa4PropertyResponse, error)
FetchConnectedGa4Property given a specified UA property, looks up the GA4 property connected to it. Note: this cannot be used with GA4 properties.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.FetchConnectedGa4PropertyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#FetchConnectedGa4PropertyRequest. } resp, err := c.FetchConnectedGa4Property(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetAccessBinding ¶ added in v0.18.0
func (c *AnalyticsAdminClient) GetAccessBinding(ctx context.Context, req *adminpb.GetAccessBindingRequest, opts ...gax.CallOption) (*adminpb.AccessBinding, error)
GetAccessBinding gets information about an access binding.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetAccessBindingRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetAccessBindingRequest. } resp, err := c.GetAccessBinding(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetAccount ¶
func (c *AnalyticsAdminClient) GetAccount(ctx context.Context, req *adminpb.GetAccountRequest, opts ...gax.CallOption) (*adminpb.Account, error)
GetAccount lookup for a single Account.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetAccountRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetAccountRequest. } resp, err := c.GetAccount(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetAdSenseLink ¶ added in v0.20.0
func (c *AnalyticsAdminClient) GetAdSenseLink(ctx context.Context, req *adminpb.GetAdSenseLinkRequest, opts ...gax.CallOption) (*adminpb.AdSenseLink, error)
GetAdSenseLink looks up a single AdSenseLink.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetAdSenseLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetAdSenseLinkRequest. } resp, err := c.GetAdSenseLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetAttributionSettings ¶ added in v0.9.0
func (c *AnalyticsAdminClient) GetAttributionSettings(ctx context.Context, req *adminpb.GetAttributionSettingsRequest, opts ...gax.CallOption) (*adminpb.AttributionSettings, error)
GetAttributionSettings lookup for a AttributionSettings singleton.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetAttributionSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetAttributionSettingsRequest. } resp, err := c.GetAttributionSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetAudience ¶ added in v0.9.0
func (c *AnalyticsAdminClient) GetAudience(ctx context.Context, req *adminpb.GetAudienceRequest, opts ...gax.CallOption) (*adminpb.Audience, error)
GetAudience lookup for a single Audience. Audiences created before 2020 may not be supported. Default audiences will not show filter definitions.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetAudienceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetAudienceRequest. } resp, err := c.GetAudience(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetBigQueryLink ¶ added in v0.17.0
func (c *AnalyticsAdminClient) GetBigQueryLink(ctx context.Context, req *adminpb.GetBigQueryLinkRequest, opts ...gax.CallOption) (*adminpb.BigQueryLink, error)
GetBigQueryLink lookup for a single BigQuery Link.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetBigQueryLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetBigQueryLinkRequest. } resp, err := c.GetBigQueryLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetChannelGroup ¶ added in v0.19.1
func (c *AnalyticsAdminClient) GetChannelGroup(ctx context.Context, req *adminpb.GetChannelGroupRequest, opts ...gax.CallOption) (*adminpb.ChannelGroup, error)
GetChannelGroup lookup for a single ChannelGroup.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetChannelGroupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetChannelGroupRequest. } resp, err := c.GetChannelGroup(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetConversionEvent ¶
func (c *AnalyticsAdminClient) GetConversionEvent(ctx context.Context, req *adminpb.GetConversionEventRequest, opts ...gax.CallOption) (*adminpb.ConversionEvent, error)
GetConversionEvent retrieve a single conversion event.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetConversionEventRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetConversionEventRequest. } resp, err := c.GetConversionEvent(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetCustomDimension ¶
func (c *AnalyticsAdminClient) GetCustomDimension(ctx context.Context, req *adminpb.GetCustomDimensionRequest, opts ...gax.CallOption) (*adminpb.CustomDimension, error)
GetCustomDimension lookup for a single CustomDimension.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetCustomDimensionRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetCustomDimensionRequest. } resp, err := c.GetCustomDimension(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetCustomMetric ¶
func (c *AnalyticsAdminClient) GetCustomMetric(ctx context.Context, req *adminpb.GetCustomMetricRequest, opts ...gax.CallOption) (*adminpb.CustomMetric, error)
GetCustomMetric lookup for a single CustomMetric.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetCustomMetricRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetCustomMetricRequest. } resp, err := c.GetCustomMetric(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetDataRetentionSettings ¶ added in v0.2.0
func (c *AnalyticsAdminClient) GetDataRetentionSettings(ctx context.Context, req *adminpb.GetDataRetentionSettingsRequest, opts ...gax.CallOption) (*adminpb.DataRetentionSettings, error)
GetDataRetentionSettings returns the singleton data retention settings for this property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetDataRetentionSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetDataRetentionSettingsRequest. } resp, err := c.GetDataRetentionSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetDataSharingSettings ¶
func (c *AnalyticsAdminClient) GetDataSharingSettings(ctx context.Context, req *adminpb.GetDataSharingSettingsRequest, opts ...gax.CallOption) (*adminpb.DataSharingSettings, error)
GetDataSharingSettings get data sharing settings on an account. Data sharing settings are singletons.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetDataSharingSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetDataSharingSettingsRequest. } resp, err := c.GetDataSharingSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetDataStream ¶ added in v0.3.0
func (c *AnalyticsAdminClient) GetDataStream(ctx context.Context, req *adminpb.GetDataStreamRequest, opts ...gax.CallOption) (*adminpb.DataStream, error)
GetDataStream lookup for a single DataStream.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetDataStreamRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetDataStreamRequest. } resp, err := c.GetDataStream(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetDisplayVideo360AdvertiserLink ¶ added in v0.2.0
func (c *AnalyticsAdminClient) GetDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.GetDisplayVideo360AdvertiserLinkRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLink, error)
GetDisplayVideo360AdvertiserLink look up a single DisplayVideo360AdvertiserLink
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetDisplayVideo360AdvertiserLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetDisplayVideo360AdvertiserLinkRequest. } resp, err := c.GetDisplayVideo360AdvertiserLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetDisplayVideo360AdvertiserLinkProposal ¶ added in v0.2.0
func (c *AnalyticsAdminClient) GetDisplayVideo360AdvertiserLinkProposal(ctx context.Context, req *adminpb.GetDisplayVideo360AdvertiserLinkProposalRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
GetDisplayVideo360AdvertiserLinkProposal lookup for a single DisplayVideo360AdvertiserLinkProposal.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetDisplayVideo360AdvertiserLinkProposalRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetDisplayVideo360AdvertiserLinkProposalRequest. } resp, err := c.GetDisplayVideo360AdvertiserLinkProposal(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetEnhancedMeasurementSettings ¶
func (c *AnalyticsAdminClient) GetEnhancedMeasurementSettings(ctx context.Context, req *adminpb.GetEnhancedMeasurementSettingsRequest, opts ...gax.CallOption) (*adminpb.EnhancedMeasurementSettings, error)
GetEnhancedMeasurementSettings returns the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetEnhancedMeasurementSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetEnhancedMeasurementSettingsRequest. } resp, err := c.GetEnhancedMeasurementSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetEventCreateRule ¶ added in v0.20.0
func (c *AnalyticsAdminClient) GetEventCreateRule(ctx context.Context, req *adminpb.GetEventCreateRuleRequest, opts ...gax.CallOption) (*adminpb.EventCreateRule, error)
GetEventCreateRule lookup for a single EventCreateRule.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetEventCreateRuleRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetEventCreateRuleRequest. } resp, err := c.GetEventCreateRule(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetExpandedDataSet ¶ added in v0.18.0
func (c *AnalyticsAdminClient) GetExpandedDataSet(ctx context.Context, req *adminpb.GetExpandedDataSetRequest, opts ...gax.CallOption) (*adminpb.ExpandedDataSet, error)
GetExpandedDataSet lookup for a single ExpandedDataSet.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetExpandedDataSetRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetExpandedDataSetRequest. } resp, err := c.GetExpandedDataSet(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetGlobalSiteTag ¶
func (c *AnalyticsAdminClient) GetGlobalSiteTag(ctx context.Context, req *adminpb.GetGlobalSiteTagRequest, opts ...gax.CallOption) (*adminpb.GlobalSiteTag, error)
GetGlobalSiteTag returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetGlobalSiteTagRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetGlobalSiteTagRequest. } resp, err := c.GetGlobalSiteTag(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetGoogleSignalsSettings ¶
func (c *AnalyticsAdminClient) GetGoogleSignalsSettings(ctx context.Context, req *adminpb.GetGoogleSignalsSettingsRequest, opts ...gax.CallOption) (*adminpb.GoogleSignalsSettings, error)
GetGoogleSignalsSettings lookup for Google Signals settings for a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetGoogleSignalsSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetGoogleSignalsSettingsRequest. } resp, err := c.GetGoogleSignalsSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetMeasurementProtocolSecret ¶
func (c *AnalyticsAdminClient) GetMeasurementProtocolSecret(ctx context.Context, req *adminpb.GetMeasurementProtocolSecretRequest, opts ...gax.CallOption) (*adminpb.MeasurementProtocolSecret, error)
GetMeasurementProtocolSecret lookup for a single “GA4” MeasurementProtocolSecret.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetMeasurementProtocolSecretRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetMeasurementProtocolSecretRequest. } resp, err := c.GetMeasurementProtocolSecret(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetProperty ¶
func (c *AnalyticsAdminClient) GetProperty(ctx context.Context, req *adminpb.GetPropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
GetProperty lookup for a single “GA4” Property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetPropertyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetPropertyRequest. } resp, err := c.GetProperty(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetSKAdNetworkConversionValueSchema ¶ added in v0.21.4
func (c *AnalyticsAdminClient) GetSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.GetSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) (*adminpb.SKAdNetworkConversionValueSchema, error)
GetSKAdNetworkConversionValueSchema looks up a single SKAdNetworkConversionValueSchema.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetSKAdNetworkConversionValueSchemaRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetSKAdNetworkConversionValueSchemaRequest. } resp, err := c.GetSKAdNetworkConversionValueSchema(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetSearchAds360Link ¶ added in v0.17.0
func (c *AnalyticsAdminClient) GetSearchAds360Link(ctx context.Context, req *adminpb.GetSearchAds360LinkRequest, opts ...gax.CallOption) (*adminpb.SearchAds360Link, error)
GetSearchAds360Link look up a single SearchAds360Link
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetSearchAds360LinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetSearchAds360LinkRequest. } resp, err := c.GetSearchAds360Link(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetUserLink ¶
func (c *AnalyticsAdminClient) GetUserLink(ctx context.Context, req *adminpb.GetUserLinkRequest, opts ...gax.CallOption) (*adminpb.UserLink, error)
GetUserLink gets information about a user’s link to an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetUserLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#GetUserLinkRequest. } resp, err := c.GetUserLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) ListAccessBindings ¶ added in v0.18.0
func (c *AnalyticsAdminClient) ListAccessBindings(ctx context.Context, req *adminpb.ListAccessBindingsRequest, opts ...gax.CallOption) *AccessBindingIterator
ListAccessBindings lists all access bindings on an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAccessBindingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListAccessBindingsRequest. } it := c.ListAccessBindings(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListAccountSummaries ¶
func (c *AnalyticsAdminClient) ListAccountSummaries(ctx context.Context, req *adminpb.ListAccountSummariesRequest, opts ...gax.CallOption) *AccountSummaryIterator
ListAccountSummaries returns summaries of all accounts accessible by the caller.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAccountSummariesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListAccountSummariesRequest. } it := c.ListAccountSummaries(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListAccounts ¶
func (c *AnalyticsAdminClient) ListAccounts(ctx context.Context, req *adminpb.ListAccountsRequest, opts ...gax.CallOption) *AccountIterator
ListAccounts returns all accounts accessible by the caller.
Note that these accounts might not currently have GA4 properties. Soft-deleted (ie: “trashed”) accounts are excluded by default. Returns an empty list if no relevant accounts are found.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAccountsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListAccountsRequest. } it := c.ListAccounts(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListAdSenseLinks ¶ added in v0.20.0
func (c *AnalyticsAdminClient) ListAdSenseLinks(ctx context.Context, req *adminpb.ListAdSenseLinksRequest, opts ...gax.CallOption) *AdSenseLinkIterator
ListAdSenseLinks lists AdSenseLinks on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAdSenseLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListAdSenseLinksRequest. } it := c.ListAdSenseLinks(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListAudiences ¶ added in v0.9.0
func (c *AnalyticsAdminClient) ListAudiences(ctx context.Context, req *adminpb.ListAudiencesRequest, opts ...gax.CallOption) *AudienceIterator
ListAudiences lists Audiences on a property. Audiences created before 2020 may not be supported. Default audiences will not show filter definitions.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAudiencesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListAudiencesRequest. } it := c.ListAudiences(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListBigQueryLinks ¶ added in v0.17.0
func (c *AnalyticsAdminClient) ListBigQueryLinks(ctx context.Context, req *adminpb.ListBigQueryLinksRequest, opts ...gax.CallOption) *BigQueryLinkIterator
ListBigQueryLinks lists BigQuery Links on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListBigQueryLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListBigQueryLinksRequest. } it := c.ListBigQueryLinks(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListChannelGroups ¶ added in v0.19.1
func (c *AnalyticsAdminClient) ListChannelGroups(ctx context.Context, req *adminpb.ListChannelGroupsRequest, opts ...gax.CallOption) *ChannelGroupIterator
ListChannelGroups lists ChannelGroups on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListChannelGroupsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListChannelGroupsRequest. } it := c.ListChannelGroups(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListConnectedSiteTags ¶ added in v0.19.0
func (c *AnalyticsAdminClient) ListConnectedSiteTags(ctx context.Context, req *adminpb.ListConnectedSiteTagsRequest, opts ...gax.CallOption) (*adminpb.ListConnectedSiteTagsResponse, error)
ListConnectedSiteTags lists the connected site tags for a Universal Analytics property. A maximum of 20 connected site tags will be returned. Note: this has no effect on GA4 property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListConnectedSiteTagsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListConnectedSiteTagsRequest. } resp, err := c.ListConnectedSiteTags(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) ListConversionEvents ¶
func (c *AnalyticsAdminClient) ListConversionEvents(ctx context.Context, req *adminpb.ListConversionEventsRequest, opts ...gax.CallOption) *ConversionEventIterator
ListConversionEvents returns a list of conversion events in the specified parent property.
Returns an empty list if no conversion events are found.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.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 } }
Output:
func (*AnalyticsAdminClient) ListCustomDimensions ¶
func (c *AnalyticsAdminClient) ListCustomDimensions(ctx context.Context, req *adminpb.ListCustomDimensionsRequest, opts ...gax.CallOption) *CustomDimensionIterator
ListCustomDimensions lists CustomDimensions on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListCustomDimensionsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListCustomDimensionsRequest. } it := c.ListCustomDimensions(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListCustomMetrics ¶
func (c *AnalyticsAdminClient) ListCustomMetrics(ctx context.Context, req *adminpb.ListCustomMetricsRequest, opts ...gax.CallOption) *CustomMetricIterator
ListCustomMetrics lists CustomMetrics on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListCustomMetricsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListCustomMetricsRequest. } it := c.ListCustomMetrics(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListDataStreams ¶ added in v0.3.0
func (c *AnalyticsAdminClient) ListDataStreams(ctx context.Context, req *adminpb.ListDataStreamsRequest, opts ...gax.CallOption) *DataStreamIterator
ListDataStreams lists DataStreams on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListDataStreamsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListDataStreamsRequest. } it := c.ListDataStreams(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinkProposals ¶ added in v0.2.0
func (c *AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinkProposals(ctx context.Context, req *adminpb.ListDisplayVideo360AdvertiserLinkProposalsRequest, opts ...gax.CallOption) *DisplayVideo360AdvertiserLinkProposalIterator
ListDisplayVideo360AdvertiserLinkProposals lists DisplayVideo360AdvertiserLinkProposals on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListDisplayVideo360AdvertiserLinkProposalsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListDisplayVideo360AdvertiserLinkProposalsRequest. } it := c.ListDisplayVideo360AdvertiserLinkProposals(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinks ¶ added in v0.2.0
func (c *AnalyticsAdminClient) ListDisplayVideo360AdvertiserLinks(ctx context.Context, req *adminpb.ListDisplayVideo360AdvertiserLinksRequest, opts ...gax.CallOption) *DisplayVideo360AdvertiserLinkIterator
ListDisplayVideo360AdvertiserLinks lists all DisplayVideo360AdvertiserLinks on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListDisplayVideo360AdvertiserLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListDisplayVideo360AdvertiserLinksRequest. } it := c.ListDisplayVideo360AdvertiserLinks(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListEventCreateRules ¶ added in v0.20.0
func (c *AnalyticsAdminClient) ListEventCreateRules(ctx context.Context, req *adminpb.ListEventCreateRulesRequest, opts ...gax.CallOption) *EventCreateRuleIterator
ListEventCreateRules lists EventCreateRules on a web data stream.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListEventCreateRulesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListEventCreateRulesRequest. } it := c.ListEventCreateRules(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListExpandedDataSets ¶ added in v0.18.0
func (c *AnalyticsAdminClient) ListExpandedDataSets(ctx context.Context, req *adminpb.ListExpandedDataSetsRequest, opts ...gax.CallOption) *ExpandedDataSetIterator
ListExpandedDataSets lists ExpandedDataSets on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListExpandedDataSetsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListExpandedDataSetsRequest. } it := c.ListExpandedDataSets(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListFirebaseLinks ¶
func (c *AnalyticsAdminClient) ListFirebaseLinks(ctx context.Context, req *adminpb.ListFirebaseLinksRequest, opts ...gax.CallOption) *FirebaseLinkIterator
ListFirebaseLinks lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListFirebaseLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListFirebaseLinksRequest. } it := c.ListFirebaseLinks(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListGoogleAdsLinks ¶
func (c *AnalyticsAdminClient) ListGoogleAdsLinks(ctx context.Context, req *adminpb.ListGoogleAdsLinksRequest, opts ...gax.CallOption) *GoogleAdsLinkIterator
ListGoogleAdsLinks lists GoogleAdsLinks on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListGoogleAdsLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListGoogleAdsLinksRequest. } it := c.ListGoogleAdsLinks(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListMeasurementProtocolSecrets ¶
func (c *AnalyticsAdminClient) ListMeasurementProtocolSecrets(ctx context.Context, req *adminpb.ListMeasurementProtocolSecretsRequest, opts ...gax.CallOption) *MeasurementProtocolSecretIterator
ListMeasurementProtocolSecrets returns child MeasurementProtocolSecrets under the specified parent Property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListMeasurementProtocolSecretsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListMeasurementProtocolSecretsRequest. } it := c.ListMeasurementProtocolSecrets(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListProperties ¶
func (c *AnalyticsAdminClient) ListProperties(ctx context.Context, req *adminpb.ListPropertiesRequest, opts ...gax.CallOption) *PropertyIterator
ListProperties returns child Properties under the specified parent Account.
Only “GA4” properties will be returned. Properties will be excluded if the caller does not have access. Soft-deleted (ie: “trashed”) properties are excluded by default. Returns an empty list if no relevant properties are found.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListPropertiesRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListPropertiesRequest. } it := c.ListProperties(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListSKAdNetworkConversionValueSchemas ¶ added in v0.21.4
func (c *AnalyticsAdminClient) ListSKAdNetworkConversionValueSchemas(ctx context.Context, req *adminpb.ListSKAdNetworkConversionValueSchemasRequest, opts ...gax.CallOption) *SKAdNetworkConversionValueSchemaIterator
ListSKAdNetworkConversionValueSchemas lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one SKAdNetworkConversionValueSchema.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListSKAdNetworkConversionValueSchemasRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListSKAdNetworkConversionValueSchemasRequest. } it := c.ListSKAdNetworkConversionValueSchemas(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListSearchAds360Links ¶ added in v0.17.0
func (c *AnalyticsAdminClient) ListSearchAds360Links(ctx context.Context, req *adminpb.ListSearchAds360LinksRequest, opts ...gax.CallOption) *SearchAds360LinkIterator
ListSearchAds360Links lists all SearchAds360Links on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListSearchAds360LinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListSearchAds360LinksRequest. } it := c.ListSearchAds360Links(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ListUserLinks ¶
func (c *AnalyticsAdminClient) ListUserLinks(ctx context.Context, req *adminpb.ListUserLinksRequest, opts ...gax.CallOption) *UserLinkIterator
ListUserLinks lists all user links on an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListUserLinksRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ListUserLinksRequest. } it := c.ListUserLinks(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) ProvisionAccountTicket ¶
func (c *AnalyticsAdminClient) ProvisionAccountTicket(ctx context.Context, req *adminpb.ProvisionAccountTicketRequest, opts ...gax.CallOption) (*adminpb.ProvisionAccountTicketResponse, error)
ProvisionAccountTicket requests a ticket for creating an account.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ProvisionAccountTicketRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#ProvisionAccountTicketRequest. } resp, err := c.ProvisionAccountTicket(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) RunAccessReport ¶ added in v0.9.0
func (c *AnalyticsAdminClient) RunAccessReport(ctx context.Context, req *adminpb.RunAccessReportRequest, opts ...gax.CallOption) (*adminpb.RunAccessReportResponse, error)
RunAccessReport returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years.
Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators.
These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don’t include property configuration changes like adding a stream or changing a property’s time zone. For configuration change history, see searchChangeHistoryEvents (at https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.RunAccessReportRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#RunAccessReportRequest. } resp, err := c.RunAccessReport(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) SearchChangeHistoryEvents ¶
func (c *AnalyticsAdminClient) SearchChangeHistoryEvents(ctx context.Context, req *adminpb.SearchChangeHistoryEventsRequest, opts ...gax.CallOption) *ChangeHistoryEventIterator
SearchChangeHistoryEvents searches through all changes to an account or its children given the specified set of filters.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.SearchChangeHistoryEventsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#SearchChangeHistoryEventsRequest. } it := c.SearchChangeHistoryEvents(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*AnalyticsAdminClient) SetAutomatedGa4ConfigurationOptOut ¶ added in v0.17.0
func (c *AnalyticsAdminClient) SetAutomatedGa4ConfigurationOptOut(ctx context.Context, req *adminpb.SetAutomatedGa4ConfigurationOptOutRequest, opts ...gax.CallOption) (*adminpb.SetAutomatedGa4ConfigurationOptOutResponse, error)
SetAutomatedGa4ConfigurationOptOut sets the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.SetAutomatedGa4ConfigurationOptOutRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#SetAutomatedGa4ConfigurationOptOutRequest. } resp, err := c.SetAutomatedGa4ConfigurationOptOut(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateAccessBinding ¶ added in v0.18.0
func (c *AnalyticsAdminClient) UpdateAccessBinding(ctx context.Context, req *adminpb.UpdateAccessBindingRequest, opts ...gax.CallOption) (*adminpb.AccessBinding, error)
UpdateAccessBinding updates an access binding on an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateAccessBindingRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateAccessBindingRequest. } resp, err := c.UpdateAccessBinding(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateAccount ¶
func (c *AnalyticsAdminClient) UpdateAccount(ctx context.Context, req *adminpb.UpdateAccountRequest, opts ...gax.CallOption) (*adminpb.Account, error)
UpdateAccount updates an account.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateAccountRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateAccountRequest. } resp, err := c.UpdateAccount(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateAttributionSettings ¶ added in v0.9.0
func (c *AnalyticsAdminClient) UpdateAttributionSettings(ctx context.Context, req *adminpb.UpdateAttributionSettingsRequest, opts ...gax.CallOption) (*adminpb.AttributionSettings, error)
UpdateAttributionSettings updates attribution settings on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateAttributionSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateAttributionSettingsRequest. } resp, err := c.UpdateAttributionSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateAudience ¶ added in v0.9.0
func (c *AnalyticsAdminClient) UpdateAudience(ctx context.Context, req *adminpb.UpdateAudienceRequest, opts ...gax.CallOption) (*adminpb.Audience, error)
UpdateAudience updates an Audience on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateAudienceRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateAudienceRequest. } resp, err := c.UpdateAudience(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateChannelGroup ¶ added in v0.19.1
func (c *AnalyticsAdminClient) UpdateChannelGroup(ctx context.Context, req *adminpb.UpdateChannelGroupRequest, opts ...gax.CallOption) (*adminpb.ChannelGroup, error)
UpdateChannelGroup updates a ChannelGroup.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateChannelGroupRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateChannelGroupRequest. } resp, err := c.UpdateChannelGroup(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateConversionEvent ¶ added in v0.21.4
func (c *AnalyticsAdminClient) UpdateConversionEvent(ctx context.Context, req *adminpb.UpdateConversionEventRequest, opts ...gax.CallOption) (*adminpb.ConversionEvent, error)
UpdateConversionEvent updates a conversion event with the specified attributes.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateConversionEventRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateConversionEventRequest. } resp, err := c.UpdateConversionEvent(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateCustomDimension ¶
func (c *AnalyticsAdminClient) UpdateCustomDimension(ctx context.Context, req *adminpb.UpdateCustomDimensionRequest, opts ...gax.CallOption) (*adminpb.CustomDimension, error)
UpdateCustomDimension updates a CustomDimension on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateCustomDimensionRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateCustomDimensionRequest. } resp, err := c.UpdateCustomDimension(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateCustomMetric ¶
func (c *AnalyticsAdminClient) UpdateCustomMetric(ctx context.Context, req *adminpb.UpdateCustomMetricRequest, opts ...gax.CallOption) (*adminpb.CustomMetric, error)
UpdateCustomMetric updates a CustomMetric on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateCustomMetricRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateCustomMetricRequest. } resp, err := c.UpdateCustomMetric(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateDataRetentionSettings ¶ added in v0.2.0
func (c *AnalyticsAdminClient) UpdateDataRetentionSettings(ctx context.Context, req *adminpb.UpdateDataRetentionSettingsRequest, opts ...gax.CallOption) (*adminpb.DataRetentionSettings, error)
UpdateDataRetentionSettings updates the singleton data retention settings for this property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateDataRetentionSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateDataRetentionSettingsRequest. } resp, err := c.UpdateDataRetentionSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateDataStream ¶ added in v0.3.0
func (c *AnalyticsAdminClient) UpdateDataStream(ctx context.Context, req *adminpb.UpdateDataStreamRequest, opts ...gax.CallOption) (*adminpb.DataStream, error)
UpdateDataStream updates a DataStream on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateDataStreamRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateDataStreamRequest. } resp, err := c.UpdateDataStream(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateDisplayVideo360AdvertiserLink ¶ added in v0.2.0
func (c *AnalyticsAdminClient) UpdateDisplayVideo360AdvertiserLink(ctx context.Context, req *adminpb.UpdateDisplayVideo360AdvertiserLinkRequest, opts ...gax.CallOption) (*adminpb.DisplayVideo360AdvertiserLink, error)
UpdateDisplayVideo360AdvertiserLink updates a DisplayVideo360AdvertiserLink on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateDisplayVideo360AdvertiserLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateDisplayVideo360AdvertiserLinkRequest. } resp, err := c.UpdateDisplayVideo360AdvertiserLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateEnhancedMeasurementSettings ¶
func (c *AnalyticsAdminClient) UpdateEnhancedMeasurementSettings(ctx context.Context, req *adminpb.UpdateEnhancedMeasurementSettingsRequest, opts ...gax.CallOption) (*adminpb.EnhancedMeasurementSettings, error)
UpdateEnhancedMeasurementSettings updates the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateEnhancedMeasurementSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateEnhancedMeasurementSettingsRequest. } resp, err := c.UpdateEnhancedMeasurementSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateEventCreateRule ¶ added in v0.20.0
func (c *AnalyticsAdminClient) UpdateEventCreateRule(ctx context.Context, req *adminpb.UpdateEventCreateRuleRequest, opts ...gax.CallOption) (*adminpb.EventCreateRule, error)
UpdateEventCreateRule updates an EventCreateRule.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateEventCreateRuleRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateEventCreateRuleRequest. } resp, err := c.UpdateEventCreateRule(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateExpandedDataSet ¶ added in v0.18.0
func (c *AnalyticsAdminClient) UpdateExpandedDataSet(ctx context.Context, req *adminpb.UpdateExpandedDataSetRequest, opts ...gax.CallOption) (*adminpb.ExpandedDataSet, error)
UpdateExpandedDataSet updates a ExpandedDataSet on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateExpandedDataSetRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateExpandedDataSetRequest. } resp, err := c.UpdateExpandedDataSet(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateGoogleAdsLink ¶
func (c *AnalyticsAdminClient) UpdateGoogleAdsLink(ctx context.Context, req *adminpb.UpdateGoogleAdsLinkRequest, opts ...gax.CallOption) (*adminpb.GoogleAdsLink, error)
UpdateGoogleAdsLink updates a GoogleAdsLink on a property
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateGoogleAdsLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateGoogleAdsLinkRequest. } resp, err := c.UpdateGoogleAdsLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateGoogleSignalsSettings ¶
func (c *AnalyticsAdminClient) UpdateGoogleSignalsSettings(ctx context.Context, req *adminpb.UpdateGoogleSignalsSettingsRequest, opts ...gax.CallOption) (*adminpb.GoogleSignalsSettings, error)
UpdateGoogleSignalsSettings updates Google Signals settings for a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateGoogleSignalsSettingsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateGoogleSignalsSettingsRequest. } resp, err := c.UpdateGoogleSignalsSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateMeasurementProtocolSecret ¶
func (c *AnalyticsAdminClient) UpdateMeasurementProtocolSecret(ctx context.Context, req *adminpb.UpdateMeasurementProtocolSecretRequest, opts ...gax.CallOption) (*adminpb.MeasurementProtocolSecret, error)
UpdateMeasurementProtocolSecret updates a measurement protocol secret.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateMeasurementProtocolSecretRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateMeasurementProtocolSecretRequest. } resp, err := c.UpdateMeasurementProtocolSecret(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateProperty ¶
func (c *AnalyticsAdminClient) UpdateProperty(ctx context.Context, req *adminpb.UpdatePropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
UpdateProperty updates a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdatePropertyRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdatePropertyRequest. } resp, err := c.UpdateProperty(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateSKAdNetworkConversionValueSchema ¶ added in v0.21.4
func (c *AnalyticsAdminClient) UpdateSKAdNetworkConversionValueSchema(ctx context.Context, req *adminpb.UpdateSKAdNetworkConversionValueSchemaRequest, opts ...gax.CallOption) (*adminpb.SKAdNetworkConversionValueSchema, error)
UpdateSKAdNetworkConversionValueSchema updates a SKAdNetworkConversionValueSchema.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateSKAdNetworkConversionValueSchemaRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateSKAdNetworkConversionValueSchemaRequest. } resp, err := c.UpdateSKAdNetworkConversionValueSchema(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateSearchAds360Link ¶ added in v0.17.0
func (c *AnalyticsAdminClient) UpdateSearchAds360Link(ctx context.Context, req *adminpb.UpdateSearchAds360LinkRequest, opts ...gax.CallOption) (*adminpb.SearchAds360Link, error)
UpdateSearchAds360Link updates a SearchAds360Link on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateSearchAds360LinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateSearchAds360LinkRequest. } resp, err := c.UpdateSearchAds360Link(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateUserLink ¶
func (c *AnalyticsAdminClient) UpdateUserLink(ctx context.Context, req *adminpb.UpdateUserLinkRequest, opts ...gax.CallOption) (*adminpb.UserLink, error)
UpdateUserLink updates a user link on an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateUserLinkRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/analytics/admin/apiv1alpha/adminpb#UpdateUserLinkRequest. } resp, err := c.UpdateUserLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
type AudienceIterator ¶ added in v0.9.0
type AudienceIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.Audience, nextPageToken string, err error) // contains filtered or unexported fields }
AudienceIterator manages a stream of *adminpb.Audience.
func (*AudienceIterator) Next ¶ added in v0.9.0
func (it *AudienceIterator) Next() (*adminpb.Audience, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*AudienceIterator) PageInfo ¶ added in v0.9.0
func (it *AudienceIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type AuditUserLinkIterator ¶
type AuditUserLinkIterator 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.AuditUserLink, nextPageToken string, err error) // contains filtered or unexported fields }
AuditUserLinkIterator manages a stream of *adminpb.AuditUserLink.
func (*AuditUserLinkIterator) Next ¶
func (it *AuditUserLinkIterator) Next() (*adminpb.AuditUserLink, 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 (*AuditUserLinkIterator) PageInfo ¶
func (it *AuditUserLinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type BigQueryLinkIterator ¶ added in v0.17.0
type BigQueryLinkIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.BigQueryLink, nextPageToken string, err error) // contains filtered or unexported fields }
BigQueryLinkIterator manages a stream of *adminpb.BigQueryLink.
func (*BigQueryLinkIterator) Next ¶ added in v0.17.0
func (it *BigQueryLinkIterator) Next() (*adminpb.BigQueryLink, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*BigQueryLinkIterator) PageInfo ¶ added in v0.17.0
func (it *BigQueryLinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type 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) Next ¶
func (it *ChangeHistoryEventIterator) Next() (*adminpb.ChangeHistoryEvent, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ChangeHistoryEventIterator) PageInfo ¶
func (it *ChangeHistoryEventIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ChannelGroupIterator ¶ added in v0.19.1
type ChannelGroupIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.ChannelGroup, nextPageToken string, err error) // contains filtered or unexported fields }
ChannelGroupIterator manages a stream of *adminpb.ChannelGroup.
func (*ChannelGroupIterator) Next ¶ added in v0.19.1
func (it *ChannelGroupIterator) Next() (*adminpb.ChannelGroup, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ChannelGroupIterator) PageInfo ¶ added in v0.19.1
func (it *ChannelGroupIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ConversionEventIterator ¶
type ConversionEventIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.ConversionEvent, nextPageToken string, err error) // contains filtered or unexported fields }
ConversionEventIterator manages a stream of *adminpb.ConversionEvent.
func (*ConversionEventIterator) 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) 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) Next ¶
func (it *CustomMetricIterator) Next() (*adminpb.CustomMetric, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*CustomMetricIterator) PageInfo ¶
func (it *CustomMetricIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DataStreamIterator ¶ added in v0.3.0
type DataStreamIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.DataStream, nextPageToken string, err error) // contains filtered or unexported fields }
DataStreamIterator manages a stream of *adminpb.DataStream.
func (*DataStreamIterator) Next ¶ added in v0.3.0
func (it *DataStreamIterator) Next() (*adminpb.DataStream, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*DataStreamIterator) PageInfo ¶ added in v0.3.0
func (it *DataStreamIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DisplayVideo360AdvertiserLinkIterator ¶ added in v0.2.0
type DisplayVideo360AdvertiserLinkIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.DisplayVideo360AdvertiserLink, nextPageToken string, err error) // contains filtered or unexported fields }
DisplayVideo360AdvertiserLinkIterator manages a stream of *adminpb.DisplayVideo360AdvertiserLink.
func (*DisplayVideo360AdvertiserLinkIterator) Next ¶ added in v0.2.0
func (it *DisplayVideo360AdvertiserLinkIterator) Next() (*adminpb.DisplayVideo360AdvertiserLink, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*DisplayVideo360AdvertiserLinkIterator) PageInfo ¶ added in v0.2.0
func (it *DisplayVideo360AdvertiserLinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type DisplayVideo360AdvertiserLinkProposalIterator ¶ added in v0.2.0
type DisplayVideo360AdvertiserLinkProposalIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.DisplayVideo360AdvertiserLinkProposal, nextPageToken string, err error) // contains filtered or unexported fields }
DisplayVideo360AdvertiserLinkProposalIterator manages a stream of *adminpb.DisplayVideo360AdvertiserLinkProposal.
func (*DisplayVideo360AdvertiserLinkProposalIterator) Next ¶ added in v0.2.0
func (it *DisplayVideo360AdvertiserLinkProposalIterator) Next() (*adminpb.DisplayVideo360AdvertiserLinkProposal, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*DisplayVideo360AdvertiserLinkProposalIterator) PageInfo ¶ added in v0.2.0
func (it *DisplayVideo360AdvertiserLinkProposalIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type EventCreateRuleIterator ¶ added in v0.20.0
type EventCreateRuleIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.EventCreateRule, nextPageToken string, err error) // contains filtered or unexported fields }
EventCreateRuleIterator manages a stream of *adminpb.EventCreateRule.
func (*EventCreateRuleIterator) Next ¶ added in v0.20.0
func (it *EventCreateRuleIterator) Next() (*adminpb.EventCreateRule, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*EventCreateRuleIterator) PageInfo ¶ added in v0.20.0
func (it *EventCreateRuleIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ExpandedDataSetIterator ¶ added in v0.18.0
type ExpandedDataSetIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.ExpandedDataSet, nextPageToken string, err error) // contains filtered or unexported fields }
ExpandedDataSetIterator manages a stream of *adminpb.ExpandedDataSet.
func (*ExpandedDataSetIterator) Next ¶ added in v0.18.0
func (it *ExpandedDataSetIterator) Next() (*adminpb.ExpandedDataSet, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ExpandedDataSetIterator) PageInfo ¶ added in v0.18.0
func (it *ExpandedDataSetIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type FirebaseLinkIterator ¶
type FirebaseLinkIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.FirebaseLink, nextPageToken string, err error) // contains filtered or unexported fields }
FirebaseLinkIterator manages a stream of *adminpb.FirebaseLink.
func (*FirebaseLinkIterator) 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) 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 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) 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) 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 SKAdNetworkConversionValueSchemaIterator ¶ added in v0.21.4
type SKAdNetworkConversionValueSchemaIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.SKAdNetworkConversionValueSchema, nextPageToken string, err error) // contains filtered or unexported fields }
SKAdNetworkConversionValueSchemaIterator manages a stream of *adminpb.SKAdNetworkConversionValueSchema.
func (*SKAdNetworkConversionValueSchemaIterator) Next ¶ added in v0.21.4
func (it *SKAdNetworkConversionValueSchemaIterator) Next() (*adminpb.SKAdNetworkConversionValueSchema, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*SKAdNetworkConversionValueSchemaIterator) PageInfo ¶ added in v0.21.4
func (it *SKAdNetworkConversionValueSchemaIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type SearchAds360LinkIterator ¶ added in v0.17.0
type SearchAds360LinkIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*adminpb.SearchAds360Link, nextPageToken string, err error) // contains filtered or unexported fields }
SearchAds360LinkIterator manages a stream of *adminpb.SearchAds360Link.
func (*SearchAds360LinkIterator) Next ¶ added in v0.17.0
func (it *SearchAds360LinkIterator) Next() (*adminpb.SearchAds360Link, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*SearchAds360LinkIterator) PageInfo ¶ added in v0.17.0
func (it *SearchAds360LinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type UserLinkIterator ¶
type UserLinkIterator 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.UserLink, nextPageToken string, err error) // contains filtered or unexported fields }
UserLinkIterator manages a stream of *adminpb.UserLink.
func (*UserLinkIterator) Next ¶
func (it *UserLinkIterator) Next() (*adminpb.UserLink, 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 (*UserLinkIterator) PageInfo ¶
func (it *UserLinkIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.