Class AccountsResource.ProductsResource.LocalInventoriesResource
The "localInventories" collection of methods.
Inherited Members
Namespace: Google.Apis.Merchant.inventories_v1beta
Assembly: Google.Apis.Merchant.inventories_v1beta.dll
Syntax
public class AccountsResource.ProductsResource.LocalInventoriesResource
Constructors
LocalInventoriesResource(IClientService)
Constructs a new resource.
Declaration
public LocalInventoriesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string)
Deletes the specified LocalInventory
from the given product in your merchant account. It might
take a up to an hour for the LocalInventory
to be deleted from the specific product. Once you have
received a successful delete response, wait for that period before attempting a delete again.
Declaration
public virtual AccountsResource.ProductsResource.LocalInventoriesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the local inventory for the given product to delete. Format:
|
Returns
Type | Description |
---|---|
AccountsResource.ProductsResource.LocalInventoriesResource.DeleteRequest |
Insert(LocalInventory, string)
Inserts a LocalInventory
resource to a product in your merchant account. Replaces the full
LocalInventory
resource if an entry with the same storeCode
already exists for the product. It
might take up to 30 minutes for the new or updated LocalInventory
resource to appear in products.
Declaration
public virtual AccountsResource.ProductsResource.LocalInventoriesResource.InsertRequest Insert(LocalInventory body, string parent)
Parameters
Type | Name | Description |
---|---|---|
LocalInventory | body | The body of the request. |
string | parent | Required. The account and product where this inventory will be inserted. Format:
|
Returns
Type | Description |
---|---|
AccountsResource.ProductsResource.LocalInventoriesResource.InsertRequest |
List(string)
Lists the LocalInventory
resources for the given product in your merchant account. The response
might contain fewer items than specified by pageSize
. If pageToken
was returned in previous
request, it can be used to obtain additional results. LocalInventory
resources are listed per
product for a given account.
Declaration
public virtual AccountsResource.ProductsResource.LocalInventoriesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The |
Returns
Type | Description |
---|---|
AccountsResource.ProductsResource.LocalInventoriesResource.ListRequest |