Get

Gets information associated with a Product

1 variables
7 variables

Gets information associated with a Product.

Possible errors:

  • Returns NOT_FOUND if the Product does not exist

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • View and manage your data across Google Cloud Platform services
  • Apply machine learning models to understand and label images

Input

This building block consumes 1 input parameters

  = Parameter name
  = Format

name STRING Required

Resource name of the Product to get.

Format is: projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID

Output

This building block provides 7 output parameters

  = Parameter name
  = Format

name STRING

The resource name of the product.

Format is: projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID.

This field is ignored when creating a product

displayName STRING

The user-provided name for this Product. Must not be empty. Must be at most 4096 characters long

description STRING

User-provided metadata to be stored with this product. Must be at most 4096 characters long

productCategory STRING

The category for the product identified by the reference image. This should be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories "homegoods", "apparel", and "toys" are still supported, but these should not be used for new products.

This field is immutable

productLabels[] OBJECT

A product label represented as a key-value pair

productLabels[].value STRING

The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes

productLabels[].key STRING

The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes