google-shopping-merchant-accounts-v1beta 0.5.0 → 0.7.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.
Files changed (21) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/shopping/merchant/accounts/v1beta/automatic_improvements_service/client.rb +570 -0
  3. data/lib/google/shopping/merchant/accounts/v1beta/automatic_improvements_service/credentials.rb +49 -0
  4. data/lib/google/shopping/merchant/accounts/v1beta/automatic_improvements_service/paths.rb +49 -0
  5. data/lib/google/shopping/merchant/accounts/v1beta/automatic_improvements_service/rest/client.rb +530 -0
  6. data/lib/google/shopping/merchant/accounts/v1beta/automatic_improvements_service/rest/service_stub.rb +206 -0
  7. data/lib/google/shopping/merchant/accounts/v1beta/automatic_improvements_service/rest.rb +56 -0
  8. data/lib/google/shopping/merchant/accounts/v1beta/automatic_improvements_service.rb +59 -0
  9. data/lib/google/shopping/merchant/accounts/v1beta/automaticimprovements_pb.rb +58 -0
  10. data/lib/google/shopping/merchant/accounts/v1beta/automaticimprovements_services_pb.rb +51 -0
  11. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_pb.rb +4 -1
  12. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/client.rb +3 -3
  13. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/rest/client.rb +3 -3
  14. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_services_pb.rb +2 -2
  15. data/lib/google/shopping/merchant/accounts/v1beta/rest.rb +1 -0
  16. data/lib/google/shopping/merchant/accounts/v1beta/version.rb +1 -1
  17. data/lib/google/shopping/merchant/accounts/v1beta.rb +1 -0
  18. data/proto_docs/google/api/client.rb +14 -0
  19. data/proto_docs/google/shopping/merchant/accounts/v1beta/automaticimprovements.rb +235 -0
  20. data/proto_docs/google/shopping/merchant/accounts/v1beta/online_return_policy.rb +43 -12
  21. metadata +13 -3
@@ -0,0 +1,235 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Shopping
22
+ module Merchant
23
+ module Accounts
24
+ module V1beta
25
+ # Collection of information related to the [automatic
26
+ # improvements](https://developers.google.com/shopping-content/guides/automatic-improvements)
27
+ # of an account.
28
+ # @!attribute [rw] name
29
+ # @return [::String]
30
+ # Identifier. The resource name of the automatic improvements.
31
+ # Format: `accounts/{account}/automaticImprovements`.
32
+ # @!attribute [rw] item_updates
33
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::AutomaticItemUpdates]
34
+ # Turning on [item
35
+ # updates](https://support.google.com/merchants/answer/3246284) allows
36
+ # Google to automatically update items for you. When item updates are on,
37
+ # Google uses the structured data markup on the website and advanced data
38
+ # extractors to update the price and availability of the items. When the item
39
+ # updates are off, items with mismatched data aren't shown.
40
+ # This field is only updated (cleared) if provided in the update mask.
41
+ # @!attribute [rw] image_improvements
42
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::AutomaticImageImprovements]
43
+ # This improvement will attempt to automatically correct submitted images if
44
+ # they don't meet the [image
45
+ # requirements](https://support.google.com/merchants/answer/6324350), for
46
+ # example, removing overlays. If successful, the image will be replaced and
47
+ # approved. This improvement is only applied to images of disapproved offers.
48
+ # For more information see: [Automatic image
49
+ # improvements](https://support.google.com/merchants/answer/9242973)
50
+ # This field is only updated (cleared) if provided in the update mask.
51
+ # @!attribute [rw] shipping_improvements
52
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::AutomaticShippingImprovements]
53
+ # Not available for MCAs
54
+ # [accounts](https://support.google.com/merchants/answer/188487). By turning
55
+ # on [automatic shipping
56
+ # improvements](https://support.google.com/merchants/answer/10027038),
57
+ # you are allowing Google to improve the accuracy of your delivery times
58
+ # shown to shoppers using Google. More accurate delivery times, especially
59
+ # when faster, typically lead to better conversion rates. Google will improve
60
+ # your estimated delivery times based on various factors:
61
+ # * Delivery address of an order
62
+ # * Current handling time and shipping time settings
63
+ # * Estimated weekdays or business days
64
+ # * Parcel tracking data
65
+ # This field is only updated (cleared) if provided in the update mask.
66
+ class AutomaticImprovements
67
+ include ::Google::Protobuf::MessageExts
68
+ extend ::Google::Protobuf::MessageExts::ClassMethods
69
+ end
70
+
71
+ # Turning on [item
72
+ # updates](https://support.google.com/merchants/answer/3246284) allows
73
+ # Google to automatically update items for you. When item updates are on,
74
+ # Google uses the structured data markup on the website and advanced data
75
+ # extractors to update the price and availability of the items. When the item
76
+ # updates are off, items with mismatched data aren't shown.
77
+ # @!attribute [rw] account_item_updates_settings
78
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::AutomaticItemUpdates::ItemUpdatesAccountLevelSettings]
79
+ # Optional. Determines which attributes of the items should be automatically
80
+ # updated. If this field is not present and provided in the update mask, then
81
+ # the settings will be deleted. If there are no settings for subaccount, they
82
+ # are inherited from aggregator.
83
+ # @!attribute [r] effective_allow_price_updates
84
+ # @return [::Boolean]
85
+ # Output only. The effective value of allow_price_updates.
86
+ # If account_item_updates_settings is present, then this value is the same.
87
+ # Otherwise, it represents the inherited value of the parent account.
88
+ # The default value is true if no settings are present.
89
+ # Read-only.
90
+ # @!attribute [r] effective_allow_availability_updates
91
+ # @return [::Boolean]
92
+ # Output only. The effective value of allow_availability_updates.
93
+ # If account_item_updates_settings is present, then this value is the same.
94
+ # Otherwise, it represents the inherited value of the parent account.
95
+ # The default value is true if no settings are present.
96
+ # Read-only.
97
+ # @!attribute [r] effective_allow_strict_availability_updates
98
+ # @return [::Boolean]
99
+ # Output only. The effective value of
100
+ # allow_strict_availability_updates.
101
+ # If account_item_updates_settings is present, then this value is the same.
102
+ # Otherwise, it represents the inherited value of the parent account.
103
+ # The default value is true if no settings are present.
104
+ # Read-only.
105
+ # @!attribute [r] effective_allow_condition_updates
106
+ # @return [::Boolean]
107
+ # Output only. The effective value of allow_condition_updates.
108
+ # If account_item_updates_settings is present, then this value is the same.
109
+ # Otherwise, it represents the inherited value of the parent account.
110
+ # The default value is true if no settings are present.
111
+ # Read-only.
112
+ class AutomaticItemUpdates
113
+ include ::Google::Protobuf::MessageExts
114
+ extend ::Google::Protobuf::MessageExts::ClassMethods
115
+
116
+ # Settings for the Automatic Item Updates.
117
+ # @!attribute [rw] allow_price_updates
118
+ # @return [::Boolean]
119
+ # If price updates are enabled, Google always updates the active price with
120
+ # the crawled information.
121
+ # @!attribute [rw] allow_availability_updates
122
+ # @return [::Boolean]
123
+ # If availability updates are enabled, any previous availability values
124
+ # get overwritten if Google finds an out-of-stock annotation on the offer's
125
+ # page.
126
+ # If additionally `allow_strict_availability_updates` field is set to
127
+ # true, values get overwritten if Google finds an in-stock annotation on
128
+ # the offer’s page.
129
+ # @!attribute [rw] allow_strict_availability_updates
130
+ # @return [::Boolean]
131
+ # If `allow_availability_updates` is enabled, items are automatically
132
+ # updated in all your Shopping target countries. By default, availability
133
+ # updates will only be applied to items that are 'out of stock' on your
134
+ # website but 'in stock' on Shopping. Set this to true to also update items
135
+ # that are 'in stock' on your website, but 'out of stock' on Google
136
+ # Shopping. In order for this field to have an effect, you must also set
137
+ # `allow_availability_updates`.
138
+ # @!attribute [rw] allow_condition_updates
139
+ # @return [::Boolean]
140
+ # If condition updates are enabled, Google always updates item condition
141
+ # with the condition detected from the details of your product.
142
+ class ItemUpdatesAccountLevelSettings
143
+ include ::Google::Protobuf::MessageExts
144
+ extend ::Google::Protobuf::MessageExts::ClassMethods
145
+ end
146
+ end
147
+
148
+ # This improvement will attempt to automatically correct submitted images if
149
+ # they don't meet the [image
150
+ # requirements](https://support.google.com/merchants/answer/6324350), for
151
+ # example, removing overlays. If successful, the image will be replaced and
152
+ # approved. This improvement is only applied to images of disapproved offers.
153
+ # For more information see: [Automatic image
154
+ # improvements](https://support.google.com/merchants/answer/9242973)
155
+ # @!attribute [rw] account_image_improvements_settings
156
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::AutomaticImageImprovements::ImageImprovementsAccountLevelSettings]
157
+ # Optional. Determines how the images should be automatically updated.
158
+ # If this field is not present and provided in the update mask, then the
159
+ # settings will be deleted. If there are no settings for subaccount, they are
160
+ # inherited from aggregator.
161
+ # @!attribute [r] effective_allow_automatic_image_improvements
162
+ # @return [::Boolean]
163
+ # Output only. The effective value of allow_automatic_image_improvements.
164
+ # If account_image_improvements_settings is present, then this value is the
165
+ # same. Otherwise, it represents the inherited value of the parent account.
166
+ # Read-only.
167
+ class AutomaticImageImprovements
168
+ include ::Google::Protobuf::MessageExts
169
+ extend ::Google::Protobuf::MessageExts::ClassMethods
170
+
171
+ # Settings for the Automatic Image Improvements.
172
+ # @!attribute [rw] allow_automatic_image_improvements
173
+ # @return [::Boolean]
174
+ # Enables automatic image improvements.
175
+ class ImageImprovementsAccountLevelSettings
176
+ include ::Google::Protobuf::MessageExts
177
+ extend ::Google::Protobuf::MessageExts::ClassMethods
178
+ end
179
+ end
180
+
181
+ # Not available for MCAs
182
+ # [accounts](https://support.google.com/merchants/answer/188487). By turning on
183
+ # [automatic shipping
184
+ # improvements](https://support.google.com/merchants/answer/10027038),
185
+ # you are allowing Google to improve the accuracy of your delivery times shown
186
+ # to shoppers using Google. More accurate delivery times, especially when
187
+ # faster, typically lead to better conversion rates. Google will improve your
188
+ # estimated delivery times based on various factors:
189
+ # * Delivery address of an order
190
+ # * Current handling time and shipping time settings
191
+ # * Estimated weekdays or business days
192
+ # * Parcel tracking data
193
+ # @!attribute [rw] allow_shipping_improvements
194
+ # @return [::Boolean]
195
+ # Enables automatic shipping improvements.
196
+ class AutomaticShippingImprovements
197
+ include ::Google::Protobuf::MessageExts
198
+ extend ::Google::Protobuf::MessageExts::ClassMethods
199
+ end
200
+
201
+ # Request message for the `GetAutomaticImprovements` method.
202
+ # @!attribute [rw] name
203
+ # @return [::String]
204
+ # Required. The resource name of the automatic improvements.
205
+ # Format: `accounts/{account}/automaticImprovements`
206
+ class GetAutomaticImprovementsRequest
207
+ include ::Google::Protobuf::MessageExts
208
+ extend ::Google::Protobuf::MessageExts::ClassMethods
209
+ end
210
+
211
+ # Request message for the `UpdateAutomaticImprovements` method.
212
+ # @!attribute [rw] automatic_improvements
213
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::AutomaticImprovements]
214
+ # Required. The new version of the automatic imrovements.
215
+ # @!attribute [rw] update_mask
216
+ # @return [::Google::Protobuf::FieldMask]
217
+ # Required. List of fields being updated.
218
+ # The following fields are supported (in both `snake_case` and
219
+ # `lowerCamelCase`):
220
+ #
221
+ # - `item_updates`
222
+ # - `item_updates.account_level_settings`
223
+ # - `image_improvements`
224
+ # - `image_improvements.account_level_settings`
225
+ # - `shipping_improvements`
226
+ # - `shipping_improvements.allow_shipping_improvements`
227
+ class UpdateAutomaticImprovementsRequest
228
+ include ::Google::Protobuf::MessageExts
229
+ extend ::Google::Protobuf::MessageExts::ClassMethods
230
+ end
231
+ end
232
+ end
233
+ end
234
+ end
235
+ end
@@ -35,7 +35,7 @@ module Google
35
35
  # Request message for the `ListOnlineReturnPolicies` method.
36
36
  # @!attribute [rw] parent
37
37
  # @return [::String]
38
- # Required. The merchant account for which to list return policies.
38
+ # Required. The business account for which to list return policies.
39
39
  # Format: `accounts/{account}`
40
40
  # @!attribute [rw] page_size
41
41
  # @return [::Integer]
@@ -84,21 +84,25 @@ module Google
84
84
  # Output only. Return policy ID generated by Google.
85
85
  # @!attribute [rw] label
86
86
  # @return [::String]
87
- # This field represents the unique user-defined label of the return policy.
88
- # It is important to note that the same label cannot be used in different
89
- # return policies for the same country. Unless a product specifies a specific
90
- # label attribute, policies will be automatically labeled as 'default'.
91
- # To assign a custom return policy to certain product groups, follow the
92
- # instructions provided in the [Return policy label]
87
+ # Required. Immutable. This field represents the unique user-defined label of
88
+ # the return policy. It is important to note that the same label cannot be
89
+ # used in different return policies for the same country. Unless a product
90
+ # specifies a specific label attribute, policies will be automatically
91
+ # labeled as 'default'. To assign a custom return policy to certain product
92
+ # groups, follow the instructions provided in the [Return policy label]
93
93
  # (https://support.google.com/merchants/answer/9445425).
94
94
  # The label can contain up to 50 characters.
95
95
  # @!attribute [rw] countries
96
96
  # @return [::Array<::String>]
97
- # The countries of sale where the return policy applies. The values
98
- # must be a valid 2 letter ISO 3166 code.
97
+ # Required. Immutable. The countries of sale where the return policy applies.
98
+ # The values must be a valid 2 letter ISO 3166 code.
99
99
  # @!attribute [rw] policy
100
100
  # @return [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy::Policy]
101
101
  # The return policy.
102
+ # @!attribute [rw] seasonal_overrides
103
+ # @return [::Array<::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy::SeasonalOverride>]
104
+ # Optional. Overrides to the general policy for orders placed during a
105
+ # specific set of time intervals.
102
106
  # @!attribute [rw] restocking_fee
103
107
  # @return [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy::RestockingFee]
104
108
  # The restocking fee that applies to all return reason categories. This would
@@ -117,8 +121,8 @@ module Google
117
121
  # and print the return label.
118
122
  # @!attribute [rw] return_policy_uri
119
123
  # @return [::String]
120
- # The return policy uri. This can used by Google to do a sanity check for the
121
- # policy. It must be a valid URL.
124
+ # Required. The return policy uri. This can used by Google to do a sanity
125
+ # check for the policy. It must be a valid URL.
122
126
  # @!attribute [rw] accept_defective_only
123
127
  # @return [::Boolean]
124
128
  # This field specifies if merchant only accepts defective products for
@@ -139,7 +143,7 @@ module Google
139
143
  # indicate that the customer pays the actual shipping cost.
140
144
  # @!attribute [rw] type
141
145
  # @return [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy::ReturnShippingFee::Type]
142
- # Type of return shipping fee.
146
+ # Required. Type of return shipping fee.
143
147
  # @!attribute [rw] fixed_fee
144
148
  # @return [::Google::Shopping::Type::Price]
145
149
  # Fixed return shipping fee amount. This value is only applicable when type
@@ -208,6 +212,33 @@ module Google
208
212
  end
209
213
  end
210
214
 
