/// <summary>Snippet for CreateCustomDimensionAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CreateCustomDimensionResourceNamesAsync() { // 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); }
/// <summary>Snippet for CreateCustomDimensionAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CreateCustomDimensionAsync() { // 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); }
/// <summary>Snippet for CreateCustomDimensionAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task CreateCustomDimensionRequestObjectAsync() { // 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); }