Class: Google::Apis::MerchantapiReportsV1beta::ProductPerformanceView
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiReportsV1beta::ProductPerformanceView
- 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_performance_view
table. Product
performance data for your account, including performance metrics (for example,
clicks
) and dimensions according to which performance metrics are segmented (
for example, offer_id
). Values of product dimensions, such as offer_id
,
reflect the state of a product at the time of the impression. Segment fields
cannot be selected in queries without also selecting at least one metric field.
Values are only set for fields requested explicitly in the request's search
query.
Instance Attribute Summary collapse
-
#brand ⇒ String
Brand of the product.
-
#category_l1 ⇒ String
Product category (1st level) in Google's product taxonomy.
-
#category_l2 ⇒ String
Product category (2nd level) in Google's product taxonomy.
-
#category_l3 ⇒ String
Product category (3rd level) in Google's product taxonomy.
-
#category_l4 ⇒ String
Product category (4th level) in Google's product taxonomy.
-
#category_l5 ⇒ String
Product category (5th level) in Google's product taxonomy.
-
#click_through_rate ⇒ Float
Click-through rate - the number of clicks merchant's products receive (clicks) divided by the number of times the products are shown (impressions).
-
#clicks ⇒ Fixnum
Number of clicks.
-
#conversion_rate ⇒ Float
Number of conversions divided by the number of clicks, reported on the impression date.
-
#conversion_value ⇒ Google::Apis::MerchantapiReportsV1beta::Price
The price represented as a number and currency.
-
#conversions ⇒ Float
Number of conversions attributed to the product, reported on the conversion date.
-
#custom_label0 ⇒ String
Custom label 0 for custom grouping of products.
-
#custom_label1 ⇒ String
Custom label 1 for custom grouping of products.
-
#custom_label2 ⇒ String
Custom label 2 for custom grouping of products.
-
#custom_label3 ⇒ String
Custom label 3 for custom grouping of products.
-
#custom_label4 ⇒ String
Custom label 4 for custom grouping of products.
-
#customer_country_code ⇒ String
Code of the country where the customer is located at the time of the event.
-
#date ⇒ Google::Apis::MerchantapiReportsV1beta::Date
Represents a whole or partial calendar date, such as a birthday.
-
#impressions ⇒ Fixnum
Number of times merchant's products are shown.
-
#marketing_method ⇒ String
Marketing method to which metrics apply.
-
#offer_id ⇒ String
Merchant-provided id of the product.
-
#product_type_l1 ⇒ String
Product type (1st level) in merchant's own product taxonomy.
-
#product_type_l2 ⇒ String
Product type (2nd level) in merchant's own product taxonomy.
-
#product_type_l3 ⇒ String
Product type (3rd level) in merchant's own product taxonomy.
-
#product_type_l4 ⇒ String
Product type (4th level) in merchant's own product taxonomy.
-
#product_type_l5 ⇒ String
Product type (5th level) in merchant's own product taxonomy.
-
#title ⇒ String
Title of the product.
-
#week ⇒ Google::Apis::MerchantapiReportsV1beta::Date
Represents a whole or partial calendar date, such as a birthday.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductPerformanceView
constructor
A new instance of ProductPerformanceView.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductPerformanceView
Returns a new instance of ProductPerformanceView.
1327 1328 1329 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1327 def initialize(**args) update!(**args) end |
Instance Attribute Details
#brand ⇒ String
Brand of the product. Segment.
Corresponds to the JSON property brand
1148 1149 1150 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1148 def brand @brand end |
#category_l1 ⇒ String
Product category (1st level) in Google's product
taxonomy. Segment.
Corresponds to the JSON property categoryL1
1155 1156 1157 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1155 def category_l1 @category_l1 end |
#category_l2 ⇒ String
Product category (2nd level) in Google's product
taxonomy. Segment.
Corresponds to the JSON property categoryL2
1162 1163 1164 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1162 def category_l2 @category_l2 end |
#category_l3 ⇒ String
Product category (3rd level) in Google's product
taxonomy. Segment.
Corresponds to the JSON property categoryL3
1169 1170 1171 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1169 def category_l3 @category_l3 end |
#category_l4 ⇒ String
Product category (4th level) in Google's product
taxonomy. Segment.
Corresponds to the JSON property categoryL4
1176 1177 1178 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1176 def category_l4 @category_l4 end |
#category_l5 ⇒ String
Product category (5th level) in Google's product
taxonomy. Segment.
Corresponds to the JSON property categoryL5
1183 1184 1185 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1183 def category_l5 @category_l5 end |
#click_through_rate ⇒ Float
Click-through rate - the number of clicks merchant's products receive (clicks)
divided by the number of times the products are shown (impressions). Metric.
Corresponds to the JSON property clickThroughRate
1189 1190 1191 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1189 def click_through_rate @click_through_rate end |
#clicks ⇒ Fixnum
Number of clicks. Metric.
Corresponds to the JSON property clicks
1194 1195 1196 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1194 def clicks @clicks end |
#conversion_rate ⇒ Float
Number of conversions divided by the number of clicks, reported on the
impression date. Metric. Available only for the FREE
traffic source.
Corresponds to the JSON property conversionRate
1200 1201 1202 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1200 def conversion_rate @conversion_rate end |
#conversion_value ⇒ Google::Apis::MerchantapiReportsV1beta::Price
The price represented as a number and currency.
Corresponds to the JSON property conversionValue
1205 1206 1207 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1205 def conversion_value @conversion_value end |
#conversions ⇒ Float
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. Metric. Available only for the FREE
traffic source.
Corresponds to the JSON property conversions
1214 1215 1216 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1214 def conversions @conversions end |
#custom_label0 ⇒ String
Custom label 0 for custom grouping of products. Segment.
Corresponds to the JSON property customLabel0
1219 1220 1221 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1219 def custom_label0 @custom_label0 end |
#custom_label1 ⇒ String
Custom label 1 for custom grouping of products. Segment.
Corresponds to the JSON property customLabel1
1224 1225 1226 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1224 def custom_label1 @custom_label1 end |
#custom_label2 ⇒ String
Custom label 2 for custom grouping of products. Segment.
Corresponds to the JSON property customLabel2
1229 1230 1231 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1229 def custom_label2 @custom_label2 end |
#custom_label3 ⇒ String
Custom label 3 for custom grouping of products. Segment.
Corresponds to the JSON property customLabel3
1234 1235 1236 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1234 def custom_label3 @custom_label3 end |
#custom_label4 ⇒ String
Custom label 4 for custom grouping of products. Segment.
Corresponds to the JSON property customLabel4
1239 1240 1241 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1239 def custom_label4 @custom_label4 end |
#customer_country_code ⇒ String
Code of the country where the customer is located at the time of the event.
Represented in the ISO 3166 format. Segment. If the customer country cannot be
determined, a special 'ZZ' code is returned.
Corresponds to the JSON property customerCountryCode
1246 1247 1248 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1246 def customer_country_code @customer_country_code end |
#date ⇒ Google::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 date
1258 1259 1260 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1258 def date @date end |
#impressions ⇒ Fixnum
Number of times merchant's products are shown. Metric.
Corresponds to the JSON property impressions
1263 1264 1265 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1263 def impressions @impressions end |
#marketing_method ⇒ String
Marketing method to which metrics apply. Segment.
Corresponds to the JSON property marketingMethod
1268 1269 1270 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1268 def marketing_method @marketing_method end |
#offer_id ⇒ String
Merchant-provided id of the product. Segment.
Corresponds to the JSON property offerId
1273 1274 1275 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1273 def offer_id @offer_id end |
#product_type_l1 ⇒ String
Product type (1st level) in merchant's own
product taxonomy. Segment.
Corresponds to the JSON property productTypeL1
1280 1281 1282 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1280 def product_type_l1 @product_type_l1 end |
#product_type_l2 ⇒ String
Product type (2nd level) in merchant's own
product taxonomy. Segment.
Corresponds to the JSON property productTypeL2
1287 1288 1289 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1287 def product_type_l2 @product_type_l2 end |
#product_type_l3 ⇒ String
Product type (3rd level) in merchant's own
product taxonomy. Segment.
Corresponds to the JSON property productTypeL3
1294 1295 1296 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1294 def product_type_l3 @product_type_l3 end |
#product_type_l4 ⇒ String
Product type (4th level) in merchant's own
product taxonomy. Segment.
Corresponds to the JSON property productTypeL4
1301 1302 1303 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1301 def product_type_l4 @product_type_l4 end |
#product_type_l5 ⇒ String
Product type (5th level) in merchant's own
product taxonomy. Segment.
Corresponds to the JSON property productTypeL5
1308 1309 1310 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1308 def product_type_l5 @product_type_l5 end |
#title ⇒ String
Title of the product. Segment.
Corresponds to the JSON property title
1313 1314 1315 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1313 def title @title end |
#week ⇒ Google::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 week
1325 1326 1327 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1325 def week @week end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 |
# File 'lib/google/apis/merchantapi_reports_v1beta/classes.rb', line 1332 def update!(**args) @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) @click_through_rate = args[:click_through_rate] if args.key?(:click_through_rate) @clicks = args[:clicks] if args.key?(:clicks) @conversion_rate = args[:conversion_rate] if args.key?(:conversion_rate) @conversion_value = args[:conversion_value] if args.key?(:conversion_value) @conversions = args[:conversions] if args.key?(:conversions) @custom_label0 = args[:custom_label0] if args.key?(:custom_label0) @custom_label1 = args[:custom_label1] if args.key?(:custom_label1) @custom_label2 = args[:custom_label2] if args.key?(:custom_label2) @custom_label3 = args[:custom_label3] if args.key?(:custom_label3) @custom_label4 = args[:custom_label4] if args.key?(:custom_label4) @customer_country_code = args[:customer_country_code] if args.key?(:customer_country_code) @date = args[:date] if args.key?(:date) @impressions = args[:impressions] if args.key?(:impressions) @marketing_method = args[:marketing_method] if args.key?(:marketing_method) @offer_id = args[:offer_id] if args.key?(:offer_id) @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) @title = args[:title] if args.key?(:title) @week = args[:week] if args.key?(:week) end |