Class ProductsResource
The "products" collection of methods.
Inherited Members
Namespace: Google.Apis.ShoppingContent.v2_1
Assembly: Google.Apis.ShoppingContent.v2_1.dll
Syntax
public class ProductsResource
Constructors
ProductsResource(IClientService)
Constructs a new resource.
Declaration
public ProductsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Custombatch(ProductsCustomBatchRequest)
Retrieves, inserts, and deletes multiple products in a single request.
Declaration
public virtual ProductsResource.CustombatchRequest Custombatch(ProductsCustomBatchRequest body)
Parameters
Type | Name | Description |
---|---|---|
ProductsCustomBatchRequest | body | The body of the request. |
Returns
Type | Description |
---|---|
ProductsResource.CustombatchRequest |
Delete(ulong, string)
Deletes a product from your Merchant Center account.
Declaration
public virtual ProductsResource.DeleteRequest Delete(ulong merchantId, string productId)
Parameters
Type | Name | Description |
---|---|---|
ulong | 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. |
Returns
Type | Description |
---|---|
ProductsResource.DeleteRequest |
Get(ulong, string)
Retrieves a product from your Merchant Center account.
Declaration
public virtual ProductsResource.GetRequest Get(ulong merchantId, string productId)
Parameters
Type | Name | Description |
---|---|---|
ulong | 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. |
Returns
Type | Description |
---|---|
ProductsResource.GetRequest |
Insert(Product, ulong)
Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry.
Declaration
public virtual ProductsResource.InsertRequest Insert(Product body, ulong merchantId)
Parameters
Type | Name | Description |
---|---|---|
Product | body | The body of the request. |
ulong | merchantId | The ID of the account that contains the product. This account cannot be a multi-client account. |
Returns
Type | Description |
---|---|
ProductsResource.InsertRequest |
List(ulong)
Lists the products in your Merchant Center account. The response might contain fewer items than specified by maxResults. Rely on nextPageToken to determine if there are more items to be requested.
Declaration
public virtual ProductsResource.ListRequest List(ulong merchantId)
Parameters
Type | Name | Description |
---|---|---|
ulong | merchantId | The ID of the account that contains the products. This account cannot be a multi-client account. |
Returns
Type | Description |
---|---|
ProductsResource.ListRequest |
Update(Product, ulong, string)
Updates an existing product in your Merchant Center account. Only updates attributes provided in the request.
Declaration
public virtual ProductsResource.UpdateRequest Update(Product body, ulong merchantId, string productId)
Parameters
Type | Name | Description |
---|---|---|
Product | body | The body of the request. |
ulong | 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. |
Returns
Type | Description |
---|---|
ProductsResource.UpdateRequest |