/// <summary>Snippet for GetCustomAudience</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetCustomAudienceResourceNames() { // Create client CustomAudienceServiceClient customAudienceServiceClient = CustomAudienceServiceClient.Create(); // Initialize request argument(s) CustomAudienceName resourceName = CustomAudienceName.FromCustomerCustomAudience("[CUSTOMER_ID]", "[CUSTOM_AUDIENCE_ID]"); // Make the request CustomAudience response = customAudienceServiceClient.GetCustomAudience(resourceName); }
/// <summary>Snippet for GetCustomAudience</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetCustomAudience() { // Create client CustomAudienceServiceClient customAudienceServiceClient = CustomAudienceServiceClient.Create(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/customAudiences/[CUSTOM_AUDIENCE_ID]"; // Make the request CustomAudience response = customAudienceServiceClient.GetCustomAudience(resourceName); }
/// <summary>Snippet for MutateCustomAudiences</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void MutateCustomAudiences() { // Create client CustomAudienceServiceClient customAudienceServiceClient = CustomAudienceServiceClient.Create(); // Initialize request argument(s) string customerId = ""; IEnumerable <CustomAudienceOperation> operations = new CustomAudienceOperation[] { new CustomAudienceOperation(), }; // Make the request MutateCustomAudiencesResponse response = customAudienceServiceClient.MutateCustomAudiences(customerId, operations); }
/// <summary>Snippet for GetCustomAudience</summary> public void GetCustomAudienceRequestObject() { // Snippet: GetCustomAudience(GetCustomAudienceRequest, CallSettings) // Create client CustomAudienceServiceClient customAudienceServiceClient = CustomAudienceServiceClient.Create(); // Initialize request argument(s) GetCustomAudienceRequest request = new GetCustomAudienceRequest { ResourceNameAsCustomAudienceName = CustomAudienceName.FromCustomerCustomAudience("[CUSTOMER_ID]", "[CUSTOM_AUDIENCE_ID]"), }; // Make the request CustomAudience response = customAudienceServiceClient.GetCustomAudience(request); // End snippet }
/// <summary>Snippet for MutateCustomAudiences</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void MutateCustomAudiencesRequestObject() { // Create client CustomAudienceServiceClient customAudienceServiceClient = CustomAudienceServiceClient.Create(); // Initialize request argument(s) MutateCustomAudiencesRequest request = new MutateCustomAudiencesRequest { CustomerId = "", Operations = { new CustomAudienceOperation(), }, ValidateOnly = false, }; // Make the request MutateCustomAudiencesResponse response = customAudienceServiceClient.MutateCustomAudiences(request); }