Class AnalyticsAdminServiceClient
AnalyticsAdminService client wrapper, for convenient use.
Namespace: Google.Analytics.Admin.V1Beta
Assembly: Google.Analytics.Admin.V1Beta.dll
Syntax
public abstract class AnalyticsAdminServiceClient
Remarks
Service Interface for the Google Analytics Admin API.
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 |
---|---|
string |
DefaultScopes
The default AnalyticsAdminService scopes.
Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<string> |
Remarks
The default AnalyticsAdminService scopes are:
- https://www.googleapis.com/auth/analytics.edit
- https://www.googleapis.com/auth/analytics.readonly
GrpcClient
The underlying gRPC AnalyticsAdminService client
Declaration
public virtual AnalyticsAdminService.AnalyticsAdminServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
AnalyticsAdminService.AnalyticsAdminServiceClient |
ServiceMetadata
The service metadata associated with this client type.
Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
Type | Description |
---|---|
ServiceMetadata |
Methods
AcknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest, CallSettings)
Acknowledges the terms of user data collection for the specified property.
This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.
Declaration
public virtual AcknowledgeUserDataCollectionResponse AcknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AcknowledgeUserDataCollectionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
AcknowledgeUserDataCollectionResponse | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
AcknowledgeUserDataCollectionRequest request = new AcknowledgeUserDataCollectionRequest
{
PropertyAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
Acknowledgement = "",
};
// Make the request
AcknowledgeUserDataCollectionResponse response = analyticsAdminServiceClient.AcknowledgeUserDataCollection(request);
AcknowledgeUserDataCollectionAsync(AcknowledgeUserDataCollectionRequest, CallSettings)
Acknowledges the terms of user data collection for the specified property.
This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.
Declaration
public virtual Task<AcknowledgeUserDataCollectionResponse> AcknowledgeUserDataCollectionAsync(AcknowledgeUserDataCollectionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
AcknowledgeUserDataCollectionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<AcknowledgeUserDataCollectionResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AcknowledgeUserDataCollectionRequest request = new AcknowledgeUserDataCollectionRequest
{
PropertyAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
Acknowledgement = "",
};
// Make the request
AcknowledgeUserDataCollectionResponse response = await analyticsAdminServiceClient.AcknowledgeUserDataCollectionAsync(request);
AcknowledgeUserDataCollectionAsync(AcknowledgeUserDataCollectionRequest, CancellationToken)
Acknowledges the terms of user data collection for the specified property.
This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.
Declaration
public virtual Task<AcknowledgeUserDataCollectionResponse> AcknowledgeUserDataCollectionAsync(AcknowledgeUserDataCollectionRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
AcknowledgeUserDataCollectionRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<AcknowledgeUserDataCollectionResponse> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
AcknowledgeUserDataCollectionRequest request = new AcknowledgeUserDataCollectionRequest
{
PropertyAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
Acknowledgement = "",
};
// Make the request
AcknowledgeUserDataCollectionResponse response = await analyticsAdminServiceClient.AcknowledgeUserDataCollectionAsync(request);
ArchiveCustomDimension(ArchiveCustomDimensionRequest, CallSettings)
Archives a CustomDimension on a property.
Declaration
public virtual void ArchiveCustomDimension(ArchiveCustomDimensionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ArchiveCustomDimensionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ArchiveCustomDimensionRequest request = new ArchiveCustomDimensionRequest
{
CustomDimensionName = CustomDimensionName.FromPropertyCustomDimension("[PROPERTY]", "[CUSTOM_DIMENSION]"),
};
// Make the request
analyticsAdminServiceClient.ArchiveCustomDimension(request);
ArchiveCustomDimension(CustomDimensionName, CallSettings)
Archives a CustomDimension on a property.
Declaration
public virtual void ArchiveCustomDimension(CustomDimensionName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CustomDimensionName | name | Required. The name of the CustomDimension to archive. Example format: properties/1234/customDimensions/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CustomDimensionName name = CustomDimensionName.FromPropertyCustomDimension("[PROPERTY]", "[CUSTOM_DIMENSION]");
// Make the request
analyticsAdminServiceClient.ArchiveCustomDimension(name);
ArchiveCustomDimension(string, CallSettings)
Archives a CustomDimension on a property.
Declaration
public virtual void ArchiveCustomDimension(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CustomDimension to archive. Example format: properties/1234/customDimensions/5678 |
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]/customDimensions/[CUSTOM_DIMENSION]";
// Make the request
analyticsAdminServiceClient.ArchiveCustomDimension(name);
ArchiveCustomDimensionAsync(ArchiveCustomDimensionRequest, CallSettings)
Archives a CustomDimension on a property.
Declaration
public virtual Task ArchiveCustomDimensionAsync(ArchiveCustomDimensionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ArchiveCustomDimensionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ArchiveCustomDimensionRequest request = new ArchiveCustomDimensionRequest
{
CustomDimensionName = CustomDimensionName.FromPropertyCustomDimension("[PROPERTY]", "[CUSTOM_DIMENSION]"),
};
// Make the request
await analyticsAdminServiceClient.ArchiveCustomDimensionAsync(request);
ArchiveCustomDimensionAsync(ArchiveCustomDimensionRequest, CancellationToken)
Archives a CustomDimension on a property.
Declaration
public virtual Task ArchiveCustomDimensionAsync(ArchiveCustomDimensionRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
ArchiveCustomDimensionRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ArchiveCustomDimensionRequest request = new ArchiveCustomDimensionRequest
{
CustomDimensionName = CustomDimensionName.FromPropertyCustomDimension("[PROPERTY]", "[CUSTOM_DIMENSION]"),
};
// Make the request
await analyticsAdminServiceClient.ArchiveCustomDimensionAsync(request);
ArchiveCustomDimensionAsync(CustomDimensionName, CallSettings)
Archives a CustomDimension on a property.
Declaration
public virtual Task ArchiveCustomDimensionAsync(CustomDimensionName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CustomDimensionName | name | Required. The name of the CustomDimension to archive. Example format: properties/1234/customDimensions/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CustomDimensionName name = CustomDimensionName.FromPropertyCustomDimension("[PROPERTY]", "[CUSTOM_DIMENSION]");
// Make the request
await analyticsAdminServiceClient.ArchiveCustomDimensionAsync(name);
ArchiveCustomDimensionAsync(CustomDimensionName, CancellationToken)
Archives a CustomDimension on a property.
Declaration
public virtual Task ArchiveCustomDimensionAsync(CustomDimensionName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CustomDimensionName | name | Required. The name of the CustomDimension to archive. Example format: properties/1234/customDimensions/5678 |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CustomDimensionName name = CustomDimensionName.FromPropertyCustomDimension("[PROPERTY]", "[CUSTOM_DIMENSION]");
// Make the request
await analyticsAdminServiceClient.ArchiveCustomDimensionAsync(name);
ArchiveCustomDimensionAsync(string, CallSettings)
Archives a CustomDimension on a property.
Declaration
public virtual Task ArchiveCustomDimensionAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CustomDimension to archive. Example format: properties/1234/customDimensions/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/customDimensions/[CUSTOM_DIMENSION]";
// Make the request
await analyticsAdminServiceClient.ArchiveCustomDimensionAsync(name);
ArchiveCustomDimensionAsync(string, CancellationToken)
Archives a CustomDimension on a property.
Declaration
public virtual Task ArchiveCustomDimensionAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CustomDimension to archive. Example format: properties/1234/customDimensions/5678 |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/customDimensions/[CUSTOM_DIMENSION]";
// Make the request
await analyticsAdminServiceClient.ArchiveCustomDimensionAsync(name);
ArchiveCustomMetric(ArchiveCustomMetricRequest, CallSettings)
Archives a CustomMetric on a property.
Declaration
public virtual void ArchiveCustomMetric(ArchiveCustomMetricRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ArchiveCustomMetricRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ArchiveCustomMetricRequest request = new ArchiveCustomMetricRequest
{
CustomMetricName = CustomMetricName.FromPropertyCustomMetric("[PROPERTY]", "[CUSTOM_METRIC]"),
};
// Make the request
analyticsAdminServiceClient.ArchiveCustomMetric(request);
ArchiveCustomMetric(CustomMetricName, CallSettings)
Archives a CustomMetric on a property.
Declaration
public virtual void ArchiveCustomMetric(CustomMetricName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CustomMetricName | name | Required. The name of the CustomMetric to archive. Example format: properties/1234/customMetrics/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CustomMetricName name = CustomMetricName.FromPropertyCustomMetric("[PROPERTY]", "[CUSTOM_METRIC]");
// Make the request
analyticsAdminServiceClient.ArchiveCustomMetric(name);
ArchiveCustomMetric(string, CallSettings)
Archives a CustomMetric on a property.
Declaration
public virtual void ArchiveCustomMetric(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CustomMetric to archive. Example format: properties/1234/customMetrics/5678 |
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]/customMetrics/[CUSTOM_METRIC]";
// Make the request
analyticsAdminServiceClient.ArchiveCustomMetric(name);
ArchiveCustomMetricAsync(ArchiveCustomMetricRequest, CallSettings)
Archives a CustomMetric on a property.
Declaration
public virtual Task ArchiveCustomMetricAsync(ArchiveCustomMetricRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ArchiveCustomMetricRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ArchiveCustomMetricRequest request = new ArchiveCustomMetricRequest
{
CustomMetricName = CustomMetricName.FromPropertyCustomMetric("[PROPERTY]", "[CUSTOM_METRIC]"),
};
// Make the request
await analyticsAdminServiceClient.ArchiveCustomMetricAsync(request);
ArchiveCustomMetricAsync(ArchiveCustomMetricRequest, CancellationToken)
Archives a CustomMetric on a property.
Declaration
public virtual Task ArchiveCustomMetricAsync(ArchiveCustomMetricRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
ArchiveCustomMetricRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ArchiveCustomMetricRequest request = new ArchiveCustomMetricRequest
{
CustomMetricName = CustomMetricName.FromPropertyCustomMetric("[PROPERTY]", "[CUSTOM_METRIC]"),
};
// Make the request
await analyticsAdminServiceClient.ArchiveCustomMetricAsync(request);
ArchiveCustomMetricAsync(CustomMetricName, CallSettings)
Archives a CustomMetric on a property.
Declaration
public virtual Task ArchiveCustomMetricAsync(CustomMetricName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CustomMetricName | name | Required. The name of the CustomMetric to archive. Example format: properties/1234/customMetrics/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CustomMetricName name = CustomMetricName.FromPropertyCustomMetric("[PROPERTY]", "[CUSTOM_METRIC]");
// Make the request
await analyticsAdminServiceClient.ArchiveCustomMetricAsync(name);
ArchiveCustomMetricAsync(CustomMetricName, CancellationToken)
Archives a CustomMetric on a property.
Declaration
public virtual Task ArchiveCustomMetricAsync(CustomMetricName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CustomMetricName | name | Required. The name of the CustomMetric to archive. Example format: properties/1234/customMetrics/5678 |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CustomMetricName name = CustomMetricName.FromPropertyCustomMetric("[PROPERTY]", "[CUSTOM_METRIC]");
// Make the request
await analyticsAdminServiceClient.ArchiveCustomMetricAsync(name);
ArchiveCustomMetricAsync(string, CallSettings)
Archives a CustomMetric on a property.
Declaration
public virtual Task ArchiveCustomMetricAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CustomMetric to archive. Example format: properties/1234/customMetrics/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/customMetrics/[CUSTOM_METRIC]";
// Make the request
await analyticsAdminServiceClient.ArchiveCustomMetricAsync(name);
ArchiveCustomMetricAsync(string, CancellationToken)
Archives a CustomMetric on a property.
Declaration
public virtual Task ArchiveCustomMetricAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CustomMetric to archive. Example format: properties/1234/customMetrics/5678 |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/customMetrics/[CUSTOM_METRIC]";
// Make the request
await analyticsAdminServiceClient.ArchiveCustomMetricAsync(name);
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. |
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)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The CancellationToken to use while creating the client. |
Returns
Type | Description |
---|---|
Task<AnalyticsAdminServiceClient> | The task representing the created AnalyticsAdminServiceClient. |
CreateConversionEvent(CreateConversionEventRequest, CallSettings)
Deprecated: Use CreateKeyEvent
instead.
Creates a conversion event with the specified attributes.
Declaration
[Obsolete]
public virtual ConversionEvent CreateConversionEvent(CreateConversionEventRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateConversionEventRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
ConversionEvent | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CreateConversionEventRequest request = new CreateConversionEventRequest
{
ConversionEvent = new ConversionEvent(),
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
#pragma warning disable CS0612
ConversionEvent response = analyticsAdminServiceClient.CreateConversionEvent(request);
#pragma warning restore CS0612
CreateConversionEvent(PropertyName, ConversionEvent, CallSettings)
Deprecated: Use CreateKeyEvent
instead.
Creates a conversion event with the specified attributes.
Declaration
[Obsolete]
public virtual ConversionEvent CreateConversionEvent(PropertyName parent, ConversionEvent conversionEvent, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. The resource name of the parent property where this conversion event will be created. Format: properties/123 |
ConversionEvent | conversionEvent | Required. The conversion event to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
ConversionEvent | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
ConversionEvent conversionEvent = new ConversionEvent();
// Make the request
#pragma warning disable CS0612
ConversionEvent response = analyticsAdminServiceClient.CreateConversionEvent(parent, conversionEvent);
#pragma warning restore CS0612
CreateConversionEvent(string, ConversionEvent, CallSettings)
Deprecated: Use CreateKeyEvent
instead.
Creates a conversion event with the specified attributes.
Declaration
[Obsolete]
public virtual ConversionEvent CreateConversionEvent(string parent, ConversionEvent conversionEvent, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The resource name of the parent property where this conversion event will be created. Format: properties/123 |
ConversionEvent | conversionEvent | Required. The conversion event to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
ConversionEvent | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
ConversionEvent conversionEvent = new ConversionEvent();
// Make the request
#pragma warning disable CS0612
ConversionEvent response = analyticsAdminServiceClient.CreateConversionEvent(parent, conversionEvent);
#pragma warning restore CS0612
CreateConversionEventAsync(CreateConversionEventRequest, CallSettings)
Deprecated: Use CreateKeyEvent
instead.
Creates a conversion event with the specified attributes.
Declaration
[Obsolete]
public virtual Task<ConversionEvent> CreateConversionEventAsync(CreateConversionEventRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateConversionEventRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<ConversionEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateConversionEventRequest request = new CreateConversionEventRequest
{
ConversionEvent = new ConversionEvent(),
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
#pragma warning disable CS0612
ConversionEvent response = await analyticsAdminServiceClient.CreateConversionEventAsync(request);
#pragma warning restore CS0612
CreateConversionEventAsync(CreateConversionEventRequest, CancellationToken)
Deprecated: Use CreateKeyEvent
instead.
Creates a conversion event with the specified attributes.
Declaration
[Obsolete]
public virtual Task<ConversionEvent> CreateConversionEventAsync(CreateConversionEventRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CreateConversionEventRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<ConversionEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateConversionEventRequest request = new CreateConversionEventRequest
{
ConversionEvent = new ConversionEvent(),
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
#pragma warning disable CS0612
ConversionEvent response = await analyticsAdminServiceClient.CreateConversionEventAsync(request);
#pragma warning restore CS0612
CreateConversionEventAsync(PropertyName, ConversionEvent, CallSettings)
Deprecated: Use CreateKeyEvent
instead.
Creates a conversion event with the specified attributes.
Declaration
[Obsolete]
public virtual Task<ConversionEvent> CreateConversionEventAsync(PropertyName parent, ConversionEvent conversionEvent, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. The resource name of the parent property where this conversion event will be created. Format: properties/123 |
ConversionEvent | conversionEvent | Required. The conversion event to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<ConversionEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
ConversionEvent conversionEvent = new ConversionEvent();
// Make the request
#pragma warning disable CS0612
ConversionEvent response = await analyticsAdminServiceClient.CreateConversionEventAsync(parent, conversionEvent);
#pragma warning restore CS0612
CreateConversionEventAsync(PropertyName, ConversionEvent, CancellationToken)
Deprecated: Use CreateKeyEvent
instead.
Creates a conversion event with the specified attributes.
Declaration
[Obsolete]
public virtual Task<ConversionEvent> CreateConversionEventAsync(PropertyName parent, ConversionEvent conversionEvent, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. The resource name of the parent property where this conversion event will be created. Format: properties/123 |
ConversionEvent | conversionEvent | Required. The conversion event to create. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<ConversionEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
ConversionEvent conversionEvent = new ConversionEvent();
// Make the request
#pragma warning disable CS0612
ConversionEvent response = await analyticsAdminServiceClient.CreateConversionEventAsync(parent, conversionEvent);
#pragma warning restore CS0612
CreateConversionEventAsync(string, ConversionEvent, CallSettings)
Deprecated: Use CreateKeyEvent
instead.
Creates a conversion event with the specified attributes.
Declaration
[Obsolete]
public virtual Task<ConversionEvent> CreateConversionEventAsync(string parent, ConversionEvent conversionEvent, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The resource name of the parent property where this conversion event will be created. Format: properties/123 |
ConversionEvent | conversionEvent | Required. The conversion event to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<ConversionEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
ConversionEvent conversionEvent = new ConversionEvent();
// Make the request
#pragma warning disable CS0612
ConversionEvent response = await analyticsAdminServiceClient.CreateConversionEventAsync(parent, conversionEvent);
#pragma warning restore CS0612
CreateConversionEventAsync(string, ConversionEvent, CancellationToken)
Deprecated: Use CreateKeyEvent
instead.
Creates a conversion event with the specified attributes.
Declaration
[Obsolete]
public virtual Task<ConversionEvent> CreateConversionEventAsync(string parent, ConversionEvent conversionEvent, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The resource name of the parent property where this conversion event will be created. Format: properties/123 |
ConversionEvent | conversionEvent | Required. The conversion event to create. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<ConversionEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
ConversionEvent conversionEvent = new ConversionEvent();
// Make the request
#pragma warning disable CS0612
ConversionEvent response = await analyticsAdminServiceClient.CreateConversionEventAsync(parent, conversionEvent);
#pragma warning restore CS0612
CreateCustomDimension(CreateCustomDimensionRequest, CallSettings)
Creates a CustomDimension.
Declaration
public virtual CustomDimension CreateCustomDimension(CreateCustomDimensionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateCustomDimensionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
CustomDimension | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CreateCustomDimensionRequest request = new CreateCustomDimensionRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
CustomDimension = new CustomDimension(),
};
// Make the request
CustomDimension response = analyticsAdminServiceClient.CreateCustomDimension(request);
CreateCustomDimension(PropertyName, CustomDimension, CallSettings)
Creates a CustomDimension.
Declaration
public virtual CustomDimension CreateCustomDimension(PropertyName parent, CustomDimension customDimension, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
CustomDimension | customDimension | Required. The CustomDimension to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
CustomDimension | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
CustomDimension customDimension = new CustomDimension();
// Make the request
CustomDimension response = analyticsAdminServiceClient.CreateCustomDimension(parent, customDimension);
CreateCustomDimension(string, CustomDimension, CallSettings)
Creates a CustomDimension.
Declaration
public virtual CustomDimension CreateCustomDimension(string parent, CustomDimension customDimension, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
CustomDimension | customDimension | Required. The CustomDimension to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
CustomDimension | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
CustomDimension customDimension = new CustomDimension();
// Make the request
CustomDimension response = analyticsAdminServiceClient.CreateCustomDimension(parent, customDimension);
CreateCustomDimensionAsync(CreateCustomDimensionRequest, CallSettings)
Creates a CustomDimension.
Declaration
public virtual Task<CustomDimension> CreateCustomDimensionAsync(CreateCustomDimensionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateCustomDimensionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<CustomDimension> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCustomDimensionRequest request = new CreateCustomDimensionRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
CustomDimension = new CustomDimension(),
};
// Make the request
CustomDimension response = await analyticsAdminServiceClient.CreateCustomDimensionAsync(request);
CreateCustomDimensionAsync(CreateCustomDimensionRequest, CancellationToken)
Creates a CustomDimension.
Declaration
public virtual Task<CustomDimension> CreateCustomDimensionAsync(CreateCustomDimensionRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CreateCustomDimensionRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<CustomDimension> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCustomDimensionRequest request = new CreateCustomDimensionRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
CustomDimension = new CustomDimension(),
};
// Make the request
CustomDimension response = await analyticsAdminServiceClient.CreateCustomDimensionAsync(request);
CreateCustomDimensionAsync(PropertyName, CustomDimension, CallSettings)
Creates a CustomDimension.
Declaration
public virtual Task<CustomDimension> CreateCustomDimensionAsync(PropertyName parent, CustomDimension customDimension, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
CustomDimension | customDimension | Required. The CustomDimension to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<CustomDimension> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
CustomDimension customDimension = new CustomDimension();
// Make the request
CustomDimension response = await analyticsAdminServiceClient.CreateCustomDimensionAsync(parent, customDimension);
CreateCustomDimensionAsync(PropertyName, CustomDimension, CancellationToken)
Creates a CustomDimension.
Declaration
public virtual Task<CustomDimension> CreateCustomDimensionAsync(PropertyName parent, CustomDimension customDimension, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
CustomDimension | customDimension | Required. The CustomDimension to create. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<CustomDimension> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
CustomDimension customDimension = new CustomDimension();
// Make the request
CustomDimension response = await analyticsAdminServiceClient.CreateCustomDimensionAsync(parent, customDimension);
CreateCustomDimensionAsync(string, CustomDimension, CallSettings)
Creates a CustomDimension.
Declaration
public virtual Task<CustomDimension> CreateCustomDimensionAsync(string parent, CustomDimension customDimension, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
CustomDimension | customDimension | Required. The CustomDimension to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<CustomDimension> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
CustomDimension customDimension = new CustomDimension();
// Make the request
CustomDimension response = await analyticsAdminServiceClient.CreateCustomDimensionAsync(parent, customDimension);
CreateCustomDimensionAsync(string, CustomDimension, CancellationToken)
Creates a CustomDimension.
Declaration
public virtual Task<CustomDimension> CreateCustomDimensionAsync(string parent, CustomDimension customDimension, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
CustomDimension | customDimension | Required. The CustomDimension to create. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<CustomDimension> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
CustomDimension customDimension = new CustomDimension();
// Make the request
CustomDimension response = await analyticsAdminServiceClient.CreateCustomDimensionAsync(parent, customDimension);
CreateCustomMetric(CreateCustomMetricRequest, CallSettings)
Creates a CustomMetric.
Declaration
public virtual CustomMetric CreateCustomMetric(CreateCustomMetricRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateCustomMetricRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
CustomMetric | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CreateCustomMetricRequest request = new CreateCustomMetricRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
CustomMetric = new CustomMetric(),
};
// Make the request
CustomMetric response = analyticsAdminServiceClient.CreateCustomMetric(request);
CreateCustomMetric(PropertyName, CustomMetric, CallSettings)
Creates a CustomMetric.
Declaration
public virtual CustomMetric CreateCustomMetric(PropertyName parent, CustomMetric customMetric, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
CustomMetric | customMetric | Required. The CustomMetric to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
CustomMetric | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
CustomMetric customMetric = new CustomMetric();
// Make the request
CustomMetric response = analyticsAdminServiceClient.CreateCustomMetric(parent, customMetric);
CreateCustomMetric(string, CustomMetric, CallSettings)
Creates a CustomMetric.
Declaration
public virtual CustomMetric CreateCustomMetric(string parent, CustomMetric customMetric, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
CustomMetric | customMetric | Required. The CustomMetric to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
CustomMetric | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
CustomMetric customMetric = new CustomMetric();
// Make the request
CustomMetric response = analyticsAdminServiceClient.CreateCustomMetric(parent, customMetric);
CreateCustomMetricAsync(CreateCustomMetricRequest, CallSettings)
Creates a CustomMetric.
Declaration
public virtual Task<CustomMetric> CreateCustomMetricAsync(CreateCustomMetricRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateCustomMetricRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<CustomMetric> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCustomMetricRequest request = new CreateCustomMetricRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
CustomMetric = new CustomMetric(),
};
// Make the request
CustomMetric response = await analyticsAdminServiceClient.CreateCustomMetricAsync(request);
CreateCustomMetricAsync(CreateCustomMetricRequest, CancellationToken)
Creates a CustomMetric.
Declaration
public virtual Task<CustomMetric> CreateCustomMetricAsync(CreateCustomMetricRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CreateCustomMetricRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<CustomMetric> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCustomMetricRequest request = new CreateCustomMetricRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
CustomMetric = new CustomMetric(),
};
// Make the request
CustomMetric response = await analyticsAdminServiceClient.CreateCustomMetricAsync(request);
CreateCustomMetricAsync(PropertyName, CustomMetric, CallSettings)
Creates a CustomMetric.
Declaration
public virtual Task<CustomMetric> CreateCustomMetricAsync(PropertyName parent, CustomMetric customMetric, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
CustomMetric | customMetric | Required. The CustomMetric to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<CustomMetric> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
CustomMetric customMetric = new CustomMetric();
// Make the request
CustomMetric response = await analyticsAdminServiceClient.CreateCustomMetricAsync(parent, customMetric);
CreateCustomMetricAsync(PropertyName, CustomMetric, CancellationToken)
Creates a CustomMetric.
Declaration
public virtual Task<CustomMetric> CreateCustomMetricAsync(PropertyName parent, CustomMetric customMetric, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
CustomMetric | customMetric | Required. The CustomMetric to create. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<CustomMetric> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
CustomMetric customMetric = new CustomMetric();
// Make the request
CustomMetric response = await analyticsAdminServiceClient.CreateCustomMetricAsync(parent, customMetric);
CreateCustomMetricAsync(string, CustomMetric, CallSettings)
Creates a CustomMetric.
Declaration
public virtual Task<CustomMetric> CreateCustomMetricAsync(string parent, CustomMetric customMetric, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
CustomMetric | customMetric | Required. The CustomMetric to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<CustomMetric> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
CustomMetric customMetric = new CustomMetric();
// Make the request
CustomMetric response = await analyticsAdminServiceClient.CreateCustomMetricAsync(parent, customMetric);
CreateCustomMetricAsync(string, CustomMetric, CancellationToken)
Creates a CustomMetric.
Declaration
public virtual Task<CustomMetric> CreateCustomMetricAsync(string parent, CustomMetric customMetric, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
CustomMetric | customMetric | Required. The CustomMetric to create. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<CustomMetric> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
CustomMetric customMetric = new CustomMetric();
// Make the request
CustomMetric response = await analyticsAdminServiceClient.CreateCustomMetricAsync(parent, customMetric);
CreateDataStream(CreateDataStreamRequest, CallSettings)
Creates a DataStream.
Declaration
public virtual DataStream CreateDataStream(CreateDataStreamRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateDataStreamRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
DataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CreateDataStreamRequest request = new CreateDataStreamRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
DataStream = new DataStream(),
};
// Make the request
DataStream response = analyticsAdminServiceClient.CreateDataStream(request);
CreateDataStream(PropertyName, DataStream, CallSettings)
Creates a DataStream.
Declaration
public virtual DataStream CreateDataStream(PropertyName parent, DataStream dataStream, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
DataStream | dataStream | Required. The DataStream to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
DataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
DataStream dataStream = new DataStream();
// Make the request
DataStream response = analyticsAdminServiceClient.CreateDataStream(parent, dataStream);
CreateDataStream(string, DataStream, CallSettings)
Creates a DataStream.
Declaration
public virtual DataStream CreateDataStream(string parent, DataStream dataStream, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
DataStream | dataStream | Required. The DataStream to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
DataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
DataStream dataStream = new DataStream();
// Make the request
DataStream response = analyticsAdminServiceClient.CreateDataStream(parent, dataStream);
CreateDataStreamAsync(CreateDataStreamRequest, CallSettings)
Creates a DataStream.
Declaration
public virtual Task<DataStream> CreateDataStreamAsync(CreateDataStreamRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateDataStreamRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<DataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDataStreamRequest request = new CreateDataStreamRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
DataStream = new DataStream(),
};
// Make the request
DataStream response = await analyticsAdminServiceClient.CreateDataStreamAsync(request);
CreateDataStreamAsync(CreateDataStreamRequest, CancellationToken)
Creates a DataStream.
Declaration
public virtual Task<DataStream> CreateDataStreamAsync(CreateDataStreamRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CreateDataStreamRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<DataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateDataStreamRequest request = new CreateDataStreamRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
DataStream = new DataStream(),
};
// Make the request
DataStream response = await analyticsAdminServiceClient.CreateDataStreamAsync(request);
CreateDataStreamAsync(PropertyName, DataStream, CallSettings)
Creates a DataStream.
Declaration
public virtual Task<DataStream> CreateDataStreamAsync(PropertyName parent, DataStream dataStream, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
DataStream | dataStream | Required. The DataStream to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<DataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
DataStream dataStream = new DataStream();
// Make the request
DataStream response = await analyticsAdminServiceClient.CreateDataStreamAsync(parent, dataStream);
CreateDataStreamAsync(PropertyName, DataStream, CancellationToken)
Creates a DataStream.
Declaration
public virtual Task<DataStream> CreateDataStreamAsync(PropertyName parent, DataStream dataStream, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
DataStream | dataStream | Required. The DataStream to create. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<DataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
DataStream dataStream = new DataStream();
// Make the request
DataStream response = await analyticsAdminServiceClient.CreateDataStreamAsync(parent, dataStream);
CreateDataStreamAsync(string, DataStream, CallSettings)
Creates a DataStream.
Declaration
public virtual Task<DataStream> CreateDataStreamAsync(string parent, DataStream dataStream, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
DataStream | dataStream | Required. The DataStream to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<DataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
DataStream dataStream = new DataStream();
// Make the request
DataStream response = await analyticsAdminServiceClient.CreateDataStreamAsync(parent, dataStream);
CreateDataStreamAsync(string, DataStream, CancellationToken)
Creates a DataStream.
Declaration
public virtual Task<DataStream> CreateDataStreamAsync(string parent, DataStream dataStream, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
DataStream | dataStream | Required. The DataStream to create. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<DataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
DataStream dataStream = new DataStream();
// Make the request
DataStream response = await analyticsAdminServiceClient.CreateDataStreamAsync(parent, dataStream);
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. |
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: |
FirebaseLink | firebaseLink | Required. The Firebase link to create. |
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 |
---|---|---|
string | parent | Required. Format: properties/{property_id} Example: |
FirebaseLink | firebaseLink | Required. The Firebase link to create. |
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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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: |
FirebaseLink | firebaseLink | Required. The Firebase link to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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: |
FirebaseLink | firebaseLink | Required. The Firebase link to create. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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 |
---|---|---|
string | parent | Required. Format: properties/{property_id} Example: |
FirebaseLink | firebaseLink | Required. The Firebase link to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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 |
---|---|---|
string | parent | Required. Format: properties/{property_id} Example: |
FirebaseLink | firebaseLink | Required. The Firebase link to create. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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. |
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. |
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 |
---|---|---|
string | parent | Required. Example format: properties/1234 |
GoogleAdsLink | googleAdsLink | Required. The GoogleAdsLink to create. |
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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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 |
---|---|---|
string | parent | Required. Example format: properties/1234 |
GoogleAdsLink | googleAdsLink | Required. The GoogleAdsLink to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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 |
---|---|---|
string | parent | Required. Example format: properties/1234 |
GoogleAdsLink | googleAdsLink | Required. The GoogleAdsLink to create. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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);
CreateKeyEvent(CreateKeyEventRequest, CallSettings)
Creates a Key Event.
Declaration
public virtual KeyEvent CreateKeyEvent(CreateKeyEventRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateKeyEventRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
KeyEvent | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CreateKeyEventRequest request = new CreateKeyEventRequest
{
KeyEvent = new KeyEvent(),
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
KeyEvent response = analyticsAdminServiceClient.CreateKeyEvent(request);
CreateKeyEvent(PropertyName, KeyEvent, CallSettings)
Creates a Key Event.
Declaration
public virtual KeyEvent CreateKeyEvent(PropertyName parent, KeyEvent keyEvent, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. The resource name of the parent property where this Key Event will be created. Format: properties/123 |
KeyEvent | keyEvent | Required. The Key Event to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
KeyEvent | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
KeyEvent keyEvent = new KeyEvent();
// Make the request
KeyEvent response = analyticsAdminServiceClient.CreateKeyEvent(parent, keyEvent);
CreateKeyEvent(string, KeyEvent, CallSettings)
Creates a Key Event.
Declaration
public virtual KeyEvent CreateKeyEvent(string parent, KeyEvent keyEvent, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The resource name of the parent property where this Key Event will be created. Format: properties/123 |
KeyEvent | keyEvent | Required. The Key Event to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
KeyEvent | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
KeyEvent keyEvent = new KeyEvent();
// Make the request
KeyEvent response = analyticsAdminServiceClient.CreateKeyEvent(parent, keyEvent);
CreateKeyEventAsync(CreateKeyEventRequest, CallSettings)
Creates a Key Event.
Declaration
public virtual Task<KeyEvent> CreateKeyEventAsync(CreateKeyEventRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateKeyEventRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<KeyEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateKeyEventRequest request = new CreateKeyEventRequest
{
KeyEvent = new KeyEvent(),
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
KeyEvent response = await analyticsAdminServiceClient.CreateKeyEventAsync(request);
CreateKeyEventAsync(CreateKeyEventRequest, CancellationToken)
Creates a Key Event.
Declaration
public virtual Task<KeyEvent> CreateKeyEventAsync(CreateKeyEventRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CreateKeyEventRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<KeyEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateKeyEventRequest request = new CreateKeyEventRequest
{
KeyEvent = new KeyEvent(),
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
KeyEvent response = await analyticsAdminServiceClient.CreateKeyEventAsync(request);
CreateKeyEventAsync(PropertyName, KeyEvent, CallSettings)
Creates a Key Event.
Declaration
public virtual Task<KeyEvent> CreateKeyEventAsync(PropertyName parent, KeyEvent keyEvent, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. The resource name of the parent property where this Key Event will be created. Format: properties/123 |
KeyEvent | keyEvent | Required. The Key Event to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<KeyEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
KeyEvent keyEvent = new KeyEvent();
// Make the request
KeyEvent response = await analyticsAdminServiceClient.CreateKeyEventAsync(parent, keyEvent);
CreateKeyEventAsync(PropertyName, KeyEvent, CancellationToken)
Creates a Key Event.
Declaration
public virtual Task<KeyEvent> CreateKeyEventAsync(PropertyName parent, KeyEvent keyEvent, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. The resource name of the parent property where this Key Event will be created. Format: properties/123 |
KeyEvent | keyEvent | Required. The Key Event to create. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<KeyEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
KeyEvent keyEvent = new KeyEvent();
// Make the request
KeyEvent response = await analyticsAdminServiceClient.CreateKeyEventAsync(parent, keyEvent);
CreateKeyEventAsync(string, KeyEvent, CallSettings)
Creates a Key Event.
Declaration
public virtual Task<KeyEvent> CreateKeyEventAsync(string parent, KeyEvent keyEvent, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The resource name of the parent property where this Key Event will be created. Format: properties/123 |
KeyEvent | keyEvent | Required. The Key Event to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<KeyEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
KeyEvent keyEvent = new KeyEvent();
// Make the request
KeyEvent response = await analyticsAdminServiceClient.CreateKeyEventAsync(parent, keyEvent);
CreateKeyEventAsync(string, KeyEvent, CancellationToken)
Creates a Key Event.
Declaration
public virtual Task<KeyEvent> CreateKeyEventAsync(string parent, KeyEvent keyEvent, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The resource name of the parent property where this Key Event will be created. Format: properties/123 |
KeyEvent | keyEvent | Required. The Key Event to create. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<KeyEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
KeyEvent keyEvent = new KeyEvent();
// Make the request
KeyEvent response = await analyticsAdminServiceClient.CreateKeyEventAsync(parent, keyEvent);
CreateMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest, CallSettings)
Creates a measurement protocol secret.
Declaration
public virtual MeasurementProtocolSecret CreateMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateMeasurementProtocolSecretRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
MeasurementProtocolSecret | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CreateMeasurementProtocolSecretRequest request = new CreateMeasurementProtocolSecretRequest
{
ParentAsDataStreamName = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]"),
MeasurementProtocolSecret = new MeasurementProtocolSecret(),
};
// Make the request
MeasurementProtocolSecret response = analyticsAdminServiceClient.CreateMeasurementProtocolSecret(request);
CreateMeasurementProtocolSecret(DataStreamName, MeasurementProtocolSecret, CallSettings)
Creates a measurement protocol secret.
Declaration
public virtual MeasurementProtocolSecret CreateMeasurementProtocolSecret(DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DataStreamName | parent | Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream} |
MeasurementProtocolSecret | measurementProtocolSecret | Required. The measurement protocol secret to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
MeasurementProtocolSecret | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DataStreamName parent = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]");
MeasurementProtocolSecret measurementProtocolSecret = new MeasurementProtocolSecret();
// Make the request
MeasurementProtocolSecret response = analyticsAdminServiceClient.CreateMeasurementProtocolSecret(parent, measurementProtocolSecret);
CreateMeasurementProtocolSecret(string, MeasurementProtocolSecret, CallSettings)
Creates a measurement protocol secret.
Declaration
public virtual MeasurementProtocolSecret CreateMeasurementProtocolSecret(string parent, MeasurementProtocolSecret measurementProtocolSecret, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream} |
MeasurementProtocolSecret | measurementProtocolSecret | Required. The measurement protocol secret to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
MeasurementProtocolSecret | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]/dataStreams/[DATA_STREAM]";
MeasurementProtocolSecret measurementProtocolSecret = new MeasurementProtocolSecret();
// Make the request
MeasurementProtocolSecret response = analyticsAdminServiceClient.CreateMeasurementProtocolSecret(parent, measurementProtocolSecret);
CreateMeasurementProtocolSecretAsync(CreateMeasurementProtocolSecretRequest, CallSettings)
Creates a measurement protocol secret.
Declaration
public virtual Task<MeasurementProtocolSecret> CreateMeasurementProtocolSecretAsync(CreateMeasurementProtocolSecretRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateMeasurementProtocolSecretRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<MeasurementProtocolSecret> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateMeasurementProtocolSecretRequest request = new CreateMeasurementProtocolSecretRequest
{
ParentAsDataStreamName = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]"),
MeasurementProtocolSecret = new MeasurementProtocolSecret(),
};
// Make the request
MeasurementProtocolSecret response = await analyticsAdminServiceClient.CreateMeasurementProtocolSecretAsync(request);
CreateMeasurementProtocolSecretAsync(CreateMeasurementProtocolSecretRequest, CancellationToken)
Creates a measurement protocol secret.
Declaration
public virtual Task<MeasurementProtocolSecret> CreateMeasurementProtocolSecretAsync(CreateMeasurementProtocolSecretRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CreateMeasurementProtocolSecretRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<MeasurementProtocolSecret> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CreateMeasurementProtocolSecretRequest request = new CreateMeasurementProtocolSecretRequest
{
ParentAsDataStreamName = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]"),
MeasurementProtocolSecret = new MeasurementProtocolSecret(),
};
// Make the request
MeasurementProtocolSecret response = await analyticsAdminServiceClient.CreateMeasurementProtocolSecretAsync(request);
CreateMeasurementProtocolSecretAsync(DataStreamName, MeasurementProtocolSecret, CallSettings)
Creates a measurement protocol secret.
Declaration
public virtual Task<MeasurementProtocolSecret> CreateMeasurementProtocolSecretAsync(DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DataStreamName | parent | Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream} |
MeasurementProtocolSecret | measurementProtocolSecret | Required. The measurement protocol secret to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<MeasurementProtocolSecret> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DataStreamName parent = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]");
MeasurementProtocolSecret measurementProtocolSecret = new MeasurementProtocolSecret();
// Make the request
MeasurementProtocolSecret response = await analyticsAdminServiceClient.CreateMeasurementProtocolSecretAsync(parent, measurementProtocolSecret);
CreateMeasurementProtocolSecretAsync(DataStreamName, MeasurementProtocolSecret, CancellationToken)
Creates a measurement protocol secret.
Declaration
public virtual Task<MeasurementProtocolSecret> CreateMeasurementProtocolSecretAsync(DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
DataStreamName | parent | Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream} |
MeasurementProtocolSecret | measurementProtocolSecret | Required. The measurement protocol secret to create. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<MeasurementProtocolSecret> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DataStreamName parent = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]");
MeasurementProtocolSecret measurementProtocolSecret = new MeasurementProtocolSecret();
// Make the request
MeasurementProtocolSecret response = await analyticsAdminServiceClient.CreateMeasurementProtocolSecretAsync(parent, measurementProtocolSecret);
CreateMeasurementProtocolSecretAsync(string, MeasurementProtocolSecret, CallSettings)
Creates a measurement protocol secret.
Declaration
public virtual Task<MeasurementProtocolSecret> CreateMeasurementProtocolSecretAsync(string parent, MeasurementProtocolSecret measurementProtocolSecret, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream} |
MeasurementProtocolSecret | measurementProtocolSecret | Required. The measurement protocol secret to create. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<MeasurementProtocolSecret> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]/dataStreams/[DATA_STREAM]";
MeasurementProtocolSecret measurementProtocolSecret = new MeasurementProtocolSecret();
// Make the request
MeasurementProtocolSecret response = await analyticsAdminServiceClient.CreateMeasurementProtocolSecretAsync(parent, measurementProtocolSecret);
CreateMeasurementProtocolSecretAsync(string, MeasurementProtocolSecret, CancellationToken)
Creates a measurement protocol secret.
Declaration
public virtual Task<MeasurementProtocolSecret> CreateMeasurementProtocolSecretAsync(string parent, MeasurementProtocolSecret measurementProtocolSecret, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream} |
MeasurementProtocolSecret | measurementProtocolSecret | Required. The measurement protocol secret to create. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<MeasurementProtocolSecret> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]/dataStreams/[DATA_STREAM]";
MeasurementProtocolSecret measurementProtocolSecret = new MeasurementProtocolSecret();
// Make the request
MeasurementProtocolSecret response = await analyticsAdminServiceClient.CreateMeasurementProtocolSecretAsync(parent, measurementProtocolSecret);
CreateProperty(CreatePropertyRequest, CallSettings)
Creates a Google Analytics 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. |
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 a Google Analytics 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. |
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 a Google Analytics 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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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 a Google Analytics 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. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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 a Google Analytics 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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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 a Google Analytics 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. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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);
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, AccessBindings) 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" |
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, AccessBindings) 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. |
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, AccessBindings) 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 |
---|---|---|
string | name | Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" |
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, AccessBindings) 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" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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, AccessBindings) 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" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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, AccessBindings) 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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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, AccessBindings) 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. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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, AccessBindings) 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 |
---|---|---|
string | name | Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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, AccessBindings) 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 |
---|---|---|
string | name | Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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);
DeleteConversionEvent(ConversionEventName, CallSettings)
Deprecated: Use DeleteKeyEvent
instead.
Deletes a conversion event in a property.
Declaration
[Obsolete]
public virtual void DeleteConversionEvent(ConversionEventName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ConversionEventName | name | Required. The resource name of the conversion event to delete. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ConversionEventName name = ConversionEventName.FromPropertyConversionEvent("[PROPERTY]", "[CONVERSION_EVENT]");
// Make the request
#pragma warning disable CS0612
analyticsAdminServiceClient.DeleteConversionEvent(name);
#pragma warning restore CS0612
DeleteConversionEvent(DeleteConversionEventRequest, CallSettings)
Deprecated: Use DeleteKeyEvent
instead.
Deletes a conversion event in a property.
Declaration
[Obsolete]
public virtual void DeleteConversionEvent(DeleteConversionEventRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteConversionEventRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DeleteConversionEventRequest request = new DeleteConversionEventRequest
{
ConversionEventName = ConversionEventName.FromPropertyConversionEvent("[PROPERTY]", "[CONVERSION_EVENT]"),
};
// Make the request
#pragma warning disable CS0612
analyticsAdminServiceClient.DeleteConversionEvent(request);
#pragma warning restore CS0612
DeleteConversionEvent(string, CallSettings)
Deprecated: Use DeleteKeyEvent
instead.
Deletes a conversion event in a property.
Declaration
[Obsolete]
public virtual void DeleteConversionEvent(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the conversion event to delete. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456" |
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]/conversionEvents/[CONVERSION_EVENT]";
// Make the request
#pragma warning disable CS0612
analyticsAdminServiceClient.DeleteConversionEvent(name);
#pragma warning restore CS0612
DeleteConversionEventAsync(ConversionEventName, CallSettings)
Deprecated: Use DeleteKeyEvent
instead.
Deletes a conversion event in a property.
Declaration
[Obsolete]
public virtual Task DeleteConversionEventAsync(ConversionEventName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ConversionEventName | name | Required. The resource name of the conversion event to delete. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ConversionEventName name = ConversionEventName.FromPropertyConversionEvent("[PROPERTY]", "[CONVERSION_EVENT]");
// Make the request
#pragma warning disable CS0612
await analyticsAdminServiceClient.DeleteConversionEventAsync(name);
#pragma warning restore CS0612
DeleteConversionEventAsync(ConversionEventName, CancellationToken)
Deprecated: Use DeleteKeyEvent
instead.
Deletes a conversion event in a property.
Declaration
[Obsolete]
public virtual Task DeleteConversionEventAsync(ConversionEventName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
ConversionEventName | name | Required. The resource name of the conversion event to delete. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ConversionEventName name = ConversionEventName.FromPropertyConversionEvent("[PROPERTY]", "[CONVERSION_EVENT]");
// Make the request
#pragma warning disable CS0612
await analyticsAdminServiceClient.DeleteConversionEventAsync(name);
#pragma warning restore CS0612
DeleteConversionEventAsync(DeleteConversionEventRequest, CallSettings)
Deprecated: Use DeleteKeyEvent
instead.
Deletes a conversion event in a property.
Declaration
[Obsolete]
public virtual Task DeleteConversionEventAsync(DeleteConversionEventRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteConversionEventRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteConversionEventRequest request = new DeleteConversionEventRequest
{
ConversionEventName = ConversionEventName.FromPropertyConversionEvent("[PROPERTY]", "[CONVERSION_EVENT]"),
};
// Make the request
#pragma warning disable CS0612
await analyticsAdminServiceClient.DeleteConversionEventAsync(request);
#pragma warning restore CS0612
DeleteConversionEventAsync(DeleteConversionEventRequest, CancellationToken)
Deprecated: Use DeleteKeyEvent
instead.
Deletes a conversion event in a property.
Declaration
[Obsolete]
public virtual Task DeleteConversionEventAsync(DeleteConversionEventRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
DeleteConversionEventRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteConversionEventRequest request = new DeleteConversionEventRequest
{
ConversionEventName = ConversionEventName.FromPropertyConversionEvent("[PROPERTY]", "[CONVERSION_EVENT]"),
};
// Make the request
#pragma warning disable CS0612
await analyticsAdminServiceClient.DeleteConversionEventAsync(request);
#pragma warning restore CS0612
DeleteConversionEventAsync(string, CallSettings)
Deprecated: Use DeleteKeyEvent
instead.
Deletes a conversion event in a property.
Declaration
[Obsolete]
public virtual Task DeleteConversionEventAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the conversion event to delete. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/conversionEvents/[CONVERSION_EVENT]";
// Make the request
#pragma warning disable CS0612
await analyticsAdminServiceClient.DeleteConversionEventAsync(name);
#pragma warning restore CS0612
DeleteConversionEventAsync(string, CancellationToken)
Deprecated: Use DeleteKeyEvent
instead.
Deletes a conversion event in a property.
Declaration
[Obsolete]
public virtual Task DeleteConversionEventAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the conversion event to delete. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/conversionEvents/[CONVERSION_EVENT]";
// Make the request
#pragma warning disable CS0612
await analyticsAdminServiceClient.DeleteConversionEventAsync(name);
#pragma warning restore CS0612
DeleteDataStream(DataStreamName, CallSettings)
Deletes a DataStream on a property.
Declaration
public virtual void DeleteDataStream(DataStreamName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DataStreamName | name | Required. The name of the DataStream to delete. Example format: properties/1234/dataStreams/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DataStreamName name = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]");
// Make the request
analyticsAdminServiceClient.DeleteDataStream(name);
DeleteDataStream(DeleteDataStreamRequest, CallSettings)
Deletes a DataStream on a property.
Declaration
public virtual void DeleteDataStream(DeleteDataStreamRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteDataStreamRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DeleteDataStreamRequest request = new DeleteDataStreamRequest
{
DataStreamName = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]"),
};
// Make the request
analyticsAdminServiceClient.DeleteDataStream(request);
DeleteDataStream(string, CallSettings)
Deletes a DataStream on a property.
Declaration
public virtual void DeleteDataStream(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the DataStream to delete. Example format: properties/1234/dataStreams/5678 |
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]/dataStreams/[DATA_STREAM]";
// Make the request
analyticsAdminServiceClient.DeleteDataStream(name);
DeleteDataStreamAsync(DataStreamName, CallSettings)
Deletes a DataStream on a property.
Declaration
public virtual Task DeleteDataStreamAsync(DataStreamName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DataStreamName | name | Required. The name of the DataStream to delete. Example format: properties/1234/dataStreams/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DataStreamName name = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]");
// Make the request
await analyticsAdminServiceClient.DeleteDataStreamAsync(name);
DeleteDataStreamAsync(DataStreamName, CancellationToken)
Deletes a DataStream on a property.
Declaration
public virtual Task DeleteDataStreamAsync(DataStreamName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
DataStreamName | name | Required. The name of the DataStream to delete. Example format: properties/1234/dataStreams/5678 |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DataStreamName name = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]");
// Make the request
await analyticsAdminServiceClient.DeleteDataStreamAsync(name);
DeleteDataStreamAsync(DeleteDataStreamRequest, CallSettings)
Deletes a DataStream on a property.
Declaration
public virtual Task DeleteDataStreamAsync(DeleteDataStreamRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteDataStreamRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDataStreamRequest request = new DeleteDataStreamRequest
{
DataStreamName = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteDataStreamAsync(request);
DeleteDataStreamAsync(DeleteDataStreamRequest, CancellationToken)
Deletes a DataStream on a property.
Declaration
public virtual Task DeleteDataStreamAsync(DeleteDataStreamRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
DeleteDataStreamRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteDataStreamRequest request = new DeleteDataStreamRequest
{
DataStreamName = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteDataStreamAsync(request);
DeleteDataStreamAsync(string, CallSettings)
Deletes a DataStream on a property.
Declaration
public virtual Task DeleteDataStreamAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the DataStream to delete. Example format: properties/1234/dataStreams/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/dataStreams/[DATA_STREAM]";
// Make the request
await analyticsAdminServiceClient.DeleteDataStreamAsync(name);
DeleteDataStreamAsync(string, CancellationToken)
Deletes a DataStream on a property.
Declaration
public virtual Task DeleteDataStreamAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the DataStream to delete. Example format: properties/1234/dataStreams/5678 |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/dataStreams/[DATA_STREAM]";
// Make the request
await analyticsAdminServiceClient.DeleteDataStreamAsync(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. |
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: |
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 |
---|---|---|
string | name | Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: |
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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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: |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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 |
---|---|---|
string | name | Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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 |
---|---|---|
string | name | Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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. |
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 |
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 |
---|---|---|
string | name | Required. Example format: properties/1234/googleAdsLinks/5678 |
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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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 |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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 |
---|---|---|
string | name | Required. Example format: properties/1234/googleAdsLinks/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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 |
---|---|---|
string | name | Required. Example format: properties/1234/googleAdsLinks/5678 |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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);
DeleteKeyEvent(DeleteKeyEventRequest, CallSettings)
Deletes a Key Event.
Declaration
public virtual void DeleteKeyEvent(DeleteKeyEventRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteKeyEventRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DeleteKeyEventRequest request = new DeleteKeyEventRequest
{
KeyEventName = KeyEventName.FromPropertyKeyEvent("[PROPERTY]", "[KEY_EVENT]"),
};
// Make the request
analyticsAdminServiceClient.DeleteKeyEvent(request);
DeleteKeyEvent(KeyEventName, CallSettings)
Deletes a Key Event.
Declaration
public virtual void DeleteKeyEvent(KeyEventName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
KeyEventName | name | Required. The resource name of the Key Event to delete. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
KeyEventName name = KeyEventName.FromPropertyKeyEvent("[PROPERTY]", "[KEY_EVENT]");
// Make the request
analyticsAdminServiceClient.DeleteKeyEvent(name);
DeleteKeyEvent(string, CallSettings)
Deletes a Key Event.
Declaration
public virtual void DeleteKeyEvent(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the Key Event to delete. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" |
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]/keyEvents/[KEY_EVENT]";
// Make the request
analyticsAdminServiceClient.DeleteKeyEvent(name);
DeleteKeyEventAsync(DeleteKeyEventRequest, CallSettings)
Deletes a Key Event.
Declaration
public virtual Task DeleteKeyEventAsync(DeleteKeyEventRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteKeyEventRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteKeyEventRequest request = new DeleteKeyEventRequest
{
KeyEventName = KeyEventName.FromPropertyKeyEvent("[PROPERTY]", "[KEY_EVENT]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteKeyEventAsync(request);
DeleteKeyEventAsync(DeleteKeyEventRequest, CancellationToken)
Deletes a Key Event.
Declaration
public virtual Task DeleteKeyEventAsync(DeleteKeyEventRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
DeleteKeyEventRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteKeyEventRequest request = new DeleteKeyEventRequest
{
KeyEventName = KeyEventName.FromPropertyKeyEvent("[PROPERTY]", "[KEY_EVENT]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteKeyEventAsync(request);
DeleteKeyEventAsync(KeyEventName, CallSettings)
Deletes a Key Event.
Declaration
public virtual Task DeleteKeyEventAsync(KeyEventName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
KeyEventName | name | Required. The resource name of the Key Event to delete. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
KeyEventName name = KeyEventName.FromPropertyKeyEvent("[PROPERTY]", "[KEY_EVENT]");
// Make the request
await analyticsAdminServiceClient.DeleteKeyEventAsync(name);
DeleteKeyEventAsync(KeyEventName, CancellationToken)
Deletes a Key Event.
Declaration
public virtual Task DeleteKeyEventAsync(KeyEventName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
KeyEventName | name | Required. The resource name of the Key Event to delete. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
KeyEventName name = KeyEventName.FromPropertyKeyEvent("[PROPERTY]", "[KEY_EVENT]");
// Make the request
await analyticsAdminServiceClient.DeleteKeyEventAsync(name);
DeleteKeyEventAsync(string, CallSettings)
Deletes a Key Event.
Declaration
public virtual Task DeleteKeyEventAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the Key Event to delete. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/keyEvents/[KEY_EVENT]";
// Make the request
await analyticsAdminServiceClient.DeleteKeyEventAsync(name);
DeleteKeyEventAsync(string, CancellationToken)
Deletes a Key Event.
Declaration
public virtual Task DeleteKeyEventAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the Key Event to delete. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/keyEvents/[KEY_EVENT]";
// Make the request
await analyticsAdminServiceClient.DeleteKeyEventAsync(name);
DeleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest, CallSettings)
Deletes target MeasurementProtocolSecret.
Declaration
public virtual void DeleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteMeasurementProtocolSecretRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DeleteMeasurementProtocolSecretRequest request = new DeleteMeasurementProtocolSecretRequest
{
MeasurementProtocolSecretName = MeasurementProtocolSecretName.FromPropertyDataStreamMeasurementProtocolSecret("[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"),
};
// Make the request
analyticsAdminServiceClient.DeleteMeasurementProtocolSecret(request);
DeleteMeasurementProtocolSecret(MeasurementProtocolSecretName, CallSettings)
Deletes target MeasurementProtocolSecret.
Declaration
public virtual void DeleteMeasurementProtocolSecret(MeasurementProtocolSecretName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
MeasurementProtocolSecretName | name | Required. The name of the MeasurementProtocolSecret to delete. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
MeasurementProtocolSecretName name = MeasurementProtocolSecretName.FromPropertyDataStreamMeasurementProtocolSecret("[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
// Make the request
analyticsAdminServiceClient.DeleteMeasurementProtocolSecret(name);
DeleteMeasurementProtocolSecret(string, CallSettings)
Deletes target MeasurementProtocolSecret.
Declaration
public virtual void DeleteMeasurementProtocolSecret(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the MeasurementProtocolSecret to delete. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} |
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]/dataStreams/[DATA_STREAM]/measurementProtocolSecrets/[MEASUREMENT_PROTOCOL_SECRET]";
// Make the request
analyticsAdminServiceClient.DeleteMeasurementProtocolSecret(name);
DeleteMeasurementProtocolSecretAsync(DeleteMeasurementProtocolSecretRequest, CallSettings)
Deletes target MeasurementProtocolSecret.
Declaration
public virtual Task DeleteMeasurementProtocolSecretAsync(DeleteMeasurementProtocolSecretRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteMeasurementProtocolSecretRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteMeasurementProtocolSecretRequest request = new DeleteMeasurementProtocolSecretRequest
{
MeasurementProtocolSecretName = MeasurementProtocolSecretName.FromPropertyDataStreamMeasurementProtocolSecret("[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteMeasurementProtocolSecretAsync(request);
DeleteMeasurementProtocolSecretAsync(DeleteMeasurementProtocolSecretRequest, CancellationToken)
Deletes target MeasurementProtocolSecret.
Declaration
public virtual Task DeleteMeasurementProtocolSecretAsync(DeleteMeasurementProtocolSecretRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
DeleteMeasurementProtocolSecretRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteMeasurementProtocolSecretRequest request = new DeleteMeasurementProtocolSecretRequest
{
MeasurementProtocolSecretName = MeasurementProtocolSecretName.FromPropertyDataStreamMeasurementProtocolSecret("[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"),
};
// Make the request
await analyticsAdminServiceClient.DeleteMeasurementProtocolSecretAsync(request);
DeleteMeasurementProtocolSecretAsync(MeasurementProtocolSecretName, CallSettings)
Deletes target MeasurementProtocolSecret.
Declaration
public virtual Task DeleteMeasurementProtocolSecretAsync(MeasurementProtocolSecretName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
MeasurementProtocolSecretName | name | Required. The name of the MeasurementProtocolSecret to delete. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
MeasurementProtocolSecretName name = MeasurementProtocolSecretName.FromPropertyDataStreamMeasurementProtocolSecret("[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
// Make the request
await analyticsAdminServiceClient.DeleteMeasurementProtocolSecretAsync(name);
DeleteMeasurementProtocolSecretAsync(MeasurementProtocolSecretName, CancellationToken)
Deletes target MeasurementProtocolSecret.
Declaration
public virtual Task DeleteMeasurementProtocolSecretAsync(MeasurementProtocolSecretName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
MeasurementProtocolSecretName | name | Required. The name of the MeasurementProtocolSecret to delete. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
MeasurementProtocolSecretName name = MeasurementProtocolSecretName.FromPropertyDataStreamMeasurementProtocolSecret("[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
// Make the request
await analyticsAdminServiceClient.DeleteMeasurementProtocolSecretAsync(name);
DeleteMeasurementProtocolSecretAsync(string, CallSettings)
Deletes target MeasurementProtocolSecret.
Declaration
public virtual Task DeleteMeasurementProtocolSecretAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the MeasurementProtocolSecret to delete. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/dataStreams/[DATA_STREAM]/measurementProtocolSecrets/[MEASUREMENT_PROTOCOL_SECRET]";
// Make the request
await analyticsAdminServiceClient.DeleteMeasurementProtocolSecretAsync(name);
DeleteMeasurementProtocolSecretAsync(string, CancellationToken)
Deletes target MeasurementProtocolSecret.
Declaration
public virtual Task DeleteMeasurementProtocolSecretAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the MeasurementProtocolSecret to delete. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/dataStreams/[DATA_STREAM]/measurementProtocolSecrets/[MEASUREMENT_PROTOCOL_SECRET]";
// Make the request
await analyticsAdminServiceClient.DeleteMeasurementProtocolSecretAsync(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, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772
Returns an error if the target is not found.
Declaration
public virtual Property DeleteProperty(DeletePropertyRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeletePropertyRequest | request | The request object containing all of the parameters for the API call. |
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)
DeletePropertyRequest request = new DeletePropertyRequest
{
PropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
Property response = 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, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772
Returns an error if the target is not found.
Declaration
public virtual Property 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" |
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.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, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772
Returns an error if the target is not found.
Declaration
public virtual Property DeleteProperty(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: "properties/1000" |
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.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, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772
Returns an error if the target is not found.
Declaration
public virtual Task<Property> DeletePropertyAsync(DeletePropertyRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeletePropertyRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Property> | 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
Property response = 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, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772
Returns an error if the target is not found.
Declaration
public virtual Task<Property> DeletePropertyAsync(DeletePropertyRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
DeletePropertyRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<Property> | 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
Property response = 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, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772
Returns an error if the target is not found.
Declaration
public virtual Task<Property> 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" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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.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, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772
Returns an error if the target is not found.
Declaration
public virtual Task<Property> 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" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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.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, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772
Returns an error if the target is not found.
Declaration
public virtual Task<Property> DeletePropertyAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: "properties/1000" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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.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, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772
Returns an error if the target is not found.
Declaration
public virtual Task<Property> DeletePropertyAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: "properties/1000" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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.DeletePropertyAsync(name);
GetAccount(AccountName, CallSettings)
Lookup for a single Account.
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" |
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.
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. |
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.
Declaration
public virtual Account GetAccount(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100" |
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.
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" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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.
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" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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.
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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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.
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. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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.
Declaration
public virtual Task<Account> GetAccountAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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.
Declaration
public virtual Task<Account> GetAccountAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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);
GetConversionEvent(ConversionEventName, CallSettings)
Deprecated: Use GetKeyEvent
instead.
Retrieve a single conversion event.
Declaration
[Obsolete]
public virtual ConversionEvent GetConversionEvent(ConversionEventName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ConversionEventName | name | Required. The resource name of the conversion event to retrieve. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
ConversionEvent | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ConversionEventName name = ConversionEventName.FromPropertyConversionEvent("[PROPERTY]", "[CONVERSION_EVENT]");
// Make the request
#pragma warning disable CS0612
ConversionEvent response = analyticsAdminServiceClient.GetConversionEvent(name);
#pragma warning restore CS0612
GetConversionEvent(GetConversionEventRequest, CallSettings)
Deprecated: Use GetKeyEvent
instead.
Retrieve a single conversion event.
Declaration
[Obsolete]
public virtual ConversionEvent GetConversionEvent(GetConversionEventRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetConversionEventRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
ConversionEvent | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetConversionEventRequest request = new GetConversionEventRequest
{
ConversionEventName = ConversionEventName.FromPropertyConversionEvent("[PROPERTY]", "[CONVERSION_EVENT]"),
};
// Make the request
#pragma warning disable CS0612
ConversionEvent response = analyticsAdminServiceClient.GetConversionEvent(request);
#pragma warning restore CS0612
GetConversionEvent(string, CallSettings)
Deprecated: Use GetKeyEvent
instead.
Retrieve a single conversion event.
Declaration
[Obsolete]
public virtual ConversionEvent GetConversionEvent(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the conversion event to retrieve. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
ConversionEvent | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/conversionEvents/[CONVERSION_EVENT]";
// Make the request
#pragma warning disable CS0612
ConversionEvent response = analyticsAdminServiceClient.GetConversionEvent(name);
#pragma warning restore CS0612
GetConversionEventAsync(ConversionEventName, CallSettings)
Deprecated: Use GetKeyEvent
instead.
Retrieve a single conversion event.
Declaration
[Obsolete]
public virtual Task<ConversionEvent> GetConversionEventAsync(ConversionEventName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ConversionEventName | name | Required. The resource name of the conversion event to retrieve. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<ConversionEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ConversionEventName name = ConversionEventName.FromPropertyConversionEvent("[PROPERTY]", "[CONVERSION_EVENT]");
// Make the request
#pragma warning disable CS0612
ConversionEvent response = await analyticsAdminServiceClient.GetConversionEventAsync(name);
#pragma warning restore CS0612
GetConversionEventAsync(ConversionEventName, CancellationToken)
Deprecated: Use GetKeyEvent
instead.
Retrieve a single conversion event.
Declaration
[Obsolete]
public virtual Task<ConversionEvent> GetConversionEventAsync(ConversionEventName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
ConversionEventName | name | Required. The resource name of the conversion event to retrieve. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<ConversionEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ConversionEventName name = ConversionEventName.FromPropertyConversionEvent("[PROPERTY]", "[CONVERSION_EVENT]");
// Make the request
#pragma warning disable CS0612
ConversionEvent response = await analyticsAdminServiceClient.GetConversionEventAsync(name);
#pragma warning restore CS0612
GetConversionEventAsync(GetConversionEventRequest, CallSettings)
Deprecated: Use GetKeyEvent
instead.
Retrieve a single conversion event.
Declaration
[Obsolete]
public virtual Task<ConversionEvent> GetConversionEventAsync(GetConversionEventRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetConversionEventRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<ConversionEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetConversionEventRequest request = new GetConversionEventRequest
{
ConversionEventName = ConversionEventName.FromPropertyConversionEvent("[PROPERTY]", "[CONVERSION_EVENT]"),
};
// Make the request
#pragma warning disable CS0612
ConversionEvent response = await analyticsAdminServiceClient.GetConversionEventAsync(request);
#pragma warning restore CS0612
GetConversionEventAsync(GetConversionEventRequest, CancellationToken)
Deprecated: Use GetKeyEvent
instead.
Retrieve a single conversion event.
Declaration
[Obsolete]
public virtual Task<ConversionEvent> GetConversionEventAsync(GetConversionEventRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
GetConversionEventRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<ConversionEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetConversionEventRequest request = new GetConversionEventRequest
{
ConversionEventName = ConversionEventName.FromPropertyConversionEvent("[PROPERTY]", "[CONVERSION_EVENT]"),
};
// Make the request
#pragma warning disable CS0612
ConversionEvent response = await analyticsAdminServiceClient.GetConversionEventAsync(request);
#pragma warning restore CS0612
GetConversionEventAsync(string, CallSettings)
Deprecated: Use GetKeyEvent
instead.
Retrieve a single conversion event.
Declaration
[Obsolete]
public virtual Task<ConversionEvent> GetConversionEventAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the conversion event to retrieve. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<ConversionEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/conversionEvents/[CONVERSION_EVENT]";
// Make the request
#pragma warning disable CS0612
ConversionEvent response = await analyticsAdminServiceClient.GetConversionEventAsync(name);
#pragma warning restore CS0612
GetConversionEventAsync(string, CancellationToken)
Deprecated: Use GetKeyEvent
instead.
Retrieve a single conversion event.
Declaration
[Obsolete]
public virtual Task<ConversionEvent> GetConversionEventAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the conversion event to retrieve. Format: properties/{property}/conversionEvents/{conversion_event} Example: "properties/123/conversionEvents/456" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<ConversionEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/conversionEvents/[CONVERSION_EVENT]";
// Make the request
#pragma warning disable CS0612
ConversionEvent response = await analyticsAdminServiceClient.GetConversionEventAsync(name);
#pragma warning restore CS0612
GetCustomDimension(CustomDimensionName, CallSettings)
Lookup for a single CustomDimension.
Declaration
public virtual CustomDimension GetCustomDimension(CustomDimensionName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CustomDimensionName | name | Required. The name of the CustomDimension to get. Example format: properties/1234/customDimensions/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
CustomDimension | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CustomDimensionName name = CustomDimensionName.FromPropertyCustomDimension("[PROPERTY]", "[CUSTOM_DIMENSION]");
// Make the request
CustomDimension response = analyticsAdminServiceClient.GetCustomDimension(name);
GetCustomDimension(GetCustomDimensionRequest, CallSettings)
Lookup for a single CustomDimension.
Declaration
public virtual CustomDimension GetCustomDimension(GetCustomDimensionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetCustomDimensionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
CustomDimension | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetCustomDimensionRequest request = new GetCustomDimensionRequest
{
CustomDimensionName = CustomDimensionName.FromPropertyCustomDimension("[PROPERTY]", "[CUSTOM_DIMENSION]"),
};
// Make the request
CustomDimension response = analyticsAdminServiceClient.GetCustomDimension(request);
GetCustomDimension(string, CallSettings)
Lookup for a single CustomDimension.
Declaration
public virtual CustomDimension GetCustomDimension(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CustomDimension to get. Example format: properties/1234/customDimensions/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
CustomDimension | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/customDimensions/[CUSTOM_DIMENSION]";
// Make the request
CustomDimension response = analyticsAdminServiceClient.GetCustomDimension(name);
GetCustomDimensionAsync(CustomDimensionName, CallSettings)
Lookup for a single CustomDimension.
Declaration
public virtual Task<CustomDimension> GetCustomDimensionAsync(CustomDimensionName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CustomDimensionName | name | Required. The name of the CustomDimension to get. Example format: properties/1234/customDimensions/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<CustomDimension> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CustomDimensionName name = CustomDimensionName.FromPropertyCustomDimension("[PROPERTY]", "[CUSTOM_DIMENSION]");
// Make the request
CustomDimension response = await analyticsAdminServiceClient.GetCustomDimensionAsync(name);
GetCustomDimensionAsync(CustomDimensionName, CancellationToken)
Lookup for a single CustomDimension.
Declaration
public virtual Task<CustomDimension> GetCustomDimensionAsync(CustomDimensionName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CustomDimensionName | name | Required. The name of the CustomDimension to get. Example format: properties/1234/customDimensions/5678 |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<CustomDimension> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CustomDimensionName name = CustomDimensionName.FromPropertyCustomDimension("[PROPERTY]", "[CUSTOM_DIMENSION]");
// Make the request
CustomDimension response = await analyticsAdminServiceClient.GetCustomDimensionAsync(name);
GetCustomDimensionAsync(GetCustomDimensionRequest, CallSettings)
Lookup for a single CustomDimension.
Declaration
public virtual Task<CustomDimension> GetCustomDimensionAsync(GetCustomDimensionRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetCustomDimensionRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<CustomDimension> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetCustomDimensionRequest request = new GetCustomDimensionRequest
{
CustomDimensionName = CustomDimensionName.FromPropertyCustomDimension("[PROPERTY]", "[CUSTOM_DIMENSION]"),
};
// Make the request
CustomDimension response = await analyticsAdminServiceClient.GetCustomDimensionAsync(request);
GetCustomDimensionAsync(GetCustomDimensionRequest, CancellationToken)
Lookup for a single CustomDimension.
Declaration
public virtual Task<CustomDimension> GetCustomDimensionAsync(GetCustomDimensionRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
GetCustomDimensionRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<CustomDimension> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetCustomDimensionRequest request = new GetCustomDimensionRequest
{
CustomDimensionName = CustomDimensionName.FromPropertyCustomDimension("[PROPERTY]", "[CUSTOM_DIMENSION]"),
};
// Make the request
CustomDimension response = await analyticsAdminServiceClient.GetCustomDimensionAsync(request);
GetCustomDimensionAsync(string, CallSettings)
Lookup for a single CustomDimension.
Declaration
public virtual Task<CustomDimension> GetCustomDimensionAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CustomDimension to get. Example format: properties/1234/customDimensions/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<CustomDimension> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/customDimensions/[CUSTOM_DIMENSION]";
// Make the request
CustomDimension response = await analyticsAdminServiceClient.GetCustomDimensionAsync(name);
GetCustomDimensionAsync(string, CancellationToken)
Lookup for a single CustomDimension.
Declaration
public virtual Task<CustomDimension> GetCustomDimensionAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CustomDimension to get. Example format: properties/1234/customDimensions/5678 |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<CustomDimension> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/customDimensions/[CUSTOM_DIMENSION]";
// Make the request
CustomDimension response = await analyticsAdminServiceClient.GetCustomDimensionAsync(name);
GetCustomMetric(CustomMetricName, CallSettings)
Lookup for a single CustomMetric.
Declaration
public virtual CustomMetric GetCustomMetric(CustomMetricName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CustomMetricName | name | Required. The name of the CustomMetric to get. Example format: properties/1234/customMetrics/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
CustomMetric | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
CustomMetricName name = CustomMetricName.FromPropertyCustomMetric("[PROPERTY]", "[CUSTOM_METRIC]");
// Make the request
CustomMetric response = analyticsAdminServiceClient.GetCustomMetric(name);
GetCustomMetric(GetCustomMetricRequest, CallSettings)
Lookup for a single CustomMetric.
Declaration
public virtual CustomMetric GetCustomMetric(GetCustomMetricRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetCustomMetricRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
CustomMetric | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetCustomMetricRequest request = new GetCustomMetricRequest
{
CustomMetricName = CustomMetricName.FromPropertyCustomMetric("[PROPERTY]", "[CUSTOM_METRIC]"),
};
// Make the request
CustomMetric response = analyticsAdminServiceClient.GetCustomMetric(request);
GetCustomMetric(string, CallSettings)
Lookup for a single CustomMetric.
Declaration
public virtual CustomMetric GetCustomMetric(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CustomMetric to get. Example format: properties/1234/customMetrics/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
CustomMetric | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/customMetrics/[CUSTOM_METRIC]";
// Make the request
CustomMetric response = analyticsAdminServiceClient.GetCustomMetric(name);
GetCustomMetricAsync(CustomMetricName, CallSettings)
Lookup for a single CustomMetric.
Declaration
public virtual Task<CustomMetric> GetCustomMetricAsync(CustomMetricName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CustomMetricName | name | Required. The name of the CustomMetric to get. Example format: properties/1234/customMetrics/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<CustomMetric> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CustomMetricName name = CustomMetricName.FromPropertyCustomMetric("[PROPERTY]", "[CUSTOM_METRIC]");
// Make the request
CustomMetric response = await analyticsAdminServiceClient.GetCustomMetricAsync(name);
GetCustomMetricAsync(CustomMetricName, CancellationToken)
Lookup for a single CustomMetric.
Declaration
public virtual Task<CustomMetric> GetCustomMetricAsync(CustomMetricName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CustomMetricName | name | Required. The name of the CustomMetric to get. Example format: properties/1234/customMetrics/5678 |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<CustomMetric> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
CustomMetricName name = CustomMetricName.FromPropertyCustomMetric("[PROPERTY]", "[CUSTOM_METRIC]");
// Make the request
CustomMetric response = await analyticsAdminServiceClient.GetCustomMetricAsync(name);
GetCustomMetricAsync(GetCustomMetricRequest, CallSettings)
Lookup for a single CustomMetric.
Declaration
public virtual Task<CustomMetric> GetCustomMetricAsync(GetCustomMetricRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetCustomMetricRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<CustomMetric> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetCustomMetricRequest request = new GetCustomMetricRequest
{
CustomMetricName = CustomMetricName.FromPropertyCustomMetric("[PROPERTY]", "[CUSTOM_METRIC]"),
};
// Make the request
CustomMetric response = await analyticsAdminServiceClient.GetCustomMetricAsync(request);
GetCustomMetricAsync(GetCustomMetricRequest, CancellationToken)
Lookup for a single CustomMetric.
Declaration
public virtual Task<CustomMetric> GetCustomMetricAsync(GetCustomMetricRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
GetCustomMetricRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<CustomMetric> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetCustomMetricRequest request = new GetCustomMetricRequest
{
CustomMetricName = CustomMetricName.FromPropertyCustomMetric("[PROPERTY]", "[CUSTOM_METRIC]"),
};
// Make the request
CustomMetric response = await analyticsAdminServiceClient.GetCustomMetricAsync(request);
GetCustomMetricAsync(string, CallSettings)
Lookup for a single CustomMetric.
Declaration
public virtual Task<CustomMetric> GetCustomMetricAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CustomMetric to get. Example format: properties/1234/customMetrics/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<CustomMetric> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/customMetrics/[CUSTOM_METRIC]";
// Make the request
CustomMetric response = await analyticsAdminServiceClient.GetCustomMetricAsync(name);
GetCustomMetricAsync(string, CancellationToken)
Lookup for a single CustomMetric.
Declaration
public virtual Task<CustomMetric> GetCustomMetricAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the CustomMetric to get. Example format: properties/1234/customMetrics/5678 |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<CustomMetric> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/customMetrics/[CUSTOM_METRIC]";
// Make the request
CustomMetric response = await analyticsAdminServiceClient.GetCustomMetricAsync(name);
GetDataRetentionSettings(DataRetentionSettingsName, CallSettings)
Returns the singleton data retention settings for this property.
Declaration
public virtual DataRetentionSettings GetDataRetentionSettings(DataRetentionSettingsName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DataRetentionSettingsName | name | Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: "properties/1000/dataRetentionSettings" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
DataRetentionSettings | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DataRetentionSettingsName name = DataRetentionSettingsName.FromProperty("[PROPERTY]");
// Make the request
DataRetentionSettings response = analyticsAdminServiceClient.GetDataRetentionSettings(name);
GetDataRetentionSettings(GetDataRetentionSettingsRequest, CallSettings)
Returns the singleton data retention settings for this property.
Declaration
public virtual DataRetentionSettings GetDataRetentionSettings(GetDataRetentionSettingsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetDataRetentionSettingsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
DataRetentionSettings | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetDataRetentionSettingsRequest request = new GetDataRetentionSettingsRequest
{
DataRetentionSettingsName = DataRetentionSettingsName.FromProperty("[PROPERTY]"),
};
// Make the request
DataRetentionSettings response = analyticsAdminServiceClient.GetDataRetentionSettings(request);
GetDataRetentionSettings(string, CallSettings)
Returns the singleton data retention settings for this property.
Declaration
public virtual DataRetentionSettings GetDataRetentionSettings(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: "properties/1000/dataRetentionSettings" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
DataRetentionSettings | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/dataRetentionSettings";
// Make the request
DataRetentionSettings response = analyticsAdminServiceClient.GetDataRetentionSettings(name);
GetDataRetentionSettingsAsync(DataRetentionSettingsName, CallSettings)
Returns the singleton data retention settings for this property.
Declaration
public virtual Task<DataRetentionSettings> GetDataRetentionSettingsAsync(DataRetentionSettingsName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DataRetentionSettingsName | name | Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: "properties/1000/dataRetentionSettings" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<DataRetentionSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DataRetentionSettingsName name = DataRetentionSettingsName.FromProperty("[PROPERTY]");
// Make the request
DataRetentionSettings response = await analyticsAdminServiceClient.GetDataRetentionSettingsAsync(name);
GetDataRetentionSettingsAsync(DataRetentionSettingsName, CancellationToken)
Returns the singleton data retention settings for this property.
Declaration
public virtual Task<DataRetentionSettings> GetDataRetentionSettingsAsync(DataRetentionSettingsName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
DataRetentionSettingsName | name | Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: "properties/1000/dataRetentionSettings" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<DataRetentionSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DataRetentionSettingsName name = DataRetentionSettingsName.FromProperty("[PROPERTY]");
// Make the request
DataRetentionSettings response = await analyticsAdminServiceClient.GetDataRetentionSettingsAsync(name);
GetDataRetentionSettingsAsync(GetDataRetentionSettingsRequest, CallSettings)
Returns the singleton data retention settings for this property.
Declaration
public virtual Task<DataRetentionSettings> GetDataRetentionSettingsAsync(GetDataRetentionSettingsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetDataRetentionSettingsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<DataRetentionSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetDataRetentionSettingsRequest request = new GetDataRetentionSettingsRequest
{
DataRetentionSettingsName = DataRetentionSettingsName.FromProperty("[PROPERTY]"),
};
// Make the request
DataRetentionSettings response = await analyticsAdminServiceClient.GetDataRetentionSettingsAsync(request);
GetDataRetentionSettingsAsync(GetDataRetentionSettingsRequest, CancellationToken)
Returns the singleton data retention settings for this property.
Declaration
public virtual Task<DataRetentionSettings> GetDataRetentionSettingsAsync(GetDataRetentionSettingsRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
GetDataRetentionSettingsRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<DataRetentionSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetDataRetentionSettingsRequest request = new GetDataRetentionSettingsRequest
{
DataRetentionSettingsName = DataRetentionSettingsName.FromProperty("[PROPERTY]"),
};
// Make the request
DataRetentionSettings response = await analyticsAdminServiceClient.GetDataRetentionSettingsAsync(request);
GetDataRetentionSettingsAsync(string, CallSettings)
Returns the singleton data retention settings for this property.
Declaration
public virtual Task<DataRetentionSettings> GetDataRetentionSettingsAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: "properties/1000/dataRetentionSettings" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<DataRetentionSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/dataRetentionSettings";
// Make the request
DataRetentionSettings response = await analyticsAdminServiceClient.GetDataRetentionSettingsAsync(name);
GetDataRetentionSettingsAsync(string, CancellationToken)
Returns the singleton data retention settings for this property.
Declaration
public virtual Task<DataRetentionSettings> GetDataRetentionSettingsAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: "properties/1000/dataRetentionSettings" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<DataRetentionSettings> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/dataRetentionSettings";
// Make the request
DataRetentionSettings response = await analyticsAdminServiceClient.GetDataRetentionSettingsAsync(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: |
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. |
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 |
---|---|---|
string | name | Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: |
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: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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: |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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 |
---|---|---|
string | name | Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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 |
---|---|---|
string | name | Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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);
GetDataStream(DataStreamName, CallSettings)
Lookup for a single DataStream.
Declaration
public virtual DataStream GetDataStream(DataStreamName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DataStreamName | name | Required. The name of the DataStream to get. Example format: properties/1234/dataStreams/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
DataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
DataStreamName name = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]");
// Make the request
DataStream response = analyticsAdminServiceClient.GetDataStream(name);
GetDataStream(GetDataStreamRequest, CallSettings)
Lookup for a single DataStream.
Declaration
public virtual DataStream GetDataStream(GetDataStreamRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetDataStreamRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
DataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetDataStreamRequest request = new GetDataStreamRequest
{
DataStreamName = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]"),
};
// Make the request
DataStream response = analyticsAdminServiceClient.GetDataStream(request);
GetDataStream(string, CallSettings)
Lookup for a single DataStream.
Declaration
public virtual DataStream GetDataStream(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the DataStream to get. Example format: properties/1234/dataStreams/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
DataStream | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/dataStreams/[DATA_STREAM]";
// Make the request
DataStream response = analyticsAdminServiceClient.GetDataStream(name);
GetDataStreamAsync(DataStreamName, CallSettings)
Lookup for a single DataStream.
Declaration
public virtual Task<DataStream> GetDataStreamAsync(DataStreamName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DataStreamName | name | Required. The name of the DataStream to get. Example format: properties/1234/dataStreams/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<DataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DataStreamName name = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]");
// Make the request
DataStream response = await analyticsAdminServiceClient.GetDataStreamAsync(name);
GetDataStreamAsync(DataStreamName, CancellationToken)
Lookup for a single DataStream.
Declaration
public virtual Task<DataStream> GetDataStreamAsync(DataStreamName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
DataStreamName | name | Required. The name of the DataStream to get. Example format: properties/1234/dataStreams/5678 |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<DataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
DataStreamName name = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]");
// Make the request
DataStream response = await analyticsAdminServiceClient.GetDataStreamAsync(name);
GetDataStreamAsync(GetDataStreamRequest, CallSettings)
Lookup for a single DataStream.
Declaration
public virtual Task<DataStream> GetDataStreamAsync(GetDataStreamRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetDataStreamRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<DataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetDataStreamRequest request = new GetDataStreamRequest
{
DataStreamName = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]"),
};
// Make the request
DataStream response = await analyticsAdminServiceClient.GetDataStreamAsync(request);
GetDataStreamAsync(GetDataStreamRequest, CancellationToken)
Lookup for a single DataStream.
Declaration
public virtual Task<DataStream> GetDataStreamAsync(GetDataStreamRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
GetDataStreamRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<DataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetDataStreamRequest request = new GetDataStreamRequest
{
DataStreamName = DataStreamName.FromPropertyDataStream("[PROPERTY]", "[DATA_STREAM]"),
};
// Make the request
DataStream response = await analyticsAdminServiceClient.GetDataStreamAsync(request);
GetDataStreamAsync(string, CallSettings)
Lookup for a single DataStream.
Declaration
public virtual Task<DataStream> GetDataStreamAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the DataStream to get. Example format: properties/1234/dataStreams/5678 |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<DataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/dataStreams/[DATA_STREAM]";
// Make the request
DataStream response = await analyticsAdminServiceClient.GetDataStreamAsync(name);
GetDataStreamAsync(string, CancellationToken)
Lookup for a single DataStream.
Declaration
public virtual Task<DataStream> GetDataStreamAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the DataStream to get. Example format: properties/1234/dataStreams/5678 |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<DataStream> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/dataStreams/[DATA_STREAM]";
// Make the request
DataStream response = await analyticsAdminServiceClient.GetDataStreamAsync(name);
GetKeyEvent(GetKeyEventRequest, CallSettings)
Retrieve a single Key Event.
Declaration
public virtual KeyEvent GetKeyEvent(GetKeyEventRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetKeyEventRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
KeyEvent | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetKeyEventRequest request = new GetKeyEventRequest
{
KeyEventName = KeyEventName.FromPropertyKeyEvent("[PROPERTY]", "[KEY_EVENT]"),
};
// Make the request
KeyEvent response = analyticsAdminServiceClient.GetKeyEvent(request);
GetKeyEvent(KeyEventName, CallSettings)
Retrieve a single Key Event.
Declaration
public virtual KeyEvent GetKeyEvent(KeyEventName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
KeyEventName | name | Required. The resource name of the Key Event to retrieve. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
KeyEvent | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
KeyEventName name = KeyEventName.FromPropertyKeyEvent("[PROPERTY]", "[KEY_EVENT]");
// Make the request
KeyEvent response = analyticsAdminServiceClient.GetKeyEvent(name);
GetKeyEvent(string, CallSettings)
Retrieve a single Key Event.
Declaration
public virtual KeyEvent GetKeyEvent(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the Key Event to retrieve. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
KeyEvent | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/keyEvents/[KEY_EVENT]";
// Make the request
KeyEvent response = analyticsAdminServiceClient.GetKeyEvent(name);
GetKeyEventAsync(GetKeyEventRequest, CallSettings)
Retrieve a single Key Event.
Declaration
public virtual Task<KeyEvent> GetKeyEventAsync(GetKeyEventRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetKeyEventRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<KeyEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetKeyEventRequest request = new GetKeyEventRequest
{
KeyEventName = KeyEventName.FromPropertyKeyEvent("[PROPERTY]", "[KEY_EVENT]"),
};
// Make the request
KeyEvent response = await analyticsAdminServiceClient.GetKeyEventAsync(request);
GetKeyEventAsync(GetKeyEventRequest, CancellationToken)
Retrieve a single Key Event.
Declaration
public virtual Task<KeyEvent> GetKeyEventAsync(GetKeyEventRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
GetKeyEventRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<KeyEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetKeyEventRequest request = new GetKeyEventRequest
{
KeyEventName = KeyEventName.FromPropertyKeyEvent("[PROPERTY]", "[KEY_EVENT]"),
};
// Make the request
KeyEvent response = await analyticsAdminServiceClient.GetKeyEventAsync(request);
GetKeyEventAsync(KeyEventName, CallSettings)
Retrieve a single Key Event.
Declaration
public virtual Task<KeyEvent> GetKeyEventAsync(KeyEventName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
KeyEventName | name | Required. The resource name of the Key Event to retrieve. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<KeyEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
KeyEventName name = KeyEventName.FromPropertyKeyEvent("[PROPERTY]", "[KEY_EVENT]");
// Make the request
KeyEvent response = await analyticsAdminServiceClient.GetKeyEventAsync(name);
GetKeyEventAsync(KeyEventName, CancellationToken)
Retrieve a single Key Event.
Declaration
public virtual Task<KeyEvent> GetKeyEventAsync(KeyEventName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
KeyEventName | name | Required. The resource name of the Key Event to retrieve. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<KeyEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
KeyEventName name = KeyEventName.FromPropertyKeyEvent("[PROPERTY]", "[KEY_EVENT]");
// Make the request
KeyEvent response = await analyticsAdminServiceClient.GetKeyEventAsync(name);
GetKeyEventAsync(string, CallSettings)
Retrieve a single Key Event.
Declaration
public virtual Task<KeyEvent> GetKeyEventAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the Key Event to retrieve. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<KeyEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/keyEvents/[KEY_EVENT]";
// Make the request
KeyEvent response = await analyticsAdminServiceClient.GetKeyEventAsync(name);
GetKeyEventAsync(string, CancellationToken)
Retrieve a single Key Event.
Declaration
public virtual Task<KeyEvent> GetKeyEventAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the Key Event to retrieve. Format: properties/{property}/keyEvents/{key_event} Example: "properties/123/keyEvents/456" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<KeyEvent> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/keyEvents/[KEY_EVENT]";
// Make the request
KeyEvent response = await analyticsAdminServiceClient.GetKeyEventAsync(name);
GetMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest, CallSettings)
Lookup for a single MeasurementProtocolSecret.
Declaration
public virtual MeasurementProtocolSecret GetMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetMeasurementProtocolSecretRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
MeasurementProtocolSecret | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
GetMeasurementProtocolSecretRequest request = new GetMeasurementProtocolSecretRequest
{
MeasurementProtocolSecretName = MeasurementProtocolSecretName.FromPropertyDataStreamMeasurementProtocolSecret("[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"),
};
// Make the request
MeasurementProtocolSecret response = analyticsAdminServiceClient.GetMeasurementProtocolSecret(request);
GetMeasurementProtocolSecret(MeasurementProtocolSecretName, CallSettings)
Lookup for a single MeasurementProtocolSecret.
Declaration
public virtual MeasurementProtocolSecret GetMeasurementProtocolSecret(MeasurementProtocolSecretName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
MeasurementProtocolSecretName | name | Required. The name of the measurement protocol secret to lookup. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
MeasurementProtocolSecret | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
MeasurementProtocolSecretName name = MeasurementProtocolSecretName.FromPropertyDataStreamMeasurementProtocolSecret("[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
// Make the request
MeasurementProtocolSecret response = analyticsAdminServiceClient.GetMeasurementProtocolSecret(name);
GetMeasurementProtocolSecret(string, CallSettings)
Lookup for a single MeasurementProtocolSecret.
Declaration
public virtual MeasurementProtocolSecret GetMeasurementProtocolSecret(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the measurement protocol secret to lookup. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
MeasurementProtocolSecret | The RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/dataStreams/[DATA_STREAM]/measurementProtocolSecrets/[MEASUREMENT_PROTOCOL_SECRET]";
// Make the request
MeasurementProtocolSecret response = analyticsAdminServiceClient.GetMeasurementProtocolSecret(name);
GetMeasurementProtocolSecretAsync(GetMeasurementProtocolSecretRequest, CallSettings)
Lookup for a single MeasurementProtocolSecret.
Declaration
public virtual Task<MeasurementProtocolSecret> GetMeasurementProtocolSecretAsync(GetMeasurementProtocolSecretRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetMeasurementProtocolSecretRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<MeasurementProtocolSecret> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetMeasurementProtocolSecretRequest request = new GetMeasurementProtocolSecretRequest
{
MeasurementProtocolSecretName = MeasurementProtocolSecretName.FromPropertyDataStreamMeasurementProtocolSecret("[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"),
};
// Make the request
MeasurementProtocolSecret response = await analyticsAdminServiceClient.GetMeasurementProtocolSecretAsync(request);
GetMeasurementProtocolSecretAsync(GetMeasurementProtocolSecretRequest, CancellationToken)
Lookup for a single MeasurementProtocolSecret.
Declaration
public virtual Task<MeasurementProtocolSecret> GetMeasurementProtocolSecretAsync(GetMeasurementProtocolSecretRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
GetMeasurementProtocolSecretRequest | request | The request object containing all of the parameters for the API call. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<MeasurementProtocolSecret> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
GetMeasurementProtocolSecretRequest request = new GetMeasurementProtocolSecretRequest
{
MeasurementProtocolSecretName = MeasurementProtocolSecretName.FromPropertyDataStreamMeasurementProtocolSecret("[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"),
};
// Make the request
MeasurementProtocolSecret response = await analyticsAdminServiceClient.GetMeasurementProtocolSecretAsync(request);
GetMeasurementProtocolSecretAsync(MeasurementProtocolSecretName, CallSettings)
Lookup for a single MeasurementProtocolSecret.
Declaration
public virtual Task<MeasurementProtocolSecret> GetMeasurementProtocolSecretAsync(MeasurementProtocolSecretName name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
MeasurementProtocolSecretName | name | Required. The name of the measurement protocol secret to lookup. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<MeasurementProtocolSecret> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
MeasurementProtocolSecretName name = MeasurementProtocolSecretName.FromPropertyDataStreamMeasurementProtocolSecret("[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
// Make the request
MeasurementProtocolSecret response = await analyticsAdminServiceClient.GetMeasurementProtocolSecretAsync(name);
GetMeasurementProtocolSecretAsync(MeasurementProtocolSecretName, CancellationToken)
Lookup for a single MeasurementProtocolSecret.
Declaration
public virtual Task<MeasurementProtocolSecret> GetMeasurementProtocolSecretAsync(MeasurementProtocolSecretName name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
MeasurementProtocolSecretName | name | Required. The name of the measurement protocol secret to lookup. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<MeasurementProtocolSecret> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
MeasurementProtocolSecretName name = MeasurementProtocolSecretName.FromPropertyDataStreamMeasurementProtocolSecret("[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
// Make the request
MeasurementProtocolSecret response = await analyticsAdminServiceClient.GetMeasurementProtocolSecretAsync(name);
GetMeasurementProtocolSecretAsync(string, CallSettings)
Lookup for a single MeasurementProtocolSecret.
Declaration
public virtual Task<MeasurementProtocolSecret> GetMeasurementProtocolSecretAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the measurement protocol secret to lookup. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<MeasurementProtocolSecret> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/dataStreams/[DATA_STREAM]/measurementProtocolSecrets/[MEASUREMENT_PROTOCOL_SECRET]";
// Make the request
MeasurementProtocolSecret response = await analyticsAdminServiceClient.GetMeasurementProtocolSecretAsync(name);
GetMeasurementProtocolSecretAsync(string, CancellationToken)
Lookup for a single MeasurementProtocolSecret.
Declaration
public virtual Task<MeasurementProtocolSecret> GetMeasurementProtocolSecretAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the measurement protocol secret to lookup. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
Task<MeasurementProtocolSecret> | A Task containing the RPC response. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "properties/[PROPERTY]/dataStreams/[DATA_STREAM]/measurementProtocolSecrets/[MEASUREMENT_PROTOCOL_SECRET]";
// Make the request
MeasurementProtocolSecret response = await analyticsAdminServiceClient.GetMeasurementProtocolSecretAsync(name);
GetProperty(GetPropertyRequest, CallSettings)
Lookup for a single GA Property.
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. |
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 GA Property.
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" |
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 GA Property.
Declaration
public virtual Property GetProperty(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the property to lookup. Format: properties/{property_id} Example: "properties/1000" |
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 GA Property.
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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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 GA Property.
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. |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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 GA Property.
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" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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 GA Property.
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" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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 GA Property.
Declaration
public virtual Task<Property> GetPropertyAsync(string name, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the property to lookup. Format: properties/{property_id} Example: "properties/1000" |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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 GA Property.
Declaration
public virtual Task<Property> GetPropertyAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the property to lookup. Format: properties/{property_id} Example: "properties/1000" |
CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
Type | Description |
---|---|
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);
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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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;
ListAccounts(ListAccountsRequest, CallSettings)
Returns all accounts accessible by the caller.
Note that these accounts might not currently have GA 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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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 GA 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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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;
ListConversionEvents(ListConversionEventsRequest, CallSettings)
Deprecated: Use ListKeyEvents
instead.
Returns a list of conversion events in the specified parent property.
Returns an empty list if no conversion events are found.
Declaration
[Obsolete]
public virtual PagedEnumerable<ListConversionEventsResponse, ConversionEvent> ListConversionEvents(ListConversionEventsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListConversionEventsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListConversionEventsResponse, ConversionEvent> | A pageable sequence of ConversionEvent resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ListConversionEventsRequest request = new ListConversionEventsRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
#pragma warning disable CS0612
PagedEnumerable<ListConversionEventsResponse, ConversionEvent> response = analyticsAdminServiceClient.ListConversionEvents(request);
#pragma warning restore CS0612
// Iterate over all response items, lazily performing RPCs as required
foreach (ConversionEvent 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 (ListConversionEventsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ConversionEvent 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<ConversionEvent> 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 (ConversionEvent 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;
ListConversionEvents(PropertyName, string, int?, CallSettings)
Deprecated: Use ListKeyEvents
instead.
Returns a list of conversion events in the specified parent property.
Returns an empty list if no conversion events are found.
Declaration
[Obsolete]
public virtual PagedEnumerable<ListConversionEventsResponse, ConversionEvent> ListConversionEvents(PropertyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. The resource name of the parent property. Example: 'properties/123' |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListConversionEventsResponse, ConversionEvent> | A pageable sequence of ConversionEvent resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
#pragma warning disable CS0612
PagedEnumerable<ListConversionEventsResponse, ConversionEvent> response = analyticsAdminServiceClient.ListConversionEvents(parent);
#pragma warning restore CS0612
// Iterate over all response items, lazily performing RPCs as required
foreach (ConversionEvent 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 (ListConversionEventsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ConversionEvent 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<ConversionEvent> 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 (ConversionEvent 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;
ListConversionEvents(string, string, int?, CallSettings)
Deprecated: Use ListKeyEvents
instead.
Returns a list of conversion events in the specified parent property.
Returns an empty list if no conversion events are found.
Declaration
[Obsolete]
public virtual PagedEnumerable<ListConversionEventsResponse, ConversionEvent> ListConversionEvents(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The resource name of the parent property. Example: 'properties/123' |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListConversionEventsResponse, ConversionEvent> | A pageable sequence of ConversionEvent resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
#pragma warning disable CS0612
PagedEnumerable<ListConversionEventsResponse, ConversionEvent> response = analyticsAdminServiceClient.ListConversionEvents(parent);
#pragma warning restore CS0612
// Iterate over all response items, lazily performing RPCs as required
foreach (ConversionEvent 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 (ListConversionEventsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ConversionEvent 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<ConversionEvent> 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 (ConversionEvent 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;
ListConversionEventsAsync(ListConversionEventsRequest, CallSettings)
Deprecated: Use ListKeyEvents
instead.
Returns a list of conversion events in the specified parent property.
Returns an empty list if no conversion events are found.
Declaration
[Obsolete]
public virtual PagedAsyncEnumerable<ListConversionEventsResponse, ConversionEvent> ListConversionEventsAsync(ListConversionEventsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListConversionEventsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListConversionEventsResponse, ConversionEvent> | A pageable asynchronous sequence of ConversionEvent resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ListConversionEventsRequest request = new ListConversionEventsRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
#pragma warning disable CS0612
PagedAsyncEnumerable<ListConversionEventsResponse, ConversionEvent> response = analyticsAdminServiceClient.ListConversionEventsAsync(request);
#pragma warning restore CS0612
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ConversionEvent 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((ListConversionEventsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ConversionEvent 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<ConversionEvent> 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 (ConversionEvent 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;
ListConversionEventsAsync(PropertyName, string, int?, CallSettings)
Deprecated: Use ListKeyEvents
instead.
Returns a list of conversion events in the specified parent property.
Returns an empty list if no conversion events are found.
Declaration
[Obsolete]
public virtual PagedAsyncEnumerable<ListConversionEventsResponse, ConversionEvent> ListConversionEventsAsync(PropertyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. The resource name of the parent property. Example: 'properties/123' |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListConversionEventsResponse, ConversionEvent> | A pageable asynchronous sequence of ConversionEvent resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
#pragma warning disable CS0612
PagedAsyncEnumerable<ListConversionEventsResponse, ConversionEvent> response = analyticsAdminServiceClient.ListConversionEventsAsync(parent);
#pragma warning restore CS0612
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ConversionEvent 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((ListConversionEventsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ConversionEvent 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<ConversionEvent> 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 (ConversionEvent 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;
ListConversionEventsAsync(string, string, int?, CallSettings)
Deprecated: Use ListKeyEvents
instead.
Returns a list of conversion events in the specified parent property.
Returns an empty list if no conversion events are found.
Declaration
[Obsolete]
public virtual PagedAsyncEnumerable<ListConversionEventsResponse, ConversionEvent> ListConversionEventsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The resource name of the parent property. Example: 'properties/123' |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListConversionEventsResponse, ConversionEvent> | A pageable asynchronous sequence of ConversionEvent resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
#pragma warning disable CS0612
PagedAsyncEnumerable<ListConversionEventsResponse, ConversionEvent> response = analyticsAdminServiceClient.ListConversionEventsAsync(parent);
#pragma warning restore CS0612
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ConversionEvent 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((ListConversionEventsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ConversionEvent 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<ConversionEvent> 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 (ConversionEvent 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;
ListCustomDimensions(ListCustomDimensionsRequest, CallSettings)
Lists CustomDimensions on a property.
Declaration
public virtual PagedEnumerable<ListCustomDimensionsResponse, CustomDimension> ListCustomDimensions(ListCustomDimensionsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListCustomDimensionsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListCustomDimensionsResponse, CustomDimension> | A pageable sequence of CustomDimension resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ListCustomDimensionsRequest request = new ListCustomDimensionsRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedEnumerable<ListCustomDimensionsResponse, CustomDimension> response = analyticsAdminServiceClient.ListCustomDimensions(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (CustomDimension 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 (ListCustomDimensionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CustomDimension 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<CustomDimension> 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 (CustomDimension 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;
ListCustomDimensions(PropertyName, string, int?, CallSettings)
Lists CustomDimensions on a property.
Declaration
public virtual PagedEnumerable<ListCustomDimensionsResponse, CustomDimension> ListCustomDimensions(PropertyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListCustomDimensionsResponse, CustomDimension> | A pageable sequence of CustomDimension resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedEnumerable<ListCustomDimensionsResponse, CustomDimension> response = analyticsAdminServiceClient.ListCustomDimensions(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CustomDimension 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 (ListCustomDimensionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CustomDimension 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<CustomDimension> 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 (CustomDimension 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;
ListCustomDimensions(string, string, int?, CallSettings)
Lists CustomDimensions on a property.
Declaration
public virtual PagedEnumerable<ListCustomDimensionsResponse, CustomDimension> ListCustomDimensions(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListCustomDimensionsResponse, CustomDimension> | A pageable sequence of CustomDimension resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedEnumerable<ListCustomDimensionsResponse, CustomDimension> response = analyticsAdminServiceClient.ListCustomDimensions(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CustomDimension 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 (ListCustomDimensionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CustomDimension 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<CustomDimension> 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 (CustomDimension 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;
ListCustomDimensionsAsync(ListCustomDimensionsRequest, CallSettings)
Lists CustomDimensions on a property.
Declaration
public virtual PagedAsyncEnumerable<ListCustomDimensionsResponse, CustomDimension> ListCustomDimensionsAsync(ListCustomDimensionsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListCustomDimensionsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListCustomDimensionsResponse, CustomDimension> | A pageable asynchronous sequence of CustomDimension resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ListCustomDimensionsRequest request = new ListCustomDimensionsRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedAsyncEnumerable<ListCustomDimensionsResponse, CustomDimension> response = analyticsAdminServiceClient.ListCustomDimensionsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CustomDimension 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((ListCustomDimensionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CustomDimension 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<CustomDimension> 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 (CustomDimension 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;
ListCustomDimensionsAsync(PropertyName, string, int?, CallSettings)
Lists CustomDimensions on a property.
Declaration
public virtual PagedAsyncEnumerable<ListCustomDimensionsResponse, CustomDimension> ListCustomDimensionsAsync(PropertyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListCustomDimensionsResponse, CustomDimension> | A pageable asynchronous sequence of CustomDimension resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedAsyncEnumerable<ListCustomDimensionsResponse, CustomDimension> response = analyticsAdminServiceClient.ListCustomDimensionsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CustomDimension 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((ListCustomDimensionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CustomDimension 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<CustomDimension> 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 (CustomDimension 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;
ListCustomDimensionsAsync(string, string, int?, CallSettings)
Lists CustomDimensions on a property.
Declaration
public virtual PagedAsyncEnumerable<ListCustomDimensionsResponse, CustomDimension> ListCustomDimensionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListCustomDimensionsResponse, CustomDimension> | A pageable asynchronous sequence of CustomDimension resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedAsyncEnumerable<ListCustomDimensionsResponse, CustomDimension> response = analyticsAdminServiceClient.ListCustomDimensionsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CustomDimension 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((ListCustomDimensionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CustomDimension 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<CustomDimension> 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 (CustomDimension 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;
ListCustomMetrics(ListCustomMetricsRequest, CallSettings)
Lists CustomMetrics on a property.
Declaration
public virtual PagedEnumerable<ListCustomMetricsResponse, CustomMetric> ListCustomMetrics(ListCustomMetricsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListCustomMetricsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListCustomMetricsResponse, CustomMetric> | A pageable sequence of CustomMetric resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ListCustomMetricsRequest request = new ListCustomMetricsRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedEnumerable<ListCustomMetricsResponse, CustomMetric> response = analyticsAdminServiceClient.ListCustomMetrics(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (CustomMetric 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 (ListCustomMetricsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CustomMetric 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<CustomMetric> 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 (CustomMetric 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;
ListCustomMetrics(PropertyName, string, int?, CallSettings)
Lists CustomMetrics on a property.
Declaration
public virtual PagedEnumerable<ListCustomMetricsResponse, CustomMetric> ListCustomMetrics(PropertyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListCustomMetricsResponse, CustomMetric> | A pageable sequence of CustomMetric resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedEnumerable<ListCustomMetricsResponse, CustomMetric> response = analyticsAdminServiceClient.ListCustomMetrics(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CustomMetric 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 (ListCustomMetricsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CustomMetric 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<CustomMetric> 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 (CustomMetric 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;
ListCustomMetrics(string, string, int?, CallSettings)
Lists CustomMetrics on a property.
Declaration
public virtual PagedEnumerable<ListCustomMetricsResponse, CustomMetric> ListCustomMetrics(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListCustomMetricsResponse, CustomMetric> | A pageable sequence of CustomMetric resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedEnumerable<ListCustomMetricsResponse, CustomMetric> response = analyticsAdminServiceClient.ListCustomMetrics(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (CustomMetric 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 (ListCustomMetricsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CustomMetric 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<CustomMetric> 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 (CustomMetric 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;
ListCustomMetricsAsync(ListCustomMetricsRequest, CallSettings)
Lists CustomMetrics on a property.
Declaration
public virtual PagedAsyncEnumerable<ListCustomMetricsResponse, CustomMetric> ListCustomMetricsAsync(ListCustomMetricsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListCustomMetricsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListCustomMetricsResponse, CustomMetric> | A pageable asynchronous sequence of CustomMetric resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ListCustomMetricsRequest request = new ListCustomMetricsRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedAsyncEnumerable<ListCustomMetricsResponse, CustomMetric> response = analyticsAdminServiceClient.ListCustomMetricsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CustomMetric 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((ListCustomMetricsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CustomMetric 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<CustomMetric> 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 (CustomMetric 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;
ListCustomMetricsAsync(PropertyName, string, int?, CallSettings)
Lists CustomMetrics on a property.
Declaration
public virtual PagedAsyncEnumerable<ListCustomMetricsResponse, CustomMetric> ListCustomMetricsAsync(PropertyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListCustomMetricsResponse, CustomMetric> | A pageable asynchronous sequence of CustomMetric resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedAsyncEnumerable<ListCustomMetricsResponse, CustomMetric> response = analyticsAdminServiceClient.ListCustomMetricsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CustomMetric 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((ListCustomMetricsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CustomMetric 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<CustomMetric> 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 (CustomMetric 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;
ListCustomMetricsAsync(string, string, int?, CallSettings)
Lists CustomMetrics on a property.
Declaration
public virtual PagedAsyncEnumerable<ListCustomMetricsResponse, CustomMetric> ListCustomMetricsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListCustomMetricsResponse, CustomMetric> | A pageable asynchronous sequence of CustomMetric resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedAsyncEnumerable<ListCustomMetricsResponse, CustomMetric> response = analyticsAdminServiceClient.ListCustomMetricsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((CustomMetric 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((ListCustomMetricsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (CustomMetric 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<CustomMetric> 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 (CustomMetric 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;
ListDataStreams(ListDataStreamsRequest, CallSettings)
Lists DataStreams on a property.
Declaration
public virtual PagedEnumerable<ListDataStreamsResponse, DataStream> ListDataStreams(ListDataStreamsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListDataStreamsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListDataStreamsResponse, DataStream> | A pageable sequence of DataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ListDataStreamsRequest request = new ListDataStreamsRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedEnumerable<ListDataStreamsResponse, DataStream> response = analyticsAdminServiceClient.ListDataStreams(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (DataStream 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 (ListDataStreamsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DataStream 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<DataStream> 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 (DataStream 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;
ListDataStreams(PropertyName, string, int?, CallSettings)
Lists DataStreams on a property.
Declaration
public virtual PagedEnumerable<ListDataStreamsResponse, DataStream> ListDataStreams(PropertyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListDataStreamsResponse, DataStream> | A pageable sequence of DataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedEnumerable<ListDataStreamsResponse, DataStream> response = analyticsAdminServiceClient.ListDataStreams(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DataStream 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 (ListDataStreamsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DataStream 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<DataStream> 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 (DataStream 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;
ListDataStreams(string, string, int?, CallSettings)
Lists DataStreams on a property.
Declaration
public virtual PagedEnumerable<ListDataStreamsResponse, DataStream> ListDataStreams(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListDataStreamsResponse, DataStream> | A pageable sequence of DataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedEnumerable<ListDataStreamsResponse, DataStream> response = analyticsAdminServiceClient.ListDataStreams(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (DataStream 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 (ListDataStreamsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DataStream 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<DataStream> 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 (DataStream 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;
ListDataStreamsAsync(ListDataStreamsRequest, CallSettings)
Lists DataStreams on a property.
Declaration
public virtual PagedAsyncEnumerable<ListDataStreamsResponse, DataStream> ListDataStreamsAsync(ListDataStreamsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListDataStreamsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListDataStreamsResponse, DataStream> | A pageable asynchronous sequence of DataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ListDataStreamsRequest request = new ListDataStreamsRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedAsyncEnumerable<ListDataStreamsResponse, DataStream> response = analyticsAdminServiceClient.ListDataStreamsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DataStream 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((ListDataStreamsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DataStream 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<DataStream> 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 (DataStream 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;
ListDataStreamsAsync(PropertyName, string, int?, CallSettings)
Lists DataStreams on a property.
Declaration
public virtual PagedAsyncEnumerable<ListDataStreamsResponse, DataStream> ListDataStreamsAsync(PropertyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListDataStreamsResponse, DataStream> | A pageable asynchronous sequence of DataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedAsyncEnumerable<ListDataStreamsResponse, DataStream> response = analyticsAdminServiceClient.ListDataStreamsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DataStream 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((ListDataStreamsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DataStream 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<DataStream> 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 (DataStream 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;
ListDataStreamsAsync(string, string, int?, CallSettings)
Lists DataStreams on a property.
Declaration
public virtual PagedAsyncEnumerable<ListDataStreamsResponse, DataStream> ListDataStreamsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListDataStreamsResponse, DataStream> | A pageable asynchronous sequence of DataStream resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedAsyncEnumerable<ListDataStreamsResponse, DataStream> response = analyticsAdminServiceClient.ListDataStreamsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((DataStream 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((ListDataStreamsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (DataStream 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<DataStream> 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 (DataStream 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 PagedEnumerable<ListFirebaseLinksResponse, FirebaseLink> ListFirebaseLinks(ListFirebaseLinksRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListFirebaseLinksRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListFirebaseLinksResponse, FirebaseLink> | A pageable sequence of FirebaseLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ListFirebaseLinksRequest request = new ListFirebaseLinksRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedEnumerable<ListFirebaseLinksResponse, FirebaseLink> response = analyticsAdminServiceClient.ListFirebaseLinks(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (FirebaseLink 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 (ListFirebaseLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FirebaseLink 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<FirebaseLink> 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 (FirebaseLink 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(PropertyName, string, int?, CallSettings)
Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Declaration
public virtual PagedEnumerable<ListFirebaseLinksResponse, FirebaseLink> ListFirebaseLinks(PropertyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Format: properties/{property_id} Example: |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListFirebaseLinksResponse, FirebaseLink> | A pageable sequence of FirebaseLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedEnumerable<ListFirebaseLinksResponse, FirebaseLink> response = analyticsAdminServiceClient.ListFirebaseLinks(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FirebaseLink 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 (ListFirebaseLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FirebaseLink 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<FirebaseLink> 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 (FirebaseLink 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(string, string, int?, CallSettings)
Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Declaration
public virtual PagedEnumerable<ListFirebaseLinksResponse, FirebaseLink> ListFirebaseLinks(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Format: properties/{property_id} Example: |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListFirebaseLinksResponse, FirebaseLink> | A pageable sequence of FirebaseLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedEnumerable<ListFirebaseLinksResponse, FirebaseLink> response = analyticsAdminServiceClient.ListFirebaseLinks(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (FirebaseLink 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 (ListFirebaseLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FirebaseLink 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<FirebaseLink> 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 (FirebaseLink 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;
ListFirebaseLinksAsync(ListFirebaseLinksRequest, CallSettings)
Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Declaration
public virtual PagedAsyncEnumerable<ListFirebaseLinksResponse, FirebaseLink> ListFirebaseLinksAsync(ListFirebaseLinksRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListFirebaseLinksRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListFirebaseLinksResponse, FirebaseLink> | A pageable asynchronous sequence of FirebaseLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
ListFirebaseLinksRequest request = new ListFirebaseLinksRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedAsyncEnumerable<ListFirebaseLinksResponse, FirebaseLink> response = analyticsAdminServiceClient.ListFirebaseLinksAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FirebaseLink 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((ListFirebaseLinksResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FirebaseLink 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<FirebaseLink> 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 (FirebaseLink 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;
ListFirebaseLinksAsync(PropertyName, string, int?, CallSettings)
Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Declaration
public virtual PagedAsyncEnumerable<ListFirebaseLinksResponse, FirebaseLink> ListFirebaseLinksAsync(PropertyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Format: properties/{property_id} Example: |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListFirebaseLinksResponse, FirebaseLink> | A pageable asynchronous sequence of FirebaseLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
PropertyName parent = PropertyName.FromProperty("[PROPERTY]");
// Make the request
PagedAsyncEnumerable<ListFirebaseLinksResponse, FirebaseLink> response = analyticsAdminServiceClient.ListFirebaseLinksAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FirebaseLink 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((ListFirebaseLinksResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FirebaseLink 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<FirebaseLink> 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 (FirebaseLink 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;
ListFirebaseLinksAsync(string, string, int?, CallSettings)
Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
Declaration
public virtual PagedAsyncEnumerable<ListFirebaseLinksResponse, FirebaseLink> ListFirebaseLinksAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Format: properties/{property_id} Example: |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListFirebaseLinksResponse, FirebaseLink> | A pageable asynchronous sequence of FirebaseLink resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "properties/[PROPERTY]";
// Make the request
PagedAsyncEnumerable<ListFirebaseLinksResponse, FirebaseLink> response = analyticsAdminServiceClient.ListFirebaseLinksAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((FirebaseLink 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((ListFirebaseLinksResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (FirebaseLink 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<FirebaseLink> 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 (FirebaseLink 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(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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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, int?, CallSettings)
Lists GoogleAdsLinks on a property.
Declaration
public virtual PagedEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> ListGoogleAdsLinks(PropertyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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, int?, CallSettings)
Lists GoogleAdsLinks on a property.
Declaration
public virtual PagedEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> ListGoogleAdsLinks(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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, int?, CallSettings)
Lists GoogleAdsLinks on a property.
Declaration
public virtual PagedAsyncEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> ListGoogleAdsLinksAsync(PropertyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PropertyName | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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, int?, CallSettings)
Lists GoogleAdsLinks on a property.
Declaration
public virtual PagedAsyncEnumerable<ListGoogleAdsLinksResponse, GoogleAdsLink> ListGoogleAdsLinksAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Example format: properties/1234 |
string | pageToken | The token returned from the previous request. A value of |
int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
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;
ListKeyEvents(ListKeyEventsRequest, CallSettings)
Returns a list of Key Events in the specified parent property. Returns an empty list if no Key Events are found.
Declaration
public virtual PagedEnumerable<ListKeyEventsResponse, KeyEvent> ListKeyEvents(ListKeyEventsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListKeyEventsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListKeyEventsResponse, KeyEvent> | A pageable sequence of KeyEvent resources. |
Sample code
// Create client
AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
// Initialize request argument(s)
ListKeyEventsRequest request = new ListKeyEventsRequest
{
ParentAsPropertyName = PropertyName.FromProperty("[PROPERTY]"),
};
// Make the request
PagedEnumerable<ListKeyEventsResponse, KeyEvent> response = analyticsAdminServiceClient.ListKeyEvents(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (KeyEvent 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 (ListKeyEventsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (KeyEvent 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<KeyEvent> 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 (KeyEvent 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;