Class: Google::Apis::ContentV2_1::Metrics
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::Metrics
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Performance metrics. Values are only set for metrics requested explicitly in the request's search query.
Instance Attribute Summary collapse
-
#aos ⇒ Float
Average order size - the average number of items in an order.
-
#aov_micros ⇒ Float
Average order value - the average value (total price of items) of all placed orders.
-
#clicks ⇒ Fixnum
Number of clicks.
-
#ctr ⇒ Float
Click-through rate - the number of clicks merchant's products receive (clicks) divided by the number of times the products are shown (impressions).
-
#days_to_ship ⇒ Float
Average number of days between an order being placed and the order being fully shipped, reported on the last shipment date.
-
#impressions ⇒ Fixnum
Number of times merchant's products are shown.
-
#item_days_to_ship ⇒ Float
Average number of days between an item being ordered and the item being Corresponds to the JSON property
itemDaysToShip. -
#item_fill_rate ⇒ Float
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.
-
#ordered_item_sales_micros ⇒ Fixnum
Total price of ordered items.
-
#ordered_items ⇒ Fixnum
Number of ordered items.
-
#orders ⇒ Fixnum
Number of placed orders.
-
#rejected_items ⇒ Fixnum
Number of ordered items canceled by the merchant, reported on the order date.
-
#return_rate ⇒ Float
Total price of returned items divided by the total price of shipped items, reported on the order date.
-
#returned_items ⇒ Fixnum
Number of ordered items sent back for return, reported on the date when the merchant accepted the return.
-
#returns_micros ⇒ Fixnum
Total price of ordered items sent back for return, reported on the date when the merchant accepted the return.
-
#shipped_item_sales_micros ⇒ Fixnum
Total price of shipped items, reported on the order date.
-
#shipped_items ⇒ Fixnum
Number of shipped items, reported on the shipment date.
-
#shipped_orders ⇒ Fixnum
Number of fully shipped orders, reported on the last shipment date.
-
#unshipped_items ⇒ Float
Number of ordered items not shipped up until the end of the queried day.
-
#unshipped_orders ⇒ Float
Number of orders not shipped or partially shipped up until the end of the queried day.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Metrics
constructor
A new instance of Metrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Metrics
Returns a new instance of Metrics.
4967 4968 4969 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4967 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aos ⇒ Float
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
4831 4832 4833 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4831 def aos @aos end |
#aov_micros ⇒ Float
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
4841 4842 4843 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4841 def aov_micros @aov_micros end |
#clicks ⇒ Fixnum
Number of clicks.
Corresponds to the JSON property clicks
4846 4847 4848 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4846 def clicks @clicks end |
#ctr ⇒ Float
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
4852 4853 4854 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4852 def ctr @ctr end |
#days_to_ship ⇒ Float
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
4859 4860 4861 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4859 def days_to_ship @days_to_ship end |
#impressions ⇒ Fixnum
Number of times merchant's products are shown.
Corresponds to the JSON property impressions
4864 4865 4866 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4864 def impressions @impressions end |
#item_days_to_ship ⇒ Float
Average number of days between an item being ordered and the item being
Corresponds to the JSON property itemDaysToShip
4869 4870 4871 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4869 def item_days_to_ship @item_days_to_ship end |
#item_fill_rate ⇒ Float
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
4876 4877 4878 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4876 def item_fill_rate @item_fill_rate end |
#ordered_item_sales_micros ⇒ Fixnum
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
4886 4887 4888 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4886 def ordered_item_sales_micros @ordered_item_sales_micros end |
#ordered_items ⇒ Fixnum
Number of ordered items. Excludes customer cancellations that happened within
30 minutes of placing the order.
Corresponds to the JSON property orderedItems
4892 4893 4894 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4892 def ordered_items @ordered_items end |
#orders ⇒ Fixnum
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
4899 4900 4901 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4899 def orders @orders end |
#rejected_items ⇒ Fixnum
Number of ordered items canceled by the merchant, reported on the order date.
Corresponds to the JSON property rejectedItems
4904 4905 4906 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4904 def rejected_items @rejected_items end |
#return_rate ⇒ Float
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
4913 4914 4915 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4913 def return_rate @return_rate end |
#returned_items ⇒ Fixnum
Number of ordered items sent back for return, reported on the date when the
merchant accepted the return.
Corresponds to the JSON property returnedItems
4919 4920 4921 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4919 def returned_items @returned_items end |
#returns_micros ⇒ Fixnum
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
4929 4930 4931 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4929 def returns_micros @returns_micros end |
#shipped_item_sales_micros ⇒ Fixnum
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
4939 4940 4941 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4939 def shipped_item_sales_micros @shipped_item_sales_micros end |
#shipped_items ⇒ Fixnum
Number of shipped items, reported on the shipment date.
Corresponds to the JSON property shippedItems
4944 4945 4946 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4944 def shipped_items @shipped_items end |
#shipped_orders ⇒ Fixnum
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
4950 4951 4952 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4950 def shipped_orders @shipped_orders end |
#unshipped_items ⇒ Float
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
4957 4958 4959 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4957 def unshipped_items @unshipped_items end |
#unshipped_orders ⇒ Float
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
4965 4966 4967 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4965 def unshipped_orders @unshipped_orders end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4972 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 |