| // Copyright 2022 Google LLC |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // https://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // Code generated by protoc-gen-go_gapic. DO NOT EDIT. |
| |
| package admin_test |
| |
| 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 ExampleNewAnalyticsAdminClient() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| // TODO: Use client. |
| _ = c |
| } |
| |
| func ExampleAnalyticsAdminClient_GetAccount() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetAccountRequest. |
| } |
| resp, err := c.GetAccount(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_ListAccounts() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListAccountsRequest. |
| } |
| it := c.ListAccounts(ctx, req) |
| for { |
| resp, err := it.Next() |
| if err == iterator.Done { |
| break |
| } |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_DeleteAccount() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#DeleteAccountRequest. |
| } |
| err = c.DeleteAccount(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_UpdateAccount() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#UpdateAccountRequest. |
| } |
| resp, err := c.UpdateAccount(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_ProvisionAccountTicket() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ProvisionAccountTicketRequest. |
| } |
| resp, err := c.ProvisionAccountTicket(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_ListAccountSummaries() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListAccountSummariesRequest. |
| } |
| it := c.ListAccountSummaries(ctx, req) |
| for { |
| resp, err := it.Next() |
| if err == iterator.Done { |
| break |
| } |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_GetProperty() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetPropertyRequest. |
| } |
| resp, err := c.GetProperty(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_ListProperties() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListPropertiesRequest. |
| } |
| it := c.ListProperties(ctx, req) |
| for { |
| resp, err := it.Next() |
| if err == iterator.Done { |
| break |
| } |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_CreateProperty() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#CreatePropertyRequest. |
| } |
| resp, err := c.CreateProperty(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_DeleteProperty() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#DeletePropertyRequest. |
| } |
| resp, err := c.DeleteProperty(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_UpdateProperty() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#UpdatePropertyRequest. |
| } |
| resp, err := c.UpdateProperty(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_GetUserLink() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetUserLinkRequest. |
| } |
| resp, err := c.GetUserLink(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_BatchGetUserLinks() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#BatchGetUserLinksRequest. |
| } |
| resp, err := c.BatchGetUserLinks(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_ListUserLinks() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListUserLinksRequest. |
| } |
| it := c.ListUserLinks(ctx, req) |
| for { |
| resp, err := it.Next() |
| if err == iterator.Done { |
| break |
| } |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_AuditUserLinks() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#AuditUserLinksRequest. |
| } |
| it := c.AuditUserLinks(ctx, req) |
| for { |
| resp, err := it.Next() |
| if err == iterator.Done { |
| break |
| } |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_CreateUserLink() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#CreateUserLinkRequest. |
| } |
| resp, err := c.CreateUserLink(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_BatchCreateUserLinks() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#BatchCreateUserLinksRequest. |
| } |
| resp, err := c.BatchCreateUserLinks(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_UpdateUserLink() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#UpdateUserLinkRequest. |
| } |
| resp, err := c.UpdateUserLink(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_BatchUpdateUserLinks() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#BatchUpdateUserLinksRequest. |
| } |
| resp, err := c.BatchUpdateUserLinks(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_DeleteUserLink() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#DeleteUserLinkRequest. |
| } |
| err = c.DeleteUserLink(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_BatchDeleteUserLinks() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#BatchDeleteUserLinksRequest. |
| } |
| err = c.BatchDeleteUserLinks(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_GetWebDataStream() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetWebDataStreamRequest. |
| } |
| resp, err := c.GetWebDataStream(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_DeleteWebDataStream() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#DeleteWebDataStreamRequest. |
| } |
| err = c.DeleteWebDataStream(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_UpdateWebDataStream() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#UpdateWebDataStreamRequest. |
| } |
| resp, err := c.UpdateWebDataStream(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_CreateWebDataStream() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#CreateWebDataStreamRequest. |
| } |
| resp, err := c.CreateWebDataStream(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_ListWebDataStreams() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListWebDataStreamsRequest. |
| } |
| 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 |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_GetIosAppDataStream() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetIosAppDataStreamRequest. |
| } |
| resp, err := c.GetIosAppDataStream(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_DeleteIosAppDataStream() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#DeleteIosAppDataStreamRequest. |
| } |
| err = c.DeleteIosAppDataStream(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_UpdateIosAppDataStream() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#UpdateIosAppDataStreamRequest. |
| } |
| resp, err := c.UpdateIosAppDataStream(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_ListIosAppDataStreams() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListIosAppDataStreamsRequest. |
| } |
| 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 |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_GetAndroidAppDataStream() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetAndroidAppDataStreamRequest. |
| } |
| resp, err := c.GetAndroidAppDataStream(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_DeleteAndroidAppDataStream() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#DeleteAndroidAppDataStreamRequest. |
| } |
| err = c.DeleteAndroidAppDataStream(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_UpdateAndroidAppDataStream() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#UpdateAndroidAppDataStreamRequest. |
| } |
| resp, err := c.UpdateAndroidAppDataStream(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_ListAndroidAppDataStreams() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListAndroidAppDataStreamsRequest. |
| } |
| 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 |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_CreateFirebaseLink() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#CreateFirebaseLinkRequest. |
| } |
| resp, err := c.CreateFirebaseLink(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_DeleteFirebaseLink() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#DeleteFirebaseLinkRequest. |
| } |
| err = c.DeleteFirebaseLink(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_ListFirebaseLinks() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListFirebaseLinksRequest. |
| } |
| it := c.ListFirebaseLinks(ctx, req) |
| for { |
| resp, err := it.Next() |
| if err == iterator.Done { |
| break |
| } |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_GetGlobalSiteTag() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetGlobalSiteTagRequest. |
| } |
| resp, err := c.GetGlobalSiteTag(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_CreateGoogleAdsLink() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#CreateGoogleAdsLinkRequest. |
| } |
| resp, err := c.CreateGoogleAdsLink(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_UpdateGoogleAdsLink() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#UpdateGoogleAdsLinkRequest. |
| } |
| resp, err := c.UpdateGoogleAdsLink(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_DeleteGoogleAdsLink() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#DeleteGoogleAdsLinkRequest. |
| } |
| err = c.DeleteGoogleAdsLink(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_ListGoogleAdsLinks() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListGoogleAdsLinksRequest. |
| } |
| it := c.ListGoogleAdsLinks(ctx, req) |
| for { |
| resp, err := it.Next() |
| if err == iterator.Done { |
| break |
| } |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_GetDataSharingSettings() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetDataSharingSettingsRequest. |
| } |
| resp, err := c.GetDataSharingSettings(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_GetMeasurementProtocolSecret() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetMeasurementProtocolSecretRequest. |
| } |
| resp, err := c.GetMeasurementProtocolSecret(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_ListMeasurementProtocolSecrets() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListMeasurementProtocolSecretsRequest. |
| } |
| it := c.ListMeasurementProtocolSecrets(ctx, req) |
| for { |
| resp, err := it.Next() |
| if err == iterator.Done { |
| break |
| } |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_CreateMeasurementProtocolSecret() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#CreateMeasurementProtocolSecretRequest. |
| } |
| resp, err := c.CreateMeasurementProtocolSecret(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_DeleteMeasurementProtocolSecret() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#DeleteMeasurementProtocolSecretRequest. |
| } |
| err = c.DeleteMeasurementProtocolSecret(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_UpdateMeasurementProtocolSecret() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#UpdateMeasurementProtocolSecretRequest. |
| } |
| resp, err := c.UpdateMeasurementProtocolSecret(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_AcknowledgeUserDataCollection() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.AcknowledgeUserDataCollectionRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#AcknowledgeUserDataCollectionRequest. |
| } |
| resp, err := c.AcknowledgeUserDataCollection(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_SearchChangeHistoryEvents() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#SearchChangeHistoryEventsRequest. |
| } |
| it := c.SearchChangeHistoryEvents(ctx, req) |
| for { |
| resp, err := it.Next() |
| if err == iterator.Done { |
| break |
| } |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_GetGoogleSignalsSettings() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetGoogleSignalsSettingsRequest. |
| } |
| resp, err := c.GetGoogleSignalsSettings(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_UpdateGoogleSignalsSettings() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#UpdateGoogleSignalsSettingsRequest. |
| } |
| resp, err := c.UpdateGoogleSignalsSettings(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_CreateConversionEvent() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#CreateConversionEventRequest. |
| } |
| resp, err := c.CreateConversionEvent(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_GetConversionEvent() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetConversionEventRequest. |
| } |
| resp, err := c.GetConversionEvent(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_DeleteConversionEvent() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#DeleteConversionEventRequest. |
| } |
| err = c.DeleteConversionEvent(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_ListConversionEvents() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListConversionEventsRequest. |
| } |
| it := c.ListConversionEvents(ctx, req) |
| for { |
| resp, err := it.Next() |
| if err == iterator.Done { |
| break |
| } |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_GetDisplayVideo360AdvertiserLink() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.GetDisplayVideo360AdvertiserLinkRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetDisplayVideo360AdvertiserLinkRequest. |
| } |
| resp, err := c.GetDisplayVideo360AdvertiserLink(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_ListDisplayVideo360AdvertiserLinks() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.ListDisplayVideo360AdvertiserLinksRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListDisplayVideo360AdvertiserLinksRequest. |
| } |
| it := c.ListDisplayVideo360AdvertiserLinks(ctx, req) |
| for { |
| resp, err := it.Next() |
| if err == iterator.Done { |
| break |
| } |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_CreateDisplayVideo360AdvertiserLink() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.CreateDisplayVideo360AdvertiserLinkRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#CreateDisplayVideo360AdvertiserLinkRequest. |
| } |
| resp, err := c.CreateDisplayVideo360AdvertiserLink(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_DeleteDisplayVideo360AdvertiserLink() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.DeleteDisplayVideo360AdvertiserLinkRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#DeleteDisplayVideo360AdvertiserLinkRequest. |
| } |
| err = c.DeleteDisplayVideo360AdvertiserLink(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_UpdateDisplayVideo360AdvertiserLink() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.UpdateDisplayVideo360AdvertiserLinkRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#UpdateDisplayVideo360AdvertiserLinkRequest. |
| } |
| resp, err := c.UpdateDisplayVideo360AdvertiserLink(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_GetDisplayVideo360AdvertiserLinkProposal() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.GetDisplayVideo360AdvertiserLinkProposalRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetDisplayVideo360AdvertiserLinkProposalRequest. |
| } |
| resp, err := c.GetDisplayVideo360AdvertiserLinkProposal(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_ListDisplayVideo360AdvertiserLinkProposals() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.ListDisplayVideo360AdvertiserLinkProposalsRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListDisplayVideo360AdvertiserLinkProposalsRequest. |
| } |
| it := c.ListDisplayVideo360AdvertiserLinkProposals(ctx, req) |
| for { |
| resp, err := it.Next() |
| if err == iterator.Done { |
| break |
| } |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_CreateDisplayVideo360AdvertiserLinkProposal() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.CreateDisplayVideo360AdvertiserLinkProposalRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#CreateDisplayVideo360AdvertiserLinkProposalRequest. |
| } |
| resp, err := c.CreateDisplayVideo360AdvertiserLinkProposal(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_DeleteDisplayVideo360AdvertiserLinkProposal() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.DeleteDisplayVideo360AdvertiserLinkProposalRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#DeleteDisplayVideo360AdvertiserLinkProposalRequest. |
| } |
| err = c.DeleteDisplayVideo360AdvertiserLinkProposal(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_ApproveDisplayVideo360AdvertiserLinkProposal() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.ApproveDisplayVideo360AdvertiserLinkProposalRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ApproveDisplayVideo360AdvertiserLinkProposalRequest. |
| } |
| resp, err := c.ApproveDisplayVideo360AdvertiserLinkProposal(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_CancelDisplayVideo360AdvertiserLinkProposal() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.CancelDisplayVideo360AdvertiserLinkProposalRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#CancelDisplayVideo360AdvertiserLinkProposalRequest. |
| } |
| resp, err := c.CancelDisplayVideo360AdvertiserLinkProposal(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_CreateCustomDimension() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#CreateCustomDimensionRequest. |
| } |
| resp, err := c.CreateCustomDimension(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_UpdateCustomDimension() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#UpdateCustomDimensionRequest. |
| } |
| resp, err := c.UpdateCustomDimension(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_ListCustomDimensions() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListCustomDimensionsRequest. |
| } |
| it := c.ListCustomDimensions(ctx, req) |
| for { |
| resp, err := it.Next() |
| if err == iterator.Done { |
| break |
| } |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_ArchiveCustomDimension() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ArchiveCustomDimensionRequest. |
| } |
| err = c.ArchiveCustomDimension(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_GetCustomDimension() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetCustomDimensionRequest. |
| } |
| resp, err := c.GetCustomDimension(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_CreateCustomMetric() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#CreateCustomMetricRequest. |
| } |
| resp, err := c.CreateCustomMetric(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_UpdateCustomMetric() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#UpdateCustomMetricRequest. |
| } |
| resp, err := c.UpdateCustomMetric(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_ListCustomMetrics() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListCustomMetricsRequest. |
| } |
| it := c.ListCustomMetrics(ctx, req) |
| for { |
| resp, err := it.Next() |
| if err == iterator.Done { |
| break |
| } |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_ArchiveCustomMetric() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ArchiveCustomMetricRequest. |
| } |
| err = c.ArchiveCustomMetric(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_GetCustomMetric() { |
| 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. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetCustomMetricRequest. |
| } |
| resp, err := c.GetCustomMetric(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_GetDataRetentionSettings() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.GetDataRetentionSettingsRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetDataRetentionSettingsRequest. |
| } |
| resp, err := c.GetDataRetentionSettings(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_UpdateDataRetentionSettings() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.UpdateDataRetentionSettingsRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#UpdateDataRetentionSettingsRequest. |
| } |
| resp, err := c.UpdateDataRetentionSettings(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_CreateDataStream() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.CreateDataStreamRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#CreateDataStreamRequest. |
| } |
| resp, err := c.CreateDataStream(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_DeleteDataStream() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.DeleteDataStreamRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#DeleteDataStreamRequest. |
| } |
| err = c.DeleteDataStream(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_UpdateDataStream() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.UpdateDataStreamRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#UpdateDataStreamRequest. |
| } |
| resp, err := c.UpdateDataStream(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| |
| func ExampleAnalyticsAdminClient_ListDataStreams() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.ListDataStreamsRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#ListDataStreamsRequest. |
| } |
| it := c.ListDataStreams(ctx, req) |
| for { |
| resp, err := it.Next() |
| if err == iterator.Done { |
| break |
| } |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |
| } |
| |
| func ExampleAnalyticsAdminClient_GetDataStream() { |
| ctx := context.Background() |
| c, err := admin.NewAnalyticsAdminClient(ctx) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| defer c.Close() |
| |
| req := &adminpb.GetDataStreamRequest{ |
| // TODO: Fill request struct fields. |
| // See https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/admin/v1alpha#GetDataStreamRequest. |
| } |
| resp, err := c.GetDataStream(ctx, req) |
| if err != nil { |
| // TODO: Handle error. |
| } |
| // TODO: Use resp. |
| _ = resp |
| } |