Example #1
0
 /// <summary>Snippet for GetDetailPlacementView</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetDetailPlacementViewResourceNames()
 {
     // Create client
     DetailPlacementViewServiceClient detailPlacementViewServiceClient = DetailPlacementViewServiceClient.Create();
     // Initialize request argument(s)
     DetailPlacementViewName resourceName = DetailPlacementViewName.FromCustomerDetailPlacementView("[CUSTOMER]", "[DETAIL_PLACEMENT_VIEW]");
     // Make the request
     DetailPlacementView response = detailPlacementViewServiceClient.GetDetailPlacementView(resourceName);
 }
Example #2
0
        /// <summary>Snippet for GetDetailPlacementViewAsync</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 GetDetailPlacementViewRequestObjectAsync()
        {
            // Create client
            DetailPlacementViewServiceClient detailPlacementViewServiceClient = await DetailPlacementViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetDetailPlacementViewRequest request = new GetDetailPlacementViewRequest
            {
                ResourceNameAsDetailPlacementViewName = DetailPlacementViewName.FromCustomerDetailPlacementView("[CUSTOMER]", "[DETAIL_PLACEMENT_VIEW]"),
            };
            // Make the request
            DetailPlacementView response = await detailPlacementViewServiceClient.GetDetailPlacementViewAsync(request);
        }
 /// <summary>Snippet for GetDetailPlacementView</summary>
 public void GetDetailPlacementViewRequestObject()
 {
     // Snippet: GetDetailPlacementView(GetDetailPlacementViewRequest, CallSettings)
     // Create client
     DetailPlacementViewServiceClient detailPlacementViewServiceClient = DetailPlacementViewServiceClient.Create();
     // Initialize request argument(s)
     GetDetailPlacementViewRequest request = new GetDetailPlacementViewRequest
     {
         ResourceNameAsDetailPlacementViewName = DetailPlacementViewName.FromCustomerDetailPlacementView("[CUSTOMER]", "[DETAIL_PLACEMENT_VIEW]"),
     };
     // Make the request
     DetailPlacementView response = detailPlacementViewServiceClient.GetDetailPlacementView(request);
     // End snippet
 }
        /// <summary>Snippet for GetDetailPlacementViewAsync</summary>
        public async Task GetDetailPlacementViewResourceNamesAsync()
        {
            // Snippet: GetDetailPlacementViewAsync(DetailPlacementViewName, CallSettings)
            // Additional: GetDetailPlacementViewAsync(DetailPlacementViewName, CancellationToken)
            // Create client
            DetailPlacementViewServiceClient detailPlacementViewServiceClient = await DetailPlacementViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            DetailPlacementViewName resourceName = DetailPlacementViewName.FromCustomerDetailPlacementView("[CUSTOMER]", "[DETAIL_PLACEMENT_VIEW]");
            // Make the request
            DetailPlacementView response = await detailPlacementViewServiceClient.GetDetailPlacementViewAsync(resourceName);

            // End snippet
        }