Google_Service_ShoppingContent_Inventory_Resource

The "inventory" collection of methods.

Defined (1)

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

/lib/vendor/google/apiclient/src/Google/Service/ShoppingContent.php  
  1. class Google_Service_ShoppingContent_Inventory_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Updates price and availability for multiple products or stores in a single 
  5. * request. (inventory.custombatch) 
  6. * @param Google_InventoryCustomBatchRequest $postBody 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Service_ShoppingContent_InventoryCustomBatchResponse 
  9. */ 
  10. public function custombatch(Google_Service_ShoppingContent_InventoryCustomBatchRequest $postBody, $optParams = array()) 
  11. $params = array('postBody' => $postBody); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_InventoryCustomBatchResponse"); 
  14. /** 
  15. * Updates price and availability of a product in your Merchant Center account. 
  16. * (inventory.set) 
  17. * @param string $merchantId 
  18. * The ID of the managing account. 
  19. * @param string $storeCode 
  20. * The code of the store for which to update price and availability. Use online to update price and 
  21. * availability of an online product. 
  22. * @param string $productId 
  23. * The ID of the product for which to update price and availability. 
  24. * @param Google_InventorySetRequest $postBody 
  25. * @param array $optParams Optional parameters. 
  26. * @return Google_Service_ShoppingContent_InventorySetResponse 
  27. */ 
  28. public function set($merchantId, $storeCode, $productId, Google_Service_ShoppingContent_InventorySetRequest $postBody, $optParams = array()) 
  29. $params = array('merchantId' => $merchantId, 'storeCode' => $storeCode, 'productId' => $productId, 'postBody' => $postBody); 
  30. $params = array_merge($params, $optParams); 
  31. return $this->call('set', array($params), "Google_Service_ShoppingContent_InventorySetResponse");