215
+ # @!attribute [rw] return_days
216
+ # @return [::Integer]
217
+ # Number of days (from the delivery date) that the product can be
218
+ # returned.
219
+ #
220
+ # Note: The following fields are mutually exclusive: `return_days`, `return_until_date`. If a field in that set is populated, all other fields in the set will automatically be cleared.
221
+ # @!attribute [rw] return_until_date
222
+ # @return [::Google::Type::Date]
223
+ # Fixed end date until which the product can be returned.
224
+ #
225
+ # Note: The following fields are mutually exclusive: `return_until_date`, `return_days`. If a field in that set is populated, all other fields in the set will automatically be cleared.
226
+ # @!attribute [rw] label
227
+ # @return [::String]
228
+ # Required. Display name of this seasonal override in Merchant Center.
229
+ # @!attribute [rw] start_date
230
+ # @return [::Google::Type::Date]
231
+ # Required. Defines the date range when this seasonal override applies.
232
+ # Both start_date and end_date are inclusive.
233
+ # The dates of the seasonal overrides should not overlap.
234
+ # @!attribute [rw] end_date
235
+ # @return [::Google::Type::Date]
236
+ # Required. seasonal override end date (inclusive).
237
+ class SeasonalOverride
238
+ include ::Google::Protobuf::MessageExts
239
+ extend ::Google::Protobuf::MessageExts::ClassMethods
240
+ end
241
+
211
242
  # The available return methods.
212
243
  module ReturnMethod
213
244
  # Default value. This value is unused.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-shopping-merchant-accounts-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-29 00:00:00.000000000 Z
10
+ date: 2025-03-18 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: gapic-common
@@ -128,6 +128,15 @@ files:
128
128
  - lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest/service_stub.rb
129
129
  - lib/google/shopping/merchant/accounts/v1beta/autofeedsettings_pb.rb
130
130
  - lib/google/shopping/merchant/accounts/v1beta/autofeedsettings_services_pb.rb
131
+ - lib/google/shopping/merchant/accounts/v1beta/automatic_improvements_service.rb
132
+ - lib/google/shopping/merchant/accounts/v1beta/automatic_improvements_service/client.rb
133
+ - lib/google/shopping/merchant/accounts/v1beta/automatic_improvements_service/credentials.rb
134
+ - lib/google/shopping/merchant/accounts/v1beta/automatic_improvements_service/paths.rb
135
+ - lib/google/shopping/merchant/accounts/v1beta/automatic_improvements_service/rest.rb
136
+ - lib/google/shopping/merchant/accounts/v1beta/automatic_improvements_service/rest/client.rb
137
+ - lib/google/shopping/merchant/accounts/v1beta/automatic_improvements_service/rest/service_stub.rb
138
+ - lib/google/shopping/merchant/accounts/v1beta/automaticimprovements_pb.rb
139
+ - lib/google/shopping/merchant/accounts/v1beta/automaticimprovements_services_pb.rb
131
140
  - lib/google/shopping/merchant/accounts/v1beta/business_identity_service.rb
132
141
  - lib/google/shopping/merchant/accounts/v1beta/business_identity_service/client.rb
133
142
  - lib/google/shopping/merchant/accounts/v1beta/business_identity_service/credentials.rb
@@ -249,6 +258,7 @@ files:
249
258
  - proto_docs/google/shopping/merchant/accounts/v1beta/accounts.rb
250
259
  - proto_docs/google/shopping/merchant/accounts/v1beta/accountservices.rb
251
260
  - proto_docs/google/shopping/merchant/accounts/v1beta/autofeedsettings.rb
261
+ - proto_docs/google/shopping/merchant/accounts/v1beta/automaticimprovements.rb
252
262
  - proto_docs/google/shopping/merchant/accounts/v1beta/businessidentity.rb
253
263
  - proto_docs/google/shopping/merchant/accounts/v1beta/businessinfo.rb
254
264
  - proto_docs/google/shopping/merchant/accounts/v1beta/customerservice.rb
@@ -288,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
288
298
  - !ruby/object:Gem::Version
289
299
  version: '0'
290
300
  requirements: []
291
- rubygems_version: 3.6.2
301
+ rubygems_version: 3.6.5
292
302
  specification_version: 4
293
303
  summary: Programmatically manage your Merchant Center Accounts.
294
304
  test_files: []