/// <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 GetCustomAudienceAsync</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 GetCustomAudienceResourceNamesAsync() { // Create client CustomAudienceServiceClient customAudienceServiceClient = await CustomAudienceServiceClient.CreateAsync(); // Initialize request argument(s) CustomAudienceName resourceName = CustomAudienceName.FromCustomerCustomAudience("[CUSTOMER_ID]", "[CUSTOM_AUDIENCE_ID]"); // Make the request CustomAudience response = await customAudienceServiceClient.GetCustomAudienceAsync(resourceName); }
/// <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 GetCustomAudienceAsync</summary> public async Task GetCustomAudienceResourceNamesAsync() { // Snippet: GetCustomAudienceAsync(CustomAudienceName, CallSettings) // Additional: GetCustomAudienceAsync(CustomAudienceName, CancellationToken) // Create client CustomAudienceServiceClient customAudienceServiceClient = await CustomAudienceServiceClient.CreateAsync(); // Initialize request argument(s) CustomAudienceName resourceName = CustomAudienceName.FromCustomerCustomAudience("[CUSTOMER_ID]", "[CUSTOM_AUDIENCE_ID]"); // Make the request CustomAudience response = await customAudienceServiceClient.GetCustomAudienceAsync(resourceName); // End snippet }