/// <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);
 }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
 /// <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
 }
コード例 #4
0
        /// <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
        }