Documentation ¶
Overview ¶
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 pkg.go.dev/cloud.google.com/go.
Index ¶
- func DefaultAuthScopes() []string
- type AccountIterator
- type AccountSummaryIterator
- type AnalyticsAdminCallOptions
- type AnalyticsAdminClient
- 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) CreateAndroidAppDataStream(ctx context.Context, req *adminpb.CreateAndroidAppDataStreamRequest, ...) (*adminpb.AndroidAppDataStream, 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) CreateIosAppDataStream(ctx context.Context, req *adminpb.CreateIosAppDataStreamRequest, ...) (*adminpb.IosAppDataStream, 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) 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) DeleteProperty(ctx context.Context, req *adminpb.DeletePropertyRequest, ...) 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) 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) GetIosAppDataStream(ctx context.Context, req *adminpb.GetIosAppDataStreamRequest, ...) (*adminpb.IosAppDataStream, 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) ListFirebaseLinks(ctx context.Context, req *adminpb.ListFirebaseLinksRequest, ...) (*adminpb.ListFirebaseLinksResponse, error)
- 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) 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) 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) 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) UpdateIosAppDataStream(ctx context.Context, req *adminpb.UpdateIosAppDataStreamRequest, ...) (*adminpb.IosAppDataStream, 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 GoogleAdsLinkIterator
- type IosAppDataStreamIterator
- type PropertyIterator
- type UserLinkIterator
- type WebDataStreamIterator
Examples ¶
- AnalyticsAdminClient.AuditUserLinks
- AnalyticsAdminClient.BatchCreateUserLinks
- AnalyticsAdminClient.BatchDeleteUserLinks
- AnalyticsAdminClient.BatchGetUserLinks
- AnalyticsAdminClient.BatchUpdateUserLinks
- AnalyticsAdminClient.CreateAndroidAppDataStream
- AnalyticsAdminClient.CreateFirebaseLink
- AnalyticsAdminClient.CreateGoogleAdsLink
- AnalyticsAdminClient.CreateIosAppDataStream
- AnalyticsAdminClient.CreateProperty
- AnalyticsAdminClient.CreateUserLink
- AnalyticsAdminClient.CreateWebDataStream
- AnalyticsAdminClient.DeleteAccount
- AnalyticsAdminClient.DeleteAndroidAppDataStream
- AnalyticsAdminClient.DeleteFirebaseLink
- AnalyticsAdminClient.DeleteGoogleAdsLink
- AnalyticsAdminClient.DeleteIosAppDataStream
- AnalyticsAdminClient.DeleteProperty
- AnalyticsAdminClient.DeleteUserLink
- AnalyticsAdminClient.DeleteWebDataStream
- AnalyticsAdminClient.GetAccount
- AnalyticsAdminClient.GetAndroidAppDataStream
- AnalyticsAdminClient.GetDataSharingSettings
- AnalyticsAdminClient.GetEnhancedMeasurementSettings
- AnalyticsAdminClient.GetGlobalSiteTag
- AnalyticsAdminClient.GetIosAppDataStream
- AnalyticsAdminClient.GetProperty
- AnalyticsAdminClient.GetUserLink
- AnalyticsAdminClient.GetWebDataStream
- AnalyticsAdminClient.ListAccountSummaries
- AnalyticsAdminClient.ListAccounts
- AnalyticsAdminClient.ListAndroidAppDataStreams
- AnalyticsAdminClient.ListFirebaseLinks
- AnalyticsAdminClient.ListGoogleAdsLinks
- AnalyticsAdminClient.ListIosAppDataStreams
- AnalyticsAdminClient.ListProperties
- AnalyticsAdminClient.ListUserLinks
- AnalyticsAdminClient.ListWebDataStreams
- AnalyticsAdminClient.ProvisionAccountTicket
- AnalyticsAdminClient.UpdateAccount
- AnalyticsAdminClient.UpdateAndroidAppDataStream
- AnalyticsAdminClient.UpdateEnhancedMeasurementSettings
- AnalyticsAdminClient.UpdateFirebaseLink
- AnalyticsAdminClient.UpdateGoogleAdsLink
- AnalyticsAdminClient.UpdateIosAppDataStream
- 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 ¶ added in v0.69.0
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 ¶ added in v0.69.0
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 ¶ added in v0.69.0
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 CreateIosAppDataStream []gax.CallOption ListIosAppDataStreams []gax.CallOption GetAndroidAppDataStream []gax.CallOption DeleteAndroidAppDataStream []gax.CallOption UpdateAndroidAppDataStream []gax.CallOption CreateAndroidAppDataStream []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 }
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 .
Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
func NewAnalyticsAdminClient ¶
func NewAnalyticsAdminClient(ctx context.Context, opts ...option.ClientOption) (*AnalyticsAdminClient, error)
NewAnalyticsAdminClient creates a new analytics admin service client.
Service Interface for the Analytics Admin API (GA4).
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } // TODO: Use client. _ = c }
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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" // import "google.golang.org/api/iterator" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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) CreateAndroidAppDataStream ¶
func (c *AnalyticsAdminClient) CreateAndroidAppDataStream(ctx context.Context, req *adminpb.CreateAndroidAppDataStreamRequest, opts ...gax.CallOption) (*adminpb.AndroidAppDataStream, error)
CreateAndroidAppDataStream creates an android app 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } req := &adminpb.CreateAndroidAppDataStreamRequest{ // TODO: Fill request struct fields. } resp, err := c.CreateAndroidAppDataStream(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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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) CreateIosAppDataStream ¶
func (c *AnalyticsAdminClient) CreateIosAppDataStream(ctx context.Context, req *adminpb.CreateIosAppDataStreamRequest, opts ...gax.CallOption) (*adminpb.IosAppDataStream, error)
CreateIosAppDataStream creates an iOS app data 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } req := &adminpb.CreateIosAppDataStreamRequest{ // TODO: Fill request struct fields. } resp, err := c.CreateIosAppDataStream(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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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. } 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. } req := &adminpb.DeleteAndroidAppDataStreamRequest{ // TODO: Fill request struct fields. } err = c.DeleteAndroidAppDataStream(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. } 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. } 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. } req := &adminpb.DeleteIosAppDataStreamRequest{ // TODO: Fill request struct fields. } err = c.DeleteIosAppDataStream(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) 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. } req := &adminpb.DeletePropertyRequest{ // TODO: Fill request struct fields. } err = c.DeleteProperty(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*AnalyticsAdminClient) DeleteUserLink ¶
func (c *AnalyticsAdminClient) DeleteUserLink(ctx context.Context, req *adminpb.DeleteUserLinkRequest, opts ...gax.CallOption) error
DeleteUserLink deletes a user link on an account or property.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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. } 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. Throws “Target not found” if no such account found, or if caller does not have permissions to access it.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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
Throws “Target not found” if no such android app data stream found, or if the caller does not have permissions to access it.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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) 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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) GetIosAppDataStream ¶
func (c *AnalyticsAdminClient) GetIosAppDataStream(ctx context.Context, req *adminpb.GetIosAppDataStreamRequest, opts ...gax.CallOption) (*adminpb.IosAppDataStream, error)
GetIosAppDataStream lookup for a single IosAppDataStream
Throws “Target not found” if no such iOS app data stream found, or if the caller does not have permissions to access it.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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) GetProperty ¶
func (c *AnalyticsAdminClient) GetProperty(ctx context.Context, req *adminpb.GetPropertyRequest, opts ...gax.CallOption) (*adminpb.Property, error)
GetProperty lookup for a single “GA4” Property.
Throws “Target not found” if no such property found, if property is not of the type “GA4”, or if caller does not have permissions to access it.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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
Throws “Target not found” if no such web data stream found, or if the caller does not have permissions to access it.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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 ¶ added in v0.69.0
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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" // import "google.golang.org/api/iterator" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" // import "google.golang.org/api/iterator" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" // import "google.golang.org/api/iterator" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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) ListFirebaseLinks ¶
func (c *AnalyticsAdminClient) ListFirebaseLinks(ctx context.Context, req *adminpb.ListFirebaseLinksRequest, opts ...gax.CallOption) (*adminpb.ListFirebaseLinksResponse, error)
ListFirebaseLinks lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Example ¶
package main import ( "context" admin "cloud.google.com/go/analytics/admin/apiv1alpha" adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ) func main() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } req := &adminpb.ListFirebaseLinksRequest{ // TODO: Fill request struct fields. } resp, err := c.ListFirebaseLinks(ctx, req) 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" // import "google.golang.org/api/iterator" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" // import "google.golang.org/api/iterator" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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) 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" // import "google.golang.org/api/iterator" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" // import "google.golang.org/api/iterator" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" // import "google.golang.org/api/iterator" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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) 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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) 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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) 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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) 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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() { // import adminpb "google.golang.org/genproto/googleapis/analytics/admin/v1alpha" ctx := context.Background() c, err := admin.NewAnalyticsAdminClient(ctx) if err != nil { // TODO: Handle error. } 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 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 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.