ProductInput class
This resource represents input data you submit for a product, not the processed product that you see in Merchant Center, in Shopping ads, or across Google surfaces.
Product inputs, rules and supplemental data source data are combined to create the processed Product. For more information, see [Manage products](/merchant/api/guides/products/overview). Required product input attributes to pass data validation checks are primarily defined in the Products Data Specification. The following attributes are required: feedLabel, contentLanguage and offerId. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved. All fields in the product input and its sub-messages match the English name of their corresponding attribute in the Products Data Specification with some exceptions. The following reference documentation lists the field names in the camelCase casing style while the Products Data Specification lists the names in the snake_case casing style.
Constructors
-
ProductInput.new({String? contentLanguage, List<
CustomAttribute> ? customAttributes, String? feedLabel, bool? legacyLocal, String? name, String? offerId, String? product, ProductAttributes? productAttributes, String? versionNumber}) - ProductInput.fromJson(Map json_)
Properties
- contentLanguage ↔ String?
-
The two-letter [ISO 639-1](http://en.wikipedia.org/wiki/ISO_639-1)
language code for the product.
getter/setter pair
-
customAttributes
↔ List<
CustomAttribute> ? -
A list of custom (merchant-provided) attributes.
getter/setter pair
- feedLabel ↔ String?
-
The feed label that lets you categorize and identify your products.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- legacyLocal ↔ bool?
-
Determines whether the product is only targeting local destinations
and whether the product name should be distinguished with a
local~
prefix.getter/setter pair - name ↔ String?
-
Identifier.
getter/setter pair
- offerId ↔ String?
-
Your unique identifier for the product.
getter/setter pair
- product ↔ String?
-
The name of the processed product.
getter/setter pair
- productAttributes ↔ ProductAttributes?
-
A list of strongly-typed product attributes.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- versionNumber ↔ String?
-
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.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited