class Google::Apis::AnalyticsreportingV4::ProductData

Details of the products in an e-commerce transaction.

Attributes

item_revenue[RW]

The total revenue from purchased product items. Corresponds to the JSON property `itemRevenue` @return [Float]

product_name[RW]

The product name, supplied by the e-commerce tracking application, for the purchased items. Corresponds to the JSON property `productName` @return [String]

product_quantity[RW]

Total number of this product units in the transaction. Corresponds to the JSON property `productQuantity` @return [Fixnum]

product_sku[RW]

Unique code that represents the product. Corresponds to the JSON property `productSku` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 1135
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/analyticsreporting_v4/classes.rb, line 1140
def update!(**args)
  @item_revenue = args[:item_revenue] if args.key?(:item_revenue)
  @product_name = args[:product_name] if args.key?(:product_name)
  @product_quantity = args[:product_quantity] if args.key?(:product_quantity)
  @product_sku = args[:product_sku] if args.key?(:product_sku)
end