/// <summary>Snippet for GetUserInterest</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetUserInterestResourceNames() { // Create client UserInterestServiceClient userInterestServiceClient = UserInterestServiceClient.Create(); // Initialize request argument(s) UserInterestName resourceName = UserInterestName.FromCustomerUserInterest("[CUSTOMER_ID]", "[USER_INTEREST_ID]"); // Make the request UserInterest response = userInterestServiceClient.GetUserInterest(resourceName); }
/// <summary>Snippet for GetUserInterestAsync</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 GetUserInterestResourceNamesAsync() { // Create client UserInterestServiceClient userInterestServiceClient = await UserInterestServiceClient.CreateAsync(); // Initialize request argument(s) UserInterestName resourceName = UserInterestName.FromCustomerUserInterest("[CUSTOMER_ID]", "[USER_INTEREST_ID]"); // Make the request UserInterest response = await userInterestServiceClient.GetUserInterestAsync(resourceName); }
/// <summary>Snippet for GetUserInterest</summary> public void GetUserInterestResourceNames() { // Snippet: GetUserInterest(UserInterestName, CallSettings) // Create client UserInterestServiceClient userInterestServiceClient = UserInterestServiceClient.Create(); // Initialize request argument(s) UserInterestName resourceName = UserInterestName.FromCustomerUserInterest("[CUSTOMER]", "[USER_INTEREST]"); // Make the request UserInterest response = userInterestServiceClient.GetUserInterest(resourceName); // End snippet }
/// <summary>Snippet for GetUserInterest</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetUserInterestRequestObject() { // Create client UserInterestServiceClient userInterestServiceClient = UserInterestServiceClient.Create(); // Initialize request argument(s) GetUserInterestRequest request = new GetUserInterestRequest { ResourceNameAsUserInterestName = UserInterestName.FromCustomerUserInterest("[CUSTOMER]", "[USER_INTEREST]"), }; // Make the request UserInterest response = userInterestServiceClient.GetUserInterest(request); }
/// <summary>Snippet for GetUserInterestAsync</summary> public async Task GetUserInterestResourceNamesAsync() { // Snippet: GetUserInterestAsync(UserInterestName, CallSettings) // Additional: GetUserInterestAsync(UserInterestName, CancellationToken) // Create client UserInterestServiceClient userInterestServiceClient = await UserInterestServiceClient.CreateAsync(); // Initialize request argument(s) UserInterestName resourceName = UserInterestName.FromCustomerUserInterest("[CUSTOMER_ID]", "[USER_INTEREST_ID]"); // Make the request UserInterest response = await userInterestServiceClient.GetUserInterestAsync(resourceName); // End snippet }