Class AnalyticsAdminServiceClient
AnalyticsAdminService client wrapper, for convenient use.
Inherited Members
Namespace: Google.Analytics.Admin.V1Alpha
Assembly: Google.Analytics.Admin.V1Alpha.dll
Syntax
public abstract class AnalyticsAdminServiceClient
Remarks
Service Interface for the Analytics Admin API (GA4).
Properties
DefaultEndpoint
The default endpoint for the AnalyticsAdminService service, which is a host of "analyticsadmin.googleapis.com" and a port of 443.
Declaration
public static string DefaultEndpoint { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
DefaultScopes
The default AnalyticsAdminService scopes.
Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<System.String> |
Remarks
The default AnalyticsAdminService scopes are:
GrpcClient
The underlying gRPC AnalyticsAdminService client
Declaration
public virtual AnalyticsAdminService.AnalyticsAdminServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| AnalyticsAdminService.AnalyticsAdminServiceClient |
Methods
AuditUserLinks(AuditUserLinksRequest, CallSettings)
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.
Declaration
public virtual PagedEnumerable<AuditUserLinksResponse, AuditUserLink> AuditUserLinks(AuditUserLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AuditUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<AuditUserLinksResponse, AuditUserLink> | A pageable sequence of AuditUserLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
AuditUserLinksRequest request = new AuditUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
};
// Make the request
PagedEnumerable<AuditUserLinksResponse, AuditUserLink> response = analyticsAdminServiceClient.AuditUserLinks(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (AuditUserLink item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (AuditUserLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AuditUserLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AuditUserLink> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AuditUserLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
AuditUserLinksAsync(AuditUserLinksRequest, CallSettings)
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.
Declaration
public virtual PagedAsyncEnumerable<AuditUserLinksResponse, AuditUserLink> AuditUserLinksAsync(AuditUserLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AuditUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<AuditUserLinksResponse, AuditUserLink> | A pageable asynchronous sequence of AuditUserLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AuditUserLinksRequest request = new AuditUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
};
// Make the request
PagedAsyncEnumerable<AuditUserLinksResponse, AuditUserLink> response = analyticsAdminServiceClient.AuditUserLinksAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AuditUserLink item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((AuditUserLinksResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AuditUserLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AuditUserLink> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AuditUserLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
BatchCreateUserLinks(BatchCreateUserLinksRequest, CallSettings)
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.
Declaration
public virtual BatchCreateUserLinksResponse BatchCreateUserLinks(BatchCreateUserLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchCreateUserLinksResponse | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
BatchCreateUserLinksRequest request = new BatchCreateUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
NotifyNewUsers = false,
Requests =
{
new CreateUserLinkRequest(),
},
};
// Make the request
BatchCreateUserLinksResponse response = analyticsAdminServiceClient.BatchCreateUserLinks(request);
BatchCreateUserLinksAsync(BatchCreateUserLinksRequest, CallSettings)
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.
Declaration
public virtual Task<BatchCreateUserLinksResponse> BatchCreateUserLinksAsync(BatchCreateUserLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<BatchCreateUserLinksResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateUserLinksRequest request = new BatchCreateUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
NotifyNewUsers = false,
Requests =
{
new CreateUserLinkRequest(),
},
};
// Make the request
BatchCreateUserLinksResponse response = await analyticsAdminServiceClient.BatchCreateUserLinksAsync(request);
BatchCreateUserLinksAsync(BatchCreateUserLinksRequest, CancellationToken)
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.
Declaration
public virtual Task<BatchCreateUserLinksResponse> BatchCreateUserLinksAsync(BatchCreateUserLinksRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchCreateUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<BatchCreateUserLinksResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateUserLinksRequest request = new BatchCreateUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
NotifyNewUsers = false,
Requests =
{
new CreateUserLinkRequest(),
},
};
// Make the request
BatchCreateUserLinksResponse response = await analyticsAdminServiceClient.BatchCreateUserLinksAsync(request);
BatchDeleteUserLinks(BatchDeleteUserLinksRequest, CallSettings)
Deletes information about multiple users' links to an account or property.
Declaration
public virtual void BatchDeleteUserLinks(BatchDeleteUserLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeleteUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
BatchDeleteUserLinksRequest request = new BatchDeleteUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
Requests =
{
new DeleteUserLinkRequest(),
},
};
// Make the request
analyticsAdminServiceClient.BatchDeleteUserLinks(request);
BatchDeleteUserLinksAsync(BatchDeleteUserLinksRequest, CallSettings)
Deletes information about multiple users' links to an account or property.
Declaration
public virtual Task BatchDeleteUserLinksAsync(BatchDeleteUserLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeleteUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteUserLinksRequest request = new BatchDeleteUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
Requests =
{
new DeleteUserLinkRequest(),
},
};
// Make the request
await analyticsAdminServiceClient.BatchDeleteUserLinksAsync(request);
BatchDeleteUserLinksAsync(BatchDeleteUserLinksRequest, CancellationToken)
Deletes information about multiple users' links to an account or property.
Declaration
public virtual Task BatchDeleteUserLinksAsync(BatchDeleteUserLinksRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchDeleteUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteUserLinksRequest request = new BatchDeleteUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
Requests =
{
new DeleteUserLinkRequest(),
},
};
// Make the request
await analyticsAdminServiceClient.BatchDeleteUserLinksAsync(request);
BatchGetUserLinks(BatchGetUserLinksRequest, CallSettings)
Gets information about multiple users' links to an account or property.
Declaration
public virtual BatchGetUserLinksResponse BatchGetUserLinks(BatchGetUserLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchGetUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchGetUserLinksResponse | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
BatchGetUserLinksRequest request = new BatchGetUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
UserLinkNames =
{
UserLinkName.FromAccountUserLink("[ACCOUNT]", "[USER_LINK]"),
},
};
// Make the request
BatchGetUserLinksResponse response = analyticsAdminServiceClient.BatchGetUserLinks(request);
BatchGetUserLinksAsync(BatchGetUserLinksRequest, CallSettings)
Gets information about multiple users' links to an account or property.
Declaration
public virtual Task<BatchGetUserLinksResponse> BatchGetUserLinksAsync(BatchGetUserLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchGetUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<BatchGetUserLinksResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
BatchGetUserLinksRequest request = new BatchGetUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
UserLinkNames =
{
UserLinkName.FromAccountUserLink("[ACCOUNT]", "[USER_LINK]"),
},
};
// Make the request
BatchGetUserLinksResponse response = await analyticsAdminServiceClient.BatchGetUserLinksAsync(request);
BatchGetUserLinksAsync(BatchGetUserLinksRequest, CancellationToken)
Gets information about multiple users' links to an account or property.
Declaration
public virtual Task<BatchGetUserLinksResponse> BatchGetUserLinksAsync(BatchGetUserLinksRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchGetUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<BatchGetUserLinksResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
BatchGetUserLinksRequest request = new BatchGetUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
UserLinkNames =
{
UserLinkName.FromAccountUserLink("[ACCOUNT]", "[USER_LINK]"),
},
};
// Make the request
BatchGetUserLinksResponse response = await analyticsAdminServiceClient.BatchGetUserLinksAsync(request);
BatchUpdateUserLinks(BatchUpdateUserLinksRequest, CallSettings)
Updates information about multiple users' links to an account or property.
Declaration
public virtual BatchUpdateUserLinksResponse BatchUpdateUserLinks(BatchUpdateUserLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| BatchUpdateUserLinksResponse | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
BatchUpdateUserLinksRequest request = new BatchUpdateUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
Requests =
{
new UpdateUserLinkRequest(),
},
};
// Make the request
BatchUpdateUserLinksResponse response = analyticsAdminServiceClient.BatchUpdateUserLinks(request);
BatchUpdateUserLinksAsync(BatchUpdateUserLinksRequest, CallSettings)
Updates information about multiple users' links to an account or property.
Declaration
public virtual Task<BatchUpdateUserLinksResponse> BatchUpdateUserLinksAsync(BatchUpdateUserLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<BatchUpdateUserLinksResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateUserLinksRequest request = new BatchUpdateUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
Requests =
{
new UpdateUserLinkRequest(),
},
};
// Make the request
BatchUpdateUserLinksResponse response = await analyticsAdminServiceClient.BatchUpdateUserLinksAsync(request);
BatchUpdateUserLinksAsync(BatchUpdateUserLinksRequest, CancellationToken)
Updates information about multiple users' links to an account or property.
Declaration
public virtual Task<BatchUpdateUserLinksResponse> BatchUpdateUserLinksAsync(BatchUpdateUserLinksRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchUpdateUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<BatchUpdateUserLinksResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateUserLinksRequest request = new BatchUpdateUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
Requests =
{
new UpdateUserLinkRequest(),
},
};
// Make the request
BatchUpdateUserLinksResponse response = await analyticsAdminServiceClient.BatchUpdateUserLinksAsync(request);
Create()
Synchronously creates a AnalyticsAdminServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AnalyticsAdminServiceClientBuilder.
Declaration
public static AnalyticsAdminServiceClient Create()
Returns
| Type | Description |
|---|---|
| AnalyticsAdminServiceClient | The created AnalyticsAdminServiceClient. |
CreateAndroidAppDataStream(CreateAndroidAppDataStreamRequest, CallSettings)
Creates an android app stream with the specified location and attributes.
Declaration
public virtual AndroidAppDataStream CreateAndroidAppDataStream(CreateAndroidAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAndroidAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| AndroidAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CreateAndroidAppDataStreamRequest request = new CreateAndroidAppDataStreamRequest
{
AndroidAppDataStream = new AndroidAppDataStream(),
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
AndroidAppDataStream response = analyticsAdminServiceClient.CreateAndroidAppDataStream(request);
CreateAndroidAppDataStream(PropertyName, AndroidAppDataStream, CallSettings)
Creates an android app stream with the specified location and attributes.
Declaration
public virtual AndroidAppDataStream CreateAndroidAppDataStream(PropertyName parent, AndroidAppDataStream androidAppDataStream, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. The parent resource where this android app data stream will be created. Format: properties/123 |
| AndroidAppDataStream | androidAppDataStream | Required. The android app stream to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| AndroidAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
AndroidAppDataStream androidAppDataStream = new AndroidAppDataStream();
// Make the request
AndroidAppDataStream response = analyticsAdminServiceClient.CreateAndroidAppDataStream(parent, androidAppDataStream);
CreateAndroidAppDataStream(String, AndroidAppDataStream, CallSettings)
Creates an android app stream with the specified location and attributes.
Declaration
public virtual AndroidAppDataStream CreateAndroidAppDataStream(string parent, AndroidAppDataStream androidAppDataStream, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The parent resource where this android app data stream will be created. Format: properties/123 |
| AndroidAppDataStream | androidAppDataStream | Required. The android app stream to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| AndroidAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
AndroidAppDataStream androidAppDataStream = new AndroidAppDataStream();
// Make the request
AndroidAppDataStream response = analyticsAdminServiceClient.CreateAndroidAppDataStream(parent, androidAppDataStream);
CreateAndroidAppDataStreamAsync(CreateAndroidAppDataStreamRequest, CallSettings)
Creates an android app stream with the specified location and attributes.
Declaration
public virtual Task<AndroidAppDataStream> CreateAndroidAppDataStreamAsync(CreateAndroidAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAndroidAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateAndroidAppDataStreamRequest request = new CreateAndroidAppDataStreamRequest
{
AndroidAppDataStream = new AndroidAppDataStream(),
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.CreateAndroidAppDataStreamAsync(request);
CreateAndroidAppDataStreamAsync(CreateAndroidAppDataStreamRequest, CancellationToken)
Creates an android app stream with the specified location and attributes.
Declaration
public virtual Task<AndroidAppDataStream> CreateAndroidAppDataStreamAsync(CreateAndroidAppDataStreamRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAndroidAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateAndroidAppDataStreamRequest request = new CreateAndroidAppDataStreamRequest
{
AndroidAppDataStream = new AndroidAppDataStream(),
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.CreateAndroidAppDataStreamAsync(request);
CreateAndroidAppDataStreamAsync(PropertyName, AndroidAppDataStream, CallSettings)
Creates an android app stream with the specified location and attributes.
Declaration
public virtual Task<AndroidAppDataStream> CreateAndroidAppDataStreamAsync(PropertyName parent, AndroidAppDataStream androidAppDataStream, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. The parent resource where this android app data stream will be created. Format: properties/123 |
| AndroidAppDataStream | androidAppDataStream | Required. The android app stream to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
AndroidAppDataStream androidAppDataStream = new AndroidAppDataStream();
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.CreateAndroidAppDataStreamAsync(parent, androidAppDataStream);
CreateAndroidAppDataStreamAsync(PropertyName, AndroidAppDataStream, CancellationToken)
Creates an android app stream with the specified location and attributes.
Declaration
public virtual Task<AndroidAppDataStream> CreateAndroidAppDataStreamAsync(PropertyName parent, AndroidAppDataStream androidAppDataStream, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. The parent resource where this android app data stream will be created. Format: properties/123 |
| AndroidAppDataStream | androidAppDataStream | Required. The android app stream to create. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
AndroidAppDataStream androidAppDataStream = new AndroidAppDataStream();
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.CreateAndroidAppDataStreamAsync(parent, androidAppDataStream);
CreateAndroidAppDataStreamAsync(String, AndroidAppDataStream, CallSettings)
Creates an android app stream with the specified location and attributes.
Declaration
public virtual Task<AndroidAppDataStream> CreateAndroidAppDataStreamAsync(string parent, AndroidAppDataStream androidAppDataStream, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The parent resource where this android app data stream will be created. Format: properties/123 |
| AndroidAppDataStream | androidAppDataStream | Required. The android app stream to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
AndroidAppDataStream androidAppDataStream = new AndroidAppDataStream();
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.CreateAndroidAppDataStreamAsync(parent, androidAppDataStream);
CreateAndroidAppDataStreamAsync(String, AndroidAppDataStream, CancellationToken)
Creates an android app stream with the specified location and attributes.
Declaration
public virtual Task<AndroidAppDataStream> CreateAndroidAppDataStreamAsync(string parent, AndroidAppDataStream androidAppDataStream, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The parent resource where this android app data stream will be created. Format: properties/123 |
| AndroidAppDataStream | androidAppDataStream | Required. The android app stream to create. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
AndroidAppDataStream androidAppDataStream = new AndroidAppDataStream();
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.CreateAndroidAppDataStreamAsync(parent, androidAppDataStream);
CreateAsync(CancellationToken)
Asynchronously creates a AnalyticsAdminServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AnalyticsAdminServiceClientBuilder.
Declaration
public static Task<AnalyticsAdminServiceClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Type | Name | Description |
|---|---|---|
| System.Threading.CancellationToken | cancellationToken | The System.Threading.CancellationToken to use while creating the client. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AnalyticsAdminServiceClient> | The task representing the created AnalyticsAdminServiceClient. |
CreateFirebaseLink(CreateFirebaseLinkRequest, CallSettings)
Creates a FirebaseLink.
Properties can have at most one FirebaseLink.
Declaration
public virtual FirebaseLink CreateFirebaseLink(CreateFirebaseLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateFirebaseLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| FirebaseLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CreateFirebaseLinkRequest request = new CreateFirebaseLinkRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
FirebaseLink = new FirebaseLink(),
};
// Make the request
FirebaseLink response = analyticsAdminServiceClient.CreateFirebaseLink(request);
CreateFirebaseLink(PropertyName, FirebaseLink, CallSettings)
Creates a FirebaseLink.
Properties can have at most one FirebaseLink.
Declaration
public virtual FirebaseLink CreateFirebaseLink(PropertyName parent, FirebaseLink firebaseLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Format: properties/{property_id} Example: properties/1234 |
| FirebaseLink | firebaseLink | Required. The Firebase link to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| FirebaseLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
FirebaseLink firebaseLink = new FirebaseLink();
// Make the request
FirebaseLink response = analyticsAdminServiceClient.CreateFirebaseLink(parent, firebaseLink);
CreateFirebaseLink(String, FirebaseLink, CallSettings)
Creates a FirebaseLink.
Properties can have at most one FirebaseLink.
Declaration
public virtual FirebaseLink CreateFirebaseLink(string parent, FirebaseLink firebaseLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Format: properties/{property_id} Example: properties/1234 |
| FirebaseLink | firebaseLink | Required. The Firebase link to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| FirebaseLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
FirebaseLink firebaseLink = new FirebaseLink();
// Make the request
FirebaseLink response = analyticsAdminServiceClient.CreateFirebaseLink(parent, firebaseLink);
CreateFirebaseLinkAsync(CreateFirebaseLinkRequest, CallSettings)
Creates a FirebaseLink.
Properties can have at most one FirebaseLink.
Declaration
public virtual Task<FirebaseLink> CreateFirebaseLinkAsync(CreateFirebaseLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateFirebaseLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<FirebaseLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateFirebaseLinkRequest request = new CreateFirebaseLinkRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
FirebaseLink = new FirebaseLink(),
};
// Make the request
FirebaseLink response = await analyticsAdminServiceClient.CreateFirebaseLinkAsync(request);
CreateFirebaseLinkAsync(CreateFirebaseLinkRequest, CancellationToken)
Creates a FirebaseLink.
Properties can have at most one FirebaseLink.
Declaration
public virtual Task<FirebaseLink> CreateFirebaseLinkAsync(CreateFirebaseLinkRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateFirebaseLinkRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<FirebaseLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateFirebaseLinkRequest request = new CreateFirebaseLinkRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
FirebaseLink = new FirebaseLink(),
};
// Make the request
FirebaseLink response = await analyticsAdminServiceClient.CreateFirebaseLinkAsync(request);
CreateFirebaseLinkAsync(PropertyName, FirebaseLink, CallSettings)
Creates a FirebaseLink.
Properties can have at most one FirebaseLink.
Declaration
public virtual Task<FirebaseLink> CreateFirebaseLinkAsync(PropertyName parent, FirebaseLink firebaseLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Format: properties/{property_id} Example: properties/1234 |
| FirebaseLink | firebaseLink | Required. The Firebase link to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<FirebaseLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
FirebaseLink firebaseLink = new FirebaseLink();
// Make the request
FirebaseLink response = await analyticsAdminServiceClient.CreateFirebaseLinkAsync(parent, firebaseLink);
CreateFirebaseLinkAsync(PropertyName, FirebaseLink, CancellationToken)
Creates a FirebaseLink.
Properties can have at most one FirebaseLink.
Declaration
public virtual Task<FirebaseLink> CreateFirebaseLinkAsync(PropertyName parent, FirebaseLink firebaseLink, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Format: properties/{property_id} Example: properties/1234 |
| FirebaseLink | firebaseLink | Required. The Firebase link to create. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<FirebaseLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
FirebaseLink firebaseLink = new FirebaseLink();
// Make the request
FirebaseLink response = await analyticsAdminServiceClient.CreateFirebaseLinkAsync(parent, firebaseLink);
CreateFirebaseLinkAsync(String, FirebaseLink, CallSettings)
Creates a FirebaseLink.
Properties can have at most one FirebaseLink.
Declaration
public virtual Task<FirebaseLink> CreateFirebaseLinkAsync(string parent, FirebaseLink firebaseLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Format: properties/{property_id} Example: properties/1234 |
| FirebaseLink | firebaseLink | Required. The Firebase link to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<FirebaseLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
FirebaseLink firebaseLink = new FirebaseLink();
// Make the request
FirebaseLink response = await analyticsAdminServiceClient.CreateFirebaseLinkAsync(parent, firebaseLink);
CreateFirebaseLinkAsync(String, FirebaseLink, CancellationToken)
Creates a FirebaseLink.
Properties can have at most one FirebaseLink.
Declaration
public virtual Task<FirebaseLink> CreateFirebaseLinkAsync(string parent, FirebaseLink firebaseLink, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Format: properties/{property_id} Example: properties/1234 |
| FirebaseLink | firebaseLink | Required. The Firebase link to create. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<FirebaseLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
FirebaseLink firebaseLink = new FirebaseLink();
// Make the request
FirebaseLink response = await analyticsAdminServiceClient.CreateFirebaseLinkAsync(parent, firebaseLink);
CreateGoogleAdsLink(CreateGoogleAdsLinkRequest, CallSettings)
Creates a GoogleAdsLink.
Declaration
public virtual GoogleAdsLink CreateGoogleAdsLink(CreateGoogleAdsLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateGoogleAdsLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| GoogleAdsLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CreateGoogleAdsLinkRequest request = new CreateGoogleAdsLinkRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
GoogleAdsLink = new GoogleAdsLink(),
};
// Make the request
GoogleAdsLink response = analyticsAdminServiceClient.CreateGoogleAdsLink(request);
CreateGoogleAdsLink(PropertyName, GoogleAdsLink, CallSettings)
Creates a GoogleAdsLink.
Declaration
public virtual GoogleAdsLink CreateGoogleAdsLink(PropertyName parent, GoogleAdsLink googleAdsLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Example format: properties/1234 |
| GoogleAdsLink | googleAdsLink | Required. The GoogleAdsLink to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| GoogleAdsLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
GoogleAdsLink googleAdsLink = new GoogleAdsLink();
// Make the request
GoogleAdsLink response = analyticsAdminServiceClient.CreateGoogleAdsLink(parent, googleAdsLink);
CreateGoogleAdsLink(String, GoogleAdsLink, CallSettings)
Creates a GoogleAdsLink.
Declaration
public virtual GoogleAdsLink CreateGoogleAdsLink(string parent, GoogleAdsLink googleAdsLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Example format: properties/1234 |
| GoogleAdsLink | googleAdsLink | Required. The GoogleAdsLink to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| GoogleAdsLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
GoogleAdsLink googleAdsLink = new GoogleAdsLink();
// Make the request
GoogleAdsLink response = analyticsAdminServiceClient.CreateGoogleAdsLink(parent, googleAdsLink);
CreateGoogleAdsLinkAsync(CreateGoogleAdsLinkRequest, CallSettings)
Creates a GoogleAdsLink.
Declaration
public virtual Task<GoogleAdsLink> CreateGoogleAdsLinkAsync(CreateGoogleAdsLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateGoogleAdsLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GoogleAdsLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateGoogleAdsLinkRequest request = new CreateGoogleAdsLinkRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
GoogleAdsLink = new GoogleAdsLink(),
};
// Make the request
GoogleAdsLink response = await analyticsAdminServiceClient.CreateGoogleAdsLinkAsync(request);
CreateGoogleAdsLinkAsync(CreateGoogleAdsLinkRequest, CancellationToken)
Creates a GoogleAdsLink.
Declaration
public virtual Task<GoogleAdsLink> CreateGoogleAdsLinkAsync(CreateGoogleAdsLinkRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateGoogleAdsLinkRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GoogleAdsLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateGoogleAdsLinkRequest request = new CreateGoogleAdsLinkRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
GoogleAdsLink = new GoogleAdsLink(),
};
// Make the request
GoogleAdsLink response = await analyticsAdminServiceClient.CreateGoogleAdsLinkAsync(request);
CreateGoogleAdsLinkAsync(PropertyName, GoogleAdsLink, CallSettings)
Creates a GoogleAdsLink.
Declaration
public virtual Task<GoogleAdsLink> CreateGoogleAdsLinkAsync(PropertyName parent, GoogleAdsLink googleAdsLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Example format: properties/1234 |
| GoogleAdsLink | googleAdsLink | Required. The GoogleAdsLink to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GoogleAdsLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
GoogleAdsLink googleAdsLink = new GoogleAdsLink();
// Make the request
GoogleAdsLink response = await analyticsAdminServiceClient.CreateGoogleAdsLinkAsync(parent, googleAdsLink);
CreateGoogleAdsLinkAsync(PropertyName, GoogleAdsLink, CancellationToken)
Creates a GoogleAdsLink.
Declaration
public virtual Task<GoogleAdsLink> CreateGoogleAdsLinkAsync(PropertyName parent, GoogleAdsLink googleAdsLink, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Example format: properties/1234 |
| GoogleAdsLink | googleAdsLink | Required. The GoogleAdsLink to create. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GoogleAdsLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
GoogleAdsLink googleAdsLink = new GoogleAdsLink();
// Make the request
GoogleAdsLink response = await analyticsAdminServiceClient.CreateGoogleAdsLinkAsync(parent, googleAdsLink);
CreateGoogleAdsLinkAsync(String, GoogleAdsLink, CallSettings)
Creates a GoogleAdsLink.
Declaration
public virtual Task<GoogleAdsLink> CreateGoogleAdsLinkAsync(string parent, GoogleAdsLink googleAdsLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Example format: properties/1234 |
| GoogleAdsLink | googleAdsLink | Required. The GoogleAdsLink to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GoogleAdsLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
GoogleAdsLink googleAdsLink = new GoogleAdsLink();
// Make the request
GoogleAdsLink response = await analyticsAdminServiceClient.CreateGoogleAdsLinkAsync(parent, googleAdsLink);
CreateGoogleAdsLinkAsync(String, GoogleAdsLink, CancellationToken)
Creates a GoogleAdsLink.
Declaration
public virtual Task<GoogleAdsLink> CreateGoogleAdsLinkAsync(string parent, GoogleAdsLink googleAdsLink, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Example format: properties/1234 |
| GoogleAdsLink | googleAdsLink | Required. The GoogleAdsLink to create. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GoogleAdsLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
GoogleAdsLink googleAdsLink = new GoogleAdsLink();
// Make the request
GoogleAdsLink response = await analyticsAdminServiceClient.CreateGoogleAdsLinkAsync(parent, googleAdsLink);
CreateIosAppDataStream(CreateIosAppDataStreamRequest, CallSettings)
Creates an iOS app data stream with the specified location and attributes.
Declaration
public virtual IosAppDataStream CreateIosAppDataStream(CreateIosAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateIosAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| IosAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CreateIosAppDataStreamRequest request = new CreateIosAppDataStreamRequest
{
IosAppDataStream = new IosAppDataStream(),
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
IosAppDataStream response = analyticsAdminServiceClient.CreateIosAppDataStream(request);
CreateIosAppDataStream(PropertyName, IosAppDataStream, CallSettings)
Creates an iOS app data stream with the specified location and attributes.
Declaration
public virtual IosAppDataStream CreateIosAppDataStream(PropertyName parent, IosAppDataStream iosAppDataStream, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. The parent resource where this ios app data stream will be created. Format: properties/123 |
| IosAppDataStream | iosAppDataStream | Required. The iOS app data stream to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| IosAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
IosAppDataStream iosAppDataStream = new IosAppDataStream();
// Make the request
IosAppDataStream response = analyticsAdminServiceClient.CreateIosAppDataStream(parent, iosAppDataStream);
CreateIosAppDataStream(String, IosAppDataStream, CallSettings)
Creates an iOS app data stream with the specified location and attributes.
Declaration
public virtual IosAppDataStream CreateIosAppDataStream(string parent, IosAppDataStream iosAppDataStream, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The parent resource where this ios app data stream will be created. Format: properties/123 |
| IosAppDataStream | iosAppDataStream | Required. The iOS app data stream to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| IosAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
IosAppDataStream iosAppDataStream = new IosAppDataStream();
// Make the request
IosAppDataStream response = analyticsAdminServiceClient.CreateIosAppDataStream(parent, iosAppDataStream);
CreateIosAppDataStreamAsync(CreateIosAppDataStreamRequest, CallSettings)
Creates an iOS app data stream with the specified location and attributes.
Declaration
public virtual Task<IosAppDataStream> CreateIosAppDataStreamAsync(CreateIosAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateIosAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateIosAppDataStreamRequest request = new CreateIosAppDataStreamRequest
{
IosAppDataStream = new IosAppDataStream(),
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.CreateIosAppDataStreamAsync(request);
CreateIosAppDataStreamAsync(CreateIosAppDataStreamRequest, CancellationToken)
Creates an iOS app data stream with the specified location and attributes.
Declaration
public virtual Task<IosAppDataStream> CreateIosAppDataStreamAsync(CreateIosAppDataStreamRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateIosAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateIosAppDataStreamRequest request = new CreateIosAppDataStreamRequest
{
IosAppDataStream = new IosAppDataStream(),
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.CreateIosAppDataStreamAsync(request);
CreateIosAppDataStreamAsync(PropertyName, IosAppDataStream, CallSettings)
Creates an iOS app data stream with the specified location and attributes.
Declaration
public virtual Task<IosAppDataStream> CreateIosAppDataStreamAsync(PropertyName parent, IosAppDataStream iosAppDataStream, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. The parent resource where this ios app data stream will be created. Format: properties/123 |
| IosAppDataStream | iosAppDataStream | Required. The iOS app data stream to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
IosAppDataStream iosAppDataStream = new IosAppDataStream();
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.CreateIosAppDataStreamAsync(parent, iosAppDataStream);
CreateIosAppDataStreamAsync(PropertyName, IosAppDataStream, CancellationToken)
Creates an iOS app data stream with the specified location and attributes.
Declaration
public virtual Task<IosAppDataStream> CreateIosAppDataStreamAsync(PropertyName parent, IosAppDataStream iosAppDataStream, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. The parent resource where this ios app data stream will be created. Format: properties/123 |
| IosAppDataStream | iosAppDataStream | Required. The iOS app data stream to create. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
IosAppDataStream iosAppDataStream = new IosAppDataStream();
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.CreateIosAppDataStreamAsync(parent, iosAppDataStream);
CreateIosAppDataStreamAsync(String, IosAppDataStream, CallSettings)
Creates an iOS app data stream with the specified location and attributes.
Declaration
public virtual Task<IosAppDataStream> CreateIosAppDataStreamAsync(string parent, IosAppDataStream iosAppDataStream, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The parent resource where this ios app data stream will be created. Format: properties/123 |
| IosAppDataStream | iosAppDataStream | Required. The iOS app data stream to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
IosAppDataStream iosAppDataStream = new IosAppDataStream();
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.CreateIosAppDataStreamAsync(parent, iosAppDataStream);
CreateIosAppDataStreamAsync(String, IosAppDataStream, CancellationToken)
Creates an iOS app data stream with the specified location and attributes.
Declaration
public virtual Task<IosAppDataStream> CreateIosAppDataStreamAsync(string parent, IosAppDataStream iosAppDataStream, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The parent resource where this ios app data stream will be created. Format: properties/123 |
| IosAppDataStream | iosAppDataStream | Required. The iOS app data stream to create. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
IosAppDataStream iosAppDataStream = new IosAppDataStream();
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.CreateIosAppDataStreamAsync(parent, iosAppDataStream);
CreateProperty(CreatePropertyRequest, CallSettings)
Creates an "GA4" property with the specified location and attributes.
Declaration
public virtual Property CreateProperty(CreatePropertyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreatePropertyRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Property | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CreatePropertyRequest request = new CreatePropertyRequest
{
Property = new Property(),
};
// Make the request
Property response = analyticsAdminServiceClient.CreateProperty(request);
CreateProperty(Property, CallSettings)
Creates an "GA4" property with the specified location and attributes.
Declaration
public virtual Property CreateProperty(Property property, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Property | property | Required. The property to create. Note: the supplied property must specify its parent. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Property | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
Property property = new Property();
// Make the request
Property response = analyticsAdminServiceClient.CreateProperty(property);
CreatePropertyAsync(CreatePropertyRequest, CallSettings)
Creates an "GA4" property with the specified location and attributes.
Declaration
public virtual Task<Property> CreatePropertyAsync(CreatePropertyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreatePropertyRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Property> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreatePropertyRequest request = new CreatePropertyRequest
{
Property = new Property(),
};
// Make the request
Property response = await analyticsAdminServiceClient.CreatePropertyAsync(request);
CreatePropertyAsync(CreatePropertyRequest, CancellationToken)
Creates an "GA4" property with the specified location and attributes.
Declaration
public virtual Task<Property> CreatePropertyAsync(CreatePropertyRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CreatePropertyRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Property> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreatePropertyRequest request = new CreatePropertyRequest
{
Property = new Property(),
};
// Make the request
Property response = await analyticsAdminServiceClient.CreatePropertyAsync(request);
CreatePropertyAsync(Property, CallSettings)
Creates an "GA4" property with the specified location and attributes.
Declaration
public virtual Task<Property> CreatePropertyAsync(Property property, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Property | property | Required. The property to create. Note: the supplied property must specify its parent. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Property> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
Property property = new Property();
// Make the request
Property response = await analyticsAdminServiceClient.CreatePropertyAsync(property);
CreatePropertyAsync(Property, CancellationToken)
Creates an "GA4" property with the specified location and attributes.
Declaration
public virtual Task<Property> CreatePropertyAsync(Property property, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| Property | property | Required. The property to create. Note: the supplied property must specify its parent. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Property> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
Property property = new Property();
// Make the request
Property response = await analyticsAdminServiceClient.CreatePropertyAsync(property);
CreateUserLink(AccountName, UserLink, CallSettings)
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.
Declaration
public virtual UserLink CreateUserLink(AccountName parent, UserLink userLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AccountName | parent | Required. Example format: accounts/1234 |
| UserLink | userLink | Required. The user link to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| UserLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
AccountName parent = AccountName.FromAccount("[ACCOUNT]");
UserLink userLink = new UserLink();
// Make the request
UserLink response = analyticsAdminServiceClient.CreateUserLink(parent, userLink);
CreateUserLink(CreateUserLinkRequest, CallSettings)
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.
Declaration
public virtual UserLink CreateUserLink(CreateUserLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateUserLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| UserLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CreateUserLinkRequest request = new CreateUserLinkRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
NotifyNewUser = false,
UserLink = new UserLink(),
};
// Make the request
UserLink response = analyticsAdminServiceClient.CreateUserLink(request);
CreateUserLink(PropertyName, UserLink, CallSettings)
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.
Declaration
public virtual UserLink CreateUserLink(PropertyName parent, UserLink userLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Example format: accounts/1234 |
| UserLink | userLink | Required. The user link to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| UserLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
UserLink userLink = new UserLink();
// Make the request
UserLink response = analyticsAdminServiceClient.CreateUserLink(parent, userLink);
CreateUserLink(String, UserLink, CallSettings)
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.
Declaration
public virtual UserLink CreateUserLink(string parent, UserLink userLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Example format: accounts/1234 |
| UserLink | userLink | Required. The user link to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| UserLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "accounts/[ACCOUNT]";
UserLink userLink = new UserLink();
// Make the request
UserLink response = analyticsAdminServiceClient.CreateUserLink(parent, userLink);
CreateUserLinkAsync(AccountName, UserLink, CallSettings)
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.
Declaration
public virtual Task<UserLink> CreateUserLinkAsync(AccountName parent, UserLink userLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AccountName | parent | Required. Example format: accounts/1234 |
| UserLink | userLink | Required. The user link to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AccountName parent = AccountName.FromAccount("[ACCOUNT]");
UserLink userLink = new UserLink();
// Make the request
UserLink response = await analyticsAdminServiceClient.CreateUserLinkAsync(parent, userLink);
CreateUserLinkAsync(AccountName, UserLink, CancellationToken)
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.
Declaration
public virtual Task<UserLink> CreateUserLinkAsync(AccountName parent, UserLink userLink, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| AccountName | parent | Required. Example format: accounts/1234 |
| UserLink | userLink | Required. The user link to create. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AccountName parent = AccountName.FromAccount("[ACCOUNT]");
UserLink userLink = new UserLink();
// Make the request
UserLink response = await analyticsAdminServiceClient.CreateUserLinkAsync(parent, userLink);
CreateUserLinkAsync(CreateUserLinkRequest, CallSettings)
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.
Declaration
public virtual Task<UserLink> CreateUserLinkAsync(CreateUserLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateUserLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateUserLinkRequest request = new CreateUserLinkRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
NotifyNewUser = false,
UserLink = new UserLink(),
};
// Make the request
UserLink response = await analyticsAdminServiceClient.CreateUserLinkAsync(request);
CreateUserLinkAsync(CreateUserLinkRequest, CancellationToken)
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.
Declaration
public virtual Task<UserLink> CreateUserLinkAsync(CreateUserLinkRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateUserLinkRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateUserLinkRequest request = new CreateUserLinkRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
NotifyNewUser = false,
UserLink = new UserLink(),
};
// Make the request
UserLink response = await analyticsAdminServiceClient.CreateUserLinkAsync(request);
CreateUserLinkAsync(PropertyName, UserLink, CallSettings)
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.
Declaration
public virtual Task<UserLink> CreateUserLinkAsync(PropertyName parent, UserLink userLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Example format: accounts/1234 |
| UserLink | userLink | Required. The user link to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
UserLink userLink = new UserLink();
// Make the request
UserLink response = await analyticsAdminServiceClient.CreateUserLinkAsync(parent, userLink);
CreateUserLinkAsync(PropertyName, UserLink, CancellationToken)
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.
Declaration
public virtual Task<UserLink> CreateUserLinkAsync(PropertyName parent, UserLink userLink, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Example format: accounts/1234 |
| UserLink | userLink | Required. The user link to create. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
UserLink userLink = new UserLink();
// Make the request
UserLink response = await analyticsAdminServiceClient.CreateUserLinkAsync(parent, userLink);
CreateUserLinkAsync(String, UserLink, CallSettings)
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.
Declaration
public virtual Task<UserLink> CreateUserLinkAsync(string parent, UserLink userLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Example format: accounts/1234 |
| UserLink | userLink | Required. The user link to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "accounts/[ACCOUNT]";
UserLink userLink = new UserLink();
// Make the request
UserLink response = await analyticsAdminServiceClient.CreateUserLinkAsync(parent, userLink);
CreateUserLinkAsync(String, UserLink, CancellationToken)
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.
Declaration
public virtual Task<UserLink> CreateUserLinkAsync(string parent, UserLink userLink, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Example format: accounts/1234 |
| UserLink | userLink | Required. The user link to create. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "accounts/[ACCOUNT]";
UserLink userLink = new UserLink();
// Make the request
UserLink response = await analyticsAdminServiceClient.CreateUserLinkAsync(parent, userLink);
CreateWebDataStream(CreateWebDataStreamRequest, CallSettings)
Creates a web stream with the specified location and attributes.
Declaration
public virtual WebDataStream CreateWebDataStream(CreateWebDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateWebDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| WebDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CreateWebDataStreamRequest request = new CreateWebDataStreamRequest
{
WebDataStream = new WebDataStream(),
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
WebDataStream response = analyticsAdminServiceClient.CreateWebDataStream(request);
CreateWebDataStream(PropertyName, WebDataStream, CallSettings)
Creates a web stream with the specified location and attributes.
Declaration
public virtual WebDataStream CreateWebDataStream(PropertyName parent, WebDataStream webDataStream, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. The parent resource where this web data stream will be created. Format: properties/123 |
| WebDataStream | webDataStream | Required. The web stream to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| WebDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
WebDataStream webDataStream = new WebDataStream();
// Make the request
WebDataStream response = analyticsAdminServiceClient.CreateWebDataStream(parent, webDataStream);
CreateWebDataStream(String, WebDataStream, CallSettings)
Creates a web stream with the specified location and attributes.
Declaration
public virtual WebDataStream CreateWebDataStream(string parent, WebDataStream webDataStream, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The parent resource where this web data stream will be created. Format: properties/123 |
| WebDataStream | webDataStream | Required. The web stream to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| WebDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
WebDataStream webDataStream = new WebDataStream();
// Make the request
WebDataStream response = analyticsAdminServiceClient.CreateWebDataStream(parent, webDataStream);
CreateWebDataStreamAsync(CreateWebDataStreamRequest, CallSettings)
Creates a web stream with the specified location and attributes.
Declaration
public virtual Task<WebDataStream> CreateWebDataStreamAsync(CreateWebDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateWebDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateWebDataStreamRequest request = new CreateWebDataStreamRequest
{
WebDataStream = new WebDataStream(),
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
WebDataStream response = await analyticsAdminServiceClient.CreateWebDataStreamAsync(request);
CreateWebDataStreamAsync(CreateWebDataStreamRequest, CancellationToken)
Creates a web stream with the specified location and attributes.
Declaration
public virtual Task<WebDataStream> CreateWebDataStreamAsync(CreateWebDataStreamRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateWebDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateWebDataStreamRequest request = new CreateWebDataStreamRequest
{
WebDataStream = new WebDataStream(),
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
WebDataStream response = await analyticsAdminServiceClient.CreateWebDataStreamAsync(request);
CreateWebDataStreamAsync(PropertyName, WebDataStream, CallSettings)
Creates a web stream with the specified location and attributes.
Declaration
public virtual Task<WebDataStream> CreateWebDataStreamAsync(PropertyName parent, WebDataStream webDataStream, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. The parent resource where this web data stream will be created. Format: properties/123 |
| WebDataStream | webDataStream | Required. The web stream to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
WebDataStream webDataStream = new WebDataStream();
// Make the request
WebDataStream response = await analyticsAdminServiceClient.CreateWebDataStreamAsync(parent, webDataStream);
CreateWebDataStreamAsync(PropertyName, WebDataStream, CancellationToken)
Creates a web stream with the specified location and attributes.
Declaration
public virtual Task<WebDataStream> CreateWebDataStreamAsync(PropertyName parent, WebDataStream webDataStream, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. The parent resource where this web data stream will be created. Format: properties/123 |
| WebDataStream | webDataStream | Required. The web stream to create. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
WebDataStream webDataStream = new WebDataStream();
// Make the request
WebDataStream response = await analyticsAdminServiceClient.CreateWebDataStreamAsync(parent, webDataStream);
CreateWebDataStreamAsync(String, WebDataStream, CallSettings)
Creates a web stream with the specified location and attributes.
Declaration
public virtual Task<WebDataStream> CreateWebDataStreamAsync(string parent, WebDataStream webDataStream, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The parent resource where this web data stream will be created. Format: properties/123 |
| WebDataStream | webDataStream | Required. The web stream to create. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
WebDataStream webDataStream = new WebDataStream();
// Make the request
WebDataStream response = await analyticsAdminServiceClient.CreateWebDataStreamAsync(parent, webDataStream);
CreateWebDataStreamAsync(String, WebDataStream, CancellationToken)
Creates a web stream with the specified location and attributes.
Declaration
public virtual Task<WebDataStream> CreateWebDataStreamAsync(string parent, WebDataStream webDataStream, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The parent resource where this web data stream will be created. Format: properties/123 |
| WebDataStream | webDataStream | Required. The web stream to create. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
WebDataStream webDataStream = new WebDataStream();
// Make the request
WebDataStream response = await analyticsAdminServiceClient.CreateWebDataStreamAsync(parent, webDataStream);
DeleteAccount(AccountName, CallSettings)
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
Returns an error if the target is not found.
Declaration
public virtual void DeleteAccount(AccountName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AccountName | name | Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
AccountName name = AccountName.FromAccount("[ACCOUNT]");
// Make the request
analyticsAdminServiceClient.DeleteAccount(name);
DeleteAccount(DeleteAccountRequest, CallSettings)
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
Returns an error if the target is not found.
Declaration
public virtual void DeleteAccount(DeleteAccountRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteAccountRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DeleteAccountRequest request = new DeleteAccountRequest
{
AccountName = AccountName.FromAccount("[ACCOUNT]"),
};
// Make the request
analyticsAdminServiceClient.DeleteAccount(request);
DeleteAccount(String, CallSettings)
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
Returns an error if the target is not found.
Declaration
public virtual void DeleteAccount(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]";
// Make the request
analyticsAdminServiceClient.DeleteAccount(name);
DeleteAccountAsync(AccountName, CallSettings)
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
Returns an error if the target is not found.
Declaration
public virtual Task DeleteAccountAsync(AccountName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AccountName | name | Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AccountName name = AccountName.FromAccount("[ACCOUNT]");
// Make the request
await analyticsAdminServiceClient.DeleteAccountAsync(name);
DeleteAccountAsync(AccountName, CancellationToken)
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
Returns an error if the target is not found.
Declaration
public virtual Task DeleteAccountAsync(AccountName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| AccountName | name | Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AccountName name = AccountName.FromAccount("[ACCOUNT]");
// Make the request
await analyticsAdminServiceClient.DeleteAccountAsync(name);
DeleteAccountAsync(DeleteAccountRequest, CallSettings)
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
Returns an error if the target is not found.
Declaration
public virtual Task DeleteAccountAsync(DeleteAccountRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteAccountRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteAccountRequest request = new DeleteAccountRequest
{
AccountName = AccountName.FromAccount("[ACCOUNT]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteAccountAsync(request);
DeleteAccountAsync(DeleteAccountRequest, CancellationToken)
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
Returns an error if the target is not found.
Declaration
public virtual Task DeleteAccountAsync(DeleteAccountRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteAccountRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteAccountRequest request = new DeleteAccountRequest
{
AccountName = AccountName.FromAccount("[ACCOUNT]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteAccountAsync(request);
DeleteAccountAsync(String, CallSettings)
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
Returns an error if the target is not found.
Declaration
public virtual Task DeleteAccountAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]";
// Make the request
await analyticsAdminServiceClient.DeleteAccountAsync(name);
DeleteAccountAsync(String, CancellationToken)
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
Returns an error if the target is not found.
Declaration
public virtual Task DeleteAccountAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]";
// Make the request
await analyticsAdminServiceClient.DeleteAccountAsync(name);
DeleteAndroidAppDataStream(AndroidAppDataStreamName, CallSettings)
Deletes an android app stream on a property.
Declaration
public virtual void DeleteAndroidAppDataStream(AndroidAppDataStreamName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AndroidAppDataStreamName | name | Required. The name of the android app data stream to delete. Format: properties/{property_id}/androidAppDataStreams/{stream_id} Example: "properties/123/androidAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
AndroidAppDataStreamName name = AndroidAppDataStreamName.FromPropertyAndroidAppDataStream("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
// Make the request
analyticsAdminServiceClient.DeleteAndroidAppDataStream(name);
DeleteAndroidAppDataStream(DeleteAndroidAppDataStreamRequest, CallSettings)
Deletes an android app stream on a property.
Declaration
public virtual void DeleteAndroidAppDataStream(DeleteAndroidAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteAndroidAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DeleteAndroidAppDataStreamRequest request = new DeleteAndroidAppDataStreamRequest
{
AndroidAppDataStreamName = AndroidAppDataStreamName.FromPropertyAndroidAppDataStream("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"),
};
// Make the request
analyticsAdminServiceClient.DeleteAndroidAppDataStream(request);
DeleteAndroidAppDataStream(String, CallSettings)
Deletes an android app stream on a property.
Declaration
public virtual void DeleteAndroidAppDataStream(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the android app data stream to delete. Format: properties/{property_id}/androidAppDataStreams/{stream_id} Example: "properties/123/androidAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/androidAppDataStreams/[ANDROID_APP_DATA_STREAM]";
// Make the request
analyticsAdminServiceClient.DeleteAndroidAppDataStream(name);
DeleteAndroidAppDataStreamAsync(AndroidAppDataStreamName, CallSettings)
Deletes an android app stream on a property.
Declaration
public virtual Task DeleteAndroidAppDataStreamAsync(AndroidAppDataStreamName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AndroidAppDataStreamName | name | Required. The name of the android app data stream to delete. Format: properties/{property_id}/androidAppDataStreams/{stream_id} Example: "properties/123/androidAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AndroidAppDataStreamName name = AndroidAppDataStreamName.FromPropertyAndroidAppDataStream("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
// Make the request
await analyticsAdminServiceClient.DeleteAndroidAppDataStreamAsync(name);
DeleteAndroidAppDataStreamAsync(AndroidAppDataStreamName, CancellationToken)
Deletes an android app stream on a property.
Declaration
public virtual Task DeleteAndroidAppDataStreamAsync(AndroidAppDataStreamName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| AndroidAppDataStreamName | name | Required. The name of the android app data stream to delete. Format: properties/{property_id}/androidAppDataStreams/{stream_id} Example: "properties/123/androidAppDataStreams/456" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AndroidAppDataStreamName name = AndroidAppDataStreamName.FromPropertyAndroidAppDataStream("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
// Make the request
await analyticsAdminServiceClient.DeleteAndroidAppDataStreamAsync(name);
DeleteAndroidAppDataStreamAsync(DeleteAndroidAppDataStreamRequest, CallSettings)
Deletes an android app stream on a property.
Declaration
public virtual Task DeleteAndroidAppDataStreamAsync(DeleteAndroidAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteAndroidAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteAndroidAppDataStreamRequest request = new DeleteAndroidAppDataStreamRequest
{
AndroidAppDataStreamName = AndroidAppDataStreamName.FromPropertyAndroidAppDataStream("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteAndroidAppDataStreamAsync(request);
DeleteAndroidAppDataStreamAsync(DeleteAndroidAppDataStreamRequest, CancellationToken)
Deletes an android app stream on a property.
Declaration
public virtual Task DeleteAndroidAppDataStreamAsync(DeleteAndroidAppDataStreamRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteAndroidAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteAndroidAppDataStreamRequest request = new DeleteAndroidAppDataStreamRequest
{
AndroidAppDataStreamName = AndroidAppDataStreamName.FromPropertyAndroidAppDataStream("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteAndroidAppDataStreamAsync(request);
DeleteAndroidAppDataStreamAsync(String, CallSettings)
Deletes an android app stream on a property.
Declaration
public virtual Task DeleteAndroidAppDataStreamAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the android app data stream to delete. Format: properties/{property_id}/androidAppDataStreams/{stream_id} Example: "properties/123/androidAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/androidAppDataStreams/[ANDROID_APP_DATA_STREAM]";
// Make the request
await analyticsAdminServiceClient.DeleteAndroidAppDataStreamAsync(name);
DeleteAndroidAppDataStreamAsync(String, CancellationToken)
Deletes an android app stream on a property.
Declaration
public virtual Task DeleteAndroidAppDataStreamAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the android app data stream to delete. Format: properties/{property_id}/androidAppDataStreams/{stream_id} Example: "properties/123/androidAppDataStreams/456" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/androidAppDataStreams/[ANDROID_APP_DATA_STREAM]";
// Make the request
await analyticsAdminServiceClient.DeleteAndroidAppDataStreamAsync(name);
DeleteFirebaseLink(DeleteFirebaseLinkRequest, CallSettings)
Deletes a FirebaseLink on a property
Declaration
public virtual void DeleteFirebaseLink(DeleteFirebaseLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteFirebaseLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DeleteFirebaseLinkRequest request = new DeleteFirebaseLinkRequest
{
FirebaseLinkName = FirebaseLinkName.FromPropertyFirebaseLink("[PROPERTY]", "[FIREBASE_LINK]"),
};
// Make the request
analyticsAdminServiceClient.DeleteFirebaseLink(request);
DeleteFirebaseLink(FirebaseLinkName, CallSettings)
Deletes a FirebaseLink on a property
Declaration
public virtual void DeleteFirebaseLink(FirebaseLinkName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| FirebaseLinkName | name | Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: properties/1234/firebaseLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
FirebaseLinkName name = FirebaseLinkName.FromPropertyFirebaseLink("[PROPERTY]", "[FIREBASE_LINK]");
// Make the request
analyticsAdminServiceClient.DeleteFirebaseLink(name);
DeleteFirebaseLink(String, CallSettings)
Deletes a FirebaseLink on a property
Declaration
public virtual void DeleteFirebaseLink(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: properties/1234/firebaseLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/firebaseLinks/[FIREBASE_LINK]";
// Make the request
analyticsAdminServiceClient.DeleteFirebaseLink(name);
DeleteFirebaseLinkAsync(DeleteFirebaseLinkRequest, CallSettings)
Deletes a FirebaseLink on a property
Declaration
public virtual Task DeleteFirebaseLinkAsync(DeleteFirebaseLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteFirebaseLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteFirebaseLinkRequest request = new DeleteFirebaseLinkRequest
{
FirebaseLinkName = FirebaseLinkName.FromPropertyFirebaseLink("[PROPERTY]", "[FIREBASE_LINK]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteFirebaseLinkAsync(request);
DeleteFirebaseLinkAsync(DeleteFirebaseLinkRequest, CancellationToken)
Deletes a FirebaseLink on a property
Declaration
public virtual Task DeleteFirebaseLinkAsync(DeleteFirebaseLinkRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteFirebaseLinkRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteFirebaseLinkRequest request = new DeleteFirebaseLinkRequest
{
FirebaseLinkName = FirebaseLinkName.FromPropertyFirebaseLink("[PROPERTY]", "[FIREBASE_LINK]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteFirebaseLinkAsync(request);
DeleteFirebaseLinkAsync(FirebaseLinkName, CallSettings)
Deletes a FirebaseLink on a property
Declaration
public virtual Task DeleteFirebaseLinkAsync(FirebaseLinkName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| FirebaseLinkName | name | Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: properties/1234/firebaseLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
FirebaseLinkName name = FirebaseLinkName.FromPropertyFirebaseLink("[PROPERTY]", "[FIREBASE_LINK]");
// Make the request
await analyticsAdminServiceClient.DeleteFirebaseLinkAsync(name);
DeleteFirebaseLinkAsync(FirebaseLinkName, CancellationToken)
Deletes a FirebaseLink on a property
Declaration
public virtual Task DeleteFirebaseLinkAsync(FirebaseLinkName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| FirebaseLinkName | name | Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: properties/1234/firebaseLinks/5678 |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
FirebaseLinkName name = FirebaseLinkName.FromPropertyFirebaseLink("[PROPERTY]", "[FIREBASE_LINK]");
// Make the request
await analyticsAdminServiceClient.DeleteFirebaseLinkAsync(name);
DeleteFirebaseLinkAsync(String, CallSettings)
Deletes a FirebaseLink on a property
Declaration
public virtual Task DeleteFirebaseLinkAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: properties/1234/firebaseLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/firebaseLinks/[FIREBASE_LINK]";
// Make the request
await analyticsAdminServiceClient.DeleteFirebaseLinkAsync(name);
DeleteFirebaseLinkAsync(String, CancellationToken)
Deletes a FirebaseLink on a property
Declaration
public virtual Task DeleteFirebaseLinkAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: properties/1234/firebaseLinks/5678 |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/firebaseLinks/[FIREBASE_LINK]";
// Make the request
await analyticsAdminServiceClient.DeleteFirebaseLinkAsync(name);
DeleteGoogleAdsLink(DeleteGoogleAdsLinkRequest, CallSettings)
Deletes a GoogleAdsLink on a property
Declaration
public virtual void DeleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteGoogleAdsLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DeleteGoogleAdsLinkRequest request = new DeleteGoogleAdsLinkRequest
{
GoogleAdsLinkName = GoogleAdsLinkName.FromPropertyGoogleAdsLink("[PROPERTY]", "[GOOGLE_ADS_LINK]"),
};
// Make the request
analyticsAdminServiceClient.DeleteGoogleAdsLink(request);
DeleteGoogleAdsLink(GoogleAdsLinkName, CallSettings)
Deletes a GoogleAdsLink on a property
Declaration
public virtual void DeleteGoogleAdsLink(GoogleAdsLinkName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleAdsLinkName | name | Required. Example format: properties/1234/googleAdsLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GoogleAdsLinkName name = GoogleAdsLinkName.FromPropertyGoogleAdsLink("[PROPERTY]", "[GOOGLE_ADS_LINK]");
// Make the request
analyticsAdminServiceClient.DeleteGoogleAdsLink(name);
DeleteGoogleAdsLink(String, CallSettings)
Deletes a GoogleAdsLink on a property
Declaration
public virtual void DeleteGoogleAdsLink(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. Example format: properties/1234/googleAdsLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/googleAdsLinks/[GOOGLE_ADS_LINK]";
// Make the request
analyticsAdminServiceClient.DeleteGoogleAdsLink(name);
DeleteGoogleAdsLinkAsync(DeleteGoogleAdsLinkRequest, CallSettings)
Deletes a GoogleAdsLink on a property
Declaration
public virtual Task DeleteGoogleAdsLinkAsync(DeleteGoogleAdsLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteGoogleAdsLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteGoogleAdsLinkRequest request = new DeleteGoogleAdsLinkRequest
{
GoogleAdsLinkName = GoogleAdsLinkName.FromPropertyGoogleAdsLink("[PROPERTY]", "[GOOGLE_ADS_LINK]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteGoogleAdsLinkAsync(request);
DeleteGoogleAdsLinkAsync(DeleteGoogleAdsLinkRequest, CancellationToken)
Deletes a GoogleAdsLink on a property
Declaration
public virtual Task DeleteGoogleAdsLinkAsync(DeleteGoogleAdsLinkRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteGoogleAdsLinkRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteGoogleAdsLinkRequest request = new DeleteGoogleAdsLinkRequest
{
GoogleAdsLinkName = GoogleAdsLinkName.FromPropertyGoogleAdsLink("[PROPERTY]", "[GOOGLE_ADS_LINK]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteGoogleAdsLinkAsync(request);
DeleteGoogleAdsLinkAsync(GoogleAdsLinkName, CallSettings)
Deletes a GoogleAdsLink on a property
Declaration
public virtual Task DeleteGoogleAdsLinkAsync(GoogleAdsLinkName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleAdsLinkName | name | Required. Example format: properties/1234/googleAdsLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GoogleAdsLinkName name = GoogleAdsLinkName.FromPropertyGoogleAdsLink("[PROPERTY]", "[GOOGLE_ADS_LINK]");
// Make the request
await analyticsAdminServiceClient.DeleteGoogleAdsLinkAsync(name);
DeleteGoogleAdsLinkAsync(GoogleAdsLinkName, CancellationToken)
Deletes a GoogleAdsLink on a property
Declaration
public virtual Task DeleteGoogleAdsLinkAsync(GoogleAdsLinkName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleAdsLinkName | name | Required. Example format: properties/1234/googleAdsLinks/5678 |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GoogleAdsLinkName name = GoogleAdsLinkName.FromPropertyGoogleAdsLink("[PROPERTY]", "[GOOGLE_ADS_LINK]");
// Make the request
await analyticsAdminServiceClient.DeleteGoogleAdsLinkAsync(name);
DeleteGoogleAdsLinkAsync(String, CallSettings)
Deletes a GoogleAdsLink on a property
Declaration
public virtual Task DeleteGoogleAdsLinkAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. Example format: properties/1234/googleAdsLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/googleAdsLinks/[GOOGLE_ADS_LINK]";
// Make the request
await analyticsAdminServiceClient.DeleteGoogleAdsLinkAsync(name);
DeleteGoogleAdsLinkAsync(String, CancellationToken)
Deletes a GoogleAdsLink on a property
Declaration
public virtual Task DeleteGoogleAdsLinkAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. Example format: properties/1234/googleAdsLinks/5678 |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/googleAdsLinks/[GOOGLE_ADS_LINK]";
// Make the request
await analyticsAdminServiceClient.DeleteGoogleAdsLinkAsync(name);
DeleteIosAppDataStream(DeleteIosAppDataStreamRequest, CallSettings)
Deletes an iOS app stream on a property.
Declaration
public virtual void DeleteIosAppDataStream(DeleteIosAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteIosAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DeleteIosAppDataStreamRequest request = new DeleteIosAppDataStreamRequest
{
IosAppDataStreamName = IosAppDataStreamName.FromPropertyIosAppDataStream("[PROPERTY]", "[IOS_APP_DATA_STREAM]"),
};
// Make the request
analyticsAdminServiceClient.DeleteIosAppDataStream(request);
DeleteIosAppDataStream(IosAppDataStreamName, CallSettings)
Deletes an iOS app stream on a property.
Declaration
public virtual void DeleteIosAppDataStream(IosAppDataStreamName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IosAppDataStreamName | name | Required. The name of the iOS app data stream to delete. Format: properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/123/iosAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
IosAppDataStreamName name = IosAppDataStreamName.FromPropertyIosAppDataStream("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
// Make the request
analyticsAdminServiceClient.DeleteIosAppDataStream(name);
DeleteIosAppDataStream(String, CallSettings)
Deletes an iOS app stream on a property.
Declaration
public virtual void DeleteIosAppDataStream(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the iOS app data stream to delete. Format: properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/123/iosAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/iosAppDataStreams/[IOS_APP_DATA_STREAM]";
// Make the request
analyticsAdminServiceClient.DeleteIosAppDataStream(name);
DeleteIosAppDataStreamAsync(DeleteIosAppDataStreamRequest, CallSettings)
Deletes an iOS app stream on a property.
Declaration
public virtual Task DeleteIosAppDataStreamAsync(DeleteIosAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteIosAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteIosAppDataStreamRequest request = new DeleteIosAppDataStreamRequest
{
IosAppDataStreamName = IosAppDataStreamName.FromPropertyIosAppDataStream("[PROPERTY]", "[IOS_APP_DATA_STREAM]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteIosAppDataStreamAsync(request);
DeleteIosAppDataStreamAsync(DeleteIosAppDataStreamRequest, CancellationToken)
Deletes an iOS app stream on a property.
Declaration
public virtual Task DeleteIosAppDataStreamAsync(DeleteIosAppDataStreamRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteIosAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteIosAppDataStreamRequest request = new DeleteIosAppDataStreamRequest
{
IosAppDataStreamName = IosAppDataStreamName.FromPropertyIosAppDataStream("[PROPERTY]", "[IOS_APP_DATA_STREAM]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteIosAppDataStreamAsync(request);
DeleteIosAppDataStreamAsync(IosAppDataStreamName, CallSettings)
Deletes an iOS app stream on a property.
Declaration
public virtual Task DeleteIosAppDataStreamAsync(IosAppDataStreamName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IosAppDataStreamName | name | Required. The name of the iOS app data stream to delete. Format: properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/123/iosAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
IosAppDataStreamName name = IosAppDataStreamName.FromPropertyIosAppDataStream("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
// Make the request
await analyticsAdminServiceClient.DeleteIosAppDataStreamAsync(name);
DeleteIosAppDataStreamAsync(IosAppDataStreamName, CancellationToken)
Deletes an iOS app stream on a property.
Declaration
public virtual Task DeleteIosAppDataStreamAsync(IosAppDataStreamName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IosAppDataStreamName | name | Required. The name of the iOS app data stream to delete. Format: properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/123/iosAppDataStreams/456" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
IosAppDataStreamName name = IosAppDataStreamName.FromPropertyIosAppDataStream("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
// Make the request
await analyticsAdminServiceClient.DeleteIosAppDataStreamAsync(name);
DeleteIosAppDataStreamAsync(String, CallSettings)
Deletes an iOS app stream on a property.
Declaration
public virtual Task DeleteIosAppDataStreamAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the iOS app data stream to delete. Format: properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/123/iosAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/iosAppDataStreams/[IOS_APP_DATA_STREAM]";
// Make the request
await analyticsAdminServiceClient.DeleteIosAppDataStreamAsync(name);
DeleteIosAppDataStreamAsync(String, CancellationToken)
Deletes an iOS app stream on a property.
Declaration
public virtual Task DeleteIosAppDataStreamAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the iOS app data stream to delete. Format: properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/123/iosAppDataStreams/456" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/iosAppDataStreams/[IOS_APP_DATA_STREAM]";
// Make the request
await analyticsAdminServiceClient.DeleteIosAppDataStreamAsync(name);
DeleteProperty(DeletePropertyRequest, CallSettings)
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
Returns an error if the target is not found, or is not an GA4 Property.
Declaration
public virtual void DeleteProperty(DeletePropertyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeletePropertyRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DeletePropertyRequest request = new DeletePropertyRequest
{
PropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
analyticsAdminServiceClient.DeleteProperty(request);
DeleteProperty(PropertyName, CallSettings)
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
Returns an error if the target is not found, or is not an GA4 Property.
Declaration
public virtual void DeleteProperty(PropertyName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | name | Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: "properties/1000" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName name = PropertyName.FromProperty("[PROPERTY]");
// Make the request
analyticsAdminServiceClient.DeleteProperty(name);
DeleteProperty(String, CallSettings)
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
Returns an error if the target is not found, or is not an GA4 Property.
Declaration
public virtual void DeleteProperty(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: "properties/1000" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]";
// Make the request
analyticsAdminServiceClient.DeleteProperty(name);
DeletePropertyAsync(DeletePropertyRequest, CallSettings)
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
Returns an error if the target is not found, or is not an GA4 Property.
Declaration
public virtual Task DeletePropertyAsync(DeletePropertyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeletePropertyRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeletePropertyRequest request = new DeletePropertyRequest
{
PropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
await analyticsAdminServiceClient.DeletePropertyAsync(request);
DeletePropertyAsync(DeletePropertyRequest, CancellationToken)
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
Returns an error if the target is not found, or is not an GA4 Property.
Declaration
public virtual Task DeletePropertyAsync(DeletePropertyRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| DeletePropertyRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeletePropertyRequest request = new DeletePropertyRequest
{
PropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
await analyticsAdminServiceClient.DeletePropertyAsync(request);
DeletePropertyAsync(PropertyName, CallSettings)
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
Returns an error if the target is not found, or is not an GA4 Property.
Declaration
public virtual Task DeletePropertyAsync(PropertyName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | name | Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: "properties/1000" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName name = PropertyName.FromProperty("[PROPERTY]");
// Make the request
await analyticsAdminServiceClient.DeletePropertyAsync(name);
DeletePropertyAsync(PropertyName, CancellationToken)
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
Returns an error if the target is not found, or is not an GA4 Property.
Declaration
public virtual Task DeletePropertyAsync(PropertyName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | name | Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: "properties/1000" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName name = PropertyName.FromProperty("[PROPERTY]");
// Make the request
await analyticsAdminServiceClient.DeletePropertyAsync(name);
DeletePropertyAsync(String, CallSettings)
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
Returns an error if the target is not found, or is not an GA4 Property.
Declaration
public virtual Task DeletePropertyAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: "properties/1000" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]";
// Make the request
await analyticsAdminServiceClient.DeletePropertyAsync(name);
DeletePropertyAsync(String, CancellationToken)
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
Returns an error if the target is not found, or is not an GA4 Property.
Declaration
public virtual Task DeletePropertyAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: "properties/1000" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]";
// Make the request
await analyticsAdminServiceClient.DeletePropertyAsync(name);
DeleteUserLink(DeleteUserLinkRequest, CallSettings)
Deletes a user link on an account or property.
Declaration
public virtual void DeleteUserLink(DeleteUserLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteUserLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DeleteUserLinkRequest request = new DeleteUserLinkRequest
{
UserLinkName = UserLinkName.FromAccountUserLink("[ACCOUNT]", "[USER_LINK]"),
};
// Make the request
analyticsAdminServiceClient.DeleteUserLink(request);
DeleteUserLink(UserLinkName, CallSettings)
Deletes a user link on an account or property.
Declaration
public virtual void DeleteUserLink(UserLinkName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UserLinkName | name | Required. Example format: accounts/1234/userLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
UserLinkName name = UserLinkName.FromAccountUserLink("[ACCOUNT]", "[USER_LINK]");
// Make the request
analyticsAdminServiceClient.DeleteUserLink(name);
DeleteUserLink(String, CallSettings)
Deletes a user link on an account or property.
Declaration
public virtual void DeleteUserLink(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. Example format: accounts/1234/userLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/userLinks/[USER_LINK]";
// Make the request
analyticsAdminServiceClient.DeleteUserLink(name);
DeleteUserLinkAsync(DeleteUserLinkRequest, CallSettings)
Deletes a user link on an account or property.
Declaration
public virtual Task DeleteUserLinkAsync(DeleteUserLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteUserLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteUserLinkRequest request = new DeleteUserLinkRequest
{
UserLinkName = UserLinkName.FromAccountUserLink("[ACCOUNT]", "[USER_LINK]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteUserLinkAsync(request);
DeleteUserLinkAsync(DeleteUserLinkRequest, CancellationToken)
Deletes a user link on an account or property.
Declaration
public virtual Task DeleteUserLinkAsync(DeleteUserLinkRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteUserLinkRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteUserLinkRequest request = new DeleteUserLinkRequest
{
UserLinkName = UserLinkName.FromAccountUserLink("[ACCOUNT]", "[USER_LINK]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteUserLinkAsync(request);
DeleteUserLinkAsync(UserLinkName, CallSettings)
Deletes a user link on an account or property.
Declaration
public virtual Task DeleteUserLinkAsync(UserLinkName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UserLinkName | name | Required. Example format: accounts/1234/userLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UserLinkName name = UserLinkName.FromAccountUserLink("[ACCOUNT]", "[USER_LINK]");
// Make the request
await analyticsAdminServiceClient.DeleteUserLinkAsync(name);
DeleteUserLinkAsync(UserLinkName, CancellationToken)
Deletes a user link on an account or property.
Declaration
public virtual Task DeleteUserLinkAsync(UserLinkName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| UserLinkName | name | Required. Example format: accounts/1234/userLinks/5678 |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UserLinkName name = UserLinkName.FromAccountUserLink("[ACCOUNT]", "[USER_LINK]");
// Make the request
await analyticsAdminServiceClient.DeleteUserLinkAsync(name);
DeleteUserLinkAsync(String, CallSettings)
Deletes a user link on an account or property.
Declaration
public virtual Task DeleteUserLinkAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. Example format: accounts/1234/userLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/userLinks/[USER_LINK]";
// Make the request
await analyticsAdminServiceClient.DeleteUserLinkAsync(name);
DeleteUserLinkAsync(String, CancellationToken)
Deletes a user link on an account or property.
Declaration
public virtual Task DeleteUserLinkAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. Example format: accounts/1234/userLinks/5678 |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/userLinks/[USER_LINK]";
// Make the request
await analyticsAdminServiceClient.DeleteUserLinkAsync(name);
DeleteWebDataStream(DeleteWebDataStreamRequest, CallSettings)
Deletes a web stream on a property.
Declaration
public virtual void DeleteWebDataStream(DeleteWebDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteWebDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DeleteWebDataStreamRequest request = new DeleteWebDataStreamRequest
{
WebDataStreamName = WebDataStreamName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]"),
};
// Make the request
analyticsAdminServiceClient.DeleteWebDataStream(request);
DeleteWebDataStream(WebDataStreamName, CallSettings)
Deletes a web stream on a property.
Declaration
public virtual void DeleteWebDataStream(WebDataStreamName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| WebDataStreamName | name | Required. The name of the web data stream to delete. Format: properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
WebDataStreamName name = WebDataStreamName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]");
// Make the request
analyticsAdminServiceClient.DeleteWebDataStream(name);
DeleteWebDataStream(String, CallSettings)
Deletes a web stream on a property.
Declaration
public virtual void DeleteWebDataStream(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the web data stream to delete. Format: properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/webDataStreams/[WEB_DATA_STREAM]";
// Make the request
analyticsAdminServiceClient.DeleteWebDataStream(name);
DeleteWebDataStreamAsync(DeleteWebDataStreamRequest, CallSettings)
Deletes a web stream on a property.
Declaration
public virtual Task DeleteWebDataStreamAsync(DeleteWebDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteWebDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteWebDataStreamRequest request = new DeleteWebDataStreamRequest
{
WebDataStreamName = WebDataStreamName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteWebDataStreamAsync(request);
DeleteWebDataStreamAsync(DeleteWebDataStreamRequest, CancellationToken)
Deletes a web stream on a property.
Declaration
public virtual Task DeleteWebDataStreamAsync(DeleteWebDataStreamRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteWebDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteWebDataStreamRequest request = new DeleteWebDataStreamRequest
{
WebDataStreamName = WebDataStreamName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteWebDataStreamAsync(request);
DeleteWebDataStreamAsync(WebDataStreamName, CallSettings)
Deletes a web stream on a property.
Declaration
public virtual Task DeleteWebDataStreamAsync(WebDataStreamName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| WebDataStreamName | name | Required. The name of the web data stream to delete. Format: properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
WebDataStreamName name = WebDataStreamName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]");
// Make the request
await analyticsAdminServiceClient.DeleteWebDataStreamAsync(name);
DeleteWebDataStreamAsync(WebDataStreamName, CancellationToken)
Deletes a web stream on a property.
Declaration
public virtual Task DeleteWebDataStreamAsync(WebDataStreamName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| WebDataStreamName | name | Required. The name of the web data stream to delete. Format: properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
WebDataStreamName name = WebDataStreamName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]");
// Make the request
await analyticsAdminServiceClient.DeleteWebDataStreamAsync(name);
DeleteWebDataStreamAsync(String, CallSettings)
Deletes a web stream on a property.
Declaration
public virtual Task DeleteWebDataStreamAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the web data stream to delete. Format: properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/webDataStreams/[WEB_DATA_STREAM]";
// Make the request
await analyticsAdminServiceClient.DeleteWebDataStreamAsync(name);
DeleteWebDataStreamAsync(String, CancellationToken)
Deletes a web stream on a property.
Declaration
public virtual Task DeleteWebDataStreamAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the web data stream to delete. Format: properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/webDataStreams/[WEB_DATA_STREAM]";
// Make the request
await analyticsAdminServiceClient.DeleteWebDataStreamAsync(name);
GetAccount(AccountName, CallSettings)
Lookup for a single Account. Throws "Target not found" if no such account found, or if caller does not have permissions to access it.
Declaration
public virtual Account GetAccount(AccountName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AccountName | name | Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Account | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
AccountName name = AccountName.FromAccount("[ACCOUNT]");
// Make the request
Account response = analyticsAdminServiceClient.GetAccount(name);
GetAccount(GetAccountRequest, CallSettings)
Lookup for a single Account. Throws "Target not found" if no such account found, or if caller does not have permissions to access it.
Declaration
public virtual Account GetAccount(GetAccountRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAccountRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Account | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetAccountRequest request = new GetAccountRequest
{
AccountName = AccountName.FromAccount("[ACCOUNT]"),
};
// Make the request
Account response = analyticsAdminServiceClient.GetAccount(request);
GetAccount(String, CallSettings)
Lookup for a single Account. Throws "Target not found" if no such account found, or if caller does not have permissions to access it.
Declaration
public virtual Account GetAccount(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Account | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]";
// Make the request
Account response = analyticsAdminServiceClient.GetAccount(name);
GetAccountAsync(AccountName, CallSettings)
Lookup for a single Account. Throws "Target not found" if no such account found, or if caller does not have permissions to access it.
Declaration
public virtual Task<Account> GetAccountAsync(AccountName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AccountName | name | Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Account> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AccountName name = AccountName.FromAccount("[ACCOUNT]");
// Make the request
Account response = await analyticsAdminServiceClient.GetAccountAsync(name);
GetAccountAsync(AccountName, CancellationToken)
Lookup for a single Account. Throws "Target not found" if no such account found, or if caller does not have permissions to access it.
Declaration
public virtual Task<Account> GetAccountAsync(AccountName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| AccountName | name | Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Account> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AccountName name = AccountName.FromAccount("[ACCOUNT]");
// Make the request
Account response = await analyticsAdminServiceClient.GetAccountAsync(name);
GetAccountAsync(GetAccountRequest, CallSettings)
Lookup for a single Account. Throws "Target not found" if no such account found, or if caller does not have permissions to access it.
Declaration
public virtual Task<Account> GetAccountAsync(GetAccountRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAccountRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Account> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetAccountRequest request = new GetAccountRequest
{
AccountName = AccountName.FromAccount("[ACCOUNT]"),
};
// Make the request
Account response = await analyticsAdminServiceClient.GetAccountAsync(request);
GetAccountAsync(GetAccountRequest, CancellationToken)
Lookup for a single Account. Throws "Target not found" if no such account found, or if caller does not have permissions to access it.
Declaration
public virtual Task<Account> GetAccountAsync(GetAccountRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAccountRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Account> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetAccountRequest request = new GetAccountRequest
{
AccountName = AccountName.FromAccount("[ACCOUNT]"),
};
// Make the request
Account response = await analyticsAdminServiceClient.GetAccountAsync(request);
GetAccountAsync(String, CallSettings)
Lookup for a single Account. Throws "Target not found" if no such account found, or if caller does not have permissions to access it.
Declaration
public virtual Task<Account> GetAccountAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Account> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]";
// Make the request
Account response = await analyticsAdminServiceClient.GetAccountAsync(name);
GetAccountAsync(String, CancellationToken)
Lookup for a single Account. Throws "Target not found" if no such account found, or if caller does not have permissions to access it.
Declaration
public virtual Task<Account> GetAccountAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Account> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]";
// Make the request
Account response = await analyticsAdminServiceClient.GetAccountAsync(name);
GetAndroidAppDataStream(AndroidAppDataStreamName, CallSettings)
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.
Declaration
public virtual AndroidAppDataStream GetAndroidAppDataStream(AndroidAppDataStreamName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AndroidAppDataStreamName | name | Required. The name of the android app data stream to lookup. Format: properties/{property_id}/androidAppDataStreams/{stream_id} Example: "properties/123/androidAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| AndroidAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
AndroidAppDataStreamName name = AndroidAppDataStreamName.FromPropertyAndroidAppDataStream("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
// Make the request
AndroidAppDataStream response = analyticsAdminServiceClient.GetAndroidAppDataStream(name);
GetAndroidAppDataStream(GetAndroidAppDataStreamRequest, CallSettings)
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.
Declaration
public virtual AndroidAppDataStream GetAndroidAppDataStream(GetAndroidAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAndroidAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| AndroidAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetAndroidAppDataStreamRequest request = new GetAndroidAppDataStreamRequest
{
AndroidAppDataStreamName = AndroidAppDataStreamName.FromPropertyAndroidAppDataStream("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"),
};
// Make the request
AndroidAppDataStream response = analyticsAdminServiceClient.GetAndroidAppDataStream(request);
GetAndroidAppDataStream(String, CallSettings)
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.
Declaration
public virtual AndroidAppDataStream GetAndroidAppDataStream(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the android app data stream to lookup. Format: properties/{property_id}/androidAppDataStreams/{stream_id} Example: "properties/123/androidAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| AndroidAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/androidAppDataStreams/[ANDROID_APP_DATA_STREAM]";
// Make the request
AndroidAppDataStream response = analyticsAdminServiceClient.GetAndroidAppDataStream(name);
GetAndroidAppDataStreamAsync(AndroidAppDataStreamName, CallSettings)
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.
Declaration
public virtual Task<AndroidAppDataStream> GetAndroidAppDataStreamAsync(AndroidAppDataStreamName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AndroidAppDataStreamName | name | Required. The name of the android app data stream to lookup. Format: properties/{property_id}/androidAppDataStreams/{stream_id} Example: "properties/123/androidAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AndroidAppDataStreamName name = AndroidAppDataStreamName.FromPropertyAndroidAppDataStream("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.GetAndroidAppDataStreamAsync(name);
GetAndroidAppDataStreamAsync(AndroidAppDataStreamName, CancellationToken)
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.
Declaration
public virtual Task<AndroidAppDataStream> GetAndroidAppDataStreamAsync(AndroidAppDataStreamName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| AndroidAppDataStreamName | name | Required. The name of the android app data stream to lookup. Format: properties/{property_id}/androidAppDataStreams/{stream_id} Example: "properties/123/androidAppDataStreams/456" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AndroidAppDataStreamName name = AndroidAppDataStreamName.FromPropertyAndroidAppDataStream("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.GetAndroidAppDataStreamAsync(name);
GetAndroidAppDataStreamAsync(GetAndroidAppDataStreamRequest, CallSettings)
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.
Declaration
public virtual Task<AndroidAppDataStream> GetAndroidAppDataStreamAsync(GetAndroidAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAndroidAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetAndroidAppDataStreamRequest request = new GetAndroidAppDataStreamRequest
{
AndroidAppDataStreamName = AndroidAppDataStreamName.FromPropertyAndroidAppDataStream("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"),
};
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.GetAndroidAppDataStreamAsync(request);
GetAndroidAppDataStreamAsync(GetAndroidAppDataStreamRequest, CancellationToken)
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.
Declaration
public virtual Task<AndroidAppDataStream> GetAndroidAppDataStreamAsync(GetAndroidAppDataStreamRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAndroidAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetAndroidAppDataStreamRequest request = new GetAndroidAppDataStreamRequest
{
AndroidAppDataStreamName = AndroidAppDataStreamName.FromPropertyAndroidAppDataStream("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"),
};
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.GetAndroidAppDataStreamAsync(request);
GetAndroidAppDataStreamAsync(String, CallSettings)
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.
Declaration
public virtual Task<AndroidAppDataStream> GetAndroidAppDataStreamAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the android app data stream to lookup. Format: properties/{property_id}/androidAppDataStreams/{stream_id} Example: "properties/123/androidAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/androidAppDataStreams/[ANDROID_APP_DATA_STREAM]";
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.GetAndroidAppDataStreamAsync(name);
GetAndroidAppDataStreamAsync(String, CancellationToken)
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.
Declaration
public virtual Task<AndroidAppDataStream> GetAndroidAppDataStreamAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the android app data stream to lookup. Format: properties/{property_id}/androidAppDataStreams/{stream_id} Example: "properties/123/androidAppDataStreams/456" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/androidAppDataStreams/[ANDROID_APP_DATA_STREAM]";
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.GetAndroidAppDataStreamAsync(name);
GetDataSharingSettings(DataSharingSettingsName, CallSettings)
Get data sharing settings on an account. Data sharing settings are singletons.
Declaration
public virtual DataSharingSettings GetDataSharingSettings(DataSharingSettingsName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DataSharingSettingsName | name | Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| DataSharingSettings | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DataSharingSettingsName name = DataSharingSettingsName.FromAccount("[ACCOUNT]");
// Make the request
DataSharingSettings response = analyticsAdminServiceClient.GetDataSharingSettings(name);
GetDataSharingSettings(GetDataSharingSettingsRequest, CallSettings)
Get data sharing settings on an account. Data sharing settings are singletons.
Declaration
public virtual DataSharingSettings GetDataSharingSettings(GetDataSharingSettingsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetDataSharingSettingsRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| DataSharingSettings | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetDataSharingSettingsRequest request = new GetDataSharingSettingsRequest
{
DataSharingSettingsName = DataSharingSettingsName.FromAccount("[ACCOUNT]"),
};
// Make the request
DataSharingSettings response = analyticsAdminServiceClient.GetDataSharingSettings(request);
GetDataSharingSettings(String, CallSettings)
Get data sharing settings on an account. Data sharing settings are singletons.
Declaration
public virtual DataSharingSettings GetDataSharingSettings(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| DataSharingSettings | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/dataSharingSettings";
// Make the request
DataSharingSettings response = analyticsAdminServiceClient.GetDataSharingSettings(name);
GetDataSharingSettingsAsync(DataSharingSettingsName, CallSettings)
Get data sharing settings on an account. Data sharing settings are singletons.
Declaration
public virtual Task<DataSharingSettings> GetDataSharingSettingsAsync(DataSharingSettingsName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| DataSharingSettingsName | name | Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DataSharingSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DataSharingSettingsName name = DataSharingSettingsName.FromAccount("[ACCOUNT]");
// Make the request
DataSharingSettings response = await analyticsAdminServiceClient.GetDataSharingSettingsAsync(name);
GetDataSharingSettingsAsync(DataSharingSettingsName, CancellationToken)
Get data sharing settings on an account. Data sharing settings are singletons.
Declaration
public virtual Task<DataSharingSettings> GetDataSharingSettingsAsync(DataSharingSettingsName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| DataSharingSettingsName | name | Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DataSharingSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DataSharingSettingsName name = DataSharingSettingsName.FromAccount("[ACCOUNT]");
// Make the request
DataSharingSettings response = await analyticsAdminServiceClient.GetDataSharingSettingsAsync(name);
GetDataSharingSettingsAsync(GetDataSharingSettingsRequest, CallSettings)
Get data sharing settings on an account. Data sharing settings are singletons.
Declaration
public virtual Task<DataSharingSettings> GetDataSharingSettingsAsync(GetDataSharingSettingsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetDataSharingSettingsRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DataSharingSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetDataSharingSettingsRequest request = new GetDataSharingSettingsRequest
{
DataSharingSettingsName = DataSharingSettingsName.FromAccount("[ACCOUNT]"),
};
// Make the request
DataSharingSettings response = await analyticsAdminServiceClient.GetDataSharingSettingsAsync(request);
GetDataSharingSettingsAsync(GetDataSharingSettingsRequest, CancellationToken)
Get data sharing settings on an account. Data sharing settings are singletons.
Declaration
public virtual Task<DataSharingSettings> GetDataSharingSettingsAsync(GetDataSharingSettingsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| GetDataSharingSettingsRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DataSharingSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetDataSharingSettingsRequest request = new GetDataSharingSettingsRequest
{
DataSharingSettingsName = DataSharingSettingsName.FromAccount("[ACCOUNT]"),
};
// Make the request
DataSharingSettings response = await analyticsAdminServiceClient.GetDataSharingSettingsAsync(request);
GetDataSharingSettingsAsync(String, CallSettings)
Get data sharing settings on an account. Data sharing settings are singletons.
Declaration
public virtual Task<DataSharingSettings> GetDataSharingSettingsAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DataSharingSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/dataSharingSettings";
// Make the request
DataSharingSettings response = await analyticsAdminServiceClient.GetDataSharingSettingsAsync(name);
GetDataSharingSettingsAsync(String, CancellationToken)
Get data sharing settings on an account. Data sharing settings are singletons.
Declaration
public virtual Task<DataSharingSettings> GetDataSharingSettingsAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DataSharingSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/dataSharingSettings";
// Make the request
DataSharingSettings response = await analyticsAdminServiceClient.GetDataSharingSettingsAsync(name);
GetEnhancedMeasurementSettings(EnhancedMeasurementSettingsName, CallSettings)
Returns the singleton enhanced measurement settings for this web stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Declaration
public virtual EnhancedMeasurementSettings GetEnhancedMeasurementSettings(EnhancedMeasurementSettingsName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| EnhancedMeasurementSettingsName | name | Required. The name of the settings to lookup. Format: properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| EnhancedMeasurementSettings | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
EnhancedMeasurementSettingsName name = EnhancedMeasurementSettingsName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]");
// Make the request
EnhancedMeasurementSettings response = analyticsAdminServiceClient.GetEnhancedMeasurementSettings(name);
GetEnhancedMeasurementSettings(GetEnhancedMeasurementSettingsRequest, CallSettings)
Returns the singleton enhanced measurement settings for this web stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Declaration
public virtual EnhancedMeasurementSettings GetEnhancedMeasurementSettings(GetEnhancedMeasurementSettingsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetEnhancedMeasurementSettingsRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| EnhancedMeasurementSettings | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetEnhancedMeasurementSettingsRequest request = new GetEnhancedMeasurementSettingsRequest
{
EnhancedMeasurementSettingsName = EnhancedMeasurementSettingsName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]"),
};
// Make the request
EnhancedMeasurementSettings response = analyticsAdminServiceClient.GetEnhancedMeasurementSettings(request);
GetEnhancedMeasurementSettings(String, CallSettings)
Returns the singleton enhanced measurement settings for this web stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Declaration
public virtual EnhancedMeasurementSettings GetEnhancedMeasurementSettings(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the settings to lookup. Format: properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| EnhancedMeasurementSettings | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/webDataStreams/[WEB_DATA_STREAM]/enhancedMeasurementSettings";
// Make the request
EnhancedMeasurementSettings response = analyticsAdminServiceClient.GetEnhancedMeasurementSettings(name);
GetEnhancedMeasurementSettingsAsync(EnhancedMeasurementSettingsName, CallSettings)
Returns the singleton enhanced measurement settings for this web stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Declaration
public virtual Task<EnhancedMeasurementSettings> GetEnhancedMeasurementSettingsAsync(EnhancedMeasurementSettingsName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| EnhancedMeasurementSettingsName | name | Required. The name of the settings to lookup. Format: properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<EnhancedMeasurementSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
EnhancedMeasurementSettingsName name = EnhancedMeasurementSettingsName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]");
// Make the request
EnhancedMeasurementSettings response = await analyticsAdminServiceClient.GetEnhancedMeasurementSettingsAsync(name);
GetEnhancedMeasurementSettingsAsync(EnhancedMeasurementSettingsName, CancellationToken)
Returns the singleton enhanced measurement settings for this web stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Declaration
public virtual Task<EnhancedMeasurementSettings> GetEnhancedMeasurementSettingsAsync(EnhancedMeasurementSettingsName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| EnhancedMeasurementSettingsName | name | Required. The name of the settings to lookup. Format: properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<EnhancedMeasurementSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
EnhancedMeasurementSettingsName name = EnhancedMeasurementSettingsName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]");
// Make the request
EnhancedMeasurementSettings response = await analyticsAdminServiceClient.GetEnhancedMeasurementSettingsAsync(name);
GetEnhancedMeasurementSettingsAsync(GetEnhancedMeasurementSettingsRequest, CallSettings)
Returns the singleton enhanced measurement settings for this web stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Declaration
public virtual Task<EnhancedMeasurementSettings> GetEnhancedMeasurementSettingsAsync(GetEnhancedMeasurementSettingsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetEnhancedMeasurementSettingsRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<EnhancedMeasurementSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetEnhancedMeasurementSettingsRequest request = new GetEnhancedMeasurementSettingsRequest
{
EnhancedMeasurementSettingsName = EnhancedMeasurementSettingsName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]"),
};
// Make the request
EnhancedMeasurementSettings response = await analyticsAdminServiceClient.GetEnhancedMeasurementSettingsAsync(request);
GetEnhancedMeasurementSettingsAsync(GetEnhancedMeasurementSettingsRequest, CancellationToken)
Returns the singleton enhanced measurement settings for this web stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Declaration
public virtual Task<EnhancedMeasurementSettings> GetEnhancedMeasurementSettingsAsync(GetEnhancedMeasurementSettingsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| GetEnhancedMeasurementSettingsRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<EnhancedMeasurementSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetEnhancedMeasurementSettingsRequest request = new GetEnhancedMeasurementSettingsRequest
{
EnhancedMeasurementSettingsName = EnhancedMeasurementSettingsName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]"),
};
// Make the request
EnhancedMeasurementSettings response = await analyticsAdminServiceClient.GetEnhancedMeasurementSettingsAsync(request);
GetEnhancedMeasurementSettingsAsync(String, CallSettings)
Returns the singleton enhanced measurement settings for this web stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Declaration
public virtual Task<EnhancedMeasurementSettings> GetEnhancedMeasurementSettingsAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the settings to lookup. Format: properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<EnhancedMeasurementSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/webDataStreams/[WEB_DATA_STREAM]/enhancedMeasurementSettings";
// Make the request
EnhancedMeasurementSettings response = await analyticsAdminServiceClient.GetEnhancedMeasurementSettingsAsync(name);
GetEnhancedMeasurementSettingsAsync(String, CancellationToken)
Returns the singleton enhanced measurement settings for this web stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Declaration
public virtual Task<EnhancedMeasurementSettings> GetEnhancedMeasurementSettingsAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the settings to lookup. Format: properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<EnhancedMeasurementSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/webDataStreams/[WEB_DATA_STREAM]/enhancedMeasurementSettings";
// Make the request
EnhancedMeasurementSettings response = await analyticsAdminServiceClient.GetEnhancedMeasurementSettingsAsync(name);
GetGlobalSiteTag(GetGlobalSiteTagRequest, CallSettings)
Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
Declaration
public virtual GlobalSiteTag GetGlobalSiteTag(GetGlobalSiteTagRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetGlobalSiteTagRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| GlobalSiteTag | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetGlobalSiteTagRequest request = new GetGlobalSiteTagRequest
{
GlobalSiteTagName = GlobalSiteTagName.FromProperty("[PROPERTY]"),
};
// Make the request
GlobalSiteTag response = analyticsAdminServiceClient.GetGlobalSiteTag(request);
GetGlobalSiteTag(GlobalSiteTagName, CallSettings)
Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
Declaration
public virtual GlobalSiteTag GetGlobalSiteTag(GlobalSiteTagName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GlobalSiteTagName | name | Required. The name of the site tag to lookup. Note that site tags are singletons and do not have unique IDs. Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag Example: "properties/123/webDataStreams/456/globalSiteTag" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| GlobalSiteTag | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GlobalSiteTagName name = GlobalSiteTagName.FromProperty("[PROPERTY]");
// Make the request
GlobalSiteTag response = analyticsAdminServiceClient.GetGlobalSiteTag(name);
GetGlobalSiteTag(String, CallSettings)
Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
Declaration
public virtual GlobalSiteTag GetGlobalSiteTag(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the site tag to lookup. Note that site tags are singletons and do not have unique IDs. Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag Example: "properties/123/webDataStreams/456/globalSiteTag" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| GlobalSiteTag | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/globalSiteTag";
// Make the request
GlobalSiteTag response = analyticsAdminServiceClient.GetGlobalSiteTag(name);
GetGlobalSiteTagAsync(GetGlobalSiteTagRequest, CallSettings)
Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
Declaration
public virtual Task<GlobalSiteTag> GetGlobalSiteTagAsync(GetGlobalSiteTagRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetGlobalSiteTagRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GlobalSiteTag> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetGlobalSiteTagRequest request = new GetGlobalSiteTagRequest
{
GlobalSiteTagName = GlobalSiteTagName.FromProperty("[PROPERTY]"),
};
// Make the request
GlobalSiteTag response = await analyticsAdminServiceClient.GetGlobalSiteTagAsync(request);
GetGlobalSiteTagAsync(GetGlobalSiteTagRequest, CancellationToken)
Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
Declaration
public virtual Task<GlobalSiteTag> GetGlobalSiteTagAsync(GetGlobalSiteTagRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| GetGlobalSiteTagRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GlobalSiteTag> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetGlobalSiteTagRequest request = new GetGlobalSiteTagRequest
{
GlobalSiteTagName = GlobalSiteTagName.FromProperty("[PROPERTY]"),
};
// Make the request
GlobalSiteTag response = await analyticsAdminServiceClient.GetGlobalSiteTagAsync(request);
GetGlobalSiteTagAsync(GlobalSiteTagName, CallSettings)
Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
Declaration
public virtual Task<GlobalSiteTag> GetGlobalSiteTagAsync(GlobalSiteTagName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GlobalSiteTagName | name | Required. The name of the site tag to lookup. Note that site tags are singletons and do not have unique IDs. Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag Example: "properties/123/webDataStreams/456/globalSiteTag" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GlobalSiteTag> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GlobalSiteTagName name = GlobalSiteTagName.FromProperty("[PROPERTY]");
// Make the request
GlobalSiteTag response = await analyticsAdminServiceClient.GetGlobalSiteTagAsync(name);
GetGlobalSiteTagAsync(GlobalSiteTagName, CancellationToken)
Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
Declaration
public virtual Task<GlobalSiteTag> GetGlobalSiteTagAsync(GlobalSiteTagName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| GlobalSiteTagName | name | Required. The name of the site tag to lookup. Note that site tags are singletons and do not have unique IDs. Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag Example: "properties/123/webDataStreams/456/globalSiteTag" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GlobalSiteTag> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GlobalSiteTagName name = GlobalSiteTagName.FromProperty("[PROPERTY]");
// Make the request
GlobalSiteTag response = await analyticsAdminServiceClient.GetGlobalSiteTagAsync(name);
GetGlobalSiteTagAsync(String, CallSettings)
Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
Declaration
public virtual Task<GlobalSiteTag> GetGlobalSiteTagAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the site tag to lookup. Note that site tags are singletons and do not have unique IDs. Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag Example: "properties/123/webDataStreams/456/globalSiteTag" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GlobalSiteTag> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/globalSiteTag";
// Make the request
GlobalSiteTag response = await analyticsAdminServiceClient.GetGlobalSiteTagAsync(name);
GetGlobalSiteTagAsync(String, CancellationToken)
Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
Declaration
public virtual Task<GlobalSiteTag> GetGlobalSiteTagAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the site tag to lookup. Note that site tags are singletons and do not have unique IDs. Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag Example: "properties/123/webDataStreams/456/globalSiteTag" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GlobalSiteTag> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/globalSiteTag";
// Make the request
GlobalSiteTag response = await analyticsAdminServiceClient.GetGlobalSiteTagAsync(name);
GetIosAppDataStream(GetIosAppDataStreamRequest, CallSettings)
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.
Declaration
public virtual IosAppDataStream GetIosAppDataStream(GetIosAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetIosAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| IosAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetIosAppDataStreamRequest request = new GetIosAppDataStreamRequest
{
IosAppDataStreamName = IosAppDataStreamName.FromPropertyIosAppDataStream("[PROPERTY]", "[IOS_APP_DATA_STREAM]"),
};
// Make the request
IosAppDataStream response = analyticsAdminServiceClient.GetIosAppDataStream(request);
GetIosAppDataStream(IosAppDataStreamName, CallSettings)
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.
Declaration
public virtual IosAppDataStream GetIosAppDataStream(IosAppDataStreamName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IosAppDataStreamName | name | Required. The name of the iOS app data stream to lookup. Format: properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/123/iosAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| IosAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
IosAppDataStreamName name = IosAppDataStreamName.FromPropertyIosAppDataStream("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
// Make the request
IosAppDataStream response = analyticsAdminServiceClient.GetIosAppDataStream(name);
GetIosAppDataStream(String, CallSettings)
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.
Declaration
public virtual IosAppDataStream GetIosAppDataStream(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the iOS app data stream to lookup. Format: properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/123/iosAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| IosAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/iosAppDataStreams/[IOS_APP_DATA_STREAM]";
// Make the request
IosAppDataStream response = analyticsAdminServiceClient.GetIosAppDataStream(name);
GetIosAppDataStreamAsync(GetIosAppDataStreamRequest, CallSettings)
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.
Declaration
public virtual Task<IosAppDataStream> GetIosAppDataStreamAsync(GetIosAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetIosAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetIosAppDataStreamRequest request = new GetIosAppDataStreamRequest
{
IosAppDataStreamName = IosAppDataStreamName.FromPropertyIosAppDataStream("[PROPERTY]", "[IOS_APP_DATA_STREAM]"),
};
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.GetIosAppDataStreamAsync(request);
GetIosAppDataStreamAsync(GetIosAppDataStreamRequest, CancellationToken)
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.
Declaration
public virtual Task<IosAppDataStream> GetIosAppDataStreamAsync(GetIosAppDataStreamRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| GetIosAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetIosAppDataStreamRequest request = new GetIosAppDataStreamRequest
{
IosAppDataStreamName = IosAppDataStreamName.FromPropertyIosAppDataStream("[PROPERTY]", "[IOS_APP_DATA_STREAM]"),
};
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.GetIosAppDataStreamAsync(request);
GetIosAppDataStreamAsync(IosAppDataStreamName, CallSettings)
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.
Declaration
public virtual Task<IosAppDataStream> GetIosAppDataStreamAsync(IosAppDataStreamName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IosAppDataStreamName | name | Required. The name of the iOS app data stream to lookup. Format: properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/123/iosAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
IosAppDataStreamName name = IosAppDataStreamName.FromPropertyIosAppDataStream("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.GetIosAppDataStreamAsync(name);
GetIosAppDataStreamAsync(IosAppDataStreamName, CancellationToken)
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.
Declaration
public virtual Task<IosAppDataStream> GetIosAppDataStreamAsync(IosAppDataStreamName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IosAppDataStreamName | name | Required. The name of the iOS app data stream to lookup. Format: properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/123/iosAppDataStreams/456" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
IosAppDataStreamName name = IosAppDataStreamName.FromPropertyIosAppDataStream("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.GetIosAppDataStreamAsync(name);
GetIosAppDataStreamAsync(String, CallSettings)
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.
Declaration
public virtual Task<IosAppDataStream> GetIosAppDataStreamAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the iOS app data stream to lookup. Format: properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/123/iosAppDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/iosAppDataStreams/[IOS_APP_DATA_STREAM]";
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.GetIosAppDataStreamAsync(name);
GetIosAppDataStreamAsync(String, CancellationToken)
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.
Declaration
public virtual Task<IosAppDataStream> GetIosAppDataStreamAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the iOS app data stream to lookup. Format: properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/123/iosAppDataStreams/456" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/iosAppDataStreams/[IOS_APP_DATA_STREAM]";
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.GetIosAppDataStreamAsync(name);
GetProperty(GetPropertyRequest, CallSettings)
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.
Declaration
public virtual Property GetProperty(GetPropertyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetPropertyRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Property | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetPropertyRequest request = new GetPropertyRequest
{
PropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
Property response = analyticsAdminServiceClient.GetProperty(request);
GetProperty(PropertyName, CallSettings)
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.
Declaration
public virtual Property GetProperty(PropertyName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | name | Required. The name of the property to lookup. Format: properties/{property_id} Example: "properties/1000" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Property | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName name = PropertyName.FromProperty("[PROPERTY]");
// Make the request
Property response = analyticsAdminServiceClient.GetProperty(name);
GetProperty(String, CallSettings)
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.
Declaration
public virtual Property GetProperty(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the property to lookup. Format: properties/{property_id} Example: "properties/1000" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Property | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]";
// Make the request
Property response = analyticsAdminServiceClient.GetProperty(name);
GetPropertyAsync(GetPropertyRequest, CallSettings)
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.
Declaration
public virtual Task<Property> GetPropertyAsync(GetPropertyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetPropertyRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Property> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetPropertyRequest request = new GetPropertyRequest
{
PropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
Property response = await analyticsAdminServiceClient.GetPropertyAsync(request);
GetPropertyAsync(GetPropertyRequest, CancellationToken)
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.
Declaration
public virtual Task<Property> GetPropertyAsync(GetPropertyRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| GetPropertyRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Property> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetPropertyRequest request = new GetPropertyRequest
{
PropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
Property response = await analyticsAdminServiceClient.GetPropertyAsync(request);
GetPropertyAsync(PropertyName, CallSettings)
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.
Declaration
public virtual Task<Property> GetPropertyAsync(PropertyName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | name | Required. The name of the property to lookup. Format: properties/{property_id} Example: "properties/1000" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Property> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName name = PropertyName.FromProperty("[PROPERTY]");
// Make the request
Property response = await analyticsAdminServiceClient.GetPropertyAsync(name);
GetPropertyAsync(PropertyName, CancellationToken)
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.
Declaration
public virtual Task<Property> GetPropertyAsync(PropertyName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | name | Required. The name of the property to lookup. Format: properties/{property_id} Example: "properties/1000" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Property> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName name = PropertyName.FromProperty("[PROPERTY]");
// Make the request
Property response = await analyticsAdminServiceClient.GetPropertyAsync(name);
GetPropertyAsync(String, CallSettings)
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.
Declaration
public virtual Task<Property> GetPropertyAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the property to lookup. Format: properties/{property_id} Example: "properties/1000" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Property> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]";
// Make the request
Property response = await analyticsAdminServiceClient.GetPropertyAsync(name);
GetPropertyAsync(String, CancellationToken)
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.
Declaration
public virtual Task<Property> GetPropertyAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the property to lookup. Format: properties/{property_id} Example: "properties/1000" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Property> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]";
// Make the request
Property response = await analyticsAdminServiceClient.GetPropertyAsync(name);
GetUserLink(GetUserLinkRequest, CallSettings)
Gets information about a user's link to an account or property.
Declaration
public virtual UserLink GetUserLink(GetUserLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetUserLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| UserLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetUserLinkRequest request = new GetUserLinkRequest
{
UserLinkName = UserLinkName.FromAccountUserLink("[ACCOUNT]", "[USER_LINK]"),
};
// Make the request
UserLink response = analyticsAdminServiceClient.GetUserLink(request);
GetUserLink(UserLinkName, CallSettings)
Gets information about a user's link to an account or property.
Declaration
public virtual UserLink GetUserLink(UserLinkName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UserLinkName | name | Required. Example format: accounts/1234/userLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| UserLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
UserLinkName name = UserLinkName.FromAccountUserLink("[ACCOUNT]", "[USER_LINK]");
// Make the request
UserLink response = analyticsAdminServiceClient.GetUserLink(name);
GetUserLink(String, CallSettings)
Gets information about a user's link to an account or property.
Declaration
public virtual UserLink GetUserLink(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. Example format: accounts/1234/userLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| UserLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/userLinks/[USER_LINK]";
// Make the request
UserLink response = analyticsAdminServiceClient.GetUserLink(name);
GetUserLinkAsync(GetUserLinkRequest, CallSettings)
Gets information about a user's link to an account or property.
Declaration
public virtual Task<UserLink> GetUserLinkAsync(GetUserLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetUserLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetUserLinkRequest request = new GetUserLinkRequest
{
UserLinkName = UserLinkName.FromAccountUserLink("[ACCOUNT]", "[USER_LINK]"),
};
// Make the request
UserLink response = await analyticsAdminServiceClient.GetUserLinkAsync(request);
GetUserLinkAsync(GetUserLinkRequest, CancellationToken)
Gets information about a user's link to an account or property.
Declaration
public virtual Task<UserLink> GetUserLinkAsync(GetUserLinkRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| GetUserLinkRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetUserLinkRequest request = new GetUserLinkRequest
{
UserLinkName = UserLinkName.FromAccountUserLink("[ACCOUNT]", "[USER_LINK]"),
};
// Make the request
UserLink response = await analyticsAdminServiceClient.GetUserLinkAsync(request);
GetUserLinkAsync(UserLinkName, CallSettings)
Gets information about a user's link to an account or property.
Declaration
public virtual Task<UserLink> GetUserLinkAsync(UserLinkName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UserLinkName | name | Required. Example format: accounts/1234/userLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UserLinkName name = UserLinkName.FromAccountUserLink("[ACCOUNT]", "[USER_LINK]");
// Make the request
UserLink response = await analyticsAdminServiceClient.GetUserLinkAsync(name);
GetUserLinkAsync(UserLinkName, CancellationToken)
Gets information about a user's link to an account or property.
Declaration
public virtual Task<UserLink> GetUserLinkAsync(UserLinkName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| UserLinkName | name | Required. Example format: accounts/1234/userLinks/5678 |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UserLinkName name = UserLinkName.FromAccountUserLink("[ACCOUNT]", "[USER_LINK]");
// Make the request
UserLink response = await analyticsAdminServiceClient.GetUserLinkAsync(name);
GetUserLinkAsync(String, CallSettings)
Gets information about a user's link to an account or property.
Declaration
public virtual Task<UserLink> GetUserLinkAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. Example format: accounts/1234/userLinks/5678 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/userLinks/[USER_LINK]";
// Make the request
UserLink response = await analyticsAdminServiceClient.GetUserLinkAsync(name);
GetUserLinkAsync(String, CancellationToken)
Gets information about a user's link to an account or property.
Declaration
public virtual Task<UserLink> GetUserLinkAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. Example format: accounts/1234/userLinks/5678 |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/userLinks/[USER_LINK]";
// Make the request
UserLink response = await analyticsAdminServiceClient.GetUserLinkAsync(name);
GetWebDataStream(GetWebDataStreamRequest, CallSettings)
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.
Declaration
public virtual WebDataStream GetWebDataStream(GetWebDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetWebDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| WebDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetWebDataStreamRequest request = new GetWebDataStreamRequest
{
WebDataStreamName = WebDataStreamName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]"),
};
// Make the request
WebDataStream response = analyticsAdminServiceClient.GetWebDataStream(request);
GetWebDataStream(WebDataStreamName, CallSettings)
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.
Declaration
public virtual WebDataStream GetWebDataStream(WebDataStreamName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| WebDataStreamName | name | Required. The name of the web data stream to lookup. Format: properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| WebDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
WebDataStreamName name = WebDataStreamName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]");
// Make the request
WebDataStream response = analyticsAdminServiceClient.GetWebDataStream(name);
GetWebDataStream(String, CallSettings)
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.
Declaration
public virtual WebDataStream GetWebDataStream(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the web data stream to lookup. Format: properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| WebDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/webDataStreams/[WEB_DATA_STREAM]";
// Make the request
WebDataStream response = analyticsAdminServiceClient.GetWebDataStream(name);
GetWebDataStreamAsync(GetWebDataStreamRequest, CallSettings)
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.
Declaration
public virtual Task<WebDataStream> GetWebDataStreamAsync(GetWebDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetWebDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetWebDataStreamRequest request = new GetWebDataStreamRequest
{
WebDataStreamName = WebDataStreamName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]"),
};
// Make the request
WebDataStream response = await analyticsAdminServiceClient.GetWebDataStreamAsync(request);
GetWebDataStreamAsync(GetWebDataStreamRequest, CancellationToken)
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.
Declaration
public virtual Task<WebDataStream> GetWebDataStreamAsync(GetWebDataStreamRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| GetWebDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetWebDataStreamRequest request = new GetWebDataStreamRequest
{
WebDataStreamName = WebDataStreamName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]"),
};
// Make the request
WebDataStream response = await analyticsAdminServiceClient.GetWebDataStreamAsync(request);
GetWebDataStreamAsync(WebDataStreamName, CallSettings)
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.
Declaration
public virtual Task<WebDataStream> GetWebDataStreamAsync(WebDataStreamName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| WebDataStreamName | name | Required. The name of the web data stream to lookup. Format: properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
WebDataStreamName name = WebDataStreamName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]");
// Make the request
WebDataStream response = await analyticsAdminServiceClient.GetWebDataStreamAsync(name);
GetWebDataStreamAsync(WebDataStreamName, CancellationToken)
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.
Declaration
public virtual Task<WebDataStream> GetWebDataStreamAsync(WebDataStreamName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| WebDataStreamName | name | Required. The name of the web data stream to lookup. Format: properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
WebDataStreamName name = WebDataStreamName.FromPropertyWebDataStream("[PROPERTY]", "[WEB_DATA_STREAM]");
// Make the request
WebDataStream response = await analyticsAdminServiceClient.GetWebDataStreamAsync(name);
GetWebDataStreamAsync(String, CallSettings)
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.
Declaration
public virtual Task<WebDataStream> GetWebDataStreamAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the web data stream to lookup. Format: properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/webDataStreams/[WEB_DATA_STREAM]";
// Make the request
WebDataStream response = await analyticsAdminServiceClient.GetWebDataStreamAsync(name);
GetWebDataStreamAsync(String, CancellationToken)
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.
Declaration
public virtual Task<WebDataStream> GetWebDataStreamAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The name of the web data stream to lookup. Format: properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/webDataStreams/[WEB_DATA_STREAM]";
// Make the request
WebDataStream response = await analyticsAdminServiceClient.GetWebDataStreamAsync(name);
ListAccounts(ListAccountsRequest, CallSettings)
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.
Declaration
public virtual PagedEnumerable<ListAccountsResponse, Account> ListAccounts(ListAccountsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAccountsRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListAccountsResponse, Account> | A pageable sequence of Account resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ListAccountsRequest request = new ListAccountsRequest { ShowDeleted = false, };
// Make the request
PagedEnumerable<ListAccountsResponse, Account> response = analyticsAdminServiceClient.ListAccounts(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Account item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAccountsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Account item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Account> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Account item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAccountsAsync(ListAccountsRequest, CallSettings)
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.
Declaration
public virtual PagedAsyncEnumerable<ListAccountsResponse, Account> ListAccountsAsync(ListAccountsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAccountsRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListAccountsResponse, Account> | A pageable asynchronous sequence of Account resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ListAccountsRequest request = new ListAccountsRequest { ShowDeleted = false, };
// Make the request
PagedAsyncEnumerable<ListAccountsResponse, Account> response = analyticsAdminServiceClient.ListAccountsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Account item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAccountsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Account item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Account> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Account item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAccountSummaries(ListAccountSummariesRequest, CallSettings)
Returns summaries of all accounts accessible by the caller.
Declaration
public virtual PagedEnumerable<ListAccountSummariesResponse, AccountSummary> ListAccountSummaries(ListAccountSummariesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAccountSummariesRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListAccountSummariesResponse, AccountSummary> | A pageable sequence of AccountSummary resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ListAccountSummariesRequest request = new ListAccountSummariesRequest { };
// Make the request
PagedEnumerable<ListAccountSummariesResponse, AccountSummary> response = analyticsAdminServiceClient.ListAccountSummaries(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (AccountSummary item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAccountSummariesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AccountSummary item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccountSummary> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccountSummary item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAccountSummariesAsync(ListAccountSummariesRequest, CallSettings)
Returns summaries of all accounts accessible by the caller.
Declaration
public virtual PagedAsyncEnumerable<ListAccountSummariesResponse, AccountSummary> ListAccountSummariesAsync(ListAccountSummariesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAccountSummariesRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListAccountSummariesResponse, AccountSummary> | A pageable asynchronous sequence of AccountSummary resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ListAccountSummariesRequest request = new ListAccountSummariesRequest { };
// Make the request
PagedAsyncEnumerable<ListAccountSummariesResponse, AccountSummary> response = analyticsAdminServiceClient.ListAccountSummariesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AccountSummary item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAccountSummariesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AccountSummary item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccountSummary> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccountSummary item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAndroidAppDataStreams(ListAndroidAppDataStreamsRequest, CallSettings)
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.
Declaration
public virtual PagedEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> ListAndroidAppDataStreams(ListAndroidAppDataStreamsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAndroidAppDataStreamsRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> | A pageable sequence of AndroidAppDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ListAndroidAppDataStreamsRequest request = new ListAndroidAppDataStreamsRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> response = analyticsAdminServiceClient.ListAndroidAppDataStreams(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (AndroidAppDataStream item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAndroidAppDataStreamsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AndroidAppDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AndroidAppDataStream> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AndroidAppDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAndroidAppDataStreams(PropertyName, String, Nullable<Int32>, CallSettings)
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.
Declaration
public virtual PagedEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> ListAndroidAppDataStreams(PropertyName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. The name of the parent property. For example, to limit results to app streams under the property with Id 123: "properties/123" |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> | A pageable sequence of AndroidAppDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> response = analyticsAdminServiceClient.ListAndroidAppDataStreams(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (AndroidAppDataStream item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAndroidAppDataStreamsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AndroidAppDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AndroidAppDataStream> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AndroidAppDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAndroidAppDataStreams(String, String, Nullable<Int32>, CallSettings)
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.
Declaration
public virtual PagedEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> ListAndroidAppDataStreams(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The name of the parent property. For example, to limit results to app streams under the property with Id 123: "properties/123" |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> | A pageable sequence of AndroidAppDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> response = analyticsAdminServiceClient.ListAndroidAppDataStreams(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (AndroidAppDataStream item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAndroidAppDataStreamsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AndroidAppDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AndroidAppDataStream> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AndroidAppDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAndroidAppDataStreamsAsync(ListAndroidAppDataStreamsRequest, CallSettings)
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.
Declaration
public virtual PagedAsyncEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> ListAndroidAppDataStreamsAsync(ListAndroidAppDataStreamsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAndroidAppDataStreamsRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> | A pageable asynchronous sequence of AndroidAppDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ListAndroidAppDataStreamsRequest request = new ListAndroidAppDataStreamsRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedAsyncEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> response = analyticsAdminServiceClient.ListAndroidAppDataStreamsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AndroidAppDataStream item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAndroidAppDataStreamsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AndroidAppDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AndroidAppDataStream> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AndroidAppDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAndroidAppDataStreamsAsync(PropertyName, String, Nullable<Int32>, CallSettings)
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.
Declaration
public virtual PagedAsyncEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> ListAndroidAppDataStreamsAsync(PropertyName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. The name of the parent property. For example, to limit results to app streams under the property with Id 123: "properties/123" |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> | A pageable asynchronous sequence of AndroidAppDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedAsyncEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> response = analyticsAdminServiceClient.ListAndroidAppDataStreamsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AndroidAppDataStream item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAndroidAppDataStreamsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AndroidAppDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AndroidAppDataStream> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AndroidAppDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAndroidAppDataStreamsAsync(String, String, Nullable<Int32>, CallSettings)
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.
Declaration
public virtual PagedAsyncEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> ListAndroidAppDataStreamsAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The name of the parent property. For example, to limit results to app streams under the property with Id 123: "properties/123" |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> | A pageable asynchronous sequence of AndroidAppDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedAsyncEnumerable<ListAndroidAppDataStreamsResponse, AndroidAppDataStream> response = analyticsAdminServiceClient.ListAndroidAppDataStreamsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AndroidAppDataStream item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAndroidAppDataStreamsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AndroidAppDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AndroidAppDataStream> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AndroidAppDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFirebaseLinks(ListFirebaseLinksRequest, CallSettings)
Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Declaration
public virtual ListFirebaseLinksResponse ListFirebaseLinks(ListFirebaseLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListFirebaseLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| ListFirebaseLinksResponse | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ListFirebaseLinksRequest request = new ListFirebaseLinksRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
ListFirebaseLinksResponse response = analyticsAdminServiceClient.ListFirebaseLinks(request);
ListFirebaseLinks(PropertyName, CallSettings)
Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Declaration
public virtual ListFirebaseLinksResponse ListFirebaseLinks(PropertyName parent, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Format: properties/{property_id} Example: properties/1234 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| ListFirebaseLinksResponse | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
ListFirebaseLinksResponse response = analyticsAdminServiceClient.ListFirebaseLinks(parent);
ListFirebaseLinks(String, CallSettings)
Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Declaration
public virtual ListFirebaseLinksResponse ListFirebaseLinks(string parent, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Format: properties/{property_id} Example: properties/1234 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| ListFirebaseLinksResponse | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
ListFirebaseLinksResponse response = analyticsAdminServiceClient.ListFirebaseLinks(parent);
ListFirebaseLinksAsync(ListFirebaseLinksRequest, CallSettings)
Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Declaration
public virtual Task<ListFirebaseLinksResponse> ListFirebaseLinksAsync(ListFirebaseLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListFirebaseLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ListFirebaseLinksResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ListFirebaseLinksRequest request = new ListFirebaseLinksRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
ListFirebaseLinksResponse response = await analyticsAdminServiceClient.ListFirebaseLinksAsync(request);
ListFirebaseLinksAsync(ListFirebaseLinksRequest, CancellationToken)
Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Declaration
public virtual Task<ListFirebaseLinksResponse> ListFirebaseLinksAsync(ListFirebaseLinksRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| ListFirebaseLinksRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ListFirebaseLinksResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ListFirebaseLinksRequest request = new ListFirebaseLinksRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
ListFirebaseLinksResponse response = await analyticsAdminServiceClient.ListFirebaseLinksAsync(request);
ListFirebaseLinksAsync(PropertyName, CallSettings)
Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Declaration
public virtual Task<ListFirebaseLinksResponse> ListFirebaseLinksAsync(PropertyName parent, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Format: properties/{property_id} Example: properties/1234 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ListFirebaseLinksResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
ListFirebaseLinksResponse response = await analyticsAdminServiceClient.ListFirebaseLinksAsync(parent);
ListFirebaseLinksAsync(PropertyName, CancellationToken)
Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Declaration
public virtual Task<ListFirebaseLinksResponse> ListFirebaseLinksAsync(PropertyName parent, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Format: properties/{property_id} Example: properties/1234 |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ListFirebaseLinksResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
ListFirebaseLinksResponse response = await analyticsAdminServiceClient.ListFirebaseLinksAsync(parent);
ListFirebaseLinksAsync(String, CallSettings)
Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Declaration
public virtual Task<ListFirebaseLinksResponse> ListFirebaseLinksAsync(string parent, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Format: properties/{property_id} Example: properties/1234 |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ListFirebaseLinksResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
ListFirebaseLinksResponse response = await analyticsAdminServiceClient.ListFirebaseLinksAsync(parent);
ListFirebaseLinksAsync(String, CancellationToken)
Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Declaration
public virtual Task<ListFirebaseLinksResponse> ListFirebaseLinksAsync(string parent, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Format: properties/{property_id} Example: properties/1234 |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ListFirebaseLinksResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
ListFirebaseLinksResponse response = await analyticsAdminServiceClient.ListFirebaseLinksAsync(parent);
ListGoogleAdsLinks(ListGoogleAdsLinksRequest, CallSettings)
Lists GoogleAdsLinks on a property.
Declaration
public virtual PagedEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> ListGoogleAdsLinks(ListGoogleAdsLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListGoogleAdsLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> | A pageable sequence of GoogleAdsLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ListGoogleAdsLinksRequest request = new ListGoogleAdsLinksRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> response = analyticsAdminServiceClient.ListGoogleAdsLinks(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (GoogleAdsLink item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGoogleAdsLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GoogleAdsLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GoogleAdsLink> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GoogleAdsLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListGoogleAdsLinks(PropertyName, String, Nullable<Int32>, CallSettings)
Lists GoogleAdsLinks on a property.
Declaration
public virtual PagedEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> ListGoogleAdsLinks(PropertyName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Example format: properties/1234 |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> | A pageable sequence of GoogleAdsLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> response = analyticsAdminServiceClient.ListGoogleAdsLinks(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (GoogleAdsLink item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGoogleAdsLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GoogleAdsLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GoogleAdsLink> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GoogleAdsLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListGoogleAdsLinks(String, String, Nullable<Int32>, CallSettings)
Lists GoogleAdsLinks on a property.
Declaration
public virtual PagedEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> ListGoogleAdsLinks(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Example format: properties/1234 |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> | A pageable sequence of GoogleAdsLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> response = analyticsAdminServiceClient.ListGoogleAdsLinks(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (GoogleAdsLink item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGoogleAdsLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GoogleAdsLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GoogleAdsLink> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GoogleAdsLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListGoogleAdsLinksAsync(ListGoogleAdsLinksRequest, CallSettings)
Lists GoogleAdsLinks on a property.
Declaration
public virtual PagedAsyncEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> ListGoogleAdsLinksAsync(ListGoogleAdsLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListGoogleAdsLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> | A pageable asynchronous sequence of GoogleAdsLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ListGoogleAdsLinksRequest request = new ListGoogleAdsLinksRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedAsyncEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> response = analyticsAdminServiceClient.ListGoogleAdsLinksAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((GoogleAdsLink item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGoogleAdsLinksResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GoogleAdsLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GoogleAdsLink> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GoogleAdsLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListGoogleAdsLinksAsync(PropertyName, String, Nullable<Int32>, CallSettings)
Lists GoogleAdsLinks on a property.
Declaration
public virtual PagedAsyncEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> ListGoogleAdsLinksAsync(PropertyName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Example format: properties/1234 |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> | A pageable asynchronous sequence of GoogleAdsLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedAsyncEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> response = analyticsAdminServiceClient.ListGoogleAdsLinksAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((GoogleAdsLink item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGoogleAdsLinksResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GoogleAdsLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GoogleAdsLink> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GoogleAdsLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListGoogleAdsLinksAsync(String, String, Nullable<Int32>, CallSettings)
Lists GoogleAdsLinks on a property.
Declaration
public virtual PagedAsyncEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> ListGoogleAdsLinksAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Example format: properties/1234 |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> | A pageable asynchronous sequence of GoogleAdsLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedAsyncEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> response = analyticsAdminServiceClient.ListGoogleAdsLinksAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((GoogleAdsLink item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGoogleAdsLinksResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (GoogleAdsLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GoogleAdsLink> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GoogleAdsLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListIosAppDataStreams(ListIosAppDataStreamsRequest, CallSettings)
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.
Declaration
public virtual PagedEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> ListIosAppDataStreams(ListIosAppDataStreamsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListIosAppDataStreamsRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> | A pageable sequence of IosAppDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ListIosAppDataStreamsRequest request = new ListIosAppDataStreamsRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> response = analyticsAdminServiceClient.ListIosAppDataStreams(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (IosAppDataStream item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListIosAppDataStreamsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (IosAppDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<IosAppDataStream> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (IosAppDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListIosAppDataStreams(PropertyName, String, Nullable<Int32>, CallSettings)
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.
Declaration
public virtual PagedEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> ListIosAppDataStreams(PropertyName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. The name of the parent property. For example, to list results of app streams under the property with Id 123: "properties/123" |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> | A pageable sequence of IosAppDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> response = analyticsAdminServiceClient.ListIosAppDataStreams(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (IosAppDataStream item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListIosAppDataStreamsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (IosAppDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<IosAppDataStream> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (IosAppDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListIosAppDataStreams(String, String, Nullable<Int32>, CallSettings)
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.
Declaration
public virtual PagedEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> ListIosAppDataStreams(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The name of the parent property. For example, to list results of app streams under the property with Id 123: "properties/123" |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> | A pageable sequence of IosAppDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> response = analyticsAdminServiceClient.ListIosAppDataStreams(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (IosAppDataStream item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListIosAppDataStreamsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (IosAppDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<IosAppDataStream> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (IosAppDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListIosAppDataStreamsAsync(ListIosAppDataStreamsRequest, CallSettings)
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.
Declaration
public virtual PagedAsyncEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> ListIosAppDataStreamsAsync(ListIosAppDataStreamsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListIosAppDataStreamsRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> | A pageable asynchronous sequence of IosAppDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ListIosAppDataStreamsRequest request = new ListIosAppDataStreamsRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedAsyncEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> response = analyticsAdminServiceClient.ListIosAppDataStreamsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((IosAppDataStream item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListIosAppDataStreamsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (IosAppDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<IosAppDataStream> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (IosAppDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListIosAppDataStreamsAsync(PropertyName, String, Nullable<Int32>, CallSettings)
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.
Declaration
public virtual PagedAsyncEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> ListIosAppDataStreamsAsync(PropertyName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. The name of the parent property. For example, to list results of app streams under the property with Id 123: "properties/123" |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> | A pageable asynchronous sequence of IosAppDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedAsyncEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> response = analyticsAdminServiceClient.ListIosAppDataStreamsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((IosAppDataStream item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListIosAppDataStreamsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (IosAppDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<IosAppDataStream> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (IosAppDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListIosAppDataStreamsAsync(String, String, Nullable<Int32>, CallSettings)
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.
Declaration
public virtual PagedAsyncEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> ListIosAppDataStreamsAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The name of the parent property. For example, to list results of app streams under the property with Id 123: "properties/123" |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> | A pageable asynchronous sequence of IosAppDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedAsyncEnumerable<ListIosAppDataStreamsResponse, IosAppDataStream> response = analyticsAdminServiceClient.ListIosAppDataStreamsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((IosAppDataStream item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListIosAppDataStreamsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (IosAppDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<IosAppDataStream> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (IosAppDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListProperties(ListPropertiesRequest, CallSettings)
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.
Declaration
public virtual PagedEnumerable<ListPropertiesResponse, Property> ListProperties(ListPropertiesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListPropertiesRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListPropertiesResponse, Property> | A pageable sequence of Property resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ListPropertiesRequest request = new ListPropertiesRequest
{
Filter = "",
ShowDeleted = false,
};
// Make the request
PagedEnumerable<ListPropertiesResponse, Property> response = analyticsAdminServiceClient.ListProperties(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Property item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListPropertiesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Property item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Property> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Property item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListPropertiesAsync(ListPropertiesRequest, CallSettings)
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.
Declaration
public virtual PagedAsyncEnumerable<ListPropertiesResponse, Property> ListPropertiesAsync(ListPropertiesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListPropertiesRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListPropertiesResponse, Property> | A pageable asynchronous sequence of Property resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ListPropertiesRequest request = new ListPropertiesRequest
{
Filter = "",
ShowDeleted = false,
};
// Make the request
PagedAsyncEnumerable<ListPropertiesResponse, Property> response = analyticsAdminServiceClient.ListPropertiesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Property item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPropertiesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Property item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Property> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Property item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUserLinks(AccountName, String, Nullable<Int32>, CallSettings)
Lists all user links on an account or property.
Declaration
public virtual PagedEnumerable<ListUserLinksResponse, UserLink> ListUserLinks(AccountName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AccountName | parent | Required. Example format: accounts/1234 |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListUserLinksResponse, UserLink> | A pageable sequence of UserLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
AccountName parent = AccountName.FromAccount("[ACCOUNT]");
// Make the request
PagedEnumerable<ListUserLinksResponse, UserLink> response = analyticsAdminServiceClient.ListUserLinks(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (UserLink item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUserLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (UserLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UserLink> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UserLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUserLinks(ListUserLinksRequest, CallSettings)
Lists all user links on an account or property.
Declaration
public virtual PagedEnumerable<ListUserLinksResponse, UserLink> ListUserLinks(ListUserLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListUserLinksResponse, UserLink> | A pageable sequence of UserLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ListUserLinksRequest request = new ListUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
};
// Make the request
PagedEnumerable<ListUserLinksResponse, UserLink> response = analyticsAdminServiceClient.ListUserLinks(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (UserLink item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUserLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (UserLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UserLink> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UserLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUserLinks(PropertyName, String, Nullable<Int32>, CallSettings)
Lists all user links on an account or property.
Declaration
public virtual PagedEnumerable<ListUserLinksResponse, UserLink> ListUserLinks(PropertyName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Example format: accounts/1234 |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListUserLinksResponse, UserLink> | A pageable sequence of UserLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedEnumerable<ListUserLinksResponse, UserLink> response = analyticsAdminServiceClient.ListUserLinks(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (UserLink item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUserLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (UserLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UserLink> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UserLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUserLinks(String, String, Nullable<Int32>, CallSettings)
Lists all user links on an account or property.
Declaration
public virtual PagedEnumerable<ListUserLinksResponse, UserLink> ListUserLinks(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Example format: accounts/1234 |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListUserLinksResponse, UserLink> | A pageable sequence of UserLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "accounts/[ACCOUNT]";
// Make the request
PagedEnumerable<ListUserLinksResponse, UserLink> response = analyticsAdminServiceClient.ListUserLinks(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (UserLink item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListUserLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (UserLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UserLink> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UserLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUserLinksAsync(AccountName, String, Nullable<Int32>, CallSettings)
Lists all user links on an account or property.
Declaration
public virtual PagedAsyncEnumerable<ListUserLinksResponse, UserLink> ListUserLinksAsync(AccountName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AccountName | parent | Required. Example format: accounts/1234 |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListUserLinksResponse, UserLink> | A pageable asynchronous sequence of UserLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AccountName parent = AccountName.FromAccount("[ACCOUNT]");
// Make the request
PagedAsyncEnumerable<ListUserLinksResponse, UserLink> response = analyticsAdminServiceClient.ListUserLinksAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((UserLink item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListUserLinksResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (UserLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UserLink> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UserLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUserLinksAsync(ListUserLinksRequest, CallSettings)
Lists all user links on an account or property.
Declaration
public virtual PagedAsyncEnumerable<ListUserLinksResponse, UserLink> ListUserLinksAsync(ListUserLinksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListUserLinksRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListUserLinksResponse, UserLink> | A pageable asynchronous sequence of UserLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ListUserLinksRequest request = new ListUserLinksRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
};
// Make the request
PagedAsyncEnumerable<ListUserLinksResponse, UserLink> response = analyticsAdminServiceClient.ListUserLinksAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((UserLink item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListUserLinksResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (UserLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UserLink> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UserLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUserLinksAsync(PropertyName, String, Nullable<Int32>, CallSettings)
Lists all user links on an account or property.
Declaration
public virtual PagedAsyncEnumerable<ListUserLinksResponse, UserLink> ListUserLinksAsync(PropertyName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. Example format: accounts/1234 |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListUserLinksResponse, UserLink> | A pageable asynchronous sequence of UserLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedAsyncEnumerable<ListUserLinksResponse, UserLink> response = analyticsAdminServiceClient.ListUserLinksAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((UserLink item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListUserLinksResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (UserLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UserLink> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UserLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListUserLinksAsync(String, String, Nullable<Int32>, CallSettings)
Lists all user links on an account or property.
Declaration
public virtual PagedAsyncEnumerable<ListUserLinksResponse, UserLink> ListUserLinksAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. Example format: accounts/1234 |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListUserLinksResponse, UserLink> | A pageable asynchronous sequence of UserLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "accounts/[ACCOUNT]";
// Make the request
PagedAsyncEnumerable<ListUserLinksResponse, UserLink> response = analyticsAdminServiceClient.ListUserLinksAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((UserLink item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListUserLinksResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (UserLink item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<UserLink> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (UserLink item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListWebDataStreams(ListWebDataStreamsRequest, CallSettings)
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.
Declaration
public virtual PagedEnumerable<ListWebDataStreamsResponse, WebDataStream> ListWebDataStreams(ListWebDataStreamsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListWebDataStreamsRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListWebDataStreamsResponse, WebDataStream> | A pageable sequence of WebDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ListWebDataStreamsRequest request = new ListWebDataStreamsRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedEnumerable<ListWebDataStreamsResponse, WebDataStream> response = analyticsAdminServiceClient.ListWebDataStreams(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (WebDataStream item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListWebDataStreamsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (WebDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<WebDataStream> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (WebDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListWebDataStreams(PropertyName, String, Nullable<Int32>, CallSettings)
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.
Declaration
public virtual PagedEnumerable<ListWebDataStreamsResponse, WebDataStream> ListWebDataStreams(PropertyName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. The name of the parent property. For example, to list results of web streams under the property with Id 123: "properties/123" |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListWebDataStreamsResponse, WebDataStream> | A pageable sequence of WebDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedEnumerable<ListWebDataStreamsResponse, WebDataStream> response = analyticsAdminServiceClient.ListWebDataStreams(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (WebDataStream item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListWebDataStreamsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (WebDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<WebDataStream> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (WebDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListWebDataStreams(String, String, Nullable<Int32>, CallSettings)
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.
Declaration
public virtual PagedEnumerable<ListWebDataStreamsResponse, WebDataStream> ListWebDataStreams(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The name of the parent property. For example, to list results of web streams under the property with Id 123: "properties/123" |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedEnumerable<ListWebDataStreamsResponse, WebDataStream> | A pageable sequence of WebDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedEnumerable<ListWebDataStreamsResponse, WebDataStream> response = analyticsAdminServiceClient.ListWebDataStreams(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (WebDataStream item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListWebDataStreamsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (WebDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<WebDataStream> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (WebDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListWebDataStreamsAsync(ListWebDataStreamsRequest, CallSettings)
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.
Declaration
public virtual PagedAsyncEnumerable<ListWebDataStreamsResponse, WebDataStream> ListWebDataStreamsAsync(ListWebDataStreamsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListWebDataStreamsRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListWebDataStreamsResponse, WebDataStream> | A pageable asynchronous sequence of WebDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ListWebDataStreamsRequest request = new ListWebDataStreamsRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedAsyncEnumerable<ListWebDataStreamsResponse, WebDataStream> response = analyticsAdminServiceClient.ListWebDataStreamsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((WebDataStream item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListWebDataStreamsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (WebDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<WebDataStream> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (WebDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListWebDataStreamsAsync(PropertyName, String, Nullable<Int32>, CallSettings)
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.
Declaration
public virtual PagedAsyncEnumerable<ListWebDataStreamsResponse, WebDataStream> ListWebDataStreamsAsync(PropertyName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyName | parent | Required. The name of the parent property. For example, to list results of web streams under the property with Id 123: "properties/123" |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListWebDataStreamsResponse, WebDataStream> | A pageable asynchronous sequence of WebDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedAsyncEnumerable<ListWebDataStreamsResponse, WebDataStream> response = analyticsAdminServiceClient.ListWebDataStreamsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((WebDataStream item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListWebDataStreamsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (WebDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<WebDataStream> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (WebDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListWebDataStreamsAsync(String, String, Nullable<Int32>, CallSettings)
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.
Declaration
public virtual PagedAsyncEnumerable<ListWebDataStreamsResponse, WebDataStream> ListWebDataStreamsAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | Required. The name of the parent property. For example, to list results of web streams under the property with Id 123: "properties/123" |
| System.String | pageToken | The token returned from the previous request. A value of |
| System.Nullable<System.Int32> | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Google.Api.Gax.PagedAsyncEnumerable<ListWebDataStreamsResponse, WebDataStream> | A pageable asynchronous sequence of WebDataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedAsyncEnumerable<ListWebDataStreamsResponse, WebDataStream> response = analyticsAdminServiceClient.ListWebDataStreamsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((WebDataStream item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListWebDataStreamsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (WebDataStream item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<WebDataStream> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (WebDataStream item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ProvisionAccountTicket(ProvisionAccountTicketRequest, CallSettings)
Requests a ticket for creating an account.
Declaration
public virtual ProvisionAccountTicketResponse ProvisionAccountTicket(ProvisionAccountTicketRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ProvisionAccountTicketRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| ProvisionAccountTicketResponse | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ProvisionAccountTicketRequest request = new ProvisionAccountTicketRequest
{
Account = new Account(),
RedirectUri = "",
};
// Make the request
ProvisionAccountTicketResponse response = analyticsAdminServiceClient.ProvisionAccountTicket(request);
ProvisionAccountTicketAsync(ProvisionAccountTicketRequest, CallSettings)
Requests a ticket for creating an account.
Declaration
public virtual Task<ProvisionAccountTicketResponse> ProvisionAccountTicketAsync(ProvisionAccountTicketRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ProvisionAccountTicketRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ProvisionAccountTicketResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ProvisionAccountTicketRequest request = new ProvisionAccountTicketRequest
{
Account = new Account(),
RedirectUri = "",
};
// Make the request
ProvisionAccountTicketResponse response = await analyticsAdminServiceClient.ProvisionAccountTicketAsync(request);
ProvisionAccountTicketAsync(ProvisionAccountTicketRequest, CancellationToken)
Requests a ticket for creating an account.
Declaration
public virtual Task<ProvisionAccountTicketResponse> ProvisionAccountTicketAsync(ProvisionAccountTicketRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| ProvisionAccountTicketRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ProvisionAccountTicketResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ProvisionAccountTicketRequest request = new ProvisionAccountTicketRequest
{
Account = new Account(),
RedirectUri = "",
};
// Make the request
ProvisionAccountTicketResponse response = await analyticsAdminServiceClient.ProvisionAccountTicketAsync(request);
ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Declaration
public static Task ShutdownDefaultChannelsAsync()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task | A task representing the asynchronous shutdown operation. |
Remarks
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateAccount(Account, FieldMask, CallSettings)
Updates an account.
Declaration
public virtual Account UpdateAccount(Account account, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Account | account | Required. The account to update.
The account's |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Account | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
Account account = new Account();
FieldMask updateMask = new FieldMask();
// Make the request
Account response = analyticsAdminServiceClient.UpdateAccount(account, updateMask);
UpdateAccount(UpdateAccountRequest, CallSettings)
Updates an account.
Declaration
public virtual Account UpdateAccount(UpdateAccountRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAccountRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Account | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
UpdateAccountRequest request = new UpdateAccountRequest
{
Account = new Account(),
UpdateMask = new FieldMask(),
};
// Make the request
Account response = analyticsAdminServiceClient.UpdateAccount(request);
UpdateAccountAsync(Account, FieldMask, CallSettings)
Updates an account.
Declaration
public virtual Task<Account> UpdateAccountAsync(Account account, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Account | account | Required. The account to update.
The account's |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Account> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
Account account = new Account();
FieldMask updateMask = new FieldMask();
// Make the request
Account response = await analyticsAdminServiceClient.UpdateAccountAsync(account, updateMask);
UpdateAccountAsync(Account, FieldMask, CancellationToken)
Updates an account.
Declaration
public virtual Task<Account> UpdateAccountAsync(Account account, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| Account | account | Required. The account to update.
The account's |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Account> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
Account account = new Account();
FieldMask updateMask = new FieldMask();
// Make the request
Account response = await analyticsAdminServiceClient.UpdateAccountAsync(account, updateMask);
UpdateAccountAsync(UpdateAccountRequest, CallSettings)
Updates an account.
Declaration
public virtual Task<Account> UpdateAccountAsync(UpdateAccountRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAccountRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Account> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateAccountRequest request = new UpdateAccountRequest
{
Account = new Account(),
UpdateMask = new FieldMask(),
};
// Make the request
Account response = await analyticsAdminServiceClient.UpdateAccountAsync(request);
UpdateAccountAsync(UpdateAccountRequest, CancellationToken)
Updates an account.
Declaration
public virtual Task<Account> UpdateAccountAsync(UpdateAccountRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAccountRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Account> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateAccountRequest request = new UpdateAccountRequest
{
Account = new Account(),
UpdateMask = new FieldMask(),
};
// Make the request
Account response = await analyticsAdminServiceClient.UpdateAccountAsync(request);
UpdateAndroidAppDataStream(AndroidAppDataStream, FieldMask, CallSettings)
Updates an android app stream on a property.
Declaration
public virtual AndroidAppDataStream UpdateAndroidAppDataStream(AndroidAppDataStream androidAppDataStream, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AndroidAppDataStream | androidAppDataStream | Required. The android app stream to update.
The |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| AndroidAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
AndroidAppDataStream androidAppDataStream = new AndroidAppDataStream();
FieldMask updateMask = new FieldMask();
// Make the request
AndroidAppDataStream response = analyticsAdminServiceClient.UpdateAndroidAppDataStream(androidAppDataStream, updateMask);
UpdateAndroidAppDataStream(UpdateAndroidAppDataStreamRequest, CallSettings)
Updates an android app stream on a property.
Declaration
public virtual AndroidAppDataStream UpdateAndroidAppDataStream(UpdateAndroidAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAndroidAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| AndroidAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
UpdateAndroidAppDataStreamRequest request = new UpdateAndroidAppDataStreamRequest
{
AndroidAppDataStream = new AndroidAppDataStream(),
UpdateMask = new FieldMask(),
};
// Make the request
AndroidAppDataStream response = analyticsAdminServiceClient.UpdateAndroidAppDataStream(request);
UpdateAndroidAppDataStreamAsync(AndroidAppDataStream, FieldMask, CallSettings)
Updates an android app stream on a property.
Declaration
public virtual Task<AndroidAppDataStream> UpdateAndroidAppDataStreamAsync(AndroidAppDataStream androidAppDataStream, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AndroidAppDataStream | androidAppDataStream | Required. The android app stream to update.
The |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AndroidAppDataStream androidAppDataStream = new AndroidAppDataStream();
FieldMask updateMask = new FieldMask();
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.UpdateAndroidAppDataStreamAsync(androidAppDataStream, updateMask);
UpdateAndroidAppDataStreamAsync(AndroidAppDataStream, FieldMask, CancellationToken)
Updates an android app stream on a property.
Declaration
public virtual Task<AndroidAppDataStream> UpdateAndroidAppDataStreamAsync(AndroidAppDataStream androidAppDataStream, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| AndroidAppDataStream | androidAppDataStream | Required. The android app stream to update.
The |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AndroidAppDataStream androidAppDataStream = new AndroidAppDataStream();
FieldMask updateMask = new FieldMask();
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.UpdateAndroidAppDataStreamAsync(androidAppDataStream, updateMask);
UpdateAndroidAppDataStreamAsync(UpdateAndroidAppDataStreamRequest, CallSettings)
Updates an android app stream on a property.
Declaration
public virtual Task<AndroidAppDataStream> UpdateAndroidAppDataStreamAsync(UpdateAndroidAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAndroidAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateAndroidAppDataStreamRequest request = new UpdateAndroidAppDataStreamRequest
{
AndroidAppDataStream = new AndroidAppDataStream(),
UpdateMask = new FieldMask(),
};
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.UpdateAndroidAppDataStreamAsync(request);
UpdateAndroidAppDataStreamAsync(UpdateAndroidAppDataStreamRequest, CancellationToken)
Updates an android app stream on a property.
Declaration
public virtual Task<AndroidAppDataStream> UpdateAndroidAppDataStreamAsync(UpdateAndroidAppDataStreamRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateAndroidAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<AndroidAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateAndroidAppDataStreamRequest request = new UpdateAndroidAppDataStreamRequest
{
AndroidAppDataStream = new AndroidAppDataStream(),
UpdateMask = new FieldMask(),
};
// Make the request
AndroidAppDataStream response = await analyticsAdminServiceClient.UpdateAndroidAppDataStreamAsync(request);
UpdateEnhancedMeasurementSettings(EnhancedMeasurementSettings, FieldMask, CallSettings)
Updates the singleton enhanced measurement settings for this web stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Declaration
public virtual EnhancedMeasurementSettings UpdateEnhancedMeasurementSettings(EnhancedMeasurementSettings enhancedMeasurementSettings, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| EnhancedMeasurementSettings | enhancedMeasurementSettings | Required. The settings to update.
The |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| EnhancedMeasurementSettings | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
EnhancedMeasurementSettings enhancedMeasurementSettings = new EnhancedMeasurementSettings();
FieldMask updateMask = new FieldMask();
// Make the request
EnhancedMeasurementSettings response = analyticsAdminServiceClient.UpdateEnhancedMeasurementSettings(enhancedMeasurementSettings, updateMask);
UpdateEnhancedMeasurementSettings(UpdateEnhancedMeasurementSettingsRequest, CallSettings)
Updates the singleton enhanced measurement settings for this web stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Declaration
public virtual EnhancedMeasurementSettings UpdateEnhancedMeasurementSettings(UpdateEnhancedMeasurementSettingsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateEnhancedMeasurementSettingsRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| EnhancedMeasurementSettings | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
UpdateEnhancedMeasurementSettingsRequest request = new UpdateEnhancedMeasurementSettingsRequest
{
EnhancedMeasurementSettings = new EnhancedMeasurementSettings(),
UpdateMask = new FieldMask(),
};
// Make the request
EnhancedMeasurementSettings response = analyticsAdminServiceClient.UpdateEnhancedMeasurementSettings(request);
UpdateEnhancedMeasurementSettingsAsync(EnhancedMeasurementSettings, FieldMask, CallSettings)
Updates the singleton enhanced measurement settings for this web stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Declaration
public virtual Task<EnhancedMeasurementSettings> UpdateEnhancedMeasurementSettingsAsync(EnhancedMeasurementSettings enhancedMeasurementSettings, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| EnhancedMeasurementSettings | enhancedMeasurementSettings | Required. The settings to update.
The |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<EnhancedMeasurementSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
EnhancedMeasurementSettings enhancedMeasurementSettings = new EnhancedMeasurementSettings();
FieldMask updateMask = new FieldMask();
// Make the request
EnhancedMeasurementSettings response = await analyticsAdminServiceClient.UpdateEnhancedMeasurementSettingsAsync(enhancedMeasurementSettings, updateMask);
UpdateEnhancedMeasurementSettingsAsync(EnhancedMeasurementSettings, FieldMask, CancellationToken)
Updates the singleton enhanced measurement settings for this web stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Declaration
public virtual Task<EnhancedMeasurementSettings> UpdateEnhancedMeasurementSettingsAsync(EnhancedMeasurementSettings enhancedMeasurementSettings, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| EnhancedMeasurementSettings | enhancedMeasurementSettings | Required. The settings to update.
The |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<EnhancedMeasurementSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
EnhancedMeasurementSettings enhancedMeasurementSettings = new EnhancedMeasurementSettings();
FieldMask updateMask = new FieldMask();
// Make the request
EnhancedMeasurementSettings response = await analyticsAdminServiceClient.UpdateEnhancedMeasurementSettingsAsync(enhancedMeasurementSettings, updateMask);
UpdateEnhancedMeasurementSettingsAsync(UpdateEnhancedMeasurementSettingsRequest, CallSettings)
Updates the singleton enhanced measurement settings for this web stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Declaration
public virtual Task<EnhancedMeasurementSettings> UpdateEnhancedMeasurementSettingsAsync(UpdateEnhancedMeasurementSettingsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateEnhancedMeasurementSettingsRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<EnhancedMeasurementSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateEnhancedMeasurementSettingsRequest request = new UpdateEnhancedMeasurementSettingsRequest
{
EnhancedMeasurementSettings = new EnhancedMeasurementSettings(),
UpdateMask = new FieldMask(),
};
// Make the request
EnhancedMeasurementSettings response = await analyticsAdminServiceClient.UpdateEnhancedMeasurementSettingsAsync(request);
UpdateEnhancedMeasurementSettingsAsync(UpdateEnhancedMeasurementSettingsRequest, CancellationToken)
Updates the singleton enhanced measurement settings for this web stream. Note that the stream must enable enhanced measurement for these settings to take effect.
Declaration
public virtual Task<EnhancedMeasurementSettings> UpdateEnhancedMeasurementSettingsAsync(UpdateEnhancedMeasurementSettingsRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateEnhancedMeasurementSettingsRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<EnhancedMeasurementSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateEnhancedMeasurementSettingsRequest request = new UpdateEnhancedMeasurementSettingsRequest
{
EnhancedMeasurementSettings = new EnhancedMeasurementSettings(),
UpdateMask = new FieldMask(),
};
// Make the request
EnhancedMeasurementSettings response = await analyticsAdminServiceClient.UpdateEnhancedMeasurementSettingsAsync(request);
UpdateFirebaseLink(FirebaseLink, FieldMask, CallSettings)
Updates a FirebaseLink on a property
Declaration
public virtual FirebaseLink UpdateFirebaseLink(FirebaseLink firebaseLink, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| FirebaseLink | firebaseLink | Required. The Firebase link to update. |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| FirebaseLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
FirebaseLink firebaseLink = new FirebaseLink();
FieldMask updateMask = new FieldMask();
// Make the request
FirebaseLink response = analyticsAdminServiceClient.UpdateFirebaseLink(firebaseLink, updateMask);
UpdateFirebaseLink(UpdateFirebaseLinkRequest, CallSettings)
Updates a FirebaseLink on a property
Declaration
public virtual FirebaseLink UpdateFirebaseLink(UpdateFirebaseLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateFirebaseLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| FirebaseLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
UpdateFirebaseLinkRequest request = new UpdateFirebaseLinkRequest
{
FirebaseLink = new FirebaseLink(),
UpdateMask = new FieldMask(),
};
// Make the request
FirebaseLink response = analyticsAdminServiceClient.UpdateFirebaseLink(request);
UpdateFirebaseLinkAsync(FirebaseLink, FieldMask, CallSettings)
Updates a FirebaseLink on a property
Declaration
public virtual Task<FirebaseLink> UpdateFirebaseLinkAsync(FirebaseLink firebaseLink, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| FirebaseLink | firebaseLink | Required. The Firebase link to update. |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<FirebaseLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
FirebaseLink firebaseLink = new FirebaseLink();
FieldMask updateMask = new FieldMask();
// Make the request
FirebaseLink response = await analyticsAdminServiceClient.UpdateFirebaseLinkAsync(firebaseLink, updateMask);
UpdateFirebaseLinkAsync(FirebaseLink, FieldMask, CancellationToken)
Updates a FirebaseLink on a property
Declaration
public virtual Task<FirebaseLink> UpdateFirebaseLinkAsync(FirebaseLink firebaseLink, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| FirebaseLink | firebaseLink | Required. The Firebase link to update. |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<FirebaseLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
FirebaseLink firebaseLink = new FirebaseLink();
FieldMask updateMask = new FieldMask();
// Make the request
FirebaseLink response = await analyticsAdminServiceClient.UpdateFirebaseLinkAsync(firebaseLink, updateMask);
UpdateFirebaseLinkAsync(UpdateFirebaseLinkRequest, CallSettings)
Updates a FirebaseLink on a property
Declaration
public virtual Task<FirebaseLink> UpdateFirebaseLinkAsync(UpdateFirebaseLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateFirebaseLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<FirebaseLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateFirebaseLinkRequest request = new UpdateFirebaseLinkRequest
{
FirebaseLink = new FirebaseLink(),
UpdateMask = new FieldMask(),
};
// Make the request
FirebaseLink response = await analyticsAdminServiceClient.UpdateFirebaseLinkAsync(request);
UpdateFirebaseLinkAsync(UpdateFirebaseLinkRequest, CancellationToken)
Updates a FirebaseLink on a property
Declaration
public virtual Task<FirebaseLink> UpdateFirebaseLinkAsync(UpdateFirebaseLinkRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateFirebaseLinkRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<FirebaseLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateFirebaseLinkRequest request = new UpdateFirebaseLinkRequest
{
FirebaseLink = new FirebaseLink(),
UpdateMask = new FieldMask(),
};
// Make the request
FirebaseLink response = await analyticsAdminServiceClient.UpdateFirebaseLinkAsync(request);
UpdateGoogleAdsLink(GoogleAdsLink, FieldMask, CallSettings)
Updates a GoogleAdsLink on a property
Declaration
public virtual GoogleAdsLink UpdateGoogleAdsLink(GoogleAdsLink googleAdsLink, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleAdsLink | googleAdsLink | The GoogleAdsLink to update |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| GoogleAdsLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GoogleAdsLink googleAdsLink = new GoogleAdsLink();
FieldMask updateMask = new FieldMask();
// Make the request
GoogleAdsLink response = analyticsAdminServiceClient.UpdateGoogleAdsLink(googleAdsLink, updateMask);
UpdateGoogleAdsLink(UpdateGoogleAdsLinkRequest, CallSettings)
Updates a GoogleAdsLink on a property
Declaration
public virtual GoogleAdsLink UpdateGoogleAdsLink(UpdateGoogleAdsLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateGoogleAdsLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| GoogleAdsLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
UpdateGoogleAdsLinkRequest request = new UpdateGoogleAdsLinkRequest
{
GoogleAdsLink = new GoogleAdsLink(),
UpdateMask = new FieldMask(),
};
// Make the request
GoogleAdsLink response = analyticsAdminServiceClient.UpdateGoogleAdsLink(request);
UpdateGoogleAdsLinkAsync(GoogleAdsLink, FieldMask, CallSettings)
Updates a GoogleAdsLink on a property
Declaration
public virtual Task<GoogleAdsLink> UpdateGoogleAdsLinkAsync(GoogleAdsLink googleAdsLink, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleAdsLink | googleAdsLink | The GoogleAdsLink to update |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GoogleAdsLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GoogleAdsLink googleAdsLink = new GoogleAdsLink();
FieldMask updateMask = new FieldMask();
// Make the request
GoogleAdsLink response = await analyticsAdminServiceClient.UpdateGoogleAdsLinkAsync(googleAdsLink, updateMask);
UpdateGoogleAdsLinkAsync(GoogleAdsLink, FieldMask, CancellationToken)
Updates a GoogleAdsLink on a property
Declaration
public virtual Task<GoogleAdsLink> UpdateGoogleAdsLinkAsync(GoogleAdsLink googleAdsLink, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleAdsLink | googleAdsLink | The GoogleAdsLink to update |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GoogleAdsLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GoogleAdsLink googleAdsLink = new GoogleAdsLink();
FieldMask updateMask = new FieldMask();
// Make the request
GoogleAdsLink response = await analyticsAdminServiceClient.UpdateGoogleAdsLinkAsync(googleAdsLink, updateMask);
UpdateGoogleAdsLinkAsync(UpdateGoogleAdsLinkRequest, CallSettings)
Updates a GoogleAdsLink on a property
Declaration
public virtual Task<GoogleAdsLink> UpdateGoogleAdsLinkAsync(UpdateGoogleAdsLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateGoogleAdsLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GoogleAdsLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateGoogleAdsLinkRequest request = new UpdateGoogleAdsLinkRequest
{
GoogleAdsLink = new GoogleAdsLink(),
UpdateMask = new FieldMask(),
};
// Make the request
GoogleAdsLink response = await analyticsAdminServiceClient.UpdateGoogleAdsLinkAsync(request);
UpdateGoogleAdsLinkAsync(UpdateGoogleAdsLinkRequest, CancellationToken)
Updates a GoogleAdsLink on a property
Declaration
public virtual Task<GoogleAdsLink> UpdateGoogleAdsLinkAsync(UpdateGoogleAdsLinkRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateGoogleAdsLinkRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GoogleAdsLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateGoogleAdsLinkRequest request = new UpdateGoogleAdsLinkRequest
{
GoogleAdsLink = new GoogleAdsLink(),
UpdateMask = new FieldMask(),
};
// Make the request
GoogleAdsLink response = await analyticsAdminServiceClient.UpdateGoogleAdsLinkAsync(request);
UpdateIosAppDataStream(IosAppDataStream, FieldMask, CallSettings)
Updates an iOS app stream on a property.
Declaration
public virtual IosAppDataStream UpdateIosAppDataStream(IosAppDataStream iosAppDataStream, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IosAppDataStream | iosAppDataStream | Required. The iOS app stream to update.
The |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| IosAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
IosAppDataStream iosAppDataStream = new IosAppDataStream();
FieldMask updateMask = new FieldMask();
// Make the request
IosAppDataStream response = analyticsAdminServiceClient.UpdateIosAppDataStream(iosAppDataStream, updateMask);
UpdateIosAppDataStream(UpdateIosAppDataStreamRequest, CallSettings)
Updates an iOS app stream on a property.
Declaration
public virtual IosAppDataStream UpdateIosAppDataStream(UpdateIosAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateIosAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| IosAppDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
UpdateIosAppDataStreamRequest request = new UpdateIosAppDataStreamRequest
{
IosAppDataStream = new IosAppDataStream(),
UpdateMask = new FieldMask(),
};
// Make the request
IosAppDataStream response = analyticsAdminServiceClient.UpdateIosAppDataStream(request);
UpdateIosAppDataStreamAsync(IosAppDataStream, FieldMask, CallSettings)
Updates an iOS app stream on a property.
Declaration
public virtual Task<IosAppDataStream> UpdateIosAppDataStreamAsync(IosAppDataStream iosAppDataStream, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IosAppDataStream | iosAppDataStream | Required. The iOS app stream to update.
The |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
IosAppDataStream iosAppDataStream = new IosAppDataStream();
FieldMask updateMask = new FieldMask();
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.UpdateIosAppDataStreamAsync(iosAppDataStream, updateMask);
UpdateIosAppDataStreamAsync(IosAppDataStream, FieldMask, CancellationToken)
Updates an iOS app stream on a property.
Declaration
public virtual Task<IosAppDataStream> UpdateIosAppDataStreamAsync(IosAppDataStream iosAppDataStream, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IosAppDataStream | iosAppDataStream | Required. The iOS app stream to update.
The |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
IosAppDataStream iosAppDataStream = new IosAppDataStream();
FieldMask updateMask = new FieldMask();
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.UpdateIosAppDataStreamAsync(iosAppDataStream, updateMask);
UpdateIosAppDataStreamAsync(UpdateIosAppDataStreamRequest, CallSettings)
Updates an iOS app stream on a property.
Declaration
public virtual Task<IosAppDataStream> UpdateIosAppDataStreamAsync(UpdateIosAppDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateIosAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateIosAppDataStreamRequest request = new UpdateIosAppDataStreamRequest
{
IosAppDataStream = new IosAppDataStream(),
UpdateMask = new FieldMask(),
};
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.UpdateIosAppDataStreamAsync(request);
UpdateIosAppDataStreamAsync(UpdateIosAppDataStreamRequest, CancellationToken)
Updates an iOS app stream on a property.
Declaration
public virtual Task<IosAppDataStream> UpdateIosAppDataStreamAsync(UpdateIosAppDataStreamRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateIosAppDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IosAppDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateIosAppDataStreamRequest request = new UpdateIosAppDataStreamRequest
{
IosAppDataStream = new IosAppDataStream(),
UpdateMask = new FieldMask(),
};
// Make the request
IosAppDataStream response = await analyticsAdminServiceClient.UpdateIosAppDataStreamAsync(request);
UpdateProperty(Property, FieldMask, CallSettings)
Updates a property.
Declaration
public virtual Property UpdateProperty(Property property, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Property | property | Required. The property to update.
The property's |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Property | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
Property property = new Property();
FieldMask updateMask = new FieldMask();
// Make the request
Property response = analyticsAdminServiceClient.UpdateProperty(property, updateMask);
UpdateProperty(UpdatePropertyRequest, CallSettings)
Updates a property.
Declaration
public virtual Property UpdateProperty(UpdatePropertyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdatePropertyRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Property | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
UpdatePropertyRequest request = new UpdatePropertyRequest
{
Property = new Property(),
UpdateMask = new FieldMask(),
};
// Make the request
Property response = analyticsAdminServiceClient.UpdateProperty(request);
UpdatePropertyAsync(Property, FieldMask, CallSettings)
Updates a property.
Declaration
public virtual Task<Property> UpdatePropertyAsync(Property property, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Property | property | Required. The property to update.
The property's |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Property> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
Property property = new Property();
FieldMask updateMask = new FieldMask();
// Make the request
Property response = await analyticsAdminServiceClient.UpdatePropertyAsync(property, updateMask);
UpdatePropertyAsync(Property, FieldMask, CancellationToken)
Updates a property.
Declaration
public virtual Task<Property> UpdatePropertyAsync(Property property, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| Property | property | Required. The property to update.
The property's |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Property> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
Property property = new Property();
FieldMask updateMask = new FieldMask();
// Make the request
Property response = await analyticsAdminServiceClient.UpdatePropertyAsync(property, updateMask);
UpdatePropertyAsync(UpdatePropertyRequest, CallSettings)
Updates a property.
Declaration
public virtual Task<Property> UpdatePropertyAsync(UpdatePropertyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdatePropertyRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Property> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdatePropertyRequest request = new UpdatePropertyRequest
{
Property = new Property(),
UpdateMask = new FieldMask(),
};
// Make the request
Property response = await analyticsAdminServiceClient.UpdatePropertyAsync(request);
UpdatePropertyAsync(UpdatePropertyRequest, CancellationToken)
Updates a property.
Declaration
public virtual Task<Property> UpdatePropertyAsync(UpdatePropertyRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdatePropertyRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Property> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdatePropertyRequest request = new UpdatePropertyRequest
{
Property = new Property(),
UpdateMask = new FieldMask(),
};
// Make the request
Property response = await analyticsAdminServiceClient.UpdatePropertyAsync(request);
UpdateUserLink(UpdateUserLinkRequest, CallSettings)
Updates a user link on an account or property.
Declaration
public virtual UserLink UpdateUserLink(UpdateUserLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateUserLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| UserLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
UpdateUserLinkRequest request = new UpdateUserLinkRequest
{
UserLink = new UserLink(),
};
// Make the request
UserLink response = analyticsAdminServiceClient.UpdateUserLink(request);
UpdateUserLink(UserLink, CallSettings)
Updates a user link on an account or property.
Declaration
public virtual UserLink UpdateUserLink(UserLink userLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UserLink | userLink | Required. The user link to update. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| UserLink | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
UserLink userLink = new UserLink();
// Make the request
UserLink response = analyticsAdminServiceClient.UpdateUserLink(userLink);
UpdateUserLinkAsync(UpdateUserLinkRequest, CallSettings)
Updates a user link on an account or property.
Declaration
public virtual Task<UserLink> UpdateUserLinkAsync(UpdateUserLinkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateUserLinkRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateUserLinkRequest request = new UpdateUserLinkRequest
{
UserLink = new UserLink(),
};
// Make the request
UserLink response = await analyticsAdminServiceClient.UpdateUserLinkAsync(request);
UpdateUserLinkAsync(UpdateUserLinkRequest, CancellationToken)
Updates a user link on an account or property.
Declaration
public virtual Task<UserLink> UpdateUserLinkAsync(UpdateUserLinkRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateUserLinkRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateUserLinkRequest request = new UpdateUserLinkRequest
{
UserLink = new UserLink(),
};
// Make the request
UserLink response = await analyticsAdminServiceClient.UpdateUserLinkAsync(request);
UpdateUserLinkAsync(UserLink, CallSettings)
Updates a user link on an account or property.
Declaration
public virtual Task<UserLink> UpdateUserLinkAsync(UserLink userLink, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UserLink | userLink | Required. The user link to update. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UserLink userLink = new UserLink();
// Make the request
UserLink response = await analyticsAdminServiceClient.UpdateUserLinkAsync(userLink);
UpdateUserLinkAsync(UserLink, CancellationToken)
Updates a user link on an account or property.
Declaration
public virtual Task<UserLink> UpdateUserLinkAsync(UserLink userLink, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| UserLink | userLink | Required. The user link to update. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<UserLink> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UserLink userLink = new UserLink();
// Make the request
UserLink response = await analyticsAdminServiceClient.UpdateUserLinkAsync(userLink);
UpdateWebDataStream(UpdateWebDataStreamRequest, CallSettings)
Updates a web stream on a property.
Declaration
public virtual WebDataStream UpdateWebDataStream(UpdateWebDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateWebDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| WebDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
UpdateWebDataStreamRequest request = new UpdateWebDataStreamRequest
{
WebDataStream = new WebDataStream(),
UpdateMask = new FieldMask(),
};
// Make the request
WebDataStream response = analyticsAdminServiceClient.UpdateWebDataStream(request);
UpdateWebDataStream(WebDataStream, FieldMask, CallSettings)
Updates a web stream on a property.
Declaration
public virtual WebDataStream UpdateWebDataStream(WebDataStream webDataStream, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| WebDataStream | webDataStream | Required. The web stream to update.
The |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| WebDataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
WebDataStream webDataStream = new WebDataStream();
FieldMask updateMask = new FieldMask();
// Make the request
WebDataStream response = analyticsAdminServiceClient.UpdateWebDataStream(webDataStream, updateMask);
UpdateWebDataStreamAsync(UpdateWebDataStreamRequest, CallSettings)
Updates a web stream on a property.
Declaration
public virtual Task<WebDataStream> UpdateWebDataStreamAsync(UpdateWebDataStreamRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateWebDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateWebDataStreamRequest request = new UpdateWebDataStreamRequest
{
WebDataStream = new WebDataStream(),
UpdateMask = new FieldMask(),
};
// Make the request
WebDataStream response = await analyticsAdminServiceClient.UpdateWebDataStreamAsync(request);
UpdateWebDataStreamAsync(UpdateWebDataStreamRequest, CancellationToken)
Updates a web stream on a property.
Declaration
public virtual Task<WebDataStream> UpdateWebDataStreamAsync(UpdateWebDataStreamRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateWebDataStreamRequest | request | The request object containing all of the parameters for the API call. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateWebDataStreamRequest request = new UpdateWebDataStreamRequest
{
WebDataStream = new WebDataStream(),
UpdateMask = new FieldMask(),
};
// Make the request
WebDataStream response = await analyticsAdminServiceClient.UpdateWebDataStreamAsync(request);
UpdateWebDataStreamAsync(WebDataStream, FieldMask, CallSettings)
Updates a web stream on a property.
Declaration
public virtual Task<WebDataStream> UpdateWebDataStreamAsync(WebDataStream webDataStream, FieldMask updateMask, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| WebDataStream | webDataStream | Required. The web stream to update.
The |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| Google.Api.Gax.Grpc.CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
WebDataStream webDataStream = new WebDataStream();
FieldMask updateMask = new FieldMask();
// Make the request
WebDataStream response = await analyticsAdminServiceClient.UpdateWebDataStreamAsync(webDataStream, updateMask);
UpdateWebDataStreamAsync(WebDataStream, FieldMask, CancellationToken)
Updates a web stream on a property.
Declaration
public virtual Task<WebDataStream> UpdateWebDataStreamAsync(WebDataStream webDataStream, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| WebDataStream | webDataStream | Required. The web stream to update.
The |
| Google.Protobuf.WellKnownTypes.FieldMask | updateMask | The list of fields to be updated. Omitted fields will not be updated. |
| System.Threading.CancellationToken | cancellationToken | A System.Threading.CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebDataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
WebDataStream webDataStream = new WebDataStream();
FieldMask updateMask = new FieldMask();
// Make the request
WebDataStream response = await analyticsAdminServiceClient.UpdateWebDataStreamAsync(webDataStream, updateMask);