google-shopping-merchant-inventories-v1 0.a → 0.1.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 +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +154 -8
- data/lib/google/shopping/merchant/inventories/v1/inventories_common_pb.rb +55 -0
- data/lib/google/shopping/merchant/inventories/v1/local_inventory_service/client.rb +694 -0
- data/lib/google/shopping/merchant/inventories/v1/local_inventory_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/inventories/v1/local_inventory_service/paths.rb +71 -0
- data/lib/google/shopping/merchant/inventories/v1/local_inventory_service/rest/client.rb +647 -0
- data/lib/google/shopping/merchant/inventories/v1/local_inventory_service/rest/service_stub.rb +267 -0
- data/lib/google/shopping/merchant/inventories/v1/local_inventory_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/inventories/v1/local_inventory_service.rb +57 -0
- data/lib/google/shopping/merchant/inventories/v1/localinventory_pb.rb +56 -0
- data/lib/google/shopping/merchant/inventories/v1/localinventory_services_pb.rb +68 -0
- data/lib/google/shopping/merchant/inventories/v1/regional_inventory_service/client.rb +694 -0
- data/lib/google/shopping/merchant/inventories/v1/regional_inventory_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/inventories/v1/regional_inventory_service/paths.rb +71 -0
- data/lib/google/shopping/merchant/inventories/v1/regional_inventory_service/rest/client.rb +647 -0
- data/lib/google/shopping/merchant/inventories/v1/regional_inventory_service/rest/service_stub.rb +267 -0
- data/lib/google/shopping/merchant/inventories/v1/regional_inventory_service/rest.rb +55 -0
- data/lib/google/shopping/merchant/inventories/v1/regional_inventory_service.rb +58 -0
- data/lib/google/shopping/merchant/inventories/v1/regionalinventory_pb.rb +56 -0
- data/lib/google/shopping/merchant/inventories/v1/regionalinventory_services_pb.rb +69 -0
- data/lib/google/shopping/merchant/inventories/v1/rest.rb +40 -0
- data/lib/google/shopping/merchant/inventories/v1/version.rb +7 -2
- data/lib/google/shopping/merchant/inventories/v1.rb +48 -0
- data/lib/google-shopping-merchant-inventories-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +473 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/shopping/merchant/inventories/v1/inventories_common.rb +182 -0
- data/proto_docs/google/shopping/merchant/inventories/v1/localinventory.rb +124 -0
- data/proto_docs/google/shopping/merchant/inventories/v1/regionalinventory.rb +123 -0
- data/proto_docs/google/shopping/type/types.rb +210 -0
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +99 -9
@@ -0,0 +1,124 @@
|
|
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 Inventories
|
24
|
+
module V1
|
25
|
+
# Local inventory information for the product. Represents in-store information
|
26
|
+
# for a specific product at the store specified by
|
27
|
+
# {::Google::Shopping::Merchant::Inventories::V1::LocalInventory#store_code `storeCode`}.
|
28
|
+
# For a list of all accepted attribute values, see the [local product inventory
|
29
|
+
# data specification](https://support.google.com/merchants/answer/3061342).
|
30
|
+
# @!attribute [r] name
|
31
|
+
# @return [::String]
|
32
|
+
# Output only. The name of the `LocalInventory` resource.
|
33
|
+
# Format:
|
34
|
+
# `accounts/{account}/products/{product}/localInventories/{store_code}`
|
35
|
+
# @!attribute [r] account
|
36
|
+
# @return [::Integer]
|
37
|
+
# Output only. The account that owns the product. This field will be ignored
|
38
|
+
# if set by the client.
|
39
|
+
# @!attribute [rw] store_code
|
40
|
+
# @return [::String]
|
41
|
+
# Required. Immutable. Store code (the store ID from your Business Profile)
|
42
|
+
# of the physical store the product is sold in. See the [Local product
|
43
|
+
# inventory data
|
44
|
+
# specification](https://support.google.com/merchants/answer/3061342) for
|
45
|
+
# more information.
|
46
|
+
# @!attribute [rw] local_inventory_attributes
|
47
|
+
# @return [::Google::Shopping::Merchant::Inventories::V1::LocalInventoryAttributes]
|
48
|
+
# Optional. A list of local inventory attributes.
|
49
|
+
class LocalInventory
|
50
|
+
include ::Google::Protobuf::MessageExts
|
51
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
52
|
+
end
|
53
|
+
|
54
|
+
# Request message for the `ListLocalInventories` method.
|
55
|
+
# @!attribute [rw] parent
|
56
|
+
# @return [::String]
|
57
|
+
# Required. The `name` of the parent product to list local inventories for.
|
58
|
+
# Format:
|
59
|
+
# `accounts/{account}/products/{product}`
|
60
|
+
# @!attribute [rw] page_size
|
61
|
+
# @return [::Integer]
|
62
|
+
# The maximum number of `LocalInventory` resources for the given
|
63
|
+
# product to return. The service returns fewer than this value if the number
|
64
|
+
# of inventories for the given product is less that than the `pageSize`. The
|
65
|
+
# default value is 25000. The maximum value is 25000; If a value higher than
|
66
|
+
# the maximum is specified, then the `pageSize` will default to the maximum
|
67
|
+
# @!attribute [rw] page_token
|
68
|
+
# @return [::String]
|
69
|
+
# A page token, received from a previous `ListLocalInventories` call.
|
70
|
+
# Provide the page token to retrieve the subsequent page.
|
71
|
+
#
|
72
|
+
# When paginating, all other parameters provided to `ListLocalInventories`
|
73
|
+
# must match the call that provided the page token. The token returned as
|
74
|
+
# {::Google::Shopping::Merchant::Inventories::V1::ListLocalInventoriesResponse#next_page_token nextPageToken}
|
75
|
+
# in the response to the previous request.
|
76
|
+
class ListLocalInventoriesRequest
|
77
|
+
include ::Google::Protobuf::MessageExts
|
78
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
79
|
+
end
|
80
|
+
|
81
|
+
# Response message for the `ListLocalInventories` method.
|
82
|
+
# @!attribute [rw] local_inventories
|
83
|
+
# @return [::Array<::Google::Shopping::Merchant::Inventories::V1::LocalInventory>]
|
84
|
+
# The `LocalInventory` resources for the given product from the specified
|
85
|
+
# account.
|
86
|
+
# @!attribute [rw] next_page_token
|
87
|
+
# @return [::String]
|
88
|
+
# A token, which can be sent as `pageToken` to retrieve the next page.
|
89
|
+
# If this field is omitted, there are no subsequent pages.
|
90
|
+
class ListLocalInventoriesResponse
|
91
|
+
include ::Google::Protobuf::MessageExts
|
92
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
93
|
+
end
|
94
|
+
|
95
|
+
# Request message for the `InsertLocalInventory` method.
|
96
|
+
# @!attribute [rw] parent
|
97
|
+
# @return [::String]
|
98
|
+
# Required. The account and product where this inventory will be inserted.
|
99
|
+
# Format: `accounts/{account}/products/{product}`
|
100
|
+
# @!attribute [rw] local_inventory
|
101
|
+
# @return [::Google::Shopping::Merchant::Inventories::V1::LocalInventory]
|
102
|
+
# Required. Local inventory information of the product. If the product
|
103
|
+
# already has a `LocalInventory` resource for the same `storeCode`, full
|
104
|
+
# replacement of the `LocalInventory` resource is performed.
|
105
|
+
class InsertLocalInventoryRequest
|
106
|
+
include ::Google::Protobuf::MessageExts
|
107
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
108
|
+
end
|
109
|
+
|
110
|
+
# Request message for the `DeleteLocalInventory` method.
|
111
|
+
# @!attribute [rw] name
|
112
|
+
# @return [::String]
|
113
|
+
# Required. The name of the local inventory for the given product to delete.
|
114
|
+
# Format:
|
115
|
+
# `accounts/{account}/products/{product}/localInventories/{store_code}`
|
116
|
+
class DeleteLocalInventoryRequest
|
117
|
+
include ::Google::Protobuf::MessageExts
|
118
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
@@ -0,0 +1,123 @@
|
|
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 Inventories
|
24
|
+
module V1
|
25
|
+
# Regional inventory information for the product. Represents specific
|
26
|
+
# information like price and availability for a given product in a specific
|
27
|
+
# {::Google::Shopping::Merchant::Inventories::V1::RegionalInventory#region `region`}.
|
28
|
+
# For a list of all accepted attribute values, see the [regional product
|
29
|
+
# inventory data
|
30
|
+
# specification](https://support.google.com/merchants/answer/9698880).
|
31
|
+
# @!attribute [r] name
|
32
|
+
# @return [::String]
|
33
|
+
# Output only. The name of the `RegionalInventory` resource.
|
34
|
+
# Format:
|
35
|
+
# `{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}`
|
36
|
+
# @!attribute [r] account
|
37
|
+
# @return [::Integer]
|
38
|
+
# Output only. The account that owns the product. This field will be ignored
|
39
|
+
# if set by the client.
|
40
|
+
# @!attribute [rw] region
|
41
|
+
# @return [::String]
|
42
|
+
# Required. Immutable. ID of the region for this
|
43
|
+
# `RegionalInventory` resource. See the [Regional availability and
|
44
|
+
# pricing](https://support.google.com/merchants/answer/9698880) for more
|
45
|
+
# details.
|
46
|
+
# @!attribute [rw] regional_inventory_attributes
|
47
|
+
# @return [::Google::Shopping::Merchant::Inventories::V1::RegionalInventoryAttributes]
|
48
|
+
# Optional. A list of regional inventory attributes.
|
49
|
+
class RegionalInventory
|
50
|
+
include ::Google::Protobuf::MessageExts
|
51
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
52
|
+
end
|
53
|
+
|
54
|
+
# Request message for the `ListRegionalInventories` method.
|
55
|
+
# @!attribute [rw] parent
|
56
|
+
# @return [::String]
|
57
|
+
# Required. The `name` of the parent product to list `RegionalInventory`
|
58
|
+
# resources for. Format: `accounts/{account}/products/{product}`
|
59
|
+
# @!attribute [rw] page_size
|
60
|
+
# @return [::Integer]
|
61
|
+
# The maximum number of `RegionalInventory` resources for the given product
|
62
|
+
# to return. The service returns fewer than this value if the number of
|
63
|
+
# inventories for the given product is less that than the `pageSize`. The
|
64
|
+
# default value is 25000. The maximum value is 100000; If a value higher than
|
65
|
+
# the maximum is specified, then the `pageSize` will default to the maximum.
|
66
|
+
# @!attribute [rw] page_token
|
67
|
+
# @return [::String]
|
68
|
+
# A page token, received from a previous `ListRegionalInventories` call.
|
69
|
+
# Provide the page token to retrieve the subsequent page.
|
70
|
+
#
|
71
|
+
# When paginating, all other parameters provided to `ListRegionalInventories`
|
72
|
+
# must match the call that provided the page token. The token returned as
|
73
|
+
# {::Google::Shopping::Merchant::Inventories::V1::ListRegionalInventoriesResponse#next_page_token nextPageToken}
|
74
|
+
# in the response to the previous request.
|
75
|
+
class ListRegionalInventoriesRequest
|
76
|
+
include ::Google::Protobuf::MessageExts
|
77
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
78
|
+
end
|
79
|
+
|
80
|
+
# Response message for the `ListRegionalInventories` method.
|
81
|
+
# @!attribute [rw] regional_inventories
|
82
|
+
# @return [::Array<::Google::Shopping::Merchant::Inventories::V1::RegionalInventory>]
|
83
|
+
# The `RegionalInventory` resources for the given product from the specified
|
84
|
+
# account.
|
85
|
+
# @!attribute [rw] next_page_token
|
86
|
+
# @return [::String]
|
87
|
+
# A token, which can be sent as `pageToken` to retrieve the next page.
|
88
|
+
# If this field is omitted, there are no subsequent pages.
|
89
|
+
class ListRegionalInventoriesResponse
|
90
|
+
include ::Google::Protobuf::MessageExts
|
91
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
92
|
+
end
|
93
|
+
|
94
|
+
# Request message for the `InsertRegionalInventory` method.
|
95
|
+
# @!attribute [rw] parent
|
96
|
+
# @return [::String]
|
97
|
+
# Required. The account and product where this inventory will be inserted.
|
98
|
+
# Format: `accounts/{account}/products/{product}`
|
99
|
+
# @!attribute [rw] regional_inventory
|
100
|
+
# @return [::Google::Shopping::Merchant::Inventories::V1::RegionalInventory]
|
101
|
+
# Required. Regional inventory information to add to the product. If the
|
102
|
+
# product already has a `RegionalInventory` resource for the same `region`,
|
103
|
+
# full replacement of the `RegionalInventory` resource is performed.
|
104
|
+
class InsertRegionalInventoryRequest
|
105
|
+
include ::Google::Protobuf::MessageExts
|
106
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
107
|
+
end
|
108
|
+
|
109
|
+
# Request message for the `DeleteRegionalInventory` method.
|
110
|
+
# @!attribute [rw] name
|
111
|
+
# @return [::String]
|
112
|
+
# Required. The name of the `RegionalInventory` resource to delete.
|
113
|
+
# Format:
|
114
|
+
# `accounts/{account}/products/{product}/regionalInventories/{region}`
|
115
|
+
class DeleteRegionalInventoryRequest
|
116
|
+
include ::Google::Protobuf::MessageExts
|
117
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
@@ -0,0 +1,210 @@
|
|
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 Type
|
23
|
+
# The weight represented as the value in string and the unit.
|
24
|
+
# @!attribute [rw] amount_micros
|
25
|
+
# @return [::Integer]
|
26
|
+
# Required. The weight represented as a number in micros (1 million micros is
|
27
|
+
# an equivalent to one's currency standard unit, for example, 1 kg = 1000000
|
28
|
+
# micros).
|
29
|
+
# This field can also be set as infinity by setting to -1.
|
30
|
+
# This field only support -1 and positive value.
|
31
|
+
# @!attribute [rw] unit
|
32
|
+
# @return [::Google::Shopping::Type::Weight::WeightUnit]
|
33
|
+
# Required. The weight unit.
|
34
|
+
# Acceptable values are: kg and lb
|
35
|
+
class Weight
|
36
|
+
include ::Google::Protobuf::MessageExts
|
37
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
38
|
+
|
39
|
+
# The weight unit.
|
40
|
+
module WeightUnit
|
41
|
+
# unit unspecified
|
42
|
+
WEIGHT_UNIT_UNSPECIFIED = 0
|
43
|
+
|
44
|
+
# lb unit.
|
45
|
+
POUND = 1
|
46
|
+
|
47
|
+
# kg unit.
|
48
|
+
KILOGRAM = 2
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# The price represented as a number and currency.
|
53
|
+
# @!attribute [rw] amount_micros
|
54
|
+
# @return [::Integer]
|
55
|
+
# The price represented as a number in micros (1 million micros is an
|
56
|
+
# equivalent to one's currency standard unit, for example, 1 USD = 1000000
|
57
|
+
# micros).
|
58
|
+
# @!attribute [rw] currency_code
|
59
|
+
# @return [::String]
|
60
|
+
# The currency of the price using three-letter acronyms according to [ISO
|
61
|
+
# 4217](http://en.wikipedia.org/wiki/ISO_4217).
|
62
|
+
class Price
|
63
|
+
include ::Google::Protobuf::MessageExts
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
|
+
end
|
66
|
+
|
67
|
+
# A message that represents custom attributes. Exactly one of `value` or
|
68
|
+
# `group_values` must not be empty.
|
69
|
+
# @!attribute [rw] name
|
70
|
+
# @return [::String]
|
71
|
+
# The name of the attribute.
|
72
|
+
# @!attribute [rw] value
|
73
|
+
# @return [::String]
|
74
|
+
# The value of the attribute. If `value` is not empty, `group_values` must be
|
75
|
+
# empty.
|
76
|
+
# @!attribute [rw] group_values
|
77
|
+
# @return [::Array<::Google::Shopping::Type::CustomAttribute>]
|
78
|
+
# Subattributes within this attribute group. If
|
79
|
+
# `group_values` is not empty, `value` must be empty.
|
80
|
+
class CustomAttribute
|
81
|
+
include ::Google::Protobuf::MessageExts
|
82
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
83
|
+
end
|
84
|
+
|
85
|
+
# Destinations available for a product.
|
86
|
+
#
|
87
|
+
# Destinations are used in Merchant Center to allow you to control where the
|
88
|
+
# products from your data feed should be displayed.
|
89
|
+
class Destination
|
90
|
+
include ::Google::Protobuf::MessageExts
|
91
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
92
|
+
|
93
|
+
# Destination values.
|
94
|
+
module DestinationEnum
|
95
|
+
# Not specified.
|
96
|
+
DESTINATION_ENUM_UNSPECIFIED = 0
|
97
|
+
|
98
|
+
# [Shopping ads](https://support.google.com/google-ads/answer/2454022).
|
99
|
+
SHOPPING_ADS = 1
|
100
|
+
|
101
|
+
# [Display ads](https://support.google.com/merchants/answer/6069387).
|
102
|
+
DISPLAY_ADS = 2
|
103
|
+
|
104
|
+
# [Local inventory
|
105
|
+
# ads](https://support.google.com/merchants/answer/3057972).
|
106
|
+
LOCAL_INVENTORY_ADS = 3
|
107
|
+
|
108
|
+
# [Free listings](https://support.google.com/merchants/answer/9199328).
|
109
|
+
FREE_LISTINGS = 4
|
110
|
+
|
111
|
+
# [Free local product
|
112
|
+
# listings](https://support.google.com/merchants/answer/9825611).
|
113
|
+
FREE_LOCAL_LISTINGS = 5
|
114
|
+
|
115
|
+
# [YouTube Shopping](https://support.google.com/merchants/answer/12362804).
|
116
|
+
YOUTUBE_SHOPPING = 6
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
# Reporting contexts that your account and product issues apply to.
|
121
|
+
#
|
122
|
+
# Reporting contexts are groups of surfaces and formats for product results on
|
123
|
+
# Google. They can represent the entire destination (for example, [Shopping
|
124
|
+
# ads](https://support.google.com/merchants/answer/6149970)) or a subset of
|
125
|
+
# formats within a destination (for example, [Demand Gen
|
126
|
+
# ads](https://support.google.com/merchants/answer/13389785)).
|
127
|
+
class ReportingContext
|
128
|
+
include ::Google::Protobuf::MessageExts
|
129
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
130
|
+
|
131
|
+
# Reporting context values.
|
132
|
+
module ReportingContextEnum
|
133
|
+
# Not specified.
|
134
|
+
REPORTING_CONTEXT_ENUM_UNSPECIFIED = 0
|
135
|
+
|
136
|
+
# [Shopping ads](https://support.google.com/merchants/answer/6149970).
|
137
|
+
SHOPPING_ADS = 1
|
138
|
+
|
139
|
+
# Deprecated: Use `DEMAND_GEN_ADS` instead.
|
140
|
+
# [Discovery and Demand Gen
|
141
|
+
# ads](https://support.google.com/merchants/answer/13389785).
|
142
|
+
DISCOVERY_ADS = 2
|
143
|
+
|
144
|
+
# [Demand Gen ads](https://support.google.com/merchants/answer/13389785).
|
145
|
+
DEMAND_GEN_ADS = 13
|
146
|
+
|
147
|
+
# [Demand Gen ads on Discover
|
148
|
+
# surface](https://support.google.com/merchants/answer/13389785).
|
149
|
+
DEMAND_GEN_ADS_DISCOVER_SURFACE = 14
|
150
|
+
|
151
|
+
# [Video ads](https://support.google.com/google-ads/answer/6340491).
|
152
|
+
VIDEO_ADS = 3
|
153
|
+
|
154
|
+
# [Display ads](https://support.google.com/merchants/answer/6069387).
|
155
|
+
DISPLAY_ADS = 4
|
156
|
+
|
157
|
+
# [Local inventory
|
158
|
+
# ads](https://support.google.com/merchants/answer/3271956).
|
159
|
+
LOCAL_INVENTORY_ADS = 5
|
160
|
+
|
161
|
+
# [Vehicle inventory
|
162
|
+
# ads](https://support.google.com/merchants/answer/11544533).
|
163
|
+
VEHICLE_INVENTORY_ADS = 6
|
164
|
+
|
165
|
+
# [Free product
|
166
|
+
# listings](https://support.google.com/merchants/answer/9199328).
|
167
|
+
FREE_LISTINGS = 7
|
168
|
+
|
169
|
+
# [Free local product
|
170
|
+
# listings](https://support.google.com/merchants/answer/9825611).
|
171
|
+
FREE_LOCAL_LISTINGS = 8
|
172
|
+
|
173
|
+
# [Free local vehicle
|
174
|
+
# listings](https://support.google.com/merchants/answer/11544533).
|
175
|
+
FREE_LOCAL_VEHICLE_LISTINGS = 9
|
176
|
+
|
177
|
+
# [YouTube
|
178
|
+
# Shopping](https://support.google.com/merchants/answer/13478370).
|
179
|
+
YOUTUBE_SHOPPING = 10
|
180
|
+
|
181
|
+
# [Cloud retail](https://cloud.google.com/solutions/retail).
|
182
|
+
CLOUD_RETAIL = 11
|
183
|
+
|
184
|
+
# [Local cloud retail](https://cloud.google.com/solutions/retail).
|
185
|
+
LOCAL_CLOUD_RETAIL = 12
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
# [Channel](https://support.google.com/merchants/answer/7361332) of a product.
|
190
|
+
#
|
191
|
+
# Channel is used to distinguish between online and local products.
|
192
|
+
class Channel
|
193
|
+
include ::Google::Protobuf::MessageExts
|
194
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
195
|
+
|
196
|
+
# Channel values.
|
197
|
+
module ChannelEnum
|
198
|
+
# Not specified.
|
199
|
+
CHANNEL_ENUM_UNSPECIFIED = 0
|
200
|
+
|
201
|
+
# Online product.
|
202
|
+
ONLINE = 1
|
203
|
+
|
204
|
+
# Local product.
|
205
|
+
LOCAL = 2
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
210
|
+
end
|
@@ -0,0 +1,45 @@
|
|
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 Type
|
22
|
+
# Represents a time interval, encoded as a Timestamp start (inclusive) and a
|
23
|
+
# Timestamp end (exclusive).
|
24
|
+
#
|
25
|
+
# The start must be less than or equal to the end.
|
26
|
+
# When the start equals the end, the interval is empty (matches no time).
|
27
|
+
# When both start and end are unspecified, the interval matches any time.
|
28
|
+
# @!attribute [rw] start_time
|
29
|
+
# @return [::Google::Protobuf::Timestamp]
|
30
|
+
# Optional. Inclusive start of the interval.
|
31
|
+
#
|
32
|
+
# If specified, a Timestamp matching this interval will have to be the same
|
33
|
+
# or after the start.
|
34
|
+
# @!attribute [rw] end_time
|
35
|
+
# @return [::Google::Protobuf::Timestamp]
|
36
|
+
# Optional. Exclusive end of the interval.
|
37
|
+
#
|
38
|
+
# If specified, a Timestamp matching this interval will have to be before the
|
39
|
+
# end.
|
40
|
+
class Interval
|
41
|
+
include ::Google::Protobuf::MessageExts
|
42
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
metadata
CHANGED
@@ -1,27 +1,117 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-shopping-merchant-inventories-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
11
|
-
dependencies:
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: gapic-common
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - "~>"
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '1.0'
|
19
|
+
type: :runtime
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - "~>"
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '1.0'
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: google-cloud-errors
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.0'
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: google-shopping-type
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.0'
|
47
|
+
type: :runtime
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.0'
|
54
|
+
description: 'Merchant API consists of multiple Sub-APIs. Accounts Sub-API: Enables
|
55
|
+
you to programmatically manage your accounts. Conversions Sub-API: Enables you to
|
56
|
+
programmatically manage your conversion sources for a merchant account. Datasources
|
57
|
+
Sub-API: Enables you to programmatically manage your datasources. Inventories Sub-API:
|
58
|
+
This bundle enables you to programmatically manage your local and regional inventories.
|
59
|
+
Local Feeds Partnerships Sub-API: This bundle enables LFP partners to submit local
|
60
|
+
inventories for a merchant. Notifications Sub-API: This bundle enables you to programmatically
|
61
|
+
manage your notification subscriptions. Products Sub-API: This bundle enables you
|
62
|
+
to programmatically manage your products. Promotions Sub-API: This bundle enables
|
63
|
+
you to programmatically manage your promotions for products. Quota Sub-API: This
|
64
|
+
bundle enables you to list your quotas for all APIs you are using. Reports Sub-API:
|
65
|
+
This bundle enables you to programmatically retrieve reports and insights about
|
66
|
+
products, their performance and their competitive environment. Note that google-shopping-merchant-inventories-v1
|
67
|
+
is a version-specific client library. For most uses, we recommend installing the
|
68
|
+
main client library google-shopping-merchant-inventories instead. See the readme
|
69
|
+
for more details.'
|
17
70
|
email: googleapis-packages@google.com
|
18
71
|
executables: []
|
19
72
|
extensions: []
|
20
73
|
extra_rdoc_files: []
|
21
74
|
files:
|
75
|
+
- ".yardopts"
|
76
|
+
- AUTHENTICATION.md
|
22
77
|
- LICENSE.md
|
23
78
|
- README.md
|
79
|
+
- lib/google-shopping-merchant-inventories-v1.rb
|
80
|
+
- lib/google/shopping/merchant/inventories/v1.rb
|
81
|
+
- lib/google/shopping/merchant/inventories/v1/inventories_common_pb.rb
|
82
|
+
- lib/google/shopping/merchant/inventories/v1/local_inventory_service.rb
|
83
|
+
- lib/google/shopping/merchant/inventories/v1/local_inventory_service/client.rb
|
84
|
+
- lib/google/shopping/merchant/inventories/v1/local_inventory_service/credentials.rb
|
85
|
+
- lib/google/shopping/merchant/inventories/v1/local_inventory_service/paths.rb
|
86
|
+
- lib/google/shopping/merchant/inventories/v1/local_inventory_service/rest.rb
|
87
|
+
- lib/google/shopping/merchant/inventories/v1/local_inventory_service/rest/client.rb
|
88
|
+
- lib/google/shopping/merchant/inventories/v1/local_inventory_service/rest/service_stub.rb
|
89
|
+
- lib/google/shopping/merchant/inventories/v1/localinventory_pb.rb
|
90
|
+
- lib/google/shopping/merchant/inventories/v1/localinventory_services_pb.rb
|
91
|
+
- lib/google/shopping/merchant/inventories/v1/regional_inventory_service.rb
|
92
|
+
- lib/google/shopping/merchant/inventories/v1/regional_inventory_service/client.rb
|
93
|
+
- lib/google/shopping/merchant/inventories/v1/regional_inventory_service/credentials.rb
|
94
|
+
- lib/google/shopping/merchant/inventories/v1/regional_inventory_service/paths.rb
|
95
|
+
- lib/google/shopping/merchant/inventories/v1/regional_inventory_service/rest.rb
|
96
|
+
- lib/google/shopping/merchant/inventories/v1/regional_inventory_service/rest/client.rb
|
97
|
+
- lib/google/shopping/merchant/inventories/v1/regional_inventory_service/rest/service_stub.rb
|
98
|
+
- lib/google/shopping/merchant/inventories/v1/regionalinventory_pb.rb
|
99
|
+
- lib/google/shopping/merchant/inventories/v1/regionalinventory_services_pb.rb
|
100
|
+
- lib/google/shopping/merchant/inventories/v1/rest.rb
|
24
101
|
- lib/google/shopping/merchant/inventories/v1/version.rb
|
102
|
+
- proto_docs/README.md
|
103
|
+
- proto_docs/google/api/client.rb
|
104
|
+
- proto_docs/google/api/field_behavior.rb
|
105
|
+
- proto_docs/google/api/launch_stage.rb
|
106
|
+
- proto_docs/google/api/resource.rb
|
107
|
+
- proto_docs/google/protobuf/duration.rb
|
108
|
+
- proto_docs/google/protobuf/empty.rb
|
109
|
+
- proto_docs/google/protobuf/timestamp.rb
|
110
|
+
- proto_docs/google/shopping/merchant/inventories/v1/inventories_common.rb
|
111
|
+
- proto_docs/google/shopping/merchant/inventories/v1/localinventory.rb
|
112
|
+
- proto_docs/google/shopping/merchant/inventories/v1/regionalinventory.rb
|
113
|
+
- proto_docs/google/shopping/type/types.rb
|
114
|
+
- proto_docs/google/type/interval.rb
|
25
115
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
26
116
|
licenses:
|
27
117
|
- Apache-2.0
|
@@ -33,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
33
123
|
requirements:
|
34
124
|
- - ">="
|
35
125
|
- !ruby/object:Gem::Version
|
36
|
-
version: '3.
|
126
|
+
version: '3.1'
|
37
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
128
|
requirements:
|
39
129
|
- - ">="
|
@@ -42,5 +132,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
132
|
requirements: []
|
43
133
|
rubygems_version: 3.6.9
|
44
134
|
specification_version: 4
|
45
|
-
summary:
|
135
|
+
summary: Programmatically manage your Merchant Center Accounts.
|
46
136
|
test_files: []
|