Class ProductsResource
The "products" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.ShoppingContent.v2
Assembly: Google.Apis.ShoppingContent.v2.dll
Syntax
public class ProductsResource
Constructors
ProductsResource(IClientService)
Constructs a new resource.
Declaration
public ProductsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
Google.Apis.Services.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(UInt64, String)
Deletes a product from your Merchant Center account.
Declaration
public virtual ProductsResource.DeleteRequest Delete(ulong merchantId, string productId)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | merchantId | The ID of the account that contains the product. This account cannot be a multi-client account. |
System.String | productId | The REST ID of the product. |
Returns
Type | Description |
---|---|
ProductsResource.DeleteRequest |
Get(UInt64, String)
Retrieves a product from your Merchant Center account.
Declaration
public virtual ProductsResource.GetRequest Get(ulong merchantId, string productId)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | merchantId | The ID of the account that contains the product. This account cannot be a multi-client account. |
System.String | productId | The REST ID of the product. |
Returns
Type | Description |
---|---|
ProductsResource.GetRequest |
Insert(Product, UInt64)
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. |
System.UInt64 | merchantId | The ID of the account that contains the product. This account cannot be a multi-client account. |
Returns
Type | Description |
---|---|
ProductsResource.InsertRequest |
List(UInt64)
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 |
---|---|---|
System.UInt64 | merchantId | The ID of the account that contains the products. This account cannot be a multi-client account. |
Returns
Type | Description |
---|---|
ProductsResource.ListRequest |