google-apis-content_v2_1 0.10.0 → 0.15.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: 78c78d295ddec6584fa94d1e53ec12f54a8e864278352799d8c3614658da87bc
4
- data.tar.gz: eac068998aedef7b3758e00f16feaeedbd210cd8aacd2bbbfad19ba7c145f08b
3
+ metadata.gz: 8792c8ae1dc0826ccb06e0a83aa6a139fcc24cd365123879deb318e663753cc1
4
+ data.tar.gz: d2ecb16e7f97a2f4a522c6641932ce8de7a86eb871dbd7be7b93b43aeacef270
5
5
  SHA512:
6
- metadata.gz: 8623c4f2e6603ae829a2f6e680356579580bda1d424f827c9573e91fbf9b65cac084765ffcb1a6fc004e0658399d7843448d4d030e9c226f1ea04e91fdde1015
7
- data.tar.gz: 2e587296c82554a6ba28b83658910eab0f1d5e9f5795d2561169b49a5bb618e8facbdf861ccb89984dc34e72b6524c44d2b98c2e742a5639a8c0ba3b2870855d
6
+ metadata.gz: '038bb9bff04e6b115afccca69fa4c708979d5ca2253f0725dd945f5ee26fc10bd1e4ab04093517353b00b2bcd39a889fe6fbfc1eca6a200888a9382099a7bab4'
7
+ data.tar.gz: f90bfd20410e09f928f2d8f88bbc352bfd9ec2d707cd6806426410231d9db757c98e3dfb22e7571b2a3f2f9c7b40062f4449447ccad47a0957ac45a00ce0278e
data/CHANGELOG.md CHANGED
@@ -1,8 +1,29 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
- ### v0.10.0 (2021-05-11)
3
+ ### v0.15.0 (2021-06-24)
4
4
 
5
- * Regenerated from discovery document revision 20210505
5
+ * Unspecified changes
6
+
7
+ ### v0.14.0 (2021-06-09)
8
+
9
+ * Regenerated from discovery document revision 20210603
10
+ * Regenerated using generator version 0.3.0
11
+
12
+ ### v0.13.0 (2021-06-01)
13
+
14
+ * Regenerated from discovery document revision 20210526
15
+
16
+ ### v0.12.0 (2021-05-26)
17
+
18
+ * Regenerated from discovery document revision 20210519
19
+
20
+ ### v0.11.0 (2021-05-19)
21
+
22
+ * Unspecified changes
23
+
24
+ ### v0.10.0 (2021-05-18)
25
+
26
+ * Regenerated from discovery document revision 20210514
6
27
 
7
28
  ### v0.9.0 (2021-03-30)
8
29
 
@@ -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
 
@@ -6306,14 +6447,15 @@ module Google
6306
6447
  # Turkish Post) - "`eub`" (ePacket) - "`chukou1`" (Chukou1 Logistics) - "`bestex`
6307
6448
  # " (Best Express) - "`canada post`" (Canada Post) - "`purolator`" (Purolator) -
6308
6449
  # "`canpar`" (Canpar) - "`india post`" (India Post) - "`blue dart`" (Blue Dart) -
6309
- # "`delhivery`" (Delhivery) - "`dtdc`" (DTDC) - "`tpc india`" (TPC India)
6310
- # Supported carriers for FR are: - "`la poste`" (La Poste) *automatic status
6311
- # updates * - "`colissimo`" (Colissimo by La Poste) *automatic status updates* -
6312
- # "`ups`" (United Parcel Service) *automatic status updates * - "`chronopost`" (
6313
- # Chronopost by La Poste) - "`gls`" (General Logistics Systems France) - "`dpd`"
6314
- # (DPD Group by GeoPost) - "`bpost`" (Belgian Post Group) - "`colis prive`" (
6315
- # Colis Privé) - "`boxtal`" (Boxtal) - "`geodis`" (GEODIS) - "`tnt`" (TNT) - "`
6316
- # db schenker`" (DB Schenker) - "`aramex`" (Aramex)
6450
+ # "`delhivery`" (Delhivery) - "`dtdc`" (DTDC) - "`tpc india`" (TPC India) - "`
6451
+ # lso`" (Lone Star Overnight) - "`tww`" (Team Worldwide) Supported carriers for
6452
+ # FR are: - "`la poste`" (La Poste) *automatic status updates * - "`colissimo`" (
6453
+ # Colissimo by La Poste) *automatic status updates* - "`ups`" (United Parcel
6454
+ # Service) *automatic status updates * - "`chronopost`" (Chronopost by La Poste)
6455
+ # - "`gls`" (General Logistics Systems France) - "`dpd`" (DPD Group by GeoPost) -
6456
+ # "`bpost`" (Belgian Post Group) - "`colis prive`" (Colis Privé) - "`boxtal`" (
6457
+ # Boxtal) - "`geodis`" (GEODIS) - "`tnt`" (TNT) - "`db schenker`" (DB Schenker) -
6458
+ # "`aramex`" (Aramex)
6317
6459
  # Corresponds to the JSON property `carrier`
6318
6460
  # @return [String]
6319
6461
  attr_accessor :carrier
@@ -6448,7 +6590,8 @@ module Google
6448
6590
  attr_accessor :customer_shipping_fee
6449
6591
 
6450
6592
  # Required. The delivery postal code, as a continuous string without spaces or
6451
- # dashes, e.g. "95016".
6593
+ # dashes, e.g. "95016". This field will be anonymized in returned
6594
+ # OrderTrackingSignal creation response.
6452
6595
  # Corresponds to the JSON property `deliveryPostalCode`
6453
6596
  # @return [String]
6454
6597
  attr_accessor :delivery_postal_code
@@ -6491,7 +6634,8 @@ module Google
6491
6634
  # @return [Google::Apis::ContentV2_1::DateTime]
6492
6635
  attr_accessor :order_created_time
6493
6636
 
6494
- # Required. The ID of the order on the merchant side.
6637
+ # Required. The ID of the order on the merchant side. This field will be hashed
6638
+ # in returned OrderTrackingSignal creation response.
6495
6639
  # Corresponds to the JSON property `orderId`
6496
6640
  # @return [String]
6497
6641
  attr_accessor :order_id
@@ -6589,7 +6733,8 @@ module Google
6589
6733
  # @return [Fixnum]
6590
6734
  attr_accessor :quantity
6591
6735
 
6592
- # Required. The shipment ID.
6736
+ # Required. The shipment ID. This field will be hashed in returned
6737
+ # OrderTrackingSignal creation response.
6593
6738
  # Corresponds to the JSON property `shipmentId`
6594
6739
  # @return [String]
6595
6740
  attr_accessor :shipment_id
@@ -6677,7 +6822,8 @@ module Google
6677
6822
  attr_accessor :latest_delivery_promise_time
6678
6823
 
6679
6824
  # The origin postal code, as a continuous string without spaces or dashes, e.g. "
6680
- # 95016".
6825
+ # 95016". This field will be anonymized in returned OrderTrackingSignal creation
6826
+ # response.
6681
6827
  # Corresponds to the JSON property `originPostalCode`
6682
6828
  # @return [String]
6683
6829
  attr_accessor :origin_postal_code
@@ -6688,7 +6834,8 @@ module Google
6688
6834
  # @return [String]
6689
6835
  attr_accessor :origin_region_code
6690
6836
 
6691
- # Required. The shipment ID.
6837
+ # Required. The shipment ID. This field will be hashed in returned
6838
+ # OrderTrackingSignal creation response.
6692
6839
  # Corresponds to the JSON property `shipmentId`
6693
6840
  # @return [String]
6694
6841
  attr_accessor :shipment_id
@@ -7149,11 +7296,17 @@ module Google
7149
7296
  include Google::Apis::Core::Hashable
7150
7297
 
7151
7298
  # The ID of the line item. This value is assigned by Google when an order is
7152
- # created.
7299
+ # created. Either lineItemId or productId is required.
7153
7300
  # Corresponds to the JSON property `lineItemId`
7154
7301
  # @return [String]
7155
7302
  attr_accessor :line_item_id
7156
7303
 
7304
+ # The ID of the product to cancel. This is the REST ID used in the products
7305
+ # service. Either lineItemId or productId is required.
7306
+ # Corresponds to the JSON property `productId`
7307
+ # @return [String]
7308
+ attr_accessor :product_id
7309
+
7157
7310
  # The quantity of this line item.
7158
7311
  # Corresponds to the JSON property `quantity`
7159
7312
  # @return [Fixnum]
@@ -7166,6 +7319,7 @@ module Google
7166
7319
  # Update properties of this object
7167
7320
  def update!(**args)
7168
7321
  @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
7322
+ @product_id = args[:product_id] if args.key?(:product_id)
7169
7323
  @quantity = args[:quantity] if args.key?(:quantity)
7170
7324
  end
7171
7325
  end
@@ -9696,10 +9850,8 @@ module Google
9696
9850
 
9697
9851
  # Required product attributes are primarily defined by the products data
9698
9852
  # specification. See the Products Data Specification Help Center article for
9699
- # information. Some attributes are country-specific, so make sure you select the
9700
- # appropriate country in the drop-down selector at the top of the page. Product
9701
- # data. After inserting, updating, or deleting a product, it may take several
9702
- # minutes before changes take effect.
9853
+ # information. Product data. After inserting, updating, or deleting a product,
9854
+ # it may take several minutes before changes take effect.
9703
9855
  class Product
9704
9856
  include Google::Apis::Core::Hashable
9705
9857
 
@@ -9944,6 +10096,11 @@ module Google
9944
10096
  # @return [String]
9945
10097
  attr_accessor :link
9946
10098
 
10099
+ # URL template for merchant hosted local storefront.
10100
+ # Corresponds to the JSON property `linkTemplate`
10101
+ # @return [String]
10102
+ attr_accessor :link_template
10103
+
9947
10104
  # Loyalty points that users receive after purchasing the item. Japan only.
9948
10105
  # Corresponds to the JSON property `loyaltyPoints`
9949
10106
  # @return [Google::Apis::ContentV2_1::LoyaltyPoints]
@@ -9979,6 +10136,11 @@ module Google
9979
10136
  # @return [String]
9980
10137
  attr_accessor :mobile_link
9981
10138
 
10139
+ # URL template for merchant hosted local storefront optimized for mobile devices.
10140
+ # Corresponds to the JSON property `mobileLinkTemplate`
10141
+ # @return [String]
10142
+ attr_accessor :mobile_link_template
10143
+
9982
10144
  # Manufacturer Part Number (MPN) of the item.
9983
10145
  # Corresponds to the JSON property `mpn`
9984
10146
  # @return [String]
@@ -10003,6 +10165,19 @@ module Google
10003
10165
  # @return [String]
10004
10166
  attr_accessor :pattern
10005
10167
 
10168
+ # The pick up option for the item. Acceptable values are: - "`buy`" - "`reserve`"
10169
+ # - "`ship to store`" - "`not supported`"
10170
+ # Corresponds to the JSON property `pickupMethod`
10171
+ # @return [String]
10172
+ attr_accessor :pickup_method
10173
+
10174
+ # Item store pickup timeline. Acceptable values are: - "`same day`" - "`next day`
10175
+ # " - "`2-day`" - "`3-day`" - "`4-day`" - "`5-day`" - "`6-day`" - "`7-day`" - "`
10176
+ # multi-week`"
10177
+ # Corresponds to the JSON property `pickupSla`
10178
+ # @return [String]
10179
+ attr_accessor :pickup_sla
10180
+
10006
10181
  # Price of the item.
10007
10182
  # Corresponds to the JSON property `price`
10008
10183
  # @return [Google::Apis::ContentV2_1::Price]
@@ -10197,6 +10372,7 @@ module Google
10197
10372
  @item_group_id = args[:item_group_id] if args.key?(:item_group_id)
10198
10373
  @kind = args[:kind] if args.key?(:kind)
10199
10374
  @link = args[:link] if args.key?(:link)
10375
+ @link_template = args[:link_template] if args.key?(:link_template)
10200
10376
  @loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
10201
10377
  @material = args[:material] if args.key?(:material)
10202
10378
  @max_energy_efficiency_class = args[:max_energy_efficiency_class] if args.key?(:max_energy_efficiency_class)
@@ -10204,10 +10380,13 @@ module Google
10204
10380
  @min_energy_efficiency_class = args[:min_energy_efficiency_class] if args.key?(:min_energy_efficiency_class)
10205
10381
  @min_handling_time = args[:min_handling_time] if args.key?(:min_handling_time)
10206
10382
  @mobile_link = args[:mobile_link] if args.key?(:mobile_link)
10383
+ @mobile_link_template = args[:mobile_link_template] if args.key?(:mobile_link_template)
10207
10384
  @mpn = args[:mpn] if args.key?(:mpn)
10208
10385
  @multipack = args[:multipack] if args.key?(:multipack)
10209
10386
  @offer_id = args[:offer_id] if args.key?(:offer_id)
10210
10387
  @pattern = args[:pattern] if args.key?(:pattern)
10388
+ @pickup_method = args[:pickup_method] if args.key?(:pickup_method)
10389
+ @pickup_sla = args[:pickup_sla] if args.key?(:pickup_sla)
10211
10390
  @price = args[:price] if args.key?(:price)
10212
10391
  @product_details = args[:product_details] if args.key?(:product_details)
10213
10392
  @product_highlights = args[:product_highlights] if args.key?(:product_highlights)
@@ -10798,17 +10977,15 @@ module Google
10798
10977
  attr_accessor :merchant_id
10799
10978
 
10800
10979
  # The method of the batch entry. Acceptable values are: - "`delete`" - "`get`" -
10801
- # "`insert`"
10980
+ # "`insert`" - "`update`"
10802
10981
  # Corresponds to the JSON property `method`
10803
10982
  # @return [String]
10804
10983
  attr_accessor :method_prop
10805
10984
 
10806
10985
  # Required product attributes are primarily defined by the products data
10807
10986
  # specification. See the Products Data Specification Help Center article for
10808
- # information. Some attributes are country-specific, so make sure you select the
10809
- # appropriate country in the drop-down selector at the top of the page. Product
10810
- # data. After inserting, updating, or deleting a product, it may take several
10811
- # minutes before changes take effect.
10987
+ # information. Product data. After inserting, updating, or deleting a product,
10988
+ # it may take several minutes before changes take effect.
10812
10989
  # Corresponds to the JSON property `product`
10813
10990
  # @return [Google::Apis::ContentV2_1::Product]
10814
10991
  attr_accessor :product
@@ -10819,6 +10996,16 @@ module Google
10819
10996
  # @return [String]
10820
10997
  attr_accessor :product_id
10821
10998
 
10999
+ # The comma-separated list of product attributes to be updated. Example: `"title,
11000
+ # salePrice"`. Attributes specified in the update mask without a value specified
11001
+ # in the body will be deleted from the product. Only top-level product
11002
+ # attributes can be updated. If not defined, product attributes with set values
11003
+ # will be updated and other attributes will stay unchanged. Only defined if the
11004
+ # method is `update`.
11005
+ # Corresponds to the JSON property `updateMask`
11006
+ # @return [String]
11007
+ attr_accessor :update_mask
11008
+
10822
11009
  def initialize(**args)
10823
11010
  update!(**args)
10824
11011
  end
@@ -10831,6 +11018,7 @@ module Google
10831
11018
  @method_prop = args[:method_prop] if args.key?(:method_prop)
10832
11019
  @product = args[:product] if args.key?(:product)
10833
11020
  @product_id = args[:product_id] if args.key?(:product_id)
11021
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
10834
11022
  end
10835
11023
  end
10836
11024
 
@@ -10882,10 +11070,8 @@ module Google
10882
11070
 
10883
11071
  # Required product attributes are primarily defined by the products data
10884
11072
  # specification. See the Products Data Specification Help Center article for
10885
- # information. Some attributes are country-specific, so make sure you select the
10886
- # appropriate country in the drop-down selector at the top of the page. Product
10887
- # data. After inserting, updating, or deleting a product, it may take several
10888
- # minutes before changes take effect.
11073
+ # information. Product data. After inserting, updating, or deleting a product,
11074
+ # it may take several minutes before changes take effect.
10889
11075
  # Corresponds to the JSON property `product`
10890
11076
  # @return [Google::Apis::ContentV2_1::Product]
10891
11077
  attr_accessor :product
@@ -13158,6 +13344,68 @@ module Google
13158
13344
  class Segments
13159
13345
  include Google::Apis::Core::Hashable
13160
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
+
13161
13409
  # Represents a whole or partial calendar date, such as a birthday. The time of
13162
13410
  # day and time zone are either specified elsewhere or are insignificant. The
13163
13411
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -13175,20 +13423,81 @@ module Google
13175
13423
  # @return [String]
13176
13424
  attr_accessor :offer_id
13177
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
+
13178
13451
  # Program to which metrics apply, e.g., Free Product Listing.
13179
13452
  # Corresponds to the JSON property `program`
13180
13453
  # @return [String]
13181
13454
  attr_accessor :program
13182
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
+
13183
13473
  def initialize(**args)
13184
13474
  update!(**args)
13185
13475
  end
13186
13476
 
13187
13477
  # Update properties of this object
13188
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)
13189
13491
  @date = args[:date] if args.key?(:date)
13190
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)
13191
13498
  @program = args[:program] if args.key?(:program)
13499
+ @title = args[:title] if args.key?(:title)
13500
+ @week = args[:week] if args.key?(:week)
13192
13501
  end
13193
13502
  end
13194
13503
 
@@ -14756,7 +15065,8 @@ module Google
14756
15065
  # @return [String]
14757
15066
  attr_accessor :unit
14758
15067
 
14759
- # Required. The weight represented as a number.
15068
+ # Required. The weight represented as a number. The weight can have a maximum
15069
+ # precision of four decimal places.
14760
15070
  # Corresponds to the JSON property `value`
14761
15071
  # @return [String]
14762
15072
  attr_accessor :value
@@ -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.10.0"
19
+ GEM_VERSION = "0.15.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 = "20210505"
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
 
@@ -4163,6 +4180,7 @@ module Google
4163
4180
  # @private
4164
4181
  class Representation < Google::Apis::Core::JsonRepresentation
4165
4182
  property :line_item_id, as: 'lineItemId'
4183
+ property :product_id, as: 'productId'
4166
4184
  property :quantity, as: 'quantity'
4167
4185
  end
4168
4186
  end
@@ -4924,6 +4942,7 @@ module Google
4924
4942
  property :item_group_id, as: 'itemGroupId'
4925
4943
  property :kind, as: 'kind'
4926
4944
  property :link, as: 'link'
4945
+ property :link_template, as: 'linkTemplate'
4927
4946
  property :loyalty_points, as: 'loyaltyPoints', class: Google::Apis::ContentV2_1::LoyaltyPoints, decorator: Google::Apis::ContentV2_1::LoyaltyPoints::Representation
4928
4947
 
4929
4948
  property :material, as: 'material'
@@ -4932,10 +4951,13 @@ module Google
4932
4951
  property :min_energy_efficiency_class, as: 'minEnergyEfficiencyClass'
4933
4952
  property :min_handling_time, :numeric_string => true, as: 'minHandlingTime'
4934
4953
  property :mobile_link, as: 'mobileLink'
4954
+ property :mobile_link_template, as: 'mobileLinkTemplate'
4935
4955
  property :mpn, as: 'mpn'
4936
4956
  property :multipack, :numeric_string => true, as: 'multipack'
4937
4957
  property :offer_id, as: 'offerId'
4938
4958
  property :pattern, as: 'pattern'
4959
+ property :pickup_method, as: 'pickupMethod'
4960
+ property :pickup_sla, as: 'pickupSla'
4939
4961
  property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
4940
4962
 
4941
4963
  collection :product_details, as: 'productDetails', class: Google::Apis::ContentV2_1::ProductProductDetail, decorator: Google::Apis::ContentV2_1::ProductProductDetail::Representation
@@ -5132,6 +5154,7 @@ module Google
5132
5154
  property :product, as: 'product', class: Google::Apis::ContentV2_1::Product, decorator: Google::Apis::ContentV2_1::Product::Representation
5133
5155
 
5134
5156
  property :product_id, as: 'productId'
5157
+ property :update_mask, as: 'updateMask'
5135
5158
  end
5136
5159
  end
5137
5160
 
@@ -5796,10 +5819,30 @@ module Google
5796
5819
  class Segments
5797
5820
  # @private
5798
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'
5799
5834
  property :date, as: 'date', class: Google::Apis::ContentV2_1::Date, decorator: Google::Apis::ContentV2_1::Date::Representation
5800
5835
 
5801
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'
5802
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
+
5803
5846
  end
5804
5847
  end
5805
5848
 
@@ -346,6 +346,8 @@ module Google
346
346
  # The ID of the account for which to list links.
347
347
  # @param [Fixnum] max_results
348
348
  # The maximum number of links to return in the response, used for pagination.
349
+ # The minimum allowed value is 5 results per page. If provided value is lower
350
+ # than 5, it will be automatically increased to 5.
349
351
  # @param [String] page_token
350
352
  # The token returned by the previous request.
351
353
  # @param [String] fields
@@ -4024,6 +4026,51 @@ module Google
4024
4026
  execute_or_queue_command(command, &block)
4025
4027
  end
4026
4028
 
4029
+ # Updates an existing product in your Merchant Center account. Only updates
4030
+ # attributes provided in the request.
4031
+ # @param [Fixnum] merchant_id
4032
+ # The ID of the account that contains the product. This account cannot be a
4033
+ # multi-client account.
4034
+ # @param [String] product_id
4035
+ # The REST ID of the product for which to update.
4036
+ # @param [Google::Apis::ContentV2_1::Product] product_object
4037
+ # @param [String] update_mask
4038
+ # The comma-separated list of product attributes to be updated. Example: `"title,
4039
+ # salePrice"`. Attributes specified in the update mask without a value specified
4040
+ # in the body will be deleted from the product. Only top-level product
4041
+ # attributes can be updated. If not defined, product attributes with set values
4042
+ # will be updated and other attributes will stay unchanged.
4043
+ # @param [String] fields
4044
+ # Selector specifying which fields to include in a partial response.
4045
+ # @param [String] quota_user
4046
+ # Available to use for quota purposes for server-side applications. Can be any
4047
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4048
+ # @param [Google::Apis::RequestOptions] options
4049
+ # Request-specific options
4050
+ #
4051
+ # @yield [result, err] Result & error if block supplied
4052
+ # @yieldparam result [Google::Apis::ContentV2_1::Product] parsed result object
4053
+ # @yieldparam err [StandardError] error object if request failed
4054
+ #
4055
+ # @return [Google::Apis::ContentV2_1::Product]
4056
+ #
4057
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4058
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4059
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4060
+ def update_product(merchant_id, product_id, product_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4061
+ command = make_simple_command(:patch, '{merchantId}/products/{productId}', options)
4062
+ command.request_representation = Google::Apis::ContentV2_1::Product::Representation
4063
+ command.request_object = product_object
4064
+ command.response_representation = Google::Apis::ContentV2_1::Product::Representation
4065
+ command.response_class = Google::Apis::ContentV2_1::Product
4066
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
4067
+ command.params['productId'] = product_id unless product_id.nil?
4068
+ command.query['updateMask'] = update_mask unless update_mask.nil?
4069
+ command.query['fields'] = fields unless fields.nil?
4070
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4071
+ execute_or_queue_command(command, &block)
4072
+ end
4073
+
4027
4074
  # Gets the statuses of multiple products in a single request.
4028
4075
  # @param [Google::Apis::ContentV2_1::ProductstatusesCustomBatchRequest] productstatuses_custom_batch_request_object
4029
4076
  # @param [String] fields
@@ -4476,7 +4523,8 @@ module Google
4476
4523
  # Required. The id of the region to update.
4477
4524
  # @param [Google::Apis::ContentV2_1::Region] region_object
4478
4525
  # @param [String] update_mask
4479
- # Optional. The field mask indicating the fields to update.
4526
+ # Optional. The comma-separated field mask indicating the fields to update.
4527
+ # Example: `"displayName,postalCodeArea.regionCode"`.
4480
4528
  # @param [String] fields
4481
4529
  # Selector specifying which fields to include in a partial response.
4482
4530
  # @param [String] quota_user
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-content_v2_1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.15.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-05-18 00:00:00.000000000 Z
11
+ date: 2021-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.3'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.3'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Content API for Shopping V2_1. Simple
28
34
  REST clients are Ruby client libraries that provide access to Google services via
29
35
  their HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  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.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.15.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1
57
63
  post_install_message:
58
64
  rdoc_options: []