Google Shopping Merchant Reports V1beta Client - Class ProductView (0.1.0)

Reference documentation and code samples for the Google Shopping Merchant Reports V1beta Client class ProductView.

Fields available for query in product_view table.

Products in the current inventory. Products in this table are the same as in Products sub-API but not all product attributes from Products sub-API are available for query in this table. In contrast to Products sub-API, this table allows to filter the returned list of products by product attributes. To retrieve a single product by id or list all products, Products sub-API should be used. Values are only set for fields requested explicitly in the request's search query.

Generated from protobuf message google.shopping.merchant.reports.v1beta.ProductView

Namespace

Google \ Shopping \ Merchant \ Reports \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ id string

REST ID of the product, in the form of languageCode~feedLabel~offerId. Merchant API methods that operate on products take this as their name parameter. Required in the SELECT clause.

↳ language_code string

Language code of the product in BCP 47 format.

↳ feed_label string

Feed label of the product.

↳ offer_id string

Merchant-provided id of the product.

↳ title string

Title of the product.

↳ brand string

Brand of the product.

↳ category_l1 string

Product category (1st level) in Google's product taxonomy.

↳ category_l2 string

Product category (2nd level) in Google's product taxonomy.

↳ category_l3 string

Product category (3rd level) in Google's product taxonomy.

↳ category_l4 string

Product category (4th level) in Google's product taxonomy.

↳ category_l5 string

Product category (5th level) in Google's product taxonomy.

↳ product_type_l1 string

Product type (1st level) in merchant's own product taxonomy.

↳ product_type_l2 string

Product type (2nd level) in merchant's own product taxonomy.

↳ product_type_l3 string

Product type (3rd level) in merchant's own product taxonomy.

↳ product_type_l4 string

Product type (4th level) in merchant's own product taxonomy.

↳ product_type_l5 string

Product type (5th level) in merchant's own product taxonomy.

↳ price Google\Shopping\Type\Price

Product price. Absent if the information about the price of the product is not available.

↳ condition string

Condition of the product.

↳ availability string

Availability of the product.

↳ shipping_label string

Normalized shipping label specified in the feed.

↳ gtin array

List of Global Trade Item Numbers (GTINs) of the product.

↳ item_group_id string

Item group id provided by the merchant for grouping variants together.

↳ thumbnail_link string

Link to the processed image of the product, hosted on the Google infrastructure.

↳ creation_time Google\Protobuf\Timestamp

The time the merchant created the product in timestamp seconds.

↳ expiration_date Google\Type\Date

Expiration date for the product, specified on insertion.

↳ aggregated_destination_status int

Aggregated destination status.

↳ item_issues array<Google\Shopping\Merchant\Reports\V1beta\ProductView\ItemIssue>

List of item issues for the product. This field cannot be used for sorting the results. Only selected attributes of this field (for example, item_issues.severity.aggregated_severity) can be used for filtering the results.

getId

REST ID of the product, in the form of languageCode~feedLabel~offerId.

Merchant API methods that operate on products take this as their name parameter. Required in the SELECT clause.

Returns
TypeDescription
string

hasId

clearId

setId

REST ID of the product, in the form of languageCode~feedLabel~offerId.

Merchant API methods that operate on products take this as their name parameter. Required in the SELECT clause.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLanguageCode

Language code of the product in BCP 47 format.

Returns
TypeDescription
string

hasLanguageCode

clearLanguageCode

setLanguageCode

Language code of the product in BCP 47 format.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFeedLabel

Feed label of the product.

Returns
TypeDescription
string

hasFeedLabel

clearFeedLabel

setFeedLabel

Feed label of the product.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOfferId

Merchant-provided id of the product.

Returns
TypeDescription
string

hasOfferId

clearOfferId

setOfferId

Merchant-provided id of the product.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTitle

Title of the product.

Returns
TypeDescription
string

hasTitle

clearTitle

setTitle

Title of the product.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBrand

Brand of the product.

Returns
TypeDescription
string

hasBrand

clearBrand

setBrand

Brand of the product.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCategoryL1

Product category (1st level) in Google's product taxonomy.

Returns
TypeDescription
string

hasCategoryL1

clearCategoryL1

setCategoryL1

Product category (1st level) in Google's product taxonomy.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCategoryL2

Product category (2nd level) in Google's product taxonomy.

Returns
TypeDescription
string

hasCategoryL2

clearCategoryL2

setCategoryL2

