/// <summary>Snippet for GetMerchantCenterLink</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetMerchantCenterLink() { // Create client MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = MerchantCenterLinkServiceClient.Create(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/merchantCenterLinks/[MERCHANT_CENTER_ID]"; // Make the request MerchantCenterLink response = merchantCenterLinkServiceClient.GetMerchantCenterLink(resourceName); }
/// <summary>Snippet for ListMerchantCenterLinks</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void ListMerchantCenterLinks() { // Create client MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = MerchantCenterLinkServiceClient.Create(); // Initialize request argument(s) string customerId = ""; // Make the request ListMerchantCenterLinksResponse response = merchantCenterLinkServiceClient.ListMerchantCenterLinks(customerId); }
/// <summary>Snippet for GetMerchantCenterLink</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetMerchantCenterLinkResourceNames() { // Create client MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = MerchantCenterLinkServiceClient.Create(); // Initialize request argument(s) MerchantCenterLinkName resourceName = MerchantCenterLinkName.FromCustomerMerchantCenter("[CUSTOMER_ID]", "[MERCHANT_CENTER_ID]"); // Make the request MerchantCenterLink response = merchantCenterLinkServiceClient.GetMerchantCenterLink(resourceName); }
/// <summary>Snippet for MutateMerchantCenterLink</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void MutateMerchantCenterLink() { // Create client MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = MerchantCenterLinkServiceClient.Create(); // Initialize request argument(s) string customerId = ""; MerchantCenterLinkOperation operation = new MerchantCenterLinkOperation(); // Make the request MutateMerchantCenterLinkResponse response = merchantCenterLinkServiceClient.MutateMerchantCenterLink(customerId, operation); }
/// <summary>Snippet for ListMerchantCenterLinks</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void ListMerchantCenterLinksRequestObject() { // Create client MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = MerchantCenterLinkServiceClient.Create(); // Initialize request argument(s) ListMerchantCenterLinksRequest request = new ListMerchantCenterLinksRequest { CustomerId = "", }; // Make the request ListMerchantCenterLinksResponse response = merchantCenterLinkServiceClient.ListMerchantCenterLinks(request); }
/// <summary>Snippet for GetMerchantCenterLink</summary> public void GetMerchantCenterLinkResourceNames() { // Snippet: GetMerchantCenterLink(MerchantCenterLinkName, CallSettings) // Create client MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = MerchantCenterLinkServiceClient.Create(); // Initialize request argument(s) MerchantCenterLinkName resourceName = MerchantCenterLinkName.FromCustomerMerchantCenterLink("[CUSTOMER]", "[MERCHANT_CENTER_LINK]"); // Make the request MerchantCenterLink response = merchantCenterLinkServiceClient.GetMerchantCenterLink(resourceName); // End snippet }
/// <summary>Snippet for GetMerchantCenterLink</summary> public void GetMerchantCenterLink() { // Snippet: GetMerchantCenterLink(string, CallSettings) // Create client MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = MerchantCenterLinkServiceClient.Create(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/merchantCenterLinks/[MERCHANT_CENTER_LINK]"; // Make the request MerchantCenterLink response = merchantCenterLinkServiceClient.GetMerchantCenterLink(resourceName); // End snippet }
/// <summary>Snippet for GetMerchantCenterLink</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetMerchantCenterLinkRequestObject() { // Create client MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = MerchantCenterLinkServiceClient.Create(); // Initialize request argument(s) GetMerchantCenterLinkRequest request = new GetMerchantCenterLinkRequest { ResourceNameAsMerchantCenterLinkName = MerchantCenterLinkName.FromCustomerMerchantCenterLink("[CUSTOMER]", "[MERCHANT_CENTER_LINK]"), }; // Make the request MerchantCenterLink response = merchantCenterLinkServiceClient.GetMerchantCenterLink(request); }
/// <summary>Snippet for MutateMerchantCenterLink</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void MutateMerchantCenterLinkRequestObject() { // Create client MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = MerchantCenterLinkServiceClient.Create(); // Initialize request argument(s) MutateMerchantCenterLinkRequest request = new MutateMerchantCenterLinkRequest { CustomerId = "", Operation = new MerchantCenterLinkOperation(), }; // Make the request MutateMerchantCenterLinkResponse response = merchantCenterLinkServiceClient.MutateMerchantCenterLink(request); }
/// <summary>Snippet for MutateMerchantCenterLink</summary> public void MutateMerchantCenterLinkRequestObject() { // Snippet: MutateMerchantCenterLink(MutateMerchantCenterLinkRequest, CallSettings) // Create client MerchantCenterLinkServiceClient merchantCenterLinkServiceClient = MerchantCenterLinkServiceClient.Create(); // Initialize request argument(s) MutateMerchantCenterLinkRequest request = new MutateMerchantCenterLinkRequest { CustomerId = "", Operation = new MerchantCenterLinkOperation(), ValidateOnly = false, }; // Make the request MutateMerchantCenterLinkResponse response = merchantCenterLinkServiceClient.MutateMerchantCenterLink(request); // End snippet }