Google_Service_ShoppingContent_Productstatuses_Resource

The "productstatuses" 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_Productstatuses_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Gets the statuses of multiple products in a single request. 
  5. * (productstatuses.custombatch) 
  6. * @param Google_ProductstatusesCustomBatchRequest $postBody 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse 
  9. */ 
  10. public function custombatch(Google_Service_ShoppingContent_ProductstatusesCustomBatchRequest $postBody, $optParams = array()) 
  11. $params = array('postBody' => $postBody); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_ProductstatusesCustomBatchResponse"); 
  14.  
  15. /** 
  16. * Gets the status of a product from your Merchant Center account. 
  17. * (productstatuses.get) 
  18. * @param string $merchantId The ID of the managing account. 
  19. * @param string $productId The ID of the product. 
  20. * @param array $optParams Optional parameters. 
  21. * @return Google_Service_ShoppingContent_ProductStatus 
  22. */ 
  23. public function get($merchantId, $productId, $optParams = array()) 
  24. $params = array('merchantId' => $merchantId, 'productId' => $productId); 
  25. $params = array_merge($params, $optParams); 
  26. return $this->call('get', array($params), "Google_Service_ShoppingContent_ProductStatus"); 
  27.  
  28. /** 
  29. * Lists the statuses of the products in your Merchant Center account. 
  30. * (productstatuses.listProductstatuses) 
  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 product statuses to return 
  35. * in the response, used for paging. 
  36. * @return Google_Service_ShoppingContent_ProductstatusesListResponse 
  37. */ 
  38. public function listProductstatuses($merchantId, $optParams = array()) 
  39. $params = array('merchantId' => $merchantId); 
  40. $params = array_merge($params, $optParams); 
  41. return $this->call('list', array($params), "Google_Service_ShoppingContent_ProductstatusesListResponse");