/// <summary>Snippet for GetCustomInterest</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetCustomInterest() { // Create client CustomInterestServiceClient customInterestServiceClient = CustomInterestServiceClient.Create(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/customInterests/[CUSTOM_INTEREST_ID]"; // Make the request CustomInterest response = customInterestServiceClient.GetCustomInterest(resourceName); }
/// <summary>Snippet for GetCustomInterest</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetCustomInterestResourceNames() { // Create client CustomInterestServiceClient customInterestServiceClient = CustomInterestServiceClient.Create(); // Initialize request argument(s) CustomInterestName resourceName = CustomInterestName.FromCustomerCustomInterest("[CUSTOMER]", "[CUSTOM_INTEREST]"); // Make the request CustomInterest response = customInterestServiceClient.GetCustomInterest(resourceName); }
/// <summary>Snippet for GetCustomInterestAsync</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 GetCustomInterestResourceNamesAsync() { // Create client CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync(); // Initialize request argument(s) CustomInterestName resourceName = CustomInterestName.FromCustomerCustomInterest("[CUSTOMER_ID]", "[CUSTOM_INTEREST_ID]"); // Make the request CustomInterest response = await customInterestServiceClient.GetCustomInterestAsync(resourceName); }
/// <summary>Snippet for GetCustomInterestAsync</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 GetCustomInterestAsync() { // Create client CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/customInterests/[CUSTOM_INTEREST]"; // Make the request CustomInterest response = await customInterestServiceClient.GetCustomInterestAsync(resourceName); }
/// <summary>Snippet for GetCustomInterest</summary> public void GetCustomInterest() { // Snippet: GetCustomInterest(string, CallSettings) // Create client CustomInterestServiceClient customInterestServiceClient = CustomInterestServiceClient.Create(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/customInterests/[CUSTOM_INTEREST]"; // Make the request CustomInterest response = customInterestServiceClient.GetCustomInterest(resourceName); // End snippet }
/// <summary>Snippet for GetCustomInterest</summary> public void GetCustomInterestResourceNames() { // Snippet: GetCustomInterest(CustomInterestName, CallSettings) // Create client CustomInterestServiceClient customInterestServiceClient = CustomInterestServiceClient.Create(); // Initialize request argument(s) CustomInterestName resourceName = CustomInterestName.FromCustomerCustomInterest("[CUSTOMER_ID]", "[CUSTOM_INTEREST_ID]"); // Make the request CustomInterest response = customInterestServiceClient.GetCustomInterest(resourceName); // End snippet }
/// <summary>Snippet for GetCustomInterest</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetCustomInterestRequestObject() { // Create client CustomInterestServiceClient customInterestServiceClient = CustomInterestServiceClient.Create(); // Initialize request argument(s) GetCustomInterestRequest request = new GetCustomInterestRequest { ResourceNameAsCustomInterestName = CustomInterestName.FromCustomerCustomInterest("[CUSTOMER_ID]", "[CUSTOM_INTEREST_ID]"), }; // Make the request CustomInterest response = customInterestServiceClient.GetCustomInterest(request); }
/// <summary>Snippet for MutateCustomInterests</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void MutateCustomInterests() { // Create client CustomInterestServiceClient customInterestServiceClient = CustomInterestServiceClient.Create(); // Initialize request argument(s) string customerId = ""; IEnumerable <CustomInterestOperation> operations = new CustomInterestOperation[] { new CustomInterestOperation(), }; // Make the request MutateCustomInterestsResponse response = customInterestServiceClient.MutateCustomInterests(customerId, operations); }
/// <summary>Snippet for GetCustomInterestAsync</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 GetCustomInterestRequestObjectAsync() { // Create client CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync(); // Initialize request argument(s) GetCustomInterestRequest request = new GetCustomInterestRequest { ResourceNameAsCustomInterestName = CustomInterestName.FromCustomerCustomInterest("[CUSTOMER]", "[CUSTOM_INTEREST]"), }; // Make the request CustomInterest response = await customInterestServiceClient.GetCustomInterestAsync(request); }
/// <summary>Snippet for GetCustomInterestAsync</summary> public async Task GetCustomInterestAsync() { // Snippet: GetCustomInterestAsync(string, CallSettings) // Additional: GetCustomInterestAsync(string, CancellationToken) // Create client CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/customInterests/[CUSTOM_INTEREST]"; // Make the request CustomInterest response = await customInterestServiceClient.GetCustomInterestAsync(resourceName); // End snippet }
/// <summary>Snippet for GetCustomInterestAsync</summary> public async Task GetCustomInterestResourceNamesAsync() { // Snippet: GetCustomInterestAsync(CustomInterestName, CallSettings) // Additional: GetCustomInterestAsync(CustomInterestName, CancellationToken) // Create client CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync(); // Initialize request argument(s) CustomInterestName resourceName = CustomInterestName.FromCustomerCustomInterest("[CUSTOMER]", "[CUSTOM_INTEREST]"); // Make the request CustomInterest response = await customInterestServiceClient.GetCustomInterestAsync(resourceName); // End snippet }
/// <summary>Snippet for MutateCustomInterests</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void MutateCustomInterestsRequestObject() { // Create client CustomInterestServiceClient customInterestServiceClient = CustomInterestServiceClient.Create(); // Initialize request argument(s) MutateCustomInterestsRequest request = new MutateCustomInterestsRequest { CustomerId = "", Operations = { new CustomInterestOperation(), }, ValidateOnly = false, }; // Make the request MutateCustomInterestsResponse response = customInterestServiceClient.MutateCustomInterests(request); }
/// <summary>Snippet for MutateCustomInterestsAsync</summary> public async Task MutateCustomInterestsAsync() { // Snippet: MutateCustomInterestsAsync(string, IEnumerable<CustomInterestOperation>, CallSettings) // Additional: MutateCustomInterestsAsync(string, IEnumerable<CustomInterestOperation>, CancellationToken) // Create client CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; IEnumerable <CustomInterestOperation> operations = new CustomInterestOperation[] { new CustomInterestOperation(), }; // Make the request MutateCustomInterestsResponse response = await customInterestServiceClient.MutateCustomInterestsAsync(customerId, operations); // End snippet }
/// <summary>Snippet for MutateCustomInterestsAsync</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 MutateCustomInterestsRequestObjectAsync() { // Create client CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync(); // Initialize request argument(s) MutateCustomInterestsRequest request = new MutateCustomInterestsRequest { CustomerId = "", Operations = { new CustomInterestOperation(), }, ValidateOnly = false, }; // Make the request MutateCustomInterestsResponse response = await customInterestServiceClient.MutateCustomInterestsAsync(request); }
/// <summary>Snippet for MutateCustomInterestsAsync</summary> public async Task MutateCustomInterestsRequestObjectAsync() { // Snippet: MutateCustomInterestsAsync(MutateCustomInterestsRequest, CallSettings) // Additional: MutateCustomInterestsAsync(MutateCustomInterestsRequest, CancellationToken) // Create client CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync(); // Initialize request argument(s) MutateCustomInterestsRequest request = new MutateCustomInterestsRequest { CustomerId = "", Operations = { new CustomInterestOperation(), }, ValidateOnly = false, }; // Make the request MutateCustomInterestsResponse response = await customInterestServiceClient.MutateCustomInterestsAsync(request); // End snippet }