Class AccountsResource.ProductsResource
The "products" collection of methods.
Inherited Members
Namespace: Google.Apis.ManufacturerCenter.v1
Assembly: Google.Apis.ManufacturerCenter.v1.dll
Syntax
public class AccountsResource.ProductsResource
Constructors
ProductsResource(IClientService)
Constructs a new resource.
Declaration
public ProductsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Deletes the product from a Manufacturer Center account.
Declaration
public virtual AccountsResource.ProductsResource.DeleteRequest Delete(string parent, string name)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Parent ID in the format |
string | name | Name in the format |
Returns
Type | Description |
---|---|
AccountsResource.ProductsResource.DeleteRequest |
Get(string, string)
Gets the product from a Manufacturer Center account, including product issues. A recently updated product takes around 15 minutes to process. Changes are only visible after it has been processed. While some issues may be available once the product has been processed, other issues may take days to appear.
Declaration
public virtual AccountsResource.ProductsResource.GetRequest Get(string parent, string name)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Parent ID in the format |
string | name | Name in the format |
Returns
Type | Description |
---|---|
AccountsResource.ProductsResource.GetRequest |
List(string)
Lists all the products in a Manufacturer Center account.
Declaration
public virtual AccountsResource.ProductsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Parent ID in the format |
Returns
Type | Description |
---|---|
AccountsResource.ProductsResource.ListRequest |
Update(Attributes, string, string)
Inserts or updates the attributes of the product in a Manufacturer Center account. Creates a product with the provided attributes. If the product already exists, then all attributes are replaced with the new ones. The checks at upload time are minimal. All required attributes need to be present for a product to be valid. Issues may show up later after the API has accepted a new upload for a product and it is possible to overwrite an existing valid product with an invalid product. To detect this, you should retrieve the product and check it for issues once the new version is available. Uploaded attributes first need to be processed before they can be retrieved. Until then, new products will be unavailable, and retrieval of previously uploaded products will return the original state of the product.
Declaration
public virtual AccountsResource.ProductsResource.UpdateRequest Update(Attributes body, string parent, string name)
Parameters
Type | Name | Description |
---|---|---|
Attributes | body | The body of the request. |
string | parent | Parent ID in the format |
string | name | Name in the format |
Returns
Type | Description |
---|---|
AccountsResource.ProductsResource.UpdateRequest |