Class Product
The processed product, built from multiple [product inputs][[google.shopping.content.bundles.Products.ProductInput] after applying rules and supplemental data sources. This processed product matches what is shown in your Merchant Center account and in Shopping ads and other surfaces across Google. Each product is built from exactly one primary data source product input, and multiple supplemental data source inputs. After inserting, updating, or deleting a product input, it may take several minutes before the updated processed product can be retrieved.
All fields in the processed product and its sub-messages match the name of their corresponding attribute in the Product data specification with some exceptions.
Namespace: Google.Shopping.Merchant.Products.V1Beta
Assembly: Google.Shopping.Merchant.Products.V1Beta.dll
Syntax
public sealed class Product : IMessage<Product>, IEquatable<Product>, IDeepCloneable<Product>, IBufferMessage, IMessage
Constructors
Product()
Declaration
public Product()
Product(Product)
Declaration
public Product(Product other)
Parameters
Type | Name | Description |
---|---|---|
Product | other |
Properties
Attributes
Output only. A list of product attributes.
Declaration
public Attributes Attributes { get; set; }
Property Value
Type | Description |
---|---|
Attributes |
Channel
Output only. The channel of the product.
Declaration
public Channel.Types.ChannelEnum Channel { get; set; }
Property Value
Type | Description |
---|---|
Channel.Types.ChannelEnum |
ContentLanguage
Output only. The two-letter ISO 639-1 language code for the product.
Declaration
public string ContentLanguage { get; set; }
Property Value
Type | Description |
---|---|
string |
CustomAttributes
Output only. A list of custom (merchant-provided) attributes. It can also
be used to submit any attribute of the data specification in its generic
form (for example,
{ "name": "size type", "value": "regular" }
).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.
Declaration
public RepeatedField<CustomAttribute> CustomAttributes { get; }
Property Value
Type | Description |
---|---|
RepeatedField<CustomAttribute> |
DataSource
Output only. The primary data source of the product.
Declaration
public string DataSource { get; set; }
Property Value
Type | Description |
---|---|
string |
FeedLabel
Output only. The feed label for the product.
Declaration
public string FeedLabel { get; set; }
Property Value
Type | Description |
---|---|
string |
HasVersionNumber
Gets whether the "version_number" field is set
Declaration
public bool HasVersionNumber { get; }
Property Value
Type | Description |
---|---|
bool |
Name
The name of the product.
Format:
"{product.name=accounts/{account}/products/{product}}"
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
OfferId
Output only. Your unique identifier for the product. This is the same for the product input and processed product. Leading and trailing whitespaces are stripped and multiple whitespaces are replaced by a single whitespace upon submission. See the product data specification for details.
Declaration
public string OfferId { get; set; }
Property Value
Type | Description |
---|---|
string |
ProductName
ProductName-typed view over the Name resource name property.
Declaration
public ProductName ProductName { get; set; }
Property Value
Type | Description |
---|---|
ProductName |
ProductStatus
Output only. The status of a product, data validation issues, that is, information about a product computed asynchronously.
Declaration
public ProductStatus ProductStatus { get; set; }
Property Value
Type | Description |
---|---|
ProductStatus |
VersionNumber
Output only. Represents the existing version (freshness) of the product, which can be used to preserve the right order when multiple updates are done at the same time.
If set, the insertion is prevented when version number is lower than
the current version number of the existing product. Re-insertion (for
example, product refresh after 30 days) can be performed with the current
version_number
.
Only supported for insertions into primary data sources.
If the operation is prevented, the aborted exception will be thrown.
Declaration
public long VersionNumber { get; set; }
Property Value
Type | Description |
---|---|
long |