class Google::Apis::ContentV2_1::Metrics

Performance metrics. Values are only set for metrics requested explicitly in the request's search query.

Attributes

aos[RW]

Average order size - the average number of items in an order. **This metric cannot be segmented by product dimensions.** Corresponds to the JSON property `aos` @return [Float]

aov_micros[RW]

Average order value - the average value (total price of items) of all placed orders. The currency of the returned value is stored in the currency_code segment. If this metric is selected, 'segments.currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by product dimensions.** Corresponds to the JSON property `aovMicros` @return [Float]

clicks[RW]

Number of clicks. Corresponds to the JSON property `clicks` @return [Fixnum]

ctr[RW]

Click-through rate - the number of clicks merchant's products receive (clicks) divided by the number of times the products are shown (impressions). Corresponds to the JSON property `ctr` @return [Float]

days_to_ship[RW]

Average number of days between an order being placed and the order being fully shipped, reported on the last shipment date. **This metric cannot be segmented by product dimensions.** Corresponds to the JSON property `daysToShip` @return [Float]

impressions[RW]

Number of times merchant's products are shown. Corresponds to the JSON property `impressions` @return [Fixnum]

item_days_to_ship[RW]

Average number of days between an item being ordered and the item being Corresponds to the JSON property `itemDaysToShip` @return [Float]

item_fill_rate[RW]

Percentage of shipped items in relation to all finalized items (shipped or rejected by the merchant; unshipped items are not taken into account), reported on the order date. Item fill rate is lowered by merchant rejections. Corresponds to the JSON property `itemFillRate` @return [Float]

ordered_item_sales_micros[RW]

Total price of ordered items. Excludes shipping, taxes (US only), and customer cancellations that happened within 30 minutes of placing the order. The currency of the returned value is stored in the currency_code segment. If this metric is selected, 'segments.currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. Corresponds to the JSON property `orderedItemSalesMicros` @return [Fixnum]

ordered_items[RW]

Number of ordered items. Excludes customer cancellations that happened within 30 minutes of placing the order. Corresponds to the JSON property `orderedItems` @return [Fixnum]

orders[RW]

Number of placed orders. Excludes customer cancellations that happened within 30 minutes of placing the order. **This metric cannot be segmented by product dimensions.** Corresponds to the JSON property `orders` @return [Fixnum]

rejected_items[RW]

Number of ordered items canceled by the merchant, reported on the order date. Corresponds to the JSON property `rejectedItems` @return [Fixnum]

return_rate[RW]

Total price of returned items divided by the total price of shipped items, reported on the order date. If this metric is selected, 'segments. currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. Corresponds to the JSON property `returnRate` @return [Float]

returned_items[RW]

Number of ordered items sent back for return, reported on the date when the merchant accepted the return. Corresponds to the JSON property `returnedItems` @return [Fixnum]

returns_micros[RW]

Total price of ordered items sent back for return, reported on the date when the merchant accepted the return. The currency of the returned value is stored in the currency_code segment. If this metric is selected, 'segments. currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. Corresponds to the JSON property `returnsMicros` @return [Fixnum]

shipped_item_sales_micros[RW]

Total price of shipped items, reported on the order date. Excludes shipping and taxes (US only). The currency of the returned value is stored in the currency_code segment. If this metric is selected, 'segments.currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. Corresponds to the JSON property `shippedItemSalesMicros` @return [Fixnum]

shipped_items[RW]

Number of shipped items, reported on the shipment date. Corresponds to the JSON property `shippedItems` @return [Fixnum]

shipped_orders[RW]

Number of fully shipped orders, reported on the last shipment date. **This metric cannot be segmented by product dimensions.** Corresponds to the JSON property `shippedOrders` @return [Fixnum]

unshipped_items[RW]

Number of ordered items not shipped up until the end of the queried day. If a multi-day period is specified in the search query, the returned value is the average number of unshipped items over the days in the queried period. Corresponds to the JSON property `unshippedItems` @return [Float]

unshipped_orders[RW]

Number of orders not shipped or partially shipped up until the end of the queried day. If a multi-day period is specified in the search query, the returned value is the average number of unshipped orders over the days in the queried period. **This metric cannot be segmented by product dimensions.** Corresponds to the JSON property `unshippedOrders` @return [Float]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2_1/classes.rb, line 5110
def update!(**args)
  @aos = args[:aos] if args.key?(:aos)
  @aov_micros = args[:aov_micros] if args.key?(:aov_micros)
  @clicks = args[:clicks] if args.key?(:clicks)
  @ctr = args[:ctr] if args.key?(:ctr)
  @days_to_ship = args[:days_to_ship] if args.key?(:days_to_ship)
  @impressions = args[:impressions] if args.key?(:impressions)
  @item_days_to_ship = args[:item_days_to_ship] if args.key?(:item_days_to_ship)
  @item_fill_rate = args[:item_fill_rate] if args.key?(:item_fill_rate)
  @ordered_item_sales_micros = args[:ordered_item_sales_micros] if args.key?(:ordered_item_sales_micros)
  @ordered_items = args[:ordered_items] if args.key?(:ordered_items)
  @orders = args[:orders] if args.key?(:orders)
  @rejected_items = args[:rejected_items] if args.key?(:rejected_items)
  @return_rate = args[:return_rate] if args.key?(:return_rate)
  @returned_items = args[:returned_items] if args.key?(:returned_items)
  @returns_micros = args[:returns_micros] if args.key?(:returns_micros)
  @shipped_item_sales_micros = args[:shipped_item_sales_micros] if args.key?(:shipped_item_sales_micros)
  @shipped_items = args[:shipped_items] if args.key?(:shipped_items)
  @shipped_orders = args[:shipped_orders] if args.key?(:shipped_orders)
  @unshipped_items = args[:unshipped_items] if args.key?(:unshipped_items)
  @unshipped_orders = args[:unshipped_orders] if args.key?(:unshipped_orders)
end