class Localinventory extends Resource (View source)

The "localinventory" collection of methods.

Typical usage is:

 $contentService = new Google\Service\ShoppingContent(...);
 $localinventory = $contentService->localinventory;

Methods

custombatch(LocalinventoryCustomBatchRequest $postBody, array $optParams = [])

Updates local inventory for multiple products or stores in a single request.

insert(string $merchantId, string $productId, LocalInventory $postBody, array $optParams = [])

Updates the local inventory of a product in your Merchant Center account.

Details

LocalinventoryCustomBatchResponse custombatch(LocalinventoryCustomBatchRequest $postBody, array $optParams = [])

Updates local inventory for multiple products or stores in a single request.

(localinventory.custombatch)

Parameters

LocalinventoryCustomBatchRequest $postBody
array $optParams

Optional parameters.

Return Value

LocalinventoryCustomBatchResponse

Exceptions

Exception

LocalInventory insert(string $merchantId, string $productId, LocalInventory $postBody, array $optParams = [])

Updates the local inventory of a product in your Merchant Center account.

(localinventory.insert)

Parameters

string $merchantId

The ID of the account that contains the product. This account cannot be a multi-client account.

string $productId

The REST ID of the product for which to update local inventory.

LocalInventory $postBody
array $optParams

Optional parameters.

Return Value

LocalInventory

Exceptions

Exception