target.apidocs.com.google.api.services.content.model.Metrics.html Maven / Gradle / Ivy
Metrics (Content API for Shopping v2.1-rev20220413-1.32.1)
com.google.api.services.content.model
Class Metrics
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.content.model.Metrics
-
public final class Metrics
extends GenericJson
Performance metrics. Values are only set for metrics requested explicitly in the request's search
query.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation
see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Metrics()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Metrics
clone()
Double
getAos()
Average order size - the average number of items in an order.
Double
getAovMicros()
Average order value - the average value (total price of items) of all placed orders.
Long
getClicks()
Number of clicks.
Double
getConversionRate()
Number of conversions divided by the number of clicks, reported on the impression date.
Double
getConversions()
Number of conversions attributed to the product, reported on the conversion date.
Long
getConversionValueMicros()
Value of conversions in micros attributed to the product, reported on the conversion date.
Double
getCtr()
Click-through rate - the number of clicks merchant's products receive (clicks) divided by the
number of times the products are shown (impressions).
Double
getDaysToShip()
Average number of days between an order being placed and the order being fully shipped,
reported on the last shipment date.
Long
getImpressions()
Number of times merchant's products are shown.
Double
getItemDaysToShip()
Average number of days between an item being ordered and the item being
Double
getItemFillRate()
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.
Long
getOrderedItems()
Number of ordered items.
Long
getOrderedItemSalesMicros()
Total price of ordered items.
Long
getOrders()
Number of placed orders.
Long
getRejectedItems()
Number of ordered items canceled by the merchant, reported on the order date.
Long
getReturnedItems()
Number of ordered items sent back for return, reported on the date when the merchant accepted
the return.
Double
getReturnRate()
Total price of returned items divided by the total price of shipped items, reported on the
order date.
Long
getReturnsMicros()
Total price of ordered items sent back for return, reported on the date when the merchant
accepted the return.
Long
getShippedItems()
Number of shipped items, reported on the shipment date.
Long
getShippedItemSalesMicros()
Total price of shipped items, reported on the order date.
Long
getShippedOrders()
Number of fully shipped orders, reported on the last shipment date.
Double
getUnshippedItems()
Number of ordered items not shipped up until the end of the queried day.
Double
getUnshippedOrders()
Number of orders not shipped or partially shipped up until the end of the queried day.
Metrics
set(String fieldName,
Object value)
Metrics
setAos(Double aos)
Average order size - the average number of items in an order.
Metrics
setAovMicros(Double aovMicros)
Average order value - the average value (total price of items) of all placed orders.
Metrics
setClicks(Long clicks)
Number of clicks.
Metrics
setConversionRate(Double conversionRate)
Number of conversions divided by the number of clicks, reported on the impression date.
Metrics
setConversions(Double conversions)
Number of conversions attributed to the product, reported on the conversion date.
Metrics
setConversionValueMicros(Long conversionValueMicros)
Value of conversions in micros attributed to the product, reported on the conversion date.
Metrics
setCtr(Double ctr)
Click-through rate - the number of clicks merchant's products receive (clicks) divided by the
number of times the products are shown (impressions).
Metrics
setDaysToShip(Double daysToShip)
Average number of days between an order being placed and the order being fully shipped,
reported on the last shipment date.
Metrics
setImpressions(Long impressions)
Number of times merchant's products are shown.
Metrics
setItemDaysToShip(Double itemDaysToShip)
Average number of days between an item being ordered and the item being
Metrics
setItemFillRate(Double itemFillRate)
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.
Metrics
setOrderedItems(Long orderedItems)
Number of ordered items.
Metrics
setOrderedItemSalesMicros(Long orderedItemSalesMicros)
Total price of ordered items.
Metrics
setOrders(Long orders)
Number of placed orders.
Metrics
setRejectedItems(Long rejectedItems)
Number of ordered items canceled by the merchant, reported on the order date.
Metrics
setReturnedItems(Long returnedItems)
Number of ordered items sent back for return, reported on the date when the merchant accepted
the return.
Metrics
setReturnRate(Double returnRate)
Total price of returned items divided by the total price of shipped items, reported on the
order date.
Metrics
setReturnsMicros(Long returnsMicros)
Total price of ordered items sent back for return, reported on the date when the merchant
accepted the return.
Metrics
setShippedItems(Long shippedItems)
Number of shipped items, reported on the shipment date.
Metrics
setShippedItemSalesMicros(Long shippedItemSalesMicros)
Total price of shipped items, reported on the order date.
Metrics
setShippedOrders(Long shippedOrders)
Number of fully shipped orders, reported on the last shipment date.
Metrics
setUnshippedItems(Double unshippedItems)
Number of ordered items not shipped up until the end of the queried day.
Metrics
setUnshippedOrders(Double unshippedOrders)
Number of orders not shipped or partially shipped up until the end of the queried day.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAos
public Double getAos()
Average order size - the average number of items in an order. **This metric cannot be segmented
by product dimensions.**
- Returns:
- value or
null
for none
-
setAos
public Metrics setAos(Double aos)
Average order size - the average number of items in an order. **This metric cannot be segmented
by product dimensions.**
- Parameters:
aos
- aos or null
for none
-
getAovMicros
public Double getAovMicros()
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.**
- Returns:
- value or
null
for none
-
setAovMicros
public Metrics setAovMicros(Double aovMicros)
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.**
- Parameters:
aovMicros
- aovMicros or null
for none
-
getClicks
public Long getClicks()
Number of clicks.
- Returns:
- value or
null
for none
-
setClicks
public Metrics setClicks(Long clicks)
Number of clicks.
- Parameters:
clicks
- clicks or null
for none
-
getConversionRate
public Double getConversionRate()
Number of conversions divided by the number of clicks, reported on the impression date. The
metric is currently available only for the FREE_PRODUCT_LISTING program.
- Returns:
- value or
null
for none
-
setConversionRate
public Metrics setConversionRate(Double conversionRate)
Number of conversions divided by the number of clicks, reported on the impression date. The
metric is currently available only for the FREE_PRODUCT_LISTING program.
- Parameters:
conversionRate
- conversionRate or null
for none
-
getConversionValueMicros
public Long getConversionValueMicros()
Value of conversions in micros attributed to the product, reported on the conversion date. The
metric is currently available only for the FREE_PRODUCT_LISTING program. 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.
- Returns:
- value or
null
for none
-
setConversionValueMicros
public Metrics setConversionValueMicros(Long conversionValueMicros)
Value of conversions in micros attributed to the product, reported on the conversion date. The
metric is currently available only for the FREE_PRODUCT_LISTING program. 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.
- Parameters:
conversionValueMicros
- conversionValueMicros or null
for none
-
getConversions
public Double getConversions()
Number of conversions attributed to the product, reported on the conversion date. Depending on
the attribution model, a conversion might be distributed across multiple clicks, where each
click gets its own credit assigned. This metric is a sum of all such credits. The metric is
currently available only for the FREE_PRODUCT_LISTING program.
- Returns:
- value or
null
for none
-
setConversions
public Metrics setConversions(Double conversions)
Number of conversions attributed to the product, reported on the conversion date. Depending on
the attribution model, a conversion might be distributed across multiple clicks, where each
click gets its own credit assigned. This metric is a sum of all such credits. The metric is
currently available only for the FREE_PRODUCT_LISTING program.
- Parameters:
conversions
- conversions or null
for none
-
getCtr
public Double getCtr()
Click-through rate - the number of clicks merchant's products receive (clicks) divided by the
number of times the products are shown (impressions).
- Returns:
- value or
null
for none
-
setCtr
public Metrics setCtr(Double ctr)
Click-through rate - the number of clicks merchant's products receive (clicks) divided by the
number of times the products are shown (impressions).
- Parameters:
ctr
- ctr or null
for none
-
getDaysToShip
public Double getDaysToShip()
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.**
- Returns:
- value or
null
for none
-
setDaysToShip
public Metrics setDaysToShip(Double daysToShip)
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.**
- Parameters:
daysToShip
- daysToShip or null
for none
-
getImpressions
public Long getImpressions()
Number of times merchant's products are shown.
- Returns:
- value or
null
for none
-
setImpressions
public Metrics setImpressions(Long impressions)
Number of times merchant's products are shown.
- Parameters:
impressions
- impressions or null
for none
-
getItemDaysToShip
public Double getItemDaysToShip()
Average number of days between an item being ordered and the item being
- Returns:
- value or
null
for none
-
setItemDaysToShip
public Metrics setItemDaysToShip(Double itemDaysToShip)
Average number of days between an item being ordered and the item being
- Parameters:
itemDaysToShip
- itemDaysToShip or null
for none
-
getItemFillRate
public Double getItemFillRate()
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.
- Returns:
- value or
null
for none
-
setItemFillRate
public Metrics setItemFillRate(Double itemFillRate)
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.
- Parameters:
itemFillRate
- itemFillRate or null
for none
-
getOrderedItemSalesMicros
public Long getOrderedItemSalesMicros()
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.
- Returns:
- value or
null
for none
-
setOrderedItemSalesMicros
public Metrics setOrderedItemSalesMicros(Long orderedItemSalesMicros)
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.
- Parameters:
orderedItemSalesMicros
- orderedItemSalesMicros or null
for none
-
getOrderedItems
public Long getOrderedItems()
Number of ordered items. Excludes customer cancellations that happened within 30 minutes of
placing the order.
- Returns:
- value or
null
for none
-
setOrderedItems
public Metrics setOrderedItems(Long orderedItems)
Number of ordered items. Excludes customer cancellations that happened within 30 minutes of
placing the order.
- Parameters:
orderedItems
- orderedItems or null
for none
-
getOrders
public Long getOrders()
Number of placed orders. Excludes customer cancellations that happened within 30 minutes of
placing the order. **This metric cannot be segmented by product dimensions.**
- Returns:
- value or
null
for none
-
setOrders
public Metrics setOrders(Long orders)
Number of placed orders. Excludes customer cancellations that happened within 30 minutes of
placing the order. **This metric cannot be segmented by product dimensions.**
- Parameters:
orders
- orders or null
for none
-
getRejectedItems
public Long getRejectedItems()
Number of ordered items canceled by the merchant, reported on the order date.
- Returns:
- value or
null
for none
-
setRejectedItems
public Metrics setRejectedItems(Long rejectedItems)
Number of ordered items canceled by the merchant, reported on the order date.
- Parameters:
rejectedItems
- rejectedItems or null
for none
-
getReturnRate
public Double getReturnRate()
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.
- Returns:
- value or
null
for none
-
setReturnRate
public Metrics setReturnRate(Double returnRate)
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.
- Parameters:
returnRate
- returnRate or null
for none
-
getReturnedItems
public Long getReturnedItems()
Number of ordered items sent back for return, reported on the date when the merchant accepted
the return.
- Returns:
- value or
null
for none
-
setReturnedItems
public Metrics setReturnedItems(Long returnedItems)
Number of ordered items sent back for return, reported on the date when the merchant accepted
the return.
- Parameters:
returnedItems
- returnedItems or null
for none
-
getReturnsMicros
public Long getReturnsMicros()
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.
- Returns:
- value or
null
for none
-
setReturnsMicros
public Metrics setReturnsMicros(Long returnsMicros)
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.
- Parameters:
returnsMicros
- returnsMicros or null
for none
-
getShippedItemSalesMicros
public Long getShippedItemSalesMicros()
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.
- Returns:
- value or
null
for none
-
setShippedItemSalesMicros
public Metrics setShippedItemSalesMicros(Long shippedItemSalesMicros)
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.
- Parameters:
shippedItemSalesMicros
- shippedItemSalesMicros or null
for none
-
getShippedItems
public Long getShippedItems()
Number of shipped items, reported on the shipment date.
- Returns:
- value or
null
for none
-
setShippedItems
public Metrics setShippedItems(Long shippedItems)
Number of shipped items, reported on the shipment date.
- Parameters:
shippedItems
- shippedItems or null
for none
-
getShippedOrders
public Long getShippedOrders()
Number of fully shipped orders, reported on the last shipment date. **This metric cannot be
segmented by product dimensions.**
- Returns:
- value or
null
for none
-
setShippedOrders
public Metrics setShippedOrders(Long shippedOrders)
Number of fully shipped orders, reported on the last shipment date. **This metric cannot be
segmented by product dimensions.**
- Parameters:
shippedOrders
- shippedOrders or null
for none
-
getUnshippedItems
public Double getUnshippedItems()
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.
- Returns:
- value or
null
for none
-
setUnshippedItems
public Metrics setUnshippedItems(Double unshippedItems)
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.
- Parameters:
unshippedItems
- unshippedItems or null
for none
-
getUnshippedOrders
public Double getUnshippedOrders()
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.**
- Returns:
- value or
null
for none
-
setUnshippedOrders
public Metrics setUnshippedOrders(Double unshippedOrders)
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.**
- Parameters:
unshippedOrders
- unshippedOrders or null
for none
-
set
public Metrics set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Metrics clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy