Google_Service_ShoppingContent_Accountshipping_Resource

The "accountshipping" collection of methods.

Defined (1)

The class is defined in the following location(s).

/includes/api-libs/Google/Service/ShoppingContent.php  
  1. class Google_Service_ShoppingContent_Accountshipping_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Retrieves and updates the shipping settings of multiple accounts in a single 
  5. * request. (accountshipping.custombatch) 
  6. * @param Google_AccountshippingCustomBatchRequest $postBody 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Service_ShoppingContent_AccountshippingCustomBatchResponse 
  9. */ 
  10. public function custombatch(Google_Service_ShoppingContent_AccountshippingCustomBatchRequest $postBody, $optParams = array()) 
  11. $params = array('postBody' => $postBody); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountshippingCustomBatchResponse"); 
  14.  
  15. /** 
  16. * Retrieves the shipping settings of the account. (accountshipping.get) 
  17. * @param string $merchantId The ID of the managing account. 
  18. * @param string $accountId The ID of the account for which to get/update 
  19. * account shipping settings. 
  20. * @param array $optParams Optional parameters. 
  21. * @return Google_Service_ShoppingContent_AccountShipping 
  22. */ 
  23. public function get($merchantId, $accountId, $optParams = array()) 
  24. $params = array('merchantId' => $merchantId, 'accountId' => $accountId); 
  25. $params = array_merge($params, $optParams); 
  26. return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountShipping"); 
  27.  
  28. /** 
  29. * Lists the shipping settings of the sub-accounts in your Merchant Center 
  30. * account. (accountshipping.listAccountshipping) 
  31. * @param string $merchantId The ID of the managing account. 
  32. * @param array $optParams Optional parameters. 
  33. * @opt_param string pageToken The token returned by the previous request. 
  34. * @opt_param string maxResults The maximum number of shipping settings to 
  35. * return in the response, used for paging. 
  36. * @return Google_Service_ShoppingContent_AccountshippingListResponse 
  37. */ 
  38. public function listAccountshipping($merchantId, $optParams = array()) 
  39. $params = array('merchantId' => $merchantId); 
  40. $params = array_merge($params, $optParams); 
  41. return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountshippingListResponse"); 
  42.  
  43. /** 
  44. * Updates the shipping settings of the account. This method supports patch 
  45. * semantics. (accountshipping.patch) 
  46. * @param string $merchantId The ID of the managing account. 
  47. * @param string $accountId The ID of the account for which to get/update 
  48. * account shipping settings. 
  49. * @param Google_AccountShipping $postBody 
  50. * @param array $optParams Optional parameters. 
  51. * @return Google_Service_ShoppingContent_AccountShipping 
  52. */ 
  53. public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array()) 
  54. $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); 
  55. $params = array_merge($params, $optParams); 
  56. return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountShipping"); 
  57.  
  58. /** 
  59. * Updates the shipping settings of the account. (accountshipping.update) 
  60. * @param string $merchantId The ID of the managing account. 
  61. * @param string $accountId The ID of the account for which to get/update 
  62. * account shipping settings. 
  63. * @param Google_AccountShipping $postBody 
  64. * @param array $optParams Optional parameters. 
  65. * @return Google_Service_ShoppingContent_AccountShipping 
  66. */ 
  67. public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array()) 
  68. $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); 
  69. $params = array_merge($params, $optParams); 
  70. return $this->call('update', array($params), "Google_Service_ShoppingContent_AccountShipping");