google-apis-content_v2_1 0.13.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ac274ed097b1f2c1a7be67047a59eb3a90bae3c2edad9639f504bb651d8ac4c
4
- data.tar.gz: 6768997d2766f814331eae9fca158367adb3972f323be68a9b8f37464ba0cb10
3
+ metadata.gz: 70ab714bde780a40282af9100ff33b7270e439fab591f3ef610c075a8c084178
4
+ data.tar.gz: 2342280f769f77f142065f74d51c4e8134691dfd7b32704de9a91a75ed39f5c5
5
5
  SHA512:
6
- metadata.gz: 1d1729d13429d0bac06af5c6b62aa438423b027c40bf573385706cad3f3b83f48fab02a2e242bcb554ba8cc2c35b9769ce6656f399af49806901a3d92ca8c1fb
7
- data.tar.gz: da17f691dd248fd6055775ee804f8fbf3d5335f20fed4d56c9099aee449dfc04072ed20742040d54c7f23bae963d52136734f579c96099e4813e749399c4e464
6
+ metadata.gz: 4a90e46717199dea0bbf707c2c668e847ba66fb76e0f6dff39815581a99d4bb9bb74d597b517ab6ad603b47a9a18a38d273a39442732bf85214f1f6938c8d2c5
7
+ data.tar.gz: 60d77cf138534fc81476568913a7e37eb31d9bc679897de936ca32efb2da9360770f3ad02fafe6f273232f383eb8a7c687ee870298af04be4d5ec9ee9dfa701e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.17.0 (2021-07-13)
4
+
5
+ * Regenerated from discovery document revision 20210707
6
+
7
+ ### v0.16.0 (2021-06-29)
8
+
9
+ * Regenerated from discovery document revision 20210624
10
+ * Regenerated using generator version 0.4.0
11
+
12
+ ### v0.15.0 (2021-06-24)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.14.0 (2021-06-09)
17
+
18
+ * Regenerated from discovery document revision 20210603
19
+ * Regenerated using generator version 0.3.0
20
+
3
21
  ### v0.13.0 (2021-06-01)
4
22
 
5
23
  * Regenerated from discovery document revision 20210526
@@ -28,6 +28,12 @@ module Google
28
28
  class Account
29
29
  include Google::Apis::Core::Hashable
30
30
 
31
+ # How the account is managed. Acceptable values are: - "`manual`" - "`automatic`"
32
+ #
33
+ # Corresponds to the JSON property `accountManagement`
34
+ # @return [String]
35
+ attr_accessor :account_management
36
+
31
37
  # Linked Ads accounts that are active or pending approval. To create a new link
32
38
  # request, add a new link with status `active` to the list. It will remain in a `
33
39
  # pending` state until approved or rejected either in the Ads interface or
@@ -116,6 +122,7 @@ module Google
116
122
 
117
123
  # Update properties of this object
118
124
  def update!(**args)
125
+ @account_management = args[:account_management] if args.key?(:account_management)
119
126
  @ads_links = args[:ads_links] if args.key?(:ads_links)
120
127
  @adult_content = args[:adult_content] if args.key?(:adult_content)
121
128
  @automatic_label_ids = args[:automatic_label_ids] if args.key?(:automatic_label_ids)
@@ -465,6 +472,12 @@ module Google
465
472
  # @return [Array<Google::Apis::ContentV2_1::AccountStatusAccountLevelIssue>]
466
473
  attr_accessor :account_level_issues
467
474
 
475
+ # How the account is managed. Acceptable values are: - "`manual`" - "`automatic`"
476
+ #
477
+ # Corresponds to the JSON property `accountManagement`
478
+ # @return [String]
479
+ attr_accessor :account_management
480
+
468
481
  # Identifies what kind of resource this is. Value: the fixed string "`content#
469
482
  # accountStatus`"
470
483
  # Corresponds to the JSON property `kind`
@@ -491,6 +504,7 @@ module Google
491
504
  def update!(**args)
492
505
  @account_id = args[:account_id] if args.key?(:account_id)
