google-shopping-merchant-data_sources-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/data_sources/v1/data_sources_service/client.rb +967 -0
- data/lib/google/shopping/merchant/data_sources/v1/data_sources_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/data_sources/v1/data_sources_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/data_sources/v1/data_sources_service/rest/client.rb +899 -0
- data/lib/google/shopping/merchant/data_sources/v1/data_sources_service/rest/service_stub.rb +452 -0
- data/lib/google/shopping/merchant/data_sources/v1/data_sources_service/rest.rb +56 -0
- data/lib/google/shopping/merchant/data_sources/v1/data_sources_service.rb +59 -0
- data/lib/google/shopping/merchant/data_sources/v1/file_uploads_service/client.rb +467 -0
- data/lib/google/shopping/merchant/data_sources/v1/file_uploads_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/data_sources/v1/file_uploads_service/paths.rb +54 -0
- data/lib/google/shopping/merchant/data_sources/v1/file_uploads_service/rest/client.rb +434 -0
- data/lib/google/shopping/merchant/data_sources/v1/file_uploads_service/rest/service_stub.rb +144 -0
- data/lib/google/shopping/merchant/data_sources/v1/file_uploads_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/data_sources/v1/file_uploads_service.rb +57 -0
- data/lib/google/shopping/merchant/data_sources/v1/rest.rb +40 -0
- data/lib/google/shopping/merchant/data_sources/v1/version.rb +7 -2
- data/lib/google/shopping/merchant/data_sources/v1.rb +48 -0
- data/lib/google/shopping/merchant/datasources/v1/datasources_pb.rb +64 -0
- data/lib/google/shopping/merchant/datasources/v1/datasources_services_pb.rb +65 -0
- data/lib/google/shopping/merchant/datasources/v1/datasourcetypes_pb.rb +57 -0
- data/lib/google/shopping/merchant/datasources/v1/fileinputs_pb.rb +52 -0
- data/lib/google/shopping/merchant/datasources/v1/fileuploads_pb.rb +55 -0
- data/lib/google/shopping/merchant/datasources/v1/fileuploads_services_pb.rb +48 -0
- data/lib/google-shopping-merchant-data_sources-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/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/shopping/merchant/datasources/v1/datasources.rb +231 -0
- data/proto_docs/google/shopping/merchant/datasources/v1/datasourcetypes.rb +298 -0
- data/proto_docs/google/shopping/merchant/datasources/v1/fileinputs.rb +145 -0
- data/proto_docs/google/shopping/merchant/datasources/v1/fileuploads.rb +131 -0
- data/proto_docs/google/shopping/type/types.rb +210 -0
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/timeofday.rb +45 -0
- metadata +103 -9
@@ -0,0 +1,145 @@
|
|
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 DataSources
|
24
|
+
module V1
|
25
|
+
# The data specific for file data sources. This field is empty for other
|
26
|
+
# data source inputs.
|
27
|
+
# @!attribute [rw] fetch_settings
|
28
|
+
# @return [::Google::Shopping::Merchant::DataSources::V1::FileInput::FetchSettings]
|
29
|
+
# Optional. Fetch details to deliver the data source. It contains settings
|
30
|
+
# for `FETCH` and `GOOGLE_SHEETS` file input types. The required fields vary
|
31
|
+
# based on the frequency of fetching.
|
32
|
+
# @!attribute [rw] file_name
|
33
|
+
# @return [::String]
|
34
|
+
# Optional. The file name of the data source. Required for `UPLOAD` file
|
35
|
+
# input type.
|
36
|
+
# @!attribute [r] file_input_type
|
37
|
+
# @return [::Google::Shopping::Merchant::DataSources::V1::FileInput::FileInputType]
|
38
|
+
# Output only. The type of file input.
|
39
|
+
class FileInput
|
40
|
+
include ::Google::Protobuf::MessageExts
|
41
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
42
|
+
|
43
|
+
# Fetch details to deliver the data source.
|
44
|
+
# @!attribute [rw] enabled
|
45
|
+
# @return [::Boolean]
|
46
|
+
# Optional. Enables or pauses the fetch schedule.
|
47
|
+
# @!attribute [rw] day_of_month
|
48
|
+
# @return [::Integer]
|
49
|
+
# Optional. The day of the month when the data source file should be
|
50
|
+
# fetched (1-31). This field can only be set for monthly frequency.
|
51
|
+
# @!attribute [rw] time_of_day
|
52
|
+
# @return [::Google::Type::TimeOfDay]
|
53
|
+
# Optional. The hour of the day when the data source file should be
|
54
|
+
# fetched. Minutes and seconds are not supported and will be ignored.
|
55
|
+
# @!attribute [rw] day_of_week
|
56
|
+
# @return [::Google::Type::DayOfWeek]
|
57
|
+
# Optional. The day of the week when the data source file should be
|
58
|
+
# fetched. This field can only be set for weekly frequency.
|
59
|
+
# @!attribute [rw] time_zone
|
60
|
+
# @return [::String]
|
61
|
+
# Optional. [Time zone](https://cldr.unicode.org) used for schedule. UTC by
|
62
|
+
# default. For example, "America/Los_Angeles".
|
63
|
+
# @!attribute [rw] frequency
|
64
|
+
# @return [::Google::Shopping::Merchant::DataSources::V1::FileInput::FetchSettings::Frequency]
|
65
|
+
# Required. The frequency describing fetch schedule.
|
66
|
+
# @!attribute [rw] fetch_uri
|
67
|
+
# @return [::String]
|
68
|
+
# Optional. The URL where the data source file can be fetched. Google
|
69
|
+
# Merchant Center supports automatic scheduled uploads using the HTTP,
|
70
|
+
# HTTPS or SFTP protocols, so the value will need to be a valid link using
|
71
|
+
# one of those three protocols. Immutable for Google Sheets files.
|
72
|
+
# @!attribute [rw] username
|
73
|
+
# @return [::String]
|
74
|
+
# Optional. An optional user name for
|
75
|
+
# {::Google::Shopping::Merchant::DataSources::V1::FileInput::FetchSettings#fetch_uri fetch_uri}.
|
76
|
+
# Used for [submitting data sources through
|
77
|
+
# SFTP](https://support.google.com/merchants/answer/13813117).
|
78
|
+
# @!attribute [rw] password
|
79
|
+
# @return [::String]
|
80
|
+
# Optional. An optional password for
|
81
|
+
# {::Google::Shopping::Merchant::DataSources::V1::FileInput::FetchSettings#fetch_uri fetch_uri}.
|
82
|
+
# Used for [submitting data sources through
|
83
|
+
# SFTP](https://support.google.com/merchants/answer/13813117).
|
84
|
+
class FetchSettings
|
85
|
+
include ::Google::Protobuf::MessageExts
|
86
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
87
|
+
|
88
|
+
# The required fields vary based on the frequency of fetching. For a
|
89
|
+
# monthly
|
90
|
+
# fetch schedule,
|
91
|
+
# `day of
|
92
|
+
# month`
|
93
|
+
# and
|
94
|
+
# [hour of
|
95
|
+
# day][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#timeofday]
|
96
|
+
# are required. For a weekly fetch schedule,
|
97
|
+
# [day of
|
98
|
+
# week][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#dayofweek]
|
99
|
+
# and [hour of
|
100
|
+
# day][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#timeofday]
|
101
|
+
# are required. For a daily fetch schedule, only an [hour of
|
102
|
+
# day][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#timeofday]
|
103
|
+
# is required.
|
104
|
+
module Frequency
|
105
|
+
# Frequency unspecified.
|
106
|
+
FREQUENCY_UNSPECIFIED = 0
|
107
|
+
|
108
|
+
# The fetch happens every day.
|
109
|
+
FREQUENCY_DAILY = 1
|
110
|
+
|
111
|
+
# The fetch happens every week.
|
112
|
+
FREQUENCY_WEEKLY = 2
|
113
|
+
|
114
|
+
# The fetch happens every month.
|
115
|
+
FREQUENCY_MONTHLY = 3
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
# The method of file delivery.
|
120
|
+
module FileInputType
|
121
|
+
# File input type unspecified.
|
122
|
+
FILE_INPUT_TYPE_UNSPECIFIED = 0
|
123
|
+
|
124
|
+
# The file is uploaded through SFTP, Google Cloud Storage or manually in
|
125
|
+
# the Merchant Center.
|
126
|
+
UPLOAD = 1
|
127
|
+
|
128
|
+
# The file is fetched from the configured
|
129
|
+
# {::Google::Shopping::Merchant::DataSources::V1::FileInput::FetchSettings#fetch_uri fetch_uri}.
|
130
|
+
FETCH = 2
|
131
|
+
|
132
|
+
# The file is fetched from Google Sheets specified in the
|
133
|
+
# {::Google::Shopping::Merchant::DataSources::V1::FileInput::FetchSettings#fetch_uri fetch_uri}.
|
134
|
+
# However, you can't set up `GOOGLE_SHEETS` as a data source through the
|
135
|
+
# API. To add `GOOGLE_SHEETS` as a data source through the Merchant Center,
|
136
|
+
# see [Add products to Merchant
|
137
|
+
# Center](https://support.google.com/merchants/answer/12158053).
|
138
|
+
GOOGLE_SHEETS = 3
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
@@ -0,0 +1,131 @@
|
|
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 DataSources
|
24
|
+
module V1
|
25
|
+
# The file upload of a specific data source, that is, the result of the
|
26
|
+
# retrieval of the data source at a certain timestamp computed asynchronously
|
27
|
+
# when the data source processing is finished. Only applicable to file data
|
28
|
+
# sources.
|
29
|
+
# @!attribute [rw] name
|
30
|
+
# @return [::String]
|
31
|
+
# Identifier. The name of the data source file upload.
|
32
|
+
# Format:
|
33
|
+
# `{datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}`
|
34
|
+
# @!attribute [r] data_source_id
|
35
|
+
# @return [::Integer]
|
36
|
+
# Output only. The data source id.
|
37
|
+
# @!attribute [r] processing_state
|
38
|
+
# @return [::Google::Shopping::Merchant::DataSources::V1::FileUpload::ProcessingState]
|
39
|
+
# Output only. The processing state of the data source.
|
40
|
+
# @!attribute [r] issues
|
41
|
+
# @return [::Array<::Google::Shopping::Merchant::DataSources::V1::FileUpload::Issue>]
|
42
|
+
# Output only. The list of issues occurring in the data source.
|
43
|
+
# @!attribute [r] items_total
|
44
|
+
# @return [::Integer]
|
45
|
+
# Output only. The number of items in the data source that were processed.
|
46
|
+
# @!attribute [r] items_created
|
47
|
+
# @return [::Integer]
|
48
|
+
# Output only. The number of items in the data source that were created.
|
49
|
+
# @!attribute [r] items_updated
|
50
|
+
# @return [::Integer]
|
51
|
+
# Output only. The number of items in the data source that were updated.
|
52
|
+
# @!attribute [r] upload_time
|
53
|
+
# @return [::Google::Protobuf::Timestamp]
|
54
|
+
# Output only. The date at which the file of the data source was uploaded.
|
55
|
+
class FileUpload
|
56
|
+
include ::Google::Protobuf::MessageExts
|
57
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
58
|
+
|
59
|
+
# An error occurring in the data source, like "invalid price".
|
60
|
+
# @!attribute [r] title
|
61
|
+
# @return [::String]
|
62
|
+
# Output only. The title of the issue, for example, "Item too big".
|
63
|
+
# @!attribute [r] description
|
64
|
+
# @return [::String]
|
65
|
+
# Output only. The error description, for example, "Your data source
|
66
|
+
# contains items which have too many attributes, or are too big. These
|
67
|
+
# items will be dropped".
|
68
|
+
# @!attribute [r] code
|
69
|
+
# @return [::String]
|
70
|
+
# Output only. The code of the error, for example,
|
71
|
+
# "validation/invalid_value". Returns
|
72
|
+
# "?" if the code is unknown.
|
73
|
+
# @!attribute [r] count
|
74
|
+
# @return [::Integer]
|
75
|
+
# Output only. The number of occurrences of the error in the file upload.
|
76
|
+
# @!attribute [r] severity
|
77
|
+
# @return [::Google::Shopping::Merchant::DataSources::V1::FileUpload::Issue::Severity]
|
78
|
+
# Output only. The severity of the issue.
|
79
|
+
# @!attribute [r] documentation_uri
|
80
|
+
# @return [::String]
|
81
|
+
# Output only. Link to the documentation explaining the issue in more
|
82
|
+
# details, if available.
|
83
|
+
class Issue
|
84
|
+
include ::Google::Protobuf::MessageExts
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
|
+
|
87
|
+
# The severity of the issue.
|
88
|
+
module Severity
|
89
|
+
# Severity unspecified.
|
90
|
+
SEVERITY_UNSPECIFIED = 0
|
91
|
+
|
92
|
+
# The issue is the warning.
|
93
|
+
WARNING = 1
|
94
|
+
|
95
|
+
# The issue is an error.
|
96
|
+
ERROR = 2
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# The processing state of the data source.
|
101
|
+
module ProcessingState
|
102
|
+
# Processing state unspecified.
|
103
|
+
PROCESSING_STATE_UNSPECIFIED = 0
|
104
|
+
|
105
|
+
# The data source could not be processed or all the items had errors.
|
106
|
+
FAILED = 1
|
107
|
+
|
108
|
+
# The data source is being processed.
|
109
|
+
IN_PROGRESS = 2
|
110
|
+
|
111
|
+
# The data source was processed successfully, though some items might have
|
112
|
+
# had errors.
|
113
|
+
SUCCEEDED = 3
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
# Request message for the GetFileUploadRequest method.
|
118
|
+
# @!attribute [rw] name
|
119
|
+
# @return [::String]
|
120
|
+
# Required. The name of the data source file upload to retrieve.
|
121
|
+
# Format:
|
122
|
+
# `accounts/{account}/dataSources/{datasource}/fileUploads/latest`
|
123
|
+
class GetFileUploadRequest
|
124
|
+
include ::Google::Protobuf::MessageExts
|
125
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
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,49 @@
|
|
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 day of the week.
|
23
|
+
module DayOfWeek
|
24
|
+
# The day of the week is unspecified.
|
25
|
+
DAY_OF_WEEK_UNSPECIFIED = 0
|
26
|
+
|
27
|
+
# Monday
|
28
|
+
MONDAY = 1
|
29
|
+
|
30
|
+
# Tuesday
|
31
|
+
TUESDAY = 2
|
32
|
+
|
33
|
+
# Wednesday
|
34
|
+
WEDNESDAY = 3
|
35
|
+
|
36
|
+
# Thursday
|
37
|
+
THURSDAY = 4
|
38
|
+
|
39
|
+
# Friday
|
40
|
+
FRIDAY = 5
|
41
|
+
|
42
|
+
# Saturday
|
43
|
+
SATURDAY = 6
|
44
|
+
|
45
|
+
# Sunday
|
46
|
+
SUNDAY = 7
|
47
|
+
end
|
48
|
+
end
|
49
|
+
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 of day. The date and time zone are either not significant
|
23
|
+
# or are specified elsewhere. An API may choose to allow leap seconds. Related
|
24
|
+
# types are [google.type.Date][google.type.Date] and
|
25
|
+
# `google.protobuf.Timestamp`.
|
26
|
+
# @!attribute [rw] hours
|
27
|
+
# @return [::Integer]
|
28
|
+
# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
|
29
|
+
# to allow the value "24:00:00" for scenarios like business closing time.
|
30
|
+
# @!attribute [rw] minutes
|
31
|
+
# @return [::Integer]
|
32
|
+
# Minutes of hour of day. Must be from 0 to 59.
|
33
|
+
# @!attribute [rw] seconds
|
34
|
+
# @return [::Integer]
|
35
|
+
# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
|
36
|
+
# allow the value 60 if it allows leap-seconds.
|
37
|
+
# @!attribute [rw] nanos
|
38
|
+
# @return [::Integer]
|
39
|
+
# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
40
|
+
class TimeOfDay
|
41
|
+
include ::Google::Protobuf::MessageExts
|
42
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|