Class: Google::Apis::MerchantapiReportsV1beta::ProductView

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/merchantapi_reports_v1beta/classes.rb,
lib/google/apis/merchantapi_reports_v1beta/representations.rb,
lib/google/apis/merchantapi_reports_v1beta/representations.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductView

Returns a new instance of ProductView.



1620
1621
1622
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1620

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#aggregated_reporting_context_statusString

Aggregated status. Corresponds to the JSON property aggregatedReportingContextStatus

Returns:

  • (String)


1444
1445
1446
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1444

def aggregated_reporting_context_status
  @aggregated_reporting_context_status
end

#availabilityString

Availability of the product. Corresponds to the JSON property availability

Returns:

  • (String)


1450
1451
1452
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1450

def availability
  @availability
end

#brandString

Brand of the product. Corresponds to the JSON property brand

Returns:

  • (String)


1455
1456
1457
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1455

def brand
  @brand
end

#category_l1String

Product category (1st level) in Google's product taxonomy. Corresponds to the JSON property categoryL1

Returns:

  • (String)


1461
1462
1463
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1461

def category_l1
  @category_l1
end

#category_l2String

Product category (2nd level) in Google's product taxonomy. Corresponds to the JSON property categoryL2

Returns:

  • (String)


1467
1468
1469
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1467

def category_l2
  @category_l2
end

#category_l3String

Product category (3rd level) in Google's product taxonomy. Corresponds to the JSON property categoryL3

Returns:

  • (String)


1473
1474
1475
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1473

def category_l3
  @category_l3
end

#category_l4String

Product category (4th level) in Google's product taxonomy. Corresponds to the JSON property categoryL4

Returns:

  • (String)


1479
1480
1481
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1479

def category_l4
  @category_l4
end

#category_l5String

Product category (5th level) in Google's product taxonomy. Corresponds to the JSON property categoryL5

Returns:

  • (String)


1485
1486
1487
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1485

def category_l5
  @category_l5
end

#channelString

Channel of the product. Can be ONLINE or LOCAL. Corresponds to the JSON property channel

Returns:

  • (String)


1490
1491
1492
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1490

def channel
  @channel
end

#click_potentialString

Estimated performance potential compared to highest performing products of the merchant. Corresponds to the JSON property clickPotential

Returns:

  • (String)


1496
1497
1498
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1496

def click_potential
  @click_potential
end

#click_potential_rankFixnum

Rank of the product based on its click potential. A product with click_potential_rank 1 has the highest click potential among the merchant's products that fulfill the search query conditions. Corresponds to the JSON property clickPotentialRank

Returns:

  • (Fixnum)


1503
1504
1505
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1503

def click_potential_rank
  @click_potential_rank
end

#conditionString

Condition of the product. Corresponds to the JSON property condition

Returns:

  • (String)


1509
1510
1511
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1509

def condition
  @condition
end

#creation_timeString

The time the merchant created the product in timestamp seconds. Corresponds to the JSON property creationTime

Returns:

  • (String)


1514
1515
1516
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1514

def creation_time
  @creation_time
end

#expiration_dateGoogle::Apis::MerchantapiReportsV1beta::Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property expirationDate



1526
1527
1528
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1526

def expiration_date
  @expiration_date
end

#feed_labelString

Feed label of the product. Corresponds to the JSON property feedLabel

Returns:

  • (String)


1531
1532
1533
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1531

def feed_label
  @feed_label
end

#gtinArray<String>

List of Global Trade Item Numbers (GTINs) of the product. Corresponds to the JSON property gtin

Returns:

  • (Array<String>)


1536
1537
1538
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1536

def gtin
  @gtin
end

#idString

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

Returns:

  • (String)


1543
1544
1545
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1543

def id
  @id
end

#item_group_idString

Item group id provided by the merchant for grouping variants together. Corresponds to the JSON property itemGroupId

Returns:

  • (String)


1548
1549
1550
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1548

def item_group_id
  @item_group_id
end

#item_issuesArray<Google::Apis::MerchantapiReportsV1beta::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. Corresponds to the JSON property itemIssues



1556
1557
1558
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1556

def item_issues
  @item_issues
end

#language_codeString

Language code of the product in BCP 47 format. Corresponds to the JSON property languageCode

