Beispiel #1
0
        /// <summary>Snippet for GetMerchantCenterLinkAsync</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 GetMerchantCenterLinkAsync()
        {
            // Create client
            MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = await MerchantCenterLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/merchantCenterLinks/[MERCHANT_CENTER_ID]";
            // Make the request
            MerchantCenterLink response = await merchantCenterLinkServiceClient.GetMerchantCenterLinkAsync(resourceName);
        }
Beispiel #2
0
        /// <summary>Snippet for GetMerchantCenterLinkAsync</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 GetMerchantCenterLinkResourceNamesAsync()
        {
            // Create client
            MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = await MerchantCenterLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            MerchantCenterLinkName resourceName = MerchantCenterLinkName.FromCustomerMerchantCenter("[CUSTOMER_ID]", "[MERCHANT_CENTER_ID]");
            // Make the request
            MerchantCenterLink response = await merchantCenterLinkServiceClient.GetMerchantCenterLinkAsync(resourceName);
        }
        /// <summary>Snippet for GetMerchantCenterLinkAsync</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 GetMerchantCenterLinkRequestObjectAsync()
        {
            // Create client
            MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = await MerchantCenterLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetMerchantCenterLinkRequest request = new GetMerchantCenterLinkRequest
            {
                ResourceNameAsMerchantCenterLinkName = MerchantCenterLinkName.FromCustomerMerchantCenterLink("[CUSTOMER]", "[MERCHANT_CENTER_LINK]"),
            };
            // Make the request
            MerchantCenterLink response = await merchantCenterLinkServiceClient.GetMerchantCenterLinkAsync(request);
        }
Beispiel #4
0
        /// <summary>Snippet for GetMerchantCenterLinkAsync</summary>
        public async Task GetMerchantCenterLinkResourceNamesAsync()
        {
            // Snippet: GetMerchantCenterLinkAsync(MerchantCenterLinkName, CallSettings)
            // Additional: GetMerchantCenterLinkAsync(MerchantCenterLinkName, CancellationToken)
            // Create client
            MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = await MerchantCenterLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            MerchantCenterLinkName resourceName = MerchantCenterLinkName.FromCustomerMerchantCenter("[CUSTOMER_ID]", "[MERCHANT_CENTER_ID]");
            // Make the request
            MerchantCenterLink response = await merchantCenterLinkServiceClient.GetMerchantCenterLinkAsync(resourceName);

            // End snippet
        }
Beispiel #5
0
        /// <summary>Snippet for GetMerchantCenterLinkAsync</summary>
        public async Task GetMerchantCenterLinkAsync()
        {
            // Snippet: GetMerchantCenterLinkAsync(string, CallSettings)
            // Additional: GetMerchantCenterLinkAsync(string, CancellationToken)
            // Create client
            MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = await MerchantCenterLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/merchantCenterLinks/[MERCHANT_CENTER_ID]";
            // Make the request
            MerchantCenterLink response = await merchantCenterLinkServiceClient.GetMerchantCenterLinkAsync(resourceName);

            // End snippet
        }
Beispiel #6
0
        /// <summary>Snippet for GetMerchantCenterLinkAsync</summary>
        public async Task GetMerchantCenterLinkRequestObjectAsync()
        {
            // Snippet: GetMerchantCenterLinkAsync(GetMerchantCenterLinkRequest, CallSettings)
            // Additional: GetMerchantCenterLinkAsync(GetMerchantCenterLinkRequest, CancellationToken)
            // Create client
            MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = await MerchantCenterLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetMerchantCenterLinkRequest request = new GetMerchantCenterLinkRequest
            {
                ResourceNameAsMerchantCenterLinkName = MerchantCenterLinkName.FromCustomerMerchantCenterLink("[CUSTOMER]", "[MERCHANT_CENTER_LINK]"),
            };
            // Make the request
            MerchantCenterLink response = await merchantCenterLinkServiceClient.GetMerchantCenterLinkAsync(request);

            // End snippet
        }