Google_Service_ShoppingContent_Accountstatuses_Resource

The "accountstatuses" 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_Accountstatuses_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * (accountstatuses.custombatch) 
  5. * @param Google_AccountstatusesCustomBatchRequest $postBody 
  6. * @param array $optParams Optional parameters. 
  7. * @return Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse 
  8. */ 
  9. public function custombatch(Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest $postBody, $optParams = array()) 
  10. $params = array('postBody' => $postBody); 
  11. $params = array_merge($params, $optParams); 
  12. return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse"); 
  13.  
  14. /** 
  15. * Retrieves the status of a Merchant Center account. (accountstatuses.get) 
  16. * @param string $merchantId The ID of the managing account. 
  17. * @param string $accountId The ID of the account. 
  18. * @param array $optParams Optional parameters. 
  19. * @return Google_Service_ShoppingContent_AccountStatus 
  20. */ 
  21. public function get($merchantId, $accountId, $optParams = array()) 
  22. $params = array('merchantId' => $merchantId, 'accountId' => $accountId); 
  23. $params = array_merge($params, $optParams); 
  24. return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountStatus"); 
  25.  
  26. /** 
  27. * Lists the statuses of the sub-accounts in your Merchant Center account. 
  28. * (accountstatuses.listAccountstatuses) 
  29. * @param string $merchantId The ID of the managing account. 
  30. * @param array $optParams Optional parameters. 
  31. * @opt_param string pageToken The token returned by the previous request. 
  32. * @opt_param string maxResults The maximum number of account statuses to return 
  33. * in the response, used for paging. 
  34. * @return Google_Service_ShoppingContent_AccountstatusesListResponse 
  35. */ 
  36. public function listAccountstatuses($merchantId, $optParams = array()) 
  37. $params = array('merchantId' => $merchantId); 
  38. $params = array_merge($params, $optParams); 
  39. return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountstatusesListResponse");