google-apis-content_v2_1 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ac274ed097b1f2c1a7be67047a59eb3a90bae3c2edad9639f504bb651d8ac4c
4
- data.tar.gz: 6768997d2766f814331eae9fca158367adb3972f323be68a9b8f37464ba0cb10
3
+ metadata.gz: d147340cd9a32639364f8c67ab3d8a8bcbb61491822ba0683b877f8566912eca
4
+ data.tar.gz: a511e225734cd23fe40eeaa17ea382609bfe487e0b58438573ad0fd5ec99ffa8
5
5
  SHA512:
6
- metadata.gz: 1d1729d13429d0bac06af5c6b62aa438423b027c40bf573385706cad3f3b83f48fab02a2e242bcb554ba8cc2c35b9769ce6656f399af49806901a3d92ca8c1fb
7
- data.tar.gz: da17f691dd248fd6055775ee804f8fbf3d5335f20fed4d56c9099aee449dfc04072ed20742040d54c7f23bae963d52136734f579c96099e4813e749399c4e464
6
+ metadata.gz: 0434fb3c99073fb6f68f664afa7ca60f3e50820fa90ab0ec841a7f61b9362707432903c003bc80b5f5d1c0aeee9d6bb25e83d7bd85badd84f3cabfa9dbdf6655
7
+ data.tar.gz: bfe40ff28d5a19c273cd4dab864d5adcf3ce99f136ecd181d60d1a76acbe1304b8b60070a020ba064a171cbe4ff767191b41302c6a30da3ea7ba3c2fa6dd87e1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.14.0 (2021-06-09)
4
+
5
+ * Regenerated from discovery document revision 20210603
6
+ * Regenerated using generator version 0.3.0
7
+
3
8
  ### v0.13.0 (2021-06-01)
4
9
 
5
10
  * Regenerated from discovery document revision 20210526
@@ -4824,6 +4824,22 @@ module Google
4824
4824
  class Metrics
4825
4825
  include Google::Apis::Core::Hashable
4826
4826
 
4827
+ # Average order size - the average number of items in an order. **This metric
4828
+ # cannot be segmented by product dimensions.**
4829
+ # Corresponds to the JSON property `aos`
4830
+ # @return [Float]
4831
+ attr_accessor :aos
4832
+
4833
+ # Average order value - the average value (total price of items) of all placed
4834
+ # orders. The currency of the returned value is stored in the currency_code
4835
+ # segment. If this metric is selected, 'segments.currency_code' is automatically
4836
+ # added to the SELECT clause in the search query (unless it is explicitly
4837
+ # selected by the user) and the currency_code segment is populated in the
4838
+ # response. **This metric cannot be segmented by product dimensions.**
4839
+ # Corresponds to the JSON property `aovMicros`
4840
+ # @return [Float]
4841
+ attr_accessor :aov_micros
4842
+
4827
4843
  # Number of clicks.
4828
4844
  # Corresponds to the JSON property `clicks`
4829
4845
  # @return [Fixnum]
@@ -4835,20 +4851,145 @@ module Google
4835
4851
  # @return [Float]
4836
4852
  attr_accessor :ctr
4837
4853
 
4854
+ # Average number of days between an order being placed and the order being fully
4855
+ # shipped, reported on the last shipment date. **This metric cannot be segmented
4856
+ # by product dimensions.**
4857
+ # Corresponds to the JSON property `daysToShip`
4858
+ # @return [Float]
4859
+ attr_accessor :days_to_ship
4860
+
4838
4861
  # Number of times merchant's products are shown.
4839
4862
  # Corresponds to the JSON property `impressions`
4840
4863
  # @return [Fixnum]
4841
4864
  attr_accessor :impressions
4842
4865
 
4866
+ # Average number of days between an item being ordered and the item being
4867
+ # Corresponds to the JSON property `itemDaysToShip`
4868
+ # @return [Float]
4869
+ attr_accessor :item_days_to_ship
4870
+
4871
+ # Percentage of shipped items in relation to all finalized items (shipped or
4872
+ # rejected by the merchant; unshipped items are not taken into account),
4873
+ # reported on the order date. Item fill rate is lowered by merchant rejections.
4874
+ # Corresponds to the JSON property `itemFillRate`
4875
+ # @return [Float]
4876
+ attr_accessor :item_fill_rate
4877
+
4878
+ # Total price of ordered items. Excludes shipping, taxes (US only), and customer
4879
+ # cancellations that happened within 30 minutes of placing the order. The
4880
+ # currency of the returned value is stored in the currency_code segment. If this
4881
+ # metric is selected, 'segments.currency_code' is automatically added to the
4882
+ # SELECT clause in the search query (unless it is explicitly selected by the
4883
+ # user) and the currency_code segment is populated in the response.
4884
+ # Corresponds to the JSON property `orderedItemSalesMicros`
4885
+ # @return [Fixnum]
4886
+ attr_accessor :ordered_item_sales_micros
4887
+
4888
+ # Number of ordered items. Excludes customer cancellations that happened within
4889
+ # 30 minutes of placing the order.
4890
+ # Corresponds to the JSON property `orderedItems`
4891
+ # @return [Fixnum]
4892
+ attr_accessor :ordered_items
4893
+
4894
+ # Number of placed orders. Excludes customer cancellations that happened within
4895
+ # 30 minutes of placing the order. **This metric cannot be segmented by product
4896
+ # dimensions.**
4897
+ # Corresponds to the JSON property `orders`
4898
+ # @return [Fixnum]
4899
+ attr_accessor :orders
4900
+
4901
+ # Number of ordered items canceled by the merchant, reported on the order date.
4902
+ # Corresponds to the JSON property `rejectedItems`
4903
+ # @return [Fixnum]
4904
+ attr_accessor :rejected_items
4905
+
4906
+ # Total price of returned items divided by the total price of shipped items,
4907
+ # reported on the order date. If this metric is selected, 'segments.
4908
+ # currency_code' is automatically added to the SELECT clause in the search query
4909
+ # (unless it is explicitly selected by the user) and the currency_code segment
4910
+ # is populated in the response.
4911
+ # Corresponds to the JSON property `returnRate`
4912
+ # @return [Float]
4913
+ attr_accessor :return_rate
4914
+
4915
+ # Number of ordered items sent back for return, reported on the date when the
4916
+ # merchant accepted the return.
4917
+ # Corresponds to the JSON property `returnedItems`
4918
+ # @return [Fixnum]
4919
+ attr_accessor :returned_items
4920
+
4921
+ # Total price of ordered items sent back for return, reported on the date when
4922
+ # the merchant accepted the return. The currency of the returned value is stored
4923
+ # in the currency_code segment. If this metric is selected, 'segments.
4924
+ # currency_code' is automatically added to the SELECT clause in the search query
4925
+ # (unless it is explicitly selected by the user) and the currency_code segment
4926
+ # is populated in the response.
4927
+ # Corresponds to the JSON property `returnsMicros`
4928
+ # @return [Fixnum]
4929
+ attr_accessor :returns_micros
4930
+
4931
+ # Total price of shipped items, reported on the order date. Excludes shipping
4932
+ # and taxes (US only). The currency of the returned value is stored in the
4933
+ # currency_code segment. If this metric is selected, 'segments.currency_code' is
4934
+ # automatically added to the SELECT clause in the search query (unless it is
4935
+ # explicitly selected by the user) and the currency_code segment is populated in
4936
+ # the response.
4937
+ # Corresponds to the JSON property `shippedItemSalesMicros`
4938
+ # @return [Fixnum]
4939
+ attr_accessor :shipped_item_sales_micros
4940
+
4941
+ # Number of shipped items, reported on the shipment date.
4942
+ # Corresponds to the JSON property `shippedItems`
4943
+ # @return [Fixnum]
4944
+ attr_accessor :shipped_items
4945
+
4946
+ # Number of fully shipped orders, reported on the last shipment date. **This
4947
+ # metric cannot be segmented by product dimensions.**
4948
+ # Corresponds to the JSON property `shippedOrders`
4949
+ # @return [Fixnum]
4950
+ attr_accessor :shipped_orders
4951
+
4952
+ # Number of ordered items not shipped up until the end of the queried day. If a
4953
+ # multi-day period is specified in the search query, the returned value is the
4954
+ # average number of unshipped items over the days in the queried period.
4955
+ # Corresponds to the JSON property `unshippedItems`
4956
+ # @return [Float]
4957
+ attr_accessor :unshipped_items
4958
+
4959
+ # Number of orders not shipped or partially shipped up until the end of the
4960
+ # queried day. If a multi-day period is specified in the search query, the
4961
+ # returned value is the average number of unshipped orders over the days in the
4962
+ # queried period. **This metric cannot be segmented by product dimensions.**
4963
+ # Corresponds to the JSON property `unshippedOrders`
4964
+ # @return [Float]
4965
+ attr_accessor :unshipped_orders
4966
+
4843
4967
  def initialize(**args)
4844
4968
  update!(**args)
4845
4969
  end
4846
4970
 
4847
4971
  # Update properties of this object
4848
4972
  def update!(**args)
4973
+ @aos = args[:aos] if args.key?(:aos)
4974
+ @aov_micros = args[:aov_micros] if args.key?(:aov_micros)
4849
4975
  @clicks = args[:clicks] if args.key?(:clicks)
4850
4976
  @ctr = args[:ctr] if args.key?(:ctr)
4977
+ @days_to_ship = args[:days_to_ship] if args.key?(:days_to_ship)
4851
4978
  @impressions = args[:impressions] if args.key?(:impressions)
4979
+ @item_days_to_ship = args[:item_days_to_ship] if args.key?(:item_days_to_ship)
4980
+ @item_fill_rate = args[:item_fill_rate] if args.key?(:item_fill_rate)
4981
+ @ordered_item_sales_micros = args[:ordered_item_sales_micros] if args.key?(:ordered_item_sales_micros)
4982
+ @ordered_items = args[:ordered_items] if args.key?(:ordered_items)
4983
+ @orders = args[:orders] if args.key?(:orders)
4984
+ @rejected_items = args[:rejected_items] if args.key?(:rejected_items)
4985
+ @return_rate = args[:return_rate] if args.key?(:return_rate)
4986
+ @returned_items = args[:returned_items] if args.key?(:returned_items)
4987
+ @returns_micros = args[:returns_micros] if args.key?(:returns_micros)
4988
+ @shipped_item_sales_micros = args[:shipped_item_sales_micros] if args.key?(:shipped_item_sales_micros)
4989
+ @shipped_items = args[:shipped_items] if args.key?(:shipped_items)
4990
+ @shipped_orders = args[:shipped_orders] if args.key?(:shipped_orders)
4991
+ @unshipped_items = args[:unshipped_items] if args.key?(:unshipped_items)
4992
+ @unshipped_orders = args[:unshipped_orders] if args.key?(:unshipped_orders)
4852
4993
  end
4853
4994
  end
4854
4995
 
@@ -9955,7 +10096,7 @@ module Google
9955
10096
  # @return [String]
9956
10097
  attr_accessor :link
9957
10098
 
9958
- # Link template for merchant hosted local storefront.
10099
+ # URL template for merchant hosted local storefront.
9959
10100
  # Corresponds to the JSON property `linkTemplate`
9960
10101
  # @return [String]
9961
10102
  attr_accessor :link_template
@@ -9995,8 +10136,7 @@ module Google
9995
10136
  # @return [String]
9996
10137
  attr_accessor :mobile_link
