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

            // Initialize request argument(s)
            string customerId = "";
            // Make the request
            ListMerchantCenterLinksResponse response = await merchantCenterLinkServiceClient.ListMerchantCenterLinksAsync(customerId);
        }
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 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 #3
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 MutateMerchantCenterLinkAsync</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 MutateMerchantCenterLinkAsync()
        {
            // Create client
            MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = await MerchantCenterLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            MerchantCenterLinkOperation operation = new MerchantCenterLinkOperation();
            // Make the request
            MutateMerchantCenterLinkResponse response = await merchantCenterLinkServiceClient.MutateMerchantCenterLinkAsync(customerId, operation);
        }
Beispiel #5
0
        /// <summary>Snippet for ListMerchantCenterLinksAsync</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 ListMerchantCenterLinksRequestObjectAsync()
        {
            // Create client
            MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = await MerchantCenterLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            ListMerchantCenterLinksRequest request = new ListMerchantCenterLinksRequest {
                CustomerId = "",
            };
            // Make the request
            ListMerchantCenterLinksResponse response = await merchantCenterLinkServiceClient.ListMerchantCenterLinksAsync(request);
        }
        /// <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);
        }
        /// <summary>Snippet for MutateMerchantCenterLinkAsync</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 MutateMerchantCenterLinkRequestObjectAsync()
        {
            // Create client
            MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = await MerchantCenterLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateMerchantCenterLinkRequest request = new MutateMerchantCenterLinkRequest
            {
                CustomerId = "",
                Operation  = new MerchantCenterLinkOperation(),
            };
            // Make the request
            MutateMerchantCenterLinkResponse response = await merchantCenterLinkServiceClient.MutateMerchantCenterLinkAsync(request);
        }
Beispiel #8
0
        /// <summary>Snippet for ListMerchantCenterLinksAsync</summary>
        public async Task ListMerchantCenterLinksAsync()
        {
            // Snippet: ListMerchantCenterLinksAsync(string, CallSettings)
            // Additional: ListMerchantCenterLinksAsync(string, CancellationToken)
            // Create client
            MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = await MerchantCenterLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            // Make the request
            ListMerchantCenterLinksResponse response = await merchantCenterLinkServiceClient.ListMerchantCenterLinksAsync(customerId);

            // End snippet
        }
Beispiel #9
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 #10
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 #11
0
        /// <summary>Snippet for MutateMerchantCenterLinkAsync</summary>
        public async Task MutateMerchantCenterLinkAsync()
        {
            // Snippet: MutateMerchantCenterLinkAsync(string, MerchantCenterLinkOperation, CallSettings)
            // Additional: MutateMerchantCenterLinkAsync(string, MerchantCenterLinkOperation, CancellationToken)
            // Create client
            MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = await MerchantCenterLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            MerchantCenterLinkOperation operation = new MerchantCenterLinkOperation();
            // Make the request
            MutateMerchantCenterLinkResponse response = await merchantCenterLinkServiceClient.MutateMerchantCenterLinkAsync(customerId, operation);

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

            // Initialize request argument(s)
            ListMerchantCenterLinksRequest request = new ListMerchantCenterLinksRequest {
                CustomerId = "",
            };
            // Make the request
            ListMerchantCenterLinksResponse response = await merchantCenterLinkServiceClient.ListMerchantCenterLinksAsync(request);

            // End snippet
        }
Beispiel #13
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
        }
        /// <summary>Snippet for MutateMerchantCenterLinkAsync</summary>
        public async Task MutateMerchantCenterLinkRequestObjectAsync()
        {
            // Snippet: MutateMerchantCenterLinkAsync(MutateMerchantCenterLinkRequest, CallSettings)
            // Additional: MutateMerchantCenterLinkAsync(MutateMerchantCenterLinkRequest, CancellationToken)
            // Create client
            MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = await MerchantCenterLinkServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateMerchantCenterLinkRequest request = new MutateMerchantCenterLinkRequest
            {
                CustomerId = "",
                Operation  = new MerchantCenterLinkOperation(),
            };
            // Make the request
            MutateMerchantCenterLinkResponse response = await merchantCenterLinkServiceClient.MutateMerchantCenterLinkAsync(request);

            // End snippet
        }