493
506
  @account_level_issues = args[:account_level_issues] if args.key?(:account_level_issues)
507
+ @account_management = args[:account_management] if args.key?(:account_management)
494
508
  @kind = args[:kind] if args.key?(:kind)
495
509
  @products = args[:products] if args.key?(:products)
496
510
  @website_claimed = args[:website_claimed] if args.key?(:website_claimed)
@@ -1016,7 +1030,7 @@ module Google
1016
1030
  attr_accessor :action
1017
1031
 
1018
1032
  # Type of the link between the two accounts. Acceptable values are: - "`
1019
- # channelPartner`" - "`eCommercePlatform`"
1033
+ # channelPartner`" - "`eCommercePlatform`" - "`paymentServiceProvider`"
1020
1034
  # Corresponds to the JSON property `linkType`
1021
1035
  # @return [String]
1022
1036
  attr_accessor :link_type
@@ -1027,7 +1041,8 @@ module Google
1027
1041
  attr_accessor :linked_account_id
1028
1042
 
1029
1043
  # Provided services. Acceptable values are: - "`shoppingAdsProductManagement`" -
1030
- # "`shoppingActionsProductManagement`" - "`shoppingActionsOrderManagement`"
1044
+ # "`shoppingActionsProductManagement`" - "`shoppingActionsOrderManagement`" - "`
1045
+ # paymentProcessing`"
1031
1046
  # Corresponds to the JSON property `services`
1032
1047
  # @return [Array<String>]
1033
1048
  attr_accessor :services
@@ -4824,6 +4839,22 @@ module Google
4824
4839
  class Metrics
4825
4840
  include Google::Apis::Core::Hashable
4826
4841
 
4842
+ # Average order size - the average number of items in an order. **This metric
4843
+ # cannot be segmented by product dimensions.**
4844
+ # Corresponds to the JSON property `aos`
4845
+ # @return [Float]
4846
+ attr_accessor :aos
4847
+
4848
+ # Average order value - the average value (total price of items) of all placed
4849
+ # orders. The currency of the returned value is stored in the currency_code
4850
+ # segment. If this metric is selected, 'segments.currency_code' is automatically
4851
+ # added to the SELECT clause in the search query (unless it is explicitly
4852
+ # selected by the user) and the currency_code segment is populated in the
4853
+ # response. **This metric cannot be segmented by product dimensions.**
4854
+ # Corresponds to the JSON property `aovMicros`
4855
+ # @return [Float]
4856
+ attr_accessor :aov_micros
4857
+
4827
4858
  # Number of clicks.
4828
4859
  # Corresponds to the JSON property `clicks`
4829
4860
  # @return [Fixnum]
@@ -4835,20 +4866,145 @@ module Google
4835
4866
  # @return [Float]
4836
4867
  attr_accessor :ctr
4837
4868
 
4869
+ # Average number of days between an order being placed and the order being fully
4870
+ # shipped, reported on the last shipment date. **This metric cannot be segmented
4871
+ # by product dimensions.**
4872
+ # Corresponds to the JSON property `daysToShip`
4873
+ # @return [Float]
4874
+ attr_accessor :days_to_ship
4875
+
4838
4876
  # Number of times merchant's products are shown.
4839
4877
  # Corresponds to the JSON property `impressions`
4840
4878
  # @return [Fixnum]
4841
4879
  attr_accessor :impressions
4842
4880
 
4881
+ # Average number of days between an item being ordered and the item being
4882
+ # Corresponds to the JSON property `itemDaysToShip`
4883
+ # @return [Float]
4884
+ attr_accessor :item_days_to_ship
4885
+
4886
+ # Percentage of shipped items in relation to all finalized items (shipped or
4887
+ # rejected by the merchant; unshipped items are not taken into account),
4888
+ # reported on the order date. Item fill rate is lowered by merchant rejections.
4889
+ # Corresponds to the JSON property `itemFillRate`
4890
+ # @return [Float]
4891
+ attr_accessor :item_fill_rate
4892
+
4893
+ # Total price of ordered items. Excludes shipping, taxes (US only), and customer
4894
+ # cancellations that happened within 30 minutes of placing the order. The
4895
+ # currency of the returned value is stored in the currency_code segment. If this
4896
+ # metric is selected, 'segments.currency_code' is automatically added to the
4897
+ # SELECT clause in the search query (unless it is explicitly selected by the
4898
+ # user) and the currency_code segment is populated in the response.
4899
+ # Corresponds to the JSON property `orderedItemSalesMicros`
4900
+ # @return [Fixnum]
4901
+ attr_accessor :ordered_item_sales_micros
4902
+
4903
+ # Number of ordered items. Excludes customer cancellations that happened within
4904
+ # 30 minutes of placing the order.
4905
+ # Corresponds to the JSON property `orderedItems`
4906
+ # @return [Fixnum]
4907
+ attr_accessor :ordered_items
4908
+
4909
+ # Number of placed orders. Excludes customer cancellations that happened within
4910
+ # 30 minutes of placing the order. **This metric cannot be segmented by product
4911
+ # dimensions.**
4912
+ # Corresponds to the JSON property `orders`
4913
+ # @return [Fixnum]
4914
+ attr_accessor :orders
4915
+
4916
+ # Number of ordered items canceled by the merchant, reported on the order date.
4917
+ # Corresponds to the JSON property `rejectedItems`
4918
+ # @return [Fixnum]
4919
+ attr_accessor :rejected_items
4920
+
4921
+ # Total price of returned items divided by the total price of shipped items,
4922
+ # reported on the order date. If this metric is selected, 'segments.
4923
+ # currency_code' is automatically added to the SELECT clause in the search query
4924
+ # (unless it is explicitly selected by the user) and the currency_code segment
4925
+ # is populated in the response.
4926
+ # Corresponds to the JSON property `returnRate`
4927
+ # @return [Float]
4928
+ attr_accessor :return_rate
4929
+
4930
+ # Number of ordered items sent back for return, reported on the date when the
4931
+ # merchant accepted the return.
4932
+ # Corresponds to the JSON property `returnedItems`
4933
+ # @return [Fixnum]
4934
+ attr_accessor :returned_items
4935
+
4936
+ # Total price of ordered items sent back for return, reported on the date when
4937
+ # the merchant accepted the return. The currency of the returned value is stored
4938
+ # in the currency_code segment. If this metric is selected, 'segments.
4939
+ # currency_code' is automatically added to the SELECT clause in the search query
4940
+ # (unless it is explicitly selected by the user) and the currency_code segment
4941
+ # is populated in the response.
4942
+ # Corresponds to the JSON property `returnsMicros`
4943
+ # @return [Fixnum]
4944
+ attr_accessor :returns_micros
4945
+
4946
+ # Total price of shipped items, reported on the order date. Excludes shipping
4947
+ # and taxes (US only). The currency of the returned value is stored in the
4948
+ # currency_code segment. If this metric is selected, 'segments.currency_code' is
4949
+ # automatically added to the SELECT clause in the search query (unless it is
4950
+ # explicitly selected by the user) and the currency_code segment is populated in
4951
+ # the response.
4952
+ # Corresponds to the JSON property `shippedItemSalesMicros`
4953
+ # @return [Fixnum]
4954
+ attr_accessor :shipped_item_sales_micros
4955
+
4956
+ # Number of shipped items, reported on the shipment date.
4957
+ # Corresponds to the JSON property `shippedItems`
4958
+ # @return [Fixnum]
4959
+ attr_accessor :shipped_items
4960
+
4961
+ # Number of fully shipped orders, reported on the last shipment date. **This
4962
+ # metric cannot be segmented by product dimensions.**
4963
+ # Corresponds to the JSON property `shippedOrders`
4964
+ # @return [Fixnum]
4965
+ attr_accessor :shipped_orders
4966
+
4967
+ # Number of ordered items not shipped up until the end of the queried day. If a
4968
+ # multi-day period is specified in the search query, the returned value is the
4969
+ # average number of unshipped items over the days in the queried period.
4970
+ # Corresponds to the JSON property `unshippedItems`
4971
+ # @return [Float]
4972
+ attr_accessor :unshipped_items
4973
+
4974
+ # Number of orders not shipped or partially shipped up until the end of the
4975
+ # queried day. If a multi-day period is specified in the search query, the
4976
+ # returned value is the average number of unshipped orders over the days in the
4977
+ # queried period. **This metric cannot be segmented by product dimensions.**
4978
+ # Corresponds to the JSON property `unshippedOrders`
4979
+ # @return [Float]
4980
+ attr_accessor :unshipped_orders
4981
+
4843
4982
  def initialize(**args)
4844
4983
  update!(**args)
4845
4984
  end
4846
4985
 
4847
4986
  # Update properties of this object
4848
4987
  def update!(**args)
4988
+ @aos = args[:aos] if args.key?(:aos)
4989
+ @aov_micros = args[:aov_micros] if args.key?(:aov_micros)
4849
4990
  @clicks = args[:clicks] if args.key?(:clicks)
4850
4991
  @ctr = args[:ctr] if args.key?(:ctr)
4992
+ @days_to_ship = args[:days_to_ship] if args.key?(:days_to_ship)
4851
4993
  @impressions = args[:impressions] if args.key?(:impressions)
4994
+ @item_days_to_ship = args[:item_days_to_ship] if args.key?(:item_days_to_ship)
4995
+ @item_fill_rate = args[:item_fill_rate] if args.key?(:item_fill_rate)
4996
+ @ordered_item_sales_micros = args[:ordered_item_sales_micros] if args.key?(:ordered_item_sales_micros)
4997
+ @ordered_items = args[:ordered_items] if args.key?(:ordered_items)
4998
+ @orders = args[:orders] if args.key?(:orders)
4999
+ @rejected_items = args[:rejected_items] if args.key?(:rejected_items)
5000
+ @return_rate = args[:return_rate] if args.key?(:return_rate)
5001
+ @returned_items = args[:returned_items] if args.key?(:returned_items)
5002
+ @returns_micros = args[:returns_micros] if args.key?(:returns_micros)
5003
+ @shipped_item_sales_micros = args[:shipped_item_sales_micros] if args.key?(:shipped_item_sales_micros)
5004
+ @shipped_items = args[:shipped_items] if args.key?(:shipped_items)
5005
+ @shipped_orders = args[:shipped_orders] if args.key?(:shipped_orders)
5006
+ @unshipped_items = args[:unshipped_items] if args.key?(:unshipped_items)
5007
+ @unshipped_orders = args[:unshipped_orders] if args.key?(:unshipped_orders)
4852
5008
  end
4853
5009
  end
4854
5010
 
@@ -9955,7 +10111,7 @@ module Google
9955
10111
  # @return [String]
9956
10112
  attr_accessor :link
9957
10113
 
9958
- # Link template for merchant hosted local storefront.
10114
+ # URL template for merchant hosted local storefront.
9959
10115
  # Corresponds to the JSON property `linkTemplate`
9960
10116
  # @return [String]
9961
10117
  attr_accessor :link_template
@@ -9995,8 +10151,7 @@ module Google
9995
10151
  # @return [String]
9996
10152
  attr_accessor :mobile_link
9997
10153
 
9998
- # Link template for merchant hosted local storefront optimized for mobile
9999
- # devices.
10154
+ # URL template for merchant hosted local storefront optimized for mobile devices.
10000
10155
  # Corresponds to the JSON property `mobileLinkTemplate`
10001
10156
  # @return [String]
10002
10157
  attr_accessor :mobile_link_template
@@ -13204,6 +13359,68 @@ module Google
13204
13359
  class Segments
13205
13360
  include Google::Apis::Core::Hashable
13206
13361
 
13362
+ # Brand of the product.
13363
+ # Corresponds to the JSON property `brand`
13364
+ # @return [String]
13365
+ attr_accessor :brand
13366
+
13367
+ # Product category (1st level) in Google's product taxonomy.
13368
+ # Corresponds to the JSON property `categoryL1`
13369
+ # @return [String]
13370
+ attr_accessor :category_l1
13371
+
13372
+ # Product category (2nd level) in Google's product taxonomy.
13373
+ # Corresponds to the JSON property `categoryL2`
13374
+ # @return [String]
13375
+ attr_accessor :category_l2
13376
+
13377
+ # Product category (3rd level) in Google's product taxonomy.
13378
+ # Corresponds to the JSON property `categoryL3`
13379
+ # @return [String]
13380
+ attr_accessor :category_l3
13381
+
13382
+ # Product category (4th level) in Google's product taxonomy.
13383
+ # Corresponds to the JSON property `categoryL4`
13384
+ # @return [String]
13385
+ attr_accessor :category_l4
13386
+
13387
+ # Product category (5th level) in Google's product taxonomy.
13388
+ # Corresponds to the JSON property `categoryL5`
13389
+ # @return [String]
13390
+ attr_accessor :category_l5
13391
+
13392
+ # Currency in which price metrics are represented, e.g., if you select `
13393
+ # ordered_item_sales_micros`, the returned value will be represented by this
13394
+ # currency.
13395
+ # Corresponds to the JSON property `currencyCode`
13396
+ # @return [String]
13397
+ attr_accessor :currency_code
13398
+
13399
+ # Custom label 0 for custom grouping of products.
13400
+ # Corresponds to the JSON property `customLabel0`
13401
+ # @return [String]
13402
+ attr_accessor :custom_label0
13403
+
13404
+ # Custom label 1 for custom grouping of products.
13405
+ # Corresponds to the JSON property `customLabel1`
13406
+ # @return [String]
13407
+ attr_accessor :custom_label1
13408
+
13409
+ # Custom label 2 for custom grouping of products.
13410
+ # Corresponds to the JSON property `customLabel2`
13411
+ # @return [String]
13412
+ attr_accessor :custom_label2
13413
+
13414
+ # Custom label 3 for custom grouping of products.
13415
+ # Corresponds to the JSON property `customLabel3`
13416
+ # @return [String]
13417
+ attr_accessor :custom_label3
13418
+
13419
+ # Custom label 4 for custom grouping of products.
13420
+ # Corresponds to the JSON property `customLabel4`
13421
+ # @return [String]
13422
+ attr_accessor :custom_label4
13423
+
13207
13424
  # Represents a whole or partial calendar date, such as a birthday. The time of
13208
13425
  # day and time zone are either specified elsewhere or are insignificant. The
13209
13426
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -13221,20 +13438,81 @@ module Google
13221
13438
  # @return [String]
13222
13439
  attr_accessor :offer_id
13223
13440
 
13441
+ # Product category (1st level) in merchant's own product taxonomy.
13442
+ # Corresponds to the JSON property `productTypeL1`
13443
+ # @return [String]
13444
+ attr_accessor :product_type_l1
13445
+
13446
+ # Product category (2nd level) in merchant's own product taxonomy.
13447
+ # Corresponds to the JSON property `productTypeL2`
13448
+ # @return [String]
13449
+ attr_accessor :product_type_l2
13450
+
13451
+ # Product category (3rd level) in merchant's own product taxonomy.
13452
+ # Corresponds to the JSON property `productTypeL3`
13453
+ # @return [String]
13454
+ attr_accessor :product_type_l3
13455
+
13456
+ # Product category (4th level) in merchant's own product taxonomy.
13457
+ # Corresponds to the JSON property `productTypeL4`
13458
+ # @return [String]
13459
+ attr_accessor :product_type_l4
13460
+
13461
+ # Product category (5th level) in merchant's own product taxonomy.
13462
+ # Corresponds to the JSON property `productTypeL5`
13463
+ # @return [String]
13464
+ attr_accessor :product_type_l5
13465
+
13224
13466
  # Program to which metrics apply, e.g., Free Product Listing.
13225
13467
  # Corresponds to the JSON property `program`
13226
13468
  # @return [String]
13227
13469
  attr_accessor :program
13228
13470
 
13471
+ # Title of the product.
13472
+ # Corresponds to the JSON property `title`
13473
+ # @return [String]
13474
+ attr_accessor :title
13475
+
13476
+ # Represents a whole or partial calendar date, such as a birthday. The time of
13477
+ # day and time zone are either specified elsewhere or are insignificant. The
13478
+ # date is relative to the Gregorian Calendar. This can represent one of the
13479
+ # following: * A full date, with non-zero year, month, and day values * A month
13480
+ # and day value, with a zero year, such as an anniversary * A year on its own,
13481
+ # with zero month and day values * A year and month value, with a zero day, such
13482
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
13483
+ # google.protobuf.Timestamp`.
13484
+ # Corresponds to the JSON property `week`
13485
+ # @return [Google::Apis::ContentV2_1::Date]
13486
+ attr_accessor :week
13487
+
13229
13488
  def initialize(**args)
13230
13489
  update!(**args)
13231
13490
  end
13232
13491
 
13233
13492
  # Update properties of this object
13234
13493
  def update!(**args)
13494
+ @brand = args[:brand] if args.key?(:brand)
13495
+ @category_l1 = args[:category_l1] if args.key?(:category_l1)
13496
+ @category_l2 = args[:category_l2] if args.key?(:category_l2)
13497
+ @category_l3 = args[:category_l3] if args.key?(:category_l3)
13498
+ @category_l4 = args[:category_l4] if args.key?(:category_l4)
13499
+ @category_l5 = args[:category_l5] if args.key?(:category_l5)
13500
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
13501
+ @custom_label0 = args[:custom_label0] if args.key?(:custom_label0)
13502
+ @custom_label1 = args[:custom_label1] if args.key?(:custom_label1)
13503
+ @custom_label2 = args[:custom_label2] if args.key?(:custom_label2)
13504
+ @custom_label3 = args[:custom_label3] if args.key?(:custom_label3)
13505
+ @custom_label4 = args[:custom_label4] if args.key?(:custom_label4)
13235
13506
  @date = args[:date] if args.key?(:date)
13236
13507
  @offer_id = args[:offer_id] if args.key?(:offer_id)
13508
+ @product_type_l1 = args[:product_type_l1] if args.key?(:product_type_l1)
13509
+ @product_type_l2 = args[:product_type_l2] if args.key?(:product_type_l2)
13510
+ @product_type_l3 = args[:product_type_l3] if args.key?(:product_type_l3)
13511
+ @product_type_l4 = args[:product_type_l4] if args.key?(:product_type_l4)
13512
+ @product_type_l5 = args[:product_type_l5] if args.key?(:product_type_l5)
13237
13513
  @program = args[:program] if args.key?(:program)
13514
+ @title = args[:title] if args.key?(:title)
13515
+ @week = args[:week] if args.key?(:week)
13238
13516
  end
13239
13517
  end
13240
13518
 
@@ -14601,8 +14879,10 @@ module Google
14601
14879
  # @return [Array<Google::Apis::ContentV2_1::UnitInvoiceAdditionalCharge>]
14602
14880
  attr_accessor :additional_charges
14603
14881
 
14604
- # [required] Pre-tax or post-tax price of the unit depending on the locality of
14605
- # the order.
14882
+ # [required] Pre-tax or post-tax price of one unit depending on the locality of
14883
+ # the order. *Note:* Invoicing works on a per unit basis. The `unitPrice` is the
14884
+ # price of a single unit, and will be multiplied by the number of entries in `
14885
+ # shipmentUnitId`.
14606
14886
  # Corresponds to the JSON property `unitPrice`
14607
14887
  # @return [Google::Apis::ContentV2_1::Price]
14608
14888
  attr_accessor :unit_price
@@ -14628,7 +14908,9 @@ module Google
14628
14908
  class UnitInvoiceAdditionalCharge
14629
14909
  include Google::Apis::Core::Hashable
14630
14910
 
14631
- # [required] Amount of the additional charge.
14911
+ # [required] Amount of the additional charge per unit. *Note:* Invoicing works
14912
+ # on a per unit bases. The `additionalChargeAmount` is the amount charged per
14913
+ # unit, and will be multiplied by the number of entries in `shipmentUnitID`.
14632
14914
  # Corresponds to the JSON property `additionalChargeAmount`
14633
14915
  # @return [Google::Apis::ContentV2_1::Amount]
14634
14916
  attr_accessor :additional_charge_amount
@@ -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.17.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.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210526"
25
+ REVISION = "20210707"
26
26
  end
27
27
  end
28
28
  end
@@ -2215,6 +2215,7 @@ module Google
2215
2215
  class Account
2216
2216
  # @private
2217
2217
  class Representation < Google::Apis::Core::JsonRepresentation
2218
+ property :account_management, as: 'accountManagement'
2218
2219
  collection :ads_links, as: 'adsLinks', class: Google::Apis::ContentV2_1::AccountAdsLink, decorator: Google::Apis::ContentV2_1::AccountAdsLink::Representation
2219
2220
 
2220
2221
  property :adult_content, as: 'adultContent'
@@ -2329,6 +2330,7 @@ module Google
2329
2330
  property :account_id, as: 'accountId'
2330
2331
  collection :account_level_issues, as: 'accountLevelIssues', class: Google::Apis::ContentV2_1::AccountStatusAccountLevelIssue, decorator: Google::Apis::ContentV2_1::AccountStatusAccountLevelIssue::Representation
2331
2332
 
2333
+ property :account_management, as: 'accountManagement'
2332
2334
  property :kind, as: 'kind'
2333
2335
  collection :products, as: 'products', class: Google::Apis::ContentV2_1::AccountStatusProducts, decorator: Google::Apis::ContentV2_1::AccountStatusProducts::Representation
2334
2336
 
@@ -3568,9 +3570,26 @@ module Google
3568
3570
  class Metrics
3569
3571
  # @private
3570
3572
  class Representation < Google::Apis::Core::JsonRepresentation
3573
+ property :aos, as: 'aos'
3574
+ property :aov_micros, as: 'aovMicros'
3571
3575
  property :clicks, :numeric_string => true, as: 'clicks'
3572
3576
  property :ctr, as: 'ctr'
3577
+ property :days_to_ship, as: 'daysToShip'
3573
3578
  property :impressions, :numeric_string => true, as: 'impressions'
3579
+ property :item_days_to_ship, as: 'itemDaysToShip'
3580
+ property :item_fill_rate, as: 'itemFillRate'
3581
+ property :ordered_item_sales_micros, :numeric_string => true, as: 'orderedItemSalesMicros'
3582
+ property :ordered_items, :numeric_string => true, as: 'orderedItems'
3583
+ property :orders, :numeric_string => true, as: 'orders'
3584
+ property :rejected_items, :numeric_string => true, as: 'rejectedItems'
3585
+ property :return_rate, as: 'returnRate'
3586
+ property :returned_items, :numeric_string => true, as: 'returnedItems'
3587
+ property :returns_micros, :numeric_string => true, as: 'returnsMicros'
3588
+ property :shipped_item_sales_micros, :numeric_string => true, as: 'shippedItemSalesMicros'
3589
+ property :shipped_items, :numeric_string => true, as: 'shippedItems'
3590
+ property :shipped_orders, :numeric_string => true, as: 'shippedOrders'
3591
+ property :unshipped_items, as: 'unshippedItems'
3592
+ property :unshipped_orders, as: 'unshippedOrders'
3574
3593
  end
3575
3594
  end
3576
3595
 
@@ -5802,10 +5821,30 @@ module Google
5802
5821
  class Segments
5803
5822
  # @private
5804
5823
  class Representation < Google::Apis::Core::JsonRepresentation
5824
+ property :brand, as: 'brand'
5825
+ property :category_l1, as: 'categoryL1'
5826
+ property :category_l2, as: 'categoryL2'
5827
+ property :category_l3, as: 'categoryL3'
5828
+ property :category_l4, as: 'categoryL4'
5829
+ property :category_l5, as: 'categoryL5'
5830
+ property :currency_code, as: 'currencyCode'
5831
+ property :custom_label0, as: 'customLabel0'
5832
+ property :custom_label1, as: 'customLabel1'
5833
+ property :custom_label2, as: 'customLabel2'
5834
+ property :custom_label3, as: 'customLabel3'
5835
+ property :custom_label4, as: 'customLabel4'
5805
5836
  property :date, as: 'date', class: Google::Apis::ContentV2_1::Date, decorator: Google::Apis::ContentV2_1::Date::Representation
5806
5837
 
5807
5838
  property :offer_id, as: 'offerId'
5839
+ property :product_type_l1, as: 'productTypeL1'
5840
+ property :product_type_l2, as: 'productTypeL2'
5841
+ property :product_type_l3, as: 'productTypeL3'
5842
+ property :product_type_l4, as: 'productTypeL4'
5843
+ property :product_type_l5, as: 'productTypeL5'
5808
5844
  property :program, as: 'program'
5845
+ property :title, as: 'title'
5846
+ property :week, as: 'week', class: Google::Apis::ContentV2_1::Date, decorator: Google::Apis::ContentV2_1::Date::Representation
5847
+
5809
5848
  end
5810
5849
  end
5811
5850
 
@@ -301,6 +301,9 @@ module Google
301
301
  # given ID.
302
302
  # @param [Fixnum] max_results
303
303
  # The maximum number of accounts to return in the response, used for paging.
304
+ # @param [String] name
305
+ # If set, only the accounts with the given name (case sensitive) will be
306
+ # returned.
304
307
  # @param [String] page_token
305
308
  # The token returned by the previous request.
306
309
  # @param [String] view
@@ -323,13 +326,14 @@ module Google
323
326
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
324
327
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
325
328
  # @raise [Google::Apis::AuthorizationError] Authorization is required
326
- def list_accounts(merchant_id, label: nil, max_results: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
329
+ def list_accounts(merchant_id, label: nil, max_results: nil, name: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
327
330
  command = make_simple_command(:get, '{merchantId}/accounts', options)
328
331
  command.response_representation = Google::Apis::ContentV2_1::AccountsListResponse::Representation
329
332
  command.response_class = Google::Apis::ContentV2_1::AccountsListResponse
330
333
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
331
334
  command.query['label'] = label unless label.nil?
332
335
  command.query['maxResults'] = max_results unless max_results.nil?
336
+ command.query['name'] = name unless name.nil?
333
337
  command.query['pageToken'] = page_token unless page_token.nil?
334
338
  command.query['view'] = view unless view.nil?
335
339
  command.query['fields'] = fields unless fields.nil?
@@ -843,6 +847,9 @@ module Google
843
847
  # @param [Fixnum] max_results
844
848
  # The maximum number of account statuses to return in the response, used for
845
849
  # paging.
850
+ # @param [String] name
851
+ # If set, only the accounts with the given name (case sensitive) will be
852
+ # returned.
846
853
  # @param [String] page_token
847
854
  # The token returned by the previous request.
848
855
  # @param [String] fields
@@ -862,13 +869,14 @@ module Google
862
869
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
863
870
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
864
871
  # @raise [Google::Apis::AuthorizationError] Authorization is required
865
- def list_accountstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
872
+ def list_accountstatuses(merchant_id, destinations: nil, max_results: nil, name: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
866
873
  command = make_simple_command(:get, '{merchantId}/accountstatuses', options)
867
874
  command.response_representation = Google::Apis::ContentV2_1::AccountstatusesListResponse::Representation
868
875
  command.response_class = Google::Apis::ContentV2_1::AccountstatusesListResponse
869
876
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
870
877
  command.query['destinations'] = destinations unless destinations.nil?
871
878
  command.query['maxResults'] = max_results unless max_results.nil?
879
+ command.query['name'] = name unless name.nil?
872
880
  command.query['pageToken'] = page_token unless page_token.nil?
873
881
  command.query['fields'] = fields unless fields.nil?
874
882
  command.query['quotaUser'] = quota_user unless quota_user.nil?
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.13.0
4
+ version: 0.17.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-07-19 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.4'
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.4'
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.13.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.17.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: []