9997
10138
 
9998
- # Link template for merchant hosted local storefront optimized for mobile
9999
- # devices.
10139
+ # URL template for merchant hosted local storefront optimized for mobile devices.
10000
10140
  # Corresponds to the JSON property `mobileLinkTemplate`
10001
10141
  # @return [String]
10002
10142
  attr_accessor :mobile_link_template
@@ -13204,6 +13344,68 @@ module Google
13204
13344
  class Segments
13205
13345
  include Google::Apis::Core::Hashable
13206
13346
 
13347
+ # Brand of the product.
13348
+ # Corresponds to the JSON property `brand`
13349
+ # @return [String]
13350
+ attr_accessor :brand
13351
+
13352
+ # Product category (1st level) in Google's product taxonomy.
13353
+ # Corresponds to the JSON property `categoryL1`
13354
+ # @return [String]
13355
+ attr_accessor :category_l1
13356
+
13357
+ # Product category (2nd level) in Google's product taxonomy.
13358
+ # Corresponds to the JSON property `categoryL2`
13359
+ # @return [String]
13360
+ attr_accessor :category_l2
13361
+
13362
+ # Product category (3rd level) in Google's product taxonomy.
13363
+ # Corresponds to the JSON property `categoryL3`
13364
+ # @return [String]
13365
+ attr_accessor :category_l3
13366
+
13367
+ # Product category (4th level) in Google's product taxonomy.
13368
+ # Corresponds to the JSON property `categoryL4`
13369
+ # @return [String]
13370
+ attr_accessor :category_l4
13371
+
13372
+ # Product category (5th level) in Google's product taxonomy.
13373
+ # Corresponds to the JSON property `categoryL5`
13374
+ # @return [String]
13375
+ attr_accessor :category_l5
13376
+
13377
+ # Currency in which price metrics are represented, e.g., if you select `
13378
+ # ordered_item_sales_micros`, the returned value will be represented by this
13379
+ # currency.
13380
+ # Corresponds to the JSON property `currencyCode`
13381
+ # @return [String]
13382
+ attr_accessor :currency_code
13383
+
13384
+ # Custom label 0 for custom grouping of products.
13385
+ # Corresponds to the JSON property `customLabel0`
13386
+ # @return [String]
13387
+ attr_accessor :custom_label0
13388
+
13389
+ # Custom label 1 for custom grouping of products.
13390
+ # Corresponds to the JSON property `customLabel1`
13391
+ # @return [String]
13392
+ attr_accessor :custom_label1
13393
+
13394
+ # Custom label 2 for custom grouping of products.
13395
+ # Corresponds to the JSON property `customLabel2`
13396
+ # @return [String]
13397
+ attr_accessor :custom_label2
13398
+
13399
+ # Custom label 3 for custom grouping of products.
13400
+ # Corresponds to the JSON property `customLabel3`
13401
+ # @return [String]
13402
+ attr_accessor :custom_label3
13403
+
13404
+ # Custom label 4 for custom grouping of products.
13405
+ # Corresponds to the JSON property `customLabel4`
13406
+ # @return [String]
13407
+ attr_accessor :custom_label4
13408
+
13207
13409
  # Represents a whole or partial calendar date, such as a birthday. The time of
13208
13410
  # day and time zone are either specified elsewhere or are insignificant. The
13209
13411
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -13221,20 +13423,81 @@ module Google
13221
13423
  # @return [String]
13222
13424
  attr_accessor :offer_id
13223
13425
 
