Documentation
¶
Overview ¶
Package admin is an auto-generated package for the Google Analytics Admin API.
NOTE: This package is in alpha. It is not stable, and is likely to change.
Use of Context ¶
The ctx passed to NewClient 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.
For information about setting deadlines, reusing contexts, and more please visit https://pkg.go.dev/cloud.google.com/go.
Index ¶
- func DefaultAuthScopes() []string
- type AccountIterator
- type AccountSummaryIterator
- type AnalyticsAdminCallOptions
- type AnalyticsAdminClient
- 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) BatchCreateUserLinks(ctx context.Context, req *adminpb.BatchCreateUserLinksRequest, ...) (*adminpb.BatchCreateUserLinksResponse, error)
- func (c *AnalyticsAdminClient) BatchDeleteUserLinks(ctx context.Context, req *adminpb.BatchDeleteUserLinksRequest, ...) error
- func (c *AnalyticsAdminClient) BatchGetUserLinks(ctx context.Context, req *adminpb.BatchGetUserLinksRequest, ...) (*adminpb.BatchGetUserLinksResponse, error)
- func (c *AnalyticsAdminClient) BatchUpdateUserLinks(ctx context.Context, req *adminpb.BatchUpdateUserLinksRequest, ...) (*adminpb.BatchUpdateUserLinksResponse, error)
- func (c *AnalyticsAdminClient) Close() error
- func (c *AnalyticsAdminClient) Connection() *grpc.ClientConn
- 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) 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) CreateUserLink(ctx context.Context, req *adminpb.CreateUserLinkRequest, ...) (*adminpb.UserLink, error)
- func (c *AnalyticsAdminClient) CreateWebDataStream(ctx context.Context, req *adminpb.CreateWebDataStreamRequest, ...) (*adminpb.WebDataStream, error)
- func (c *AnalyticsAdminClient) DeleteAccount(ctx context.Context, req *adminpb.DeleteAccountRequest, opts ...gax.CallOption) error
- func (c *AnalyticsAdminClient) DeleteAndroidAppDataStream(ctx context.Context, req *adminpb.DeleteAndroidAppDataStreamRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteConversionEvent(ctx context.Context, req *adminpb.DeleteConversionEventRequest, ...) 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) DeleteIosAppDataStream(ctx context.Context, req *adminpb.DeleteIosAppDataStreamRequest, ...) 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) DeleteUserLink(ctx context.Context, req *adminpb.DeleteUserLinkRequest, ...) error
- func (c *AnalyticsAdminClient) DeleteWebDataStream(ctx context.Context, req *adminpb.DeleteWebDataStreamRequest, ...) error
- func (c *AnalyticsAdminClient) GetAccount(ctx context.Context, req *adminpb.GetAccountRequest, opts ...gax.CallOption) (*adminpb.Account, error)
- func (c *AnalyticsAdminClient) GetAndroidAppDataStream(ctx context.Context, req *adminpb.GetAndroidAppDataStreamRequest, ...) (*adminpb.AndroidAppDataStream, 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) GetDataSharingSettings(ctx context.Context, req *adminpb.GetDataSharingSettingsRequest, ...) (*adminpb.DataSharingSettings, error)
- func (c *AnalyticsAdminClient) GetEnhancedMeasurementSettings(ctx context.Context, req *adminpb.GetEnhancedMeasurementSettingsRequest, ...) (*adminpb.EnhancedMeasurementSettings, 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) GetIosAppDataStream(ctx context.Context, req *adminpb.GetIosAppDataStreamRequest, ...) (*adminpb.IosAppDataStream, 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) GetUserLink(ctx context.Context, req *adminpb.GetUserLinkRequest, opts ...gax.CallOption) (*adminpb.UserLink, error)
- func (c *AnalyticsAdminClient) GetWebDataStream(ctx context.Context, req *adminpb.GetWebDataStreamRequest, ...) (*adminpb.WebDataStream, error)
- 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) ListAndroidAppDataStreams(ctx context.Context, req *adminpb.ListAndroidAppDataStreamsRequest, ...) *AndroidAppDataStreamIterator
- 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) ListFirebaseLinks(ctx context.Context, req *adminpb.ListFirebaseLinksRequest, ...) *FirebaseLinkIterator
- func (c *AnalyticsAdminClient) ListGoogleAdsLinks(ctx context.Context, req *adminpb.ListGoogleAdsLinksRequest, ...) *GoogleAdsLinkIterator
- func (c *AnalyticsAdminClient) ListIosAppDataStreams(ctx context.Context, req *adminpb.ListIosAppDataStreamsRequest, ...) *IosAppDataStreamIterator
- 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) ListUserLinks(ctx context.Context, req *adminpb.ListUserLinksRequest, opts ...gax.CallOption) *UserLinkIterator
- func (c *AnalyticsAdminClient) ListWebDataStreams(ctx context.Context, req *adminpb.ListWebDataStreamsRequest, ...) *WebDataStreamIterator
- func (c *AnalyticsAdminClient) ProvisionAccountTicket(ctx context.Context, req *adminpb.ProvisionAccountTicketRequest, ...) (*adminpb.ProvisionAccountTicketResponse, error)
- func (c *AnalyticsAdminClient) SearchChangeHistoryEvents(ctx context.Context, req *adminpb.SearchChangeHistoryEventsRequest, ...) *ChangeHistoryEventIterator
- func (c *AnalyticsAdminClient) UpdateAccount(ctx context.Context, req *adminpb.UpdateAccountRequest, opts ...gax.CallOption) (*adminpb.Account, error)
- func (c *AnalyticsAdminClient) UpdateAndroidAppDataStream(ctx context.Context, req *adminpb.UpdateAndroidAppDataStreamRequest, ...) (*adminpb.AndroidAppDataStream, 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) UpdateEnhancedMeasurementSettings(ctx context.Context, req *adminpb.UpdateEnhancedMeasurementSettingsRequest, ...) (*adminpb.EnhancedMeasurementSettings, error)
- func (c *AnalyticsAdminClient) UpdateFirebaseLink(ctx context.Context, req *adminpb.UpdateFirebaseLinkRequest, ...) (*adminpb.FirebaseLink, 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) UpdateIosAppDataStream(ctx context.Context, req *adminpb.UpdateIosAppDataStreamRequest, ...) (*adminpb.IosAppDataStream, 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) UpdateUserLink(ctx context.Context, req *adminpb.UpdateUserLinkRequest, ...) (*adminpb.UserLink, error)
- func (c *AnalyticsAdminClient) UpdateWebDataStream(ctx context.Context, req *adminpb.UpdateWebDataStreamRequest, ...) (*adminpb.WebDataStream, error)
- type AndroidAppDataStreamIterator
- type AuditUserLinkIterator
- type ChangeHistoryEventIterator
- type ConversionEventIterator
- type CustomDimensionIterator
- type CustomMetricIterator
- type FirebaseLinkIterator
- type GoogleAdsLinkIterator
- type IosAppDataStreamIterator
- type MeasurementProtocolSecretIterator
- type PropertyIterator
- type UserLinkIterator
- type WebDataStreamIterator
Examples ¶
- AnalyticsAdminClient.ArchiveCustomDimension
- AnalyticsAdminClient.ArchiveCustomMetric
- AnalyticsAdminClient.AuditUserLinks
- AnalyticsAdminClient.BatchCreateUserLinks
- AnalyticsAdminClient.BatchDeleteUserLinks
- AnalyticsAdminClient.BatchGetUserLinks
- AnalyticsAdminClient.BatchUpdateUserLinks
- AnalyticsAdminClient.CreateConversionEvent
- AnalyticsAdminClient.CreateCustomDimension
- AnalyticsAdminClient.CreateCustomMetric
- AnalyticsAdminClient.CreateFirebaseLink
- AnalyticsAdminClient.CreateGoogleAdsLink
- AnalyticsAdminClient.CreateMeasurementProtocolSecret
- AnalyticsAdminClient.CreateProperty
- AnalyticsAdminClient.CreateUserLink
- AnalyticsAdminClient.CreateWebDataStream
- AnalyticsAdminClient.DeleteAccount
- AnalyticsAdminClient.DeleteAndroidAppDataStream
- AnalyticsAdminClient.DeleteConversionEvent
- AnalyticsAdminClient.DeleteFirebaseLink
- AnalyticsAdminClient.DeleteGoogleAdsLink
- AnalyticsAdminClient.DeleteIosAppDataStream
- AnalyticsAdminClient.DeleteMeasurementProtocolSecret
- AnalyticsAdminClient.DeleteProperty
- AnalyticsAdminClient.DeleteUserLink
- AnalyticsAdminClient.DeleteWebDataStream
- AnalyticsAdminClient.GetAccount
- AnalyticsAdminClient.GetAndroidAppDataStream
- AnalyticsAdminClient.GetConversionEvent
- AnalyticsAdminClient.GetCustomDimension
- AnalyticsAdminClient.GetCustomMetric
- AnalyticsAdminClient.GetDataSharingSettings
- AnalyticsAdminClient.GetEnhancedMeasurementSettings
- AnalyticsAdminClient.GetGlobalSiteTag
- AnalyticsAdminClient.GetGoogleSignalsSettings
- AnalyticsAdminClient.GetIosAppDataStream
- AnalyticsAdminClient.GetMeasurementProtocolSecret
- AnalyticsAdminClient.GetProperty
- AnalyticsAdminClient.GetUserLink
- AnalyticsAdminClient.GetWebDataStream
- AnalyticsAdminClient.ListAccountSummaries
- AnalyticsAdminClient.ListAccounts
- AnalyticsAdminClient.ListAndroidAppDataStreams
- AnalyticsAdminClient.ListConversionEvents
- AnalyticsAdminClient.ListCustomDimensions
- AnalyticsAdminClient.ListCustomMetrics
- AnalyticsAdminClient.ListFirebaseLinks
- AnalyticsAdminClient.ListGoogleAdsLinks
- AnalyticsAdminClient.ListIosAppDataStreams
- AnalyticsAdminClient.ListMeasurementProtocolSecrets
- AnalyticsAdminClient.ListProperties
- AnalyticsAdminClient.ListUserLinks
- AnalyticsAdminClient.ListWebDataStreams
- AnalyticsAdminClient.ProvisionAccountTicket
- AnalyticsAdminClient.SearchChangeHistoryEvents
- AnalyticsAdminClient.UpdateAccount
- AnalyticsAdminClient.UpdateAndroidAppDataStream
- AnalyticsAdminClient.UpdateCustomDimension
- AnalyticsAdminClient.UpdateCustomMetric
- AnalyticsAdminClient.UpdateEnhancedMeasurementSettings
- AnalyticsAdminClient.UpdateFirebaseLink
- AnalyticsAdminClient.UpdateGoogleAdsLink
- AnalyticsAdminClient.UpdateGoogleSignalsSettings
- AnalyticsAdminClient.UpdateIosAppDataStream
- AnalyticsAdminClient.UpdateMeasurementProtocolSecret
- AnalyticsAdminClient.UpdateProperty
- AnalyticsAdminClient.UpdateUserLink
- AnalyticsAdminClient.UpdateWebDataStream
- NewAnalyticsAdminClient
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 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 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 GetWebDataStream []gax.CallOption DeleteWebDataStream []gax.CallOption UpdateWebDataStream []gax.CallOption CreateWebDataStream []gax.CallOption ListWebDataStreams []gax.CallOption GetIosAppDataStream []gax.CallOption DeleteIosAppDataStream []gax.CallOption UpdateIosAppDataStream []gax.CallOption ListIosAppDataStreams []gax.CallOption GetAndroidAppDataStream []gax.CallOption DeleteAndroidAppDataStream []gax.CallOption UpdateAndroidAppDataStream []gax.CallOption ListAndroidAppDataStreams []gax.CallOption GetEnhancedMeasurementSettings []gax.CallOption UpdateEnhancedMeasurementSettings []gax.CallOption CreateFirebaseLink []gax.CallOption UpdateFirebaseLink []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 SearchChangeHistoryEvents []gax.CallOption GetGoogleSignalsSettings []gax.CallOption UpdateGoogleSignalsSettings []gax.CallOption CreateConversionEvent []gax.CallOption GetConversionEvent []gax.CallOption DeleteConversionEvent []gax.CallOption ListConversionEvents []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 }
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() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() // TODO: Use client. _ = c }
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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ArchiveCustomDimensionRequest{ // TODO: Fill request struct fields. } 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ArchiveCustomMetricRequest{ // TODO: Fill request struct fields. } 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" "google.golang.org/api/iterator" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.AuditUserLinksRequest{ // TODO: Fill request struct fields. } 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) 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchCreateUserLinksRequest{ // TODO: Fill request struct fields. } resp, err := c.BatchCreateUserLinks(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchDeleteUserLinksRequest{ // TODO: Fill request struct fields. } err = c.BatchDeleteUserLinks(ctx, req) if err != nil { // TODO: Handle error. } }
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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchGetUserLinksRequest{ // TODO: Fill request struct fields. } resp, err := c.BatchGetUserLinks(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.BatchUpdateUserLinksRequest{ // TODO: Fill request struct fields. } resp, err := c.BatchUpdateUserLinks(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 ¶
func (c *AnalyticsAdminClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated.
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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateConversionEventRequest{ // TODO: Fill request struct fields. } 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateCustomDimensionRequest{ // TODO: Fill request struct fields. } 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateCustomMetricRequest{ // TODO: Fill request struct fields. } resp, err := c.CreateCustomMetric(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateFirebaseLinkRequest{ // TODO: Fill request struct fields. } 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateGoogleAdsLinkRequest{ // TODO: Fill request struct fields. } 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateMeasurementProtocolSecretRequest{ // TODO: Fill request struct fields. } 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreatePropertyRequest{ // TODO: Fill request struct fields. } resp, err := c.CreateProperty(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateUserLinkRequest{ // TODO: Fill request struct fields. } resp, err := c.CreateUserLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) CreateWebDataStream ¶
func (c *AnalyticsAdminClient) CreateWebDataStream(ctx context.Context, req *adminpb.CreateWebDataStreamRequest, opts ...gax.CallOption) (*adminpb.WebDataStream, error)
CreateWebDataStream creates a web stream with the specified location and attributes.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.CreateWebDataStreamRequest{ // TODO: Fill request struct fields. } resp, err := c.CreateWebDataStream(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteAccountRequest{ // TODO: Fill request struct fields. } err = c.DeleteAccount(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteAndroidAppDataStream ¶
func (c *AnalyticsAdminClient) DeleteAndroidAppDataStream(ctx context.Context, req *adminpb.DeleteAndroidAppDataStreamRequest, opts ...gax.CallOption) error
DeleteAndroidAppDataStream deletes an android app stream on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteAndroidAppDataStreamRequest{ // TODO: Fill request struct fields. } err = c.DeleteAndroidAppDataStream(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteConversionEventRequest{ // TODO: Fill request struct fields. } err = c.DeleteConversionEvent(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteFirebaseLinkRequest{ // TODO: Fill request struct fields. } 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteGoogleAdsLinkRequest{ // TODO: Fill request struct fields. } err = c.DeleteGoogleAdsLink(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteIosAppDataStream ¶
func (c *AnalyticsAdminClient) DeleteIosAppDataStream(ctx context.Context, req *adminpb.DeleteIosAppDataStreamRequest, opts ...gax.CallOption) error
DeleteIosAppDataStream deletes an iOS app stream on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteIosAppDataStreamRequest{ // TODO: Fill request struct fields. } err = c.DeleteIosAppDataStream(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteMeasurementProtocolSecretRequest{ // TODO: Fill request struct fields. } 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 an GA4 Property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeletePropertyRequest{ // TODO: Fill request struct fields. } resp, err := c.DeleteProperty(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteUserLinkRequest{ // TODO: Fill request struct fields. } err = c.DeleteUserLink(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteWebDataStream ¶
func (c *AnalyticsAdminClient) DeleteWebDataStream(ctx context.Context, req *adminpb.DeleteWebDataStreamRequest, opts ...gax.CallOption) error
DeleteWebDataStream deletes a web stream on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.DeleteWebDataStreamRequest{ // TODO: Fill request struct fields. } err = c.DeleteWebDataStream(ctx, req) if err != nil { // TODO: Handle error. } }
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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetAccountRequest{ // TODO: Fill request struct fields. } resp, err := c.GetAccount(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetAndroidAppDataStream ¶
func (c *AnalyticsAdminClient) GetAndroidAppDataStream(ctx context.Context, req *adminpb.GetAndroidAppDataStreamRequest, opts ...gax.CallOption) (*adminpb.AndroidAppDataStream, error)
GetAndroidAppDataStream lookup for a single AndroidAppDataStream
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetAndroidAppDataStreamRequest{ // TODO: Fill request struct fields. } resp, err := c.GetAndroidAppDataStream(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetConversionEventRequest{ // TODO: Fill request struct fields. } 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetCustomDimensionRequest{ // TODO: Fill request struct fields. } 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetCustomMetricRequest{ // TODO: Fill request struct fields. } resp, err := c.GetCustomMetric(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetDataSharingSettingsRequest{ // TODO: Fill request struct fields. } resp, err := c.GetDataSharingSettings(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 singleton enhanced measurement settings for this web 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetEnhancedMeasurementSettingsRequest{ // TODO: Fill request struct fields. } resp, err := c.GetEnhancedMeasurementSettings(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetGlobalSiteTagRequest{ // TODO: Fill request struct fields. } 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetGoogleSignalsSettingsRequest{ // TODO: Fill request struct fields. } resp, err := c.GetGoogleSignalsSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetIosAppDataStream ¶
func (c *AnalyticsAdminClient) GetIosAppDataStream(ctx context.Context, req *adminpb.GetIosAppDataStreamRequest, opts ...gax.CallOption) (*adminpb.IosAppDataStream, error)
GetIosAppDataStream lookup for a single IosAppDataStream
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetIosAppDataStreamRequest{ // TODO: Fill request struct fields. } resp, err := c.GetIosAppDataStream(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetMeasurementProtocolSecretRequest{ // TODO: Fill request struct fields. } 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetPropertyRequest{ // TODO: Fill request struct fields. } resp, err := c.GetProperty(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetUserLinkRequest{ // TODO: Fill request struct fields. } resp, err := c.GetUserLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) GetWebDataStream ¶
func (c *AnalyticsAdminClient) GetWebDataStream(ctx context.Context, req *adminpb.GetWebDataStreamRequest, opts ...gax.CallOption) (*adminpb.WebDataStream, error)
GetWebDataStream lookup for a single WebDataStream
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.GetWebDataStreamRequest{ // TODO: Fill request struct fields. } resp, err := c.GetWebDataStream(ctx, req) 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" "google.golang.org/api/iterator" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAccountSummariesRequest{ // TODO: Fill request struct fields. } 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" "google.golang.org/api/iterator" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAccountsRequest{ // TODO: Fill request struct fields. } 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) ListAndroidAppDataStreams ¶
func (c *AnalyticsAdminClient) ListAndroidAppDataStreams(ctx context.Context, req *adminpb.ListAndroidAppDataStreamsRequest, opts ...gax.CallOption) *AndroidAppDataStreamIterator
ListAndroidAppDataStreams returns child android app streams under the specified parent property.
Android app streams will be excluded if the caller does not have access. Returns an empty list if no relevant android app streams are found.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" "google.golang.org/api/iterator" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListAndroidAppDataStreamsRequest{ // TODO: Fill request struct fields. } it := c.ListAndroidAppDataStreams(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) 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" "google.golang.org/api/iterator" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListConversionEventsRequest{ // TODO: Fill request struct fields. } 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" "google.golang.org/api/iterator" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListCustomDimensionsRequest{ // TODO: Fill request struct fields. } 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" "google.golang.org/api/iterator" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListCustomMetricsRequest{ // TODO: Fill request struct fields. } 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) 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" "google.golang.org/api/iterator" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListFirebaseLinksRequest{ // TODO: Fill request struct fields. } 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" "google.golang.org/api/iterator" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListGoogleAdsLinksRequest{ // TODO: Fill request struct fields. } 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) ListIosAppDataStreams ¶
func (c *AnalyticsAdminClient) ListIosAppDataStreams(ctx context.Context, req *adminpb.ListIosAppDataStreamsRequest, opts ...gax.CallOption) *IosAppDataStreamIterator
ListIosAppDataStreams returns child iOS app data streams under the specified parent property.
iOS app data streams will be excluded if the caller does not have access. Returns an empty list if no relevant iOS app data streams are found.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" "google.golang.org/api/iterator" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListIosAppDataStreamsRequest{ // TODO: Fill request struct fields. } it := c.ListIosAppDataStreams(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" "google.golang.org/api/iterator" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListMeasurementProtocolSecretsRequest{ // TODO: Fill request struct fields. } 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" "google.golang.org/api/iterator" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListPropertiesRequest{ // TODO: Fill request struct fields. } 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) 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" "google.golang.org/api/iterator" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListUserLinksRequest{ // TODO: Fill request struct fields. } 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) ListWebDataStreams ¶
func (c *AnalyticsAdminClient) ListWebDataStreams(ctx context.Context, req *adminpb.ListWebDataStreamsRequest, opts ...gax.CallOption) *WebDataStreamIterator
ListWebDataStreams returns child web data streams under the specified parent property.
Web data streams will be excluded if the caller does not have access. Returns an empty list if no relevant web data streams are found.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" "google.golang.org/api/iterator" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ListWebDataStreamsRequest{ // TODO: Fill request struct fields. } it := c.ListWebDataStreams(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.ProvisionAccountTicketRequest{ // TODO: Fill request struct fields. } resp, err := c.ProvisionAccountTicket(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" "google.golang.org/api/iterator" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.SearchChangeHistoryEventsRequest{ // TODO: Fill request struct fields. } 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) 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateAccountRequest{ // TODO: Fill request struct fields. } resp, err := c.UpdateAccount(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateAndroidAppDataStream ¶
func (c *AnalyticsAdminClient) UpdateAndroidAppDataStream(ctx context.Context, req *adminpb.UpdateAndroidAppDataStreamRequest, opts ...gax.CallOption) (*adminpb.AndroidAppDataStream, error)
UpdateAndroidAppDataStream updates an android app stream on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateAndroidAppDataStreamRequest{ // TODO: Fill request struct fields. } resp, err := c.UpdateAndroidAppDataStream(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateCustomDimensionRequest{ // TODO: Fill request struct fields. } 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateCustomMetricRequest{ // TODO: Fill request struct fields. } resp, err := c.UpdateCustomMetric(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 singleton enhanced measurement settings for this web 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateEnhancedMeasurementSettingsRequest{ // TODO: Fill request struct fields. } resp, err := c.UpdateEnhancedMeasurementSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateFirebaseLink ¶
func (c *AnalyticsAdminClient) UpdateFirebaseLink(ctx context.Context, req *adminpb.UpdateFirebaseLinkRequest, opts ...gax.CallOption) (*adminpb.FirebaseLink, error)
UpdateFirebaseLink updates a FirebaseLink on a property
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateFirebaseLinkRequest{ // TODO: Fill request struct fields. } resp, err := c.UpdateFirebaseLink(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateGoogleAdsLinkRequest{ // TODO: Fill request struct fields. } 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateGoogleSignalsSettingsRequest{ // TODO: Fill request struct fields. } resp, err := c.UpdateGoogleSignalsSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateIosAppDataStream ¶
func (c *AnalyticsAdminClient) UpdateIosAppDataStream(ctx context.Context, req *adminpb.UpdateIosAppDataStreamRequest, opts ...gax.CallOption) (*adminpb.IosAppDataStream, error)
UpdateIosAppDataStream updates an iOS app stream on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateIosAppDataStreamRequest{ // TODO: Fill request struct fields. } resp, err := c.UpdateIosAppDataStream(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateMeasurementProtocolSecretRequest{ // TODO: Fill request struct fields. } 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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdatePropertyRequest{ // TODO: Fill request struct fields. } resp, err := c.UpdateProperty(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 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateUserLinkRequest{ // TODO: Fill request struct fields. } resp, err := c.UpdateUserLink(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*AnalyticsAdminClient) UpdateWebDataStream ¶
func (c *AnalyticsAdminClient) UpdateWebDataStream(ctx context.Context, req *adminpb.UpdateWebDataStreamRequest, opts ...gax.CallOption) (*adminpb.WebDataStream, error)
UpdateWebDataStream updates a web stream on a property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &adminpb.UpdateWebDataStreamRequest{ // TODO: Fill request struct fields. } resp, err := c.UpdateWebDataStream(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
type AndroidAppDataStreamIterator ¶
type AndroidAppDataStreamIterator 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.AndroidAppDataStream, nextPageToken string, err error) // contains filtered or unexported fields }
AndroidAppDataStreamIterator manages a stream of *adminpb.AndroidAppDataStream.
func (*AndroidAppDataStreamIterator) Next ¶
func (it *AndroidAppDataStreamIterator) Next() (*adminpb.AndroidAppDataStream, 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 (*AndroidAppDataStreamIterator) PageInfo ¶
func (it *AndroidAppDataStreamIterator) 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 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 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 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 IosAppDataStreamIterator ¶
type IosAppDataStreamIterator 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.IosAppDataStream, nextPageToken string, err error) // contains filtered or unexported fields }
IosAppDataStreamIterator manages a stream of *adminpb.IosAppDataStream.
func (*IosAppDataStreamIterator) Next ¶
func (it *IosAppDataStreamIterator) Next() (*adminpb.IosAppDataStream, 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 (*IosAppDataStreamIterator) PageInfo ¶
func (it *IosAppDataStreamIterator) 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 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.
type WebDataStreamIterator ¶
type WebDataStreamIterator 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.WebDataStream, nextPageToken string, err error) // contains filtered or unexported fields }
WebDataStreamIterator manages a stream of *adminpb.WebDataStream.
func (*WebDataStreamIterator) Next ¶
func (it *WebDataStreamIterator) Next() (*adminpb.WebDataStream, 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 (*WebDataStreamIterator) PageInfo ¶
func (it *WebDataStreamIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.