Product category (2nd level) in Google's product taxonomy.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCategoryL3

Product category (3rd level) in Google's product taxonomy.

Returns
TypeDescription
string

hasCategoryL3

clearCategoryL3

setCategoryL3

Product category (3rd level) in Google's product taxonomy.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCategoryL4

Product category (4th level) in Google's product taxonomy.

Returns
TypeDescription
string

hasCategoryL4

clearCategoryL4

setCategoryL4

Product category (4th level) in Google's product taxonomy.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCategoryL5

Product category (5th level) in Google's product taxonomy.

Returns
TypeDescription
string

hasCategoryL5

clearCategoryL5

setCategoryL5

Product category (5th level) in Google's product taxonomy.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProductTypeL1

Product type (1st level) in merchant's own product taxonomy.

Returns
TypeDescription
string

hasProductTypeL1

clearProductTypeL1

setProductTypeL1

Product type (1st level) in merchant's own product taxonomy.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProductTypeL2

Product type (2nd level) in merchant's own product taxonomy.

Returns
TypeDescription
string

hasProductTypeL2

clearProductTypeL2

setProductTypeL2

Product type (2nd level) in merchant's own product taxonomy.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProductTypeL3

Product type (3rd level) in merchant's own product taxonomy.

Returns
TypeDescription
string

hasProductTypeL3

clearProductTypeL3

setProductTypeL3

Product type (3rd level) in merchant's own product taxonomy.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProductTypeL4

Product type (4th level) in merchant's own product taxonomy.

Returns
TypeDescription
string

hasProductTypeL4

clearProductTypeL4

setProductTypeL4

Product type (4th level) in merchant's own product taxonomy.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProductTypeL5

Product type (5th level) in merchant's own product taxonomy.

Returns
TypeDescription
string

hasProductTypeL5

clearProductTypeL5

setProductTypeL5

Product type (5th level) in merchant's own product taxonomy.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPrice

Product price. Absent if the information about the price of the product is not available.

Returns
TypeDescription
Google\Shopping\Type\Price|null

hasPrice

clearPrice

setPrice

Product price. Absent if the information about the price of the product is not available.

Parameter
NameDescription
var Google\Shopping\Type\Price
Returns
TypeDescription
$this

getCondition

Condition of the product.

Returns
TypeDescription
string

hasCondition

clearCondition

setCondition

Condition of the product.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAvailability

Availability of the product.

Returns
TypeDescription
string

hasAvailability

clearAvailability

setAvailability

Availability of the product.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getShippingLabel

Normalized shipping label specified in the feed.

Returns
TypeDescription
string

hasShippingLabel

clearShippingLabel

setShippingLabel

Normalized shipping label specified in the feed.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGtin

List of Global Trade Item Numbers (GTINs) of the product.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setGtin

List of Global Trade Item Numbers (GTINs) of the product.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getItemGroupId

Item group id provided by the merchant for grouping variants together.

Returns
TypeDescription
string

hasItemGroupId

clearItemGroupId

setItemGroupId

Item group id provided by the merchant for grouping variants together.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

Link to the processed image of the product, hosted on the Google infrastructure.

Returns
TypeDescription
string

Link to the processed image of the product, hosted on the Google infrastructure.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreationTime

The time the merchant created the product in timestamp seconds.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreationTime

clearCreationTime

setCreationTime

The time the merchant created the product in timestamp seconds.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getExpirationDate

Expiration date for the product, specified on insertion.

Returns
TypeDescription
Google\Type\Date|null

hasExpirationDate

clearExpirationDate

setExpirationDate

Expiration date for the product, specified on insertion.

Parameter
NameDescription
var Google\Type\Date
Returns
TypeDescription
$this

getAggregatedDestinationStatus

Aggregated destination status.

Returns
TypeDescription
int

hasAggregatedDestinationStatus

clearAggregatedDestinationStatus

setAggregatedDestinationStatus

Aggregated destination status.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getItemIssues

List of item issues for the product.

This field cannot be used for sorting the results. Only selected attributes of this field (for example, item_issues.severity.aggregated_severity) can be used for filtering the results.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setItemIssues

List of item issues for the product.

This field cannot be used for sorting the results. Only selected attributes of this field (for example, item_issues.severity.aggregated_severity) can be used for filtering the results.

Parameter
NameDescription
var array<Google\Shopping\Merchant\Reports\V1beta\ProductView\ItemIssue>
Returns
TypeDescription
$this