13426
+ # Product category (1st level) in merchant's own product taxonomy.
13427
+ # Corresponds to the JSON property `productTypeL1`
13428
+ # @return [String]
13429
+ attr_accessor :product_type_l1
13430
+
13431
+ # Product category (2nd level) in merchant's own product taxonomy.
13432
+ # Corresponds to the JSON property `productTypeL2`
13433
+ # @return [String]
13434
+ attr_accessor :product_type_l2
13435
+
13436
+ # Product category (3rd level) in merchant's own product taxonomy.
13437
+ # Corresponds to the JSON property `productTypeL3`
13438
+ # @return [String]
13439
+ attr_accessor :product_type_l3
13440
+
13441
+ # Product category (4th level) in merchant's own product taxonomy.
13442
+ # Corresponds to the JSON property `productTypeL4`
13443
+ # @return [String]
13444
+ attr_accessor :product_type_l4
13445
+
13446
+ # Product category (5th level) in merchant's own product taxonomy.
13447
+ # Corresponds to the JSON property `productTypeL5`
13448
+ # @return [String]
13449
+ attr_accessor :product_type_l5
13450
+
13224
13451
  # Program to which metrics apply, e.g., Free Product Listing.
13225
13452
  # Corresponds to the JSON property `program`
13226
13453
  # @return [String]
13227
13454
  attr_accessor :program
13228
13455
 
13456
+ # Title of the product.
13457
+ # Corresponds to the JSON property `title`
13458
+ # @return [String]
13459
+ attr_accessor :title
13460
+
13461
+ # Represents a whole or partial calendar date, such as a birthday. The time of
13462
+ # day and time zone are either specified elsewhere or are insignificant. The
13463
+ # date is relative to the Gregorian Calendar. This can represent one of the
13464
+ # following: * A full date, with non-zero year, month, and day values * A month
13465
+ # and day value, with a zero year, such as an anniversary * A year on its own,
13466
+ # with zero month and day values * A year and month value, with a zero day, such
13467
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
13468
+ # google.protobuf.Timestamp`.
13469
+ # Corresponds to the JSON property `week`
13470
+ # @return [Google::Apis::ContentV2_1::Date]
13471
+ attr_accessor :week
13472
+
13229
13473
  def initialize(**args)
13230
13474
  update!(**args)
13231
13475
  end
13232
13476
 
13233
13477
  # Update properties of this object
13234
13478
  def update!(**args)
13479
+ @brand = args[:brand] if args.key?(:brand)
13480
+ @category_l1 = args[:category_l1] if args.key?(:category_l1)
13481
+ @category_l2 = args[:category_l2] if args.key?(:category_l2)
13482
+ @category_l3 = args[:category_l3] if args.key?(:category_l3)
13483
+ @category_l4 = args[:category_l4] if args.key?(:category_l4)
13484
+ @category_l5 = args[:category_l5] if args.key?(:category_l5)
13485
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
13486
+ @custom_label0 = args[:custom_label0] if args.key?(:custom_label0)
13487
+ @custom_label1 = args[:custom_label1] if args.key?(:custom_label1)
13488
+ @custom_label2 = args[:custom_label2] if args.key?(:custom_label2)
13489
+ @custom_label3 = args[:custom_label3] if args.key?(:custom_label3)
13490
+ @custom_label4 = args[:custom_label4] if args.key?(:custom_label4)
13235
13491
  @date = args[:date] if args.key?(:date)
13236
13492
  @offer_id = args[:offer_id] if args.key?(:offer_id)
13493
+ @product_type_l1 = args[:product_type_l1] if args.key?(:product_type_l1)
13494
+ @product_type_l2 = args[:product_type_l2] if args.key?(:product_type_l2)
13495
+ @product_type_l3 = args[:product_type_l3] if args.key?(:product_type_l3)
13496
+ @product_type_l4 = args[:product_type_l4] if args.key?(:product_type_l4)
13497
+ @product_type_l5 = args[:product_type_l5] if args.key?(:product_type_l5)
13237
13498
  @program = args[:program] if args.key?(:program)
13499
+ @title = args[:title] if args.key?(:title)
13500
+ @week = args[:week] if args.key?(:week)
13238
13501
  end
13239
13502
  end
13240
13503
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContentV2_1
18
18
  # Version of the google-apis-content_v2_1 gem