Returns:

  • (String)


1561
1562
1563
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1561

def language_code
  @language_code
end

#offer_idString

Merchant-provided id of the product. Corresponds to the JSON property offerId

Returns:

  • (String)


1566
1567
1568
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1566

def offer_id
  @offer_id
end

#priceGoogle::Apis::MerchantapiReportsV1beta::Price

The price represented as a number and currency. Corresponds to the JSON property price



1571
1572
1573
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1571

def price
  @price
end

#product_type_l1String

Product type (1st level) in merchant's own product taxonomy. Corresponds to the JSON property productTypeL1

Returns:

  • (String)


1577
1578
1579
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1577

def product_type_l1
  @product_type_l1
end

#product_type_l2String

Product type (2nd level) in merchant's own product taxonomy. Corresponds to the JSON property productTypeL2

Returns:

  • (String)


1583
1584
1585
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1583

def product_type_l2
  @product_type_l2
end

#product_type_l3String

Product type (3rd level) in merchant's own product taxonomy. Corresponds to the JSON property productTypeL3

Returns:

  • (String)


1589
1590
1591
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1589

def product_type_l3
  @product_type_l3
end

#product_type_l4String

Product type (4th level) in merchant's own product taxonomy. Corresponds to the JSON property productTypeL4

Returns:

  • (String)


1595
1596
1597
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1595

def product_type_l4
  @product_type_l4
end

#product_type_l5String

Product type (5th level) in merchant's own product taxonomy. Corresponds to the JSON property productTypeL5

Returns:

  • (String)


1601
1602
1603
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1601

def product_type_l5
  @product_type_l5
end

#shipping_labelString

Normalized shipping label specified in the data source. Corresponds to the JSON property shippingLabel

Returns:

  • (String)


1607
1608
1609
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1607

def shipping_label
  @shipping_label
end

Link to the processed image of the product, hosted on the Google infrastructure. Corresponds to the JSON property thumbnailLink

Returns:

  • (String)


1613
1614
1615
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1613

def thumbnail_link
  @thumbnail_link
end

#titleString

Title of the product. Corresponds to the JSON property title

Returns:

  • (String)


1618
1619
1620
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1618

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1625

def update!(**args)
  @aggregated_reporting_context_status = args[:aggregated_reporting_context_status] if args.key?(:aggregated_reporting_context_status)
  @availability = args[:availability] if args.key?(:availability)
  @brand = args[:brand] if args.key?(:brand)
  @category_l1 = args[:category_l1] if args.key?(:category_l1)
  @category_l2 = args[:category_l2] if args.key?(:category_l2)
  @category_l3 = args[:category_l3] if args.key?(:category_l3)
  @category_l4 = args[:category_l4] if args.key?(:category_l4)
  @category_l5 = args[:category_l5] if args.key?(:category_l5)
  @channel = args[:channel] if args.key?(:channel)
  @click_potential = args[:click_potential] if args.key?(:click_potential)
  @click_potential_rank = args[:click_potential_rank] if args.key?(:click_potential_rank)
  @condition = args[:condition] if args.key?(:condition)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @expiration_date = args[:expiration_date] if args.key?(:expiration_date)
  @feed_label = args[:feed_label] if args.key?(:feed_label)
  @gtin = args[:gtin] if args.key?(:gtin)
  @id = args[:id] if args.key?(:id)
  @item_group_id = args[:item_group_id] if args.key?(:item_group_id)
  @item_issues = args[:item_issues] if args.key?(:item_issues)
  @language_code = args[:language_code] if args.key?(:language_code)
  @offer_id = args[:offer_id] if args.key?(:offer_id)
  @price = args[:price] if args.key?(:price)
  @product_type_l1 = args[:product_type_l1] if args.key?(:product_type_l1)
  @product_type_l2 = args[:product_type_l2] if args.key?(:product_type_l2)
  @product_type_l3 = args[:product_type_l3] if args.key?(:product_type_l3)
  @product_type_l4 = args[:product_type_l4] if args.key?(:product_type_l4)
  @product_type_l5 = args[:product_type_l5] if args.key?(:product_type_l5)
  @shipping_label = args[:shipping_label] if args.key?(:shipping_label)
  @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
  @title = args[:title] if args.key?(:title)
end