19
- GEM_VERSION = "0.13.0"
19
+ GEM_VERSION = "0.14.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210526"
25
+ REVISION = "20210603"
26
26
  end
27
27
  end
28
28
  end
@@ -3568,9 +3568,26 @@ module Google
3568
3568
  class Metrics
3569
3569
  # @private
3570
3570
  class Representation < Google::Apis::Core::JsonRepresentation
3571
+ property :aos, as: 'aos'
3572
+ property :aov_micros, as: 'aovMicros'
3571
3573
  property :clicks, :numeric_string => true, as: 'clicks'
3572
3574
  property :ctr, as: 'ctr'
3575
+ property :days_to_ship, as: 'daysToShip'
3573
3576
  property :impressions, :numeric_string => true, as: 'impressions'
3577
+ property :item_days_to_ship, as: 'itemDaysToShip'
3578
+ property :item_fill_rate, as: 'itemFillRate'
3579
+ property :ordered_item_sales_micros, :numeric_string => true, as: 'orderedItemSalesMicros'
3580
+ property :ordered_items, :numeric_string => true, as: 'orderedItems'
3581
+ property :orders, :numeric_string => true, as: 'orders'
3582
+ property :rejected_items, :numeric_string => true, as: 'rejectedItems'
3583
+ property :return_rate, as: 'returnRate'
3584
+ property :returned_items, :numeric_string => true, as: 'returnedItems'
3585
+ property :returns_micros, :numeric_string => true, as: 'returnsMicros'
3586
+ property :shipped_item_sales_micros, :numeric_string => true, as: 'shippedItemSalesMicros'
3587
+ property :shipped_items, :numeric_string => true, as: 'shippedItems'
3588
+ property :shipped_orders, :numeric_string => true, as: 'shippedOrders'
3589
+ property :unshipped_items, as: 'unshippedItems'
3590
+ property :unshipped_orders, as: 'unshippedOrders'
3574
3591
  end
3575
3592
  end
3576
3593
 
@@ -5802,10 +5819,30 @@ module Google
5802
5819
  class Segments
5803
5820
  # @private
5804
5821
  class Representation < Google::Apis::Core::JsonRepresentation
5822
+ property :brand, as: 'brand'
5823
+ property :category_l1, as: 'categoryL1'
5824
+ property :category_l2, as: 'categoryL2'
5825
+ property :category_l3, as: 'categoryL3'
5826
+ property :category_l4, as: 'categoryL4'
5827
+ property :category_l5, as: 'categoryL5'
5828
+ property :currency_code, as: 'currencyCode'
5829
+ property :custom_label0, as: 'customLabel0'
5830
+ property :custom_label1, as: 'customLabel1'
5831
+ property :custom_label2, as: 'customLabel2'
5832
+ property :custom_label3, as: 'customLabel3'
5833
+ property :custom_label4, as: 'customLabel4'
5805
5834
  property :date, as: 'date', class: Google::Apis::ContentV2_1::Date, decorator: Google::Apis::ContentV2_1::Date::Representation
5806
5835
 
5807
5836
  property :offer_id, as: 'offerId'
5837
+ property :product_type_l1, as: 'productTypeL1'
5838
+ property :product_type_l2, as: 'productTypeL2'
5839
+ property :product_type_l3, as: 'productTypeL3'
5840
+ property :product_type_l4, as: 'productTypeL4'
5841
+ property :product_type_l5, as: 'productTypeL5'
5808
5842
  property :program, as: 'program'
5843
+ property :title, as: 'title'
5844
+ property :week, as: 'week', class: Google::Apis::ContentV2_1::Date, decorator: Google::Apis::ContentV2_1::Date::Representation
5845
+
5809
5846
  end
5810
5847
  end
5811
5848
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-content_v2_1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-07 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.13.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.14.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1
57
57
  post_install_message:
58
58
  rdoc_options: []