google-ads-data_manager-v1 0.12.0 → 0.13.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 (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/ads/data_manager/v1/ingestion_service/client.rb +9 -0
  3. data/lib/google/ads/data_manager/v1/ingestion_service/rest/client.rb +9 -0
  4. data/lib/google/ads/data_manager/v1/reporting_service/client.rb +536 -0
  5. data/lib/google/ads/data_manager/v1/reporting_service/credentials.rb +47 -0
  6. data/lib/google/ads/data_manager/v1/reporting_service/rest/client.rb +486 -0
  7. data/lib/google/ads/data_manager/v1/reporting_service/rest/service_stub.rb +142 -0
  8. data/lib/google/ads/data_manager/v1/reporting_service/rest.rb +51 -0
  9. data/lib/google/ads/data_manager/v1/reporting_service.rb +54 -0
  10. data/lib/google/ads/data_manager/v1/rest.rb +1 -0
  11. data/lib/google/ads/data_manager/v1/version.rb +1 -1
  12. data/lib/google/ads/data_manager/v1.rb +1 -0
  13. data/lib/google/ads/datamanager/v1/call_info_pb.rb +24 -0
  14. data/lib/google/ads/datamanager/v1/error_pb.rb +1 -1
  15. data/lib/google/ads/datamanager/v1/event_pb.rb +2 -1
  16. data/lib/google/ads/datamanager/v1/ingestion_service_services_pb.rb +9 -0
  17. data/lib/google/ads/datamanager/v1/partner_match_report_entry_pb.rb +28 -0
  18. data/lib/google/ads/datamanager/v1/processing_errors_pb.rb +1 -1
  19. data/lib/google/ads/datamanager/v1/reporting_service_pb.rb +27 -0
  20. data/lib/google/ads/datamanager/v1/reporting_service_services_pb.rb +47 -0
  21. data/proto_docs/google/ads/datamanager/v1/call_info.rb +36 -0
  22. data/proto_docs/google/ads/datamanager/v1/cart_data.rb +1 -1
  23. data/proto_docs/google/ads/datamanager/v1/error.rb +37 -6
  24. data/proto_docs/google/ads/datamanager/v1/event.rb +8 -1
  25. data/proto_docs/google/ads/datamanager/v1/item_parameter.rb +1 -1
  26. data/proto_docs/google/ads/datamanager/v1/partner_match_report_entry.rb +119 -0
  27. data/proto_docs/google/ads/datamanager/v1/processing_errors.rb +38 -0
  28. data/proto_docs/google/ads/datamanager/v1/reporting_service.rb +108 -0
  29. data/proto_docs/google/ads/datamanager/v1/user_list.rb +5 -5
  30. data/proto_docs/google/ads/datamanager/v1/user_properties.rb +2 -2
  31. data/proto_docs/google/type/money.rb +43 -0
  32. metadata +15 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbbde94d0038ed793386ba9504b53bd87f6cdbeb9f515956777383e6ccc4f37b
4
- data.tar.gz: 17af06eb7a5e2f1a503b88510d28556e8c22f9bfb52b4a67da01c05c7f1af12a
3
+ metadata.gz: b29e554d356e4938ead1e979edf97f53761c7f1e4fb10269e74d66913e87d767
4
+ data.tar.gz: f7054013cb3021c68e51c0d15f3861721a7648a3b868b777ce3c5cb5b22d1d1d
5
5
  SHA512:
6
- metadata.gz: afee4a8222caadec29918238d64932349894ce4255d8e75594c9e1d831a9d7c76af7968ba37ec3adac28159e0ab69cd7060797bc7bfc4e5f58c5f844e4a50741
7
- data.tar.gz: d2c25f551a97127a89ca5ce02aaf46c935492f58be3d52769dafd45236be9fc2f608ced50d2afc500d32e00b10b224d8940e686bfd1eda9f366b9c4dcea117ea
6
+ metadata.gz: 8b72ced81c5d9faf1fbc294eb79c6a45cfd0e74e2427f748b530b1b4c37ff3c94173a7969bd261b32a8965cbc5cea14f23e89ba78a27abc705a7c01dd7b23e58
7
+ data.tar.gz: 97fb5e74b4bd4e7d5b5d88ea635f9be124d4fdb640bd19548fb415dcc5768e994f429acbf29c66e30ad760d75f9d9e2228a6fb19700041b23b305df05bb38dde
@@ -790,6 +790,15 @@ module Google
790
790
  #
791
791
  # This feature is only available to accounts on an allowlist.
792
792
  #
793
+ # Authorization Headers:
794
+ #
795
+ # This method also requires the following header to define how the API
796
+ # authorizes access for the request:
797
+ #
798
+ # * `login-account`: (Required) The resource name of the Data Partner account
799
+ # where the Google Account of the credentials is a user. Format:
800
+ # `accountTypes/DATA_PARTNER/accounts/{loginAccountId}`
801
+ #
793
802
  # @overload ingest_ad_events(request, options = nil)
794
803
  # Pass arguments to `ingest_ad_events` via a request object, either of type
795
804
  # {::Google::Ads::DataManager::V1::IngestAdEventsRequest} or an equivalent Hash.
@@ -789,6 +789,15 @@ module Google
789
789
  #
790
790
  # This feature is only available to accounts on an allowlist.
791
791
  #
792
+ # Authorization Headers:
793
+ #
794
+ # This method also requires the following header to define how the API
795
+ # authorizes access for the request:
796
+ #
797
+ # * `login-account`: (Required) The resource name of the Data Partner account
798
+ # where the Google Account of the credentials is a user. Format:
799
+ # `accountTypes/DATA_PARTNER/accounts/{loginAccountId}`
800
+ #
792
801
  # @overload ingest_ad_events(request, options = nil)
793
802
  # Pass arguments to `ingest_ad_events` via a request object, either of type
794
803
  # {::Google::Ads::DataManager::V1::IngestAdEventsRequest} or an equivalent Hash.
@@ -0,0 +1,536 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 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
+ require "google/cloud/errors"
20
+ require "google/ads/datamanager/v1/reporting_service_pb"
21
+
22
+ module Google
23
+ module Ads
24
+ module DataManager
25
+ module V1
26
+ module ReportingService
27
+ ##
28
+ # Client for the ReportingService service.
29
+ #
30
+ # Service for querying reports.
31
+ #
32
+ class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
36
+ # @private
37
+ DEFAULT_ENDPOINT_TEMPLATE = "datamanager.$UNIVERSE_DOMAIN$"
38
+
39
+ # @private
40
+ attr_reader :reporting_service_stub
41
+
42
+ ##
43
+ # Configure the ReportingService Client class.
44
+ #
45
+ # See {::Google::Ads::DataManager::V1::ReportingService::Client::Configuration}
46
+ # for a description of the configuration fields.
47
+ #
48
+ # @example
49
+ #
50
+ # # Modify the configuration for all ReportingService clients
51
+ # ::Google::Ads::DataManager::V1::ReportingService::Client.configure do |config|
52
+ # config.timeout = 10.0
53
+ # end
54
+ #
55
+ # @yield [config] Configure the Client client.
56
+ # @yieldparam config [Client::Configuration]
57
+ #
58
+ # @return [Client::Configuration]
59
+ #
60
+ def self.configure
61
+ @configure ||= begin
62
+ namespace = ["Google", "Ads", "DataManager", "V1"]
63
+ parent_config = while namespace.any?
64
+ parent_name = namespace.join "::"
65
+ parent_const = const_get parent_name
66
+ break parent_const.configure if parent_const.respond_to? :configure
67
+ namespace.pop
68
+ end
69
+ default_config = Client::Configuration.new parent_config
70
+
71
+ default_config
72
+ end
73
+ yield @configure if block_given?
74
+ @configure
75
+ end
76
+
77
+ ##
78
+ # Configure the ReportingService Client instance.
79
+ #
80
+ # The configuration is set to the derived mode, meaning that values can be changed,
81
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
82
+ # should be made on {Client.configure}.
83
+ #
84
+ # See {::Google::Ads::DataManager::V1::ReportingService::Client::Configuration}
85
+ # for a description of the configuration fields.
86
+ #
87
+ # @yield [config] Configure the Client client.
88
+ # @yieldparam config [Client::Configuration]
89
+ #
90
+ # @return [Client::Configuration]
91
+ #
92
+ def configure
93
+ yield @config if block_given?
94
+ @config
95
+ end
96
+
97
+ ##
98
+ # The effective universe domain
99
+ #
100
+ # @return [String]
101
+ #
102
+ def universe_domain
103
+ @reporting_service_stub.universe_domain
104
+ end
105
+
106
+ ##
107
+ # Create a new ReportingService client object.
108
+ #
109
+ # @example
110
+ #
111
+ # # Create a client using the default configuration
112
+ # client = ::Google::Ads::DataManager::V1::ReportingService::Client.new
113
+ #
114
+ # # Create a client using a custom configuration
115
+ # client = ::Google::Ads::DataManager::V1::ReportingService::Client.new do |config|
116
+ # config.timeout = 10.0
117
+ # end
118
+ #
119
+ # @yield [config] Configure the ReportingService client.
120
+ # @yieldparam config [Client::Configuration]
121
+ #
122
+ def initialize
123
+ # These require statements are intentionally placed here to initialize
124
+ # the gRPC module only when it's required.
125
+ # See https://github.com/googleapis/toolkit/issues/446
126
+ require "gapic/grpc"
127
+ require "google/ads/datamanager/v1/reporting_service_services_pb"
128
+
129
+ # Create the configuration object
130
+ @config = Configuration.new Client.configure
131
+
132
+ # Yield the configuration if needed
133
+ yield @config if block_given?
134
+
135
+ # Create credentials
136
+ credentials = @config.credentials
137
+ # Use self-signed JWT if the endpoint is unchanged from default,
138
+ # but only if the default endpoint does not have a region prefix.
139
+ enable_self_signed_jwt = @config.endpoint.nil? ||
140
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
141
+ !@config.endpoint.split(".").first.include?("-"))
142
+ credentials ||= Credentials.default scope: @config.scope,
143
+ enable_self_signed_jwt: enable_self_signed_jwt
144
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
145
+ credentials = Credentials.new credentials, scope: @config.scope
146
+ end
147
+ @quota_project_id = @config.quota_project
148
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
149
+
150
+ @reporting_service_stub = ::Gapic::ServiceStub.new(
151
+ ::Google::Ads::DataManager::V1::ReportingService::Stub,
152
+ credentials: credentials,
153
+ endpoint: @config.endpoint,
154
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
155
+ universe_domain: @config.universe_domain,
156
+ channel_args: @config.channel_args,
157
+ interceptors: @config.interceptors,
158
+ channel_pool_config: @config.channel_pool,
159
+ logger: @config.logger
160
+ )
161
+
162
+ @reporting_service_stub.stub_logger&.info do |entry|
163
+ entry.set_system_name
164
+ entry.set_service
165
+ entry.message = "Created client for #{entry.service}"
166
+ entry.set_credentials_fields credentials
167
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
168
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
169
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
170
+ end
171
+ end
172
+
173
+ ##
174
+ # The logger used for request/response debug logging.
175
+ #
176
+ # @return [Logger]
177
+ #
178
+ def logger
179
+ @reporting_service_stub.logger
180
+ end
181
+
182
+ # Service calls
183
+
184
+ ##
185
+ # Retrieves a partner match report.
186
+ #
187
+ # This feature is only available to data partners.
188
+ #
189
+ # @overload retrieve_partner_match_report(request, options = nil)
190
+ # Pass arguments to `retrieve_partner_match_report` via a request object, either of type
191
+ # {::Google::Ads::DataManager::V1::RetrievePartnerMatchReportRequest} or an equivalent Hash.
192
+ #
193
+ # @param request [::Google::Ads::DataManager::V1::RetrievePartnerMatchReportRequest, ::Hash]
194
+ # A request object representing the call parameters. Required. To specify no
195
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
196
+ # @param options [::Gapic::CallOptions, ::Hash]
197
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
198
+ #
199
+ # @overload retrieve_partner_match_report(parent: nil, currency_code: nil, filter: nil, start_date: nil, end_date: nil, page_size: nil, page_token: nil)
200
+ # Pass arguments to `retrieve_partner_match_report` via keyword arguments. Note that at
201
+ # least one keyword argument is required. To specify no parameters, or to keep all
202
+ # the default parameter values, pass an empty Hash as a request object (see above).
203
+ #
204
+ # @param parent [::String]
205
+ # Required. The parent account that owns the user list.
206
+ # Format: `accountTypes/{account_type}/accounts/{account}`
207
+ # @param currency_code [::String]
208
+ # Optional. The currency to return the costs/fees in. If unspecified,
209
+ # defaults to the Data Partner's currency
210
+ # @param filter [::String]
211
+ # Optional. A [filter string](https://google.aip.dev/160) to apply to the
212
+ # list request. All fields need to be on the left hand side of each condition
213
+ # (for example: `user_list_id = 123`). Fields must be specified using either
214
+ # all [camel case](https://en.wikipedia.org/wiki/Camel_case) or all [snake
215
+ # case](https://en.wikipedia.org/wiki/Snake_case). Don't use a combination of
216
+ # camel case and snake case.
217
+ #
218
+ # **Supported Operations:**
219
+ #
220
+ # - `AND`
221
+ # - `=`
222
+ # - `!=`
223
+ # - `>`
224
+ # - `>=`
225
+ # - `<`
226
+ # - `<=`
227
+ #
228
+ # **Supported Functions:**
229
+ # - `IN(field, value1, value2, ...)`: returns true if the field matches any
230
+ # of the values. Example: `IN(user_list_id, 123, 456)`
231
+ #
232
+ # **Supported Fields:**
233
+ #
234
+ # - `advertiser_account.account_type`
235
+ # - `advertiser_account.account_id`
236
+ # - `campaign.campaign_id`
237
+ # - `ad_group.ad_group_id`
238
+ # - `user_list.user_list_id`
239
+ # @param start_date [::Integer]
240
+ # Required. The start date (inclusive) of the report data to retrieve. Only
241
+ # data from the last 2 years can be retrieved. If the start date is set to
242
+ # an older date, only data from the last 2 years will be returned. Should be
243
+ # in the format YYYYMMDD.
244
+ # @param end_date [::Integer]
245
+ # Optional. The end date (inclusive) of the report data to retrieve. Defaults
246
+ # to the current date if not populated. Should be in the format YYYYMMDD.
247
+ # @param page_size [::Integer]
248
+ # Optional. The maximum number of partner match report entries to return per
249
+ # page. The service may return fewer than this value. If unspecified, at most
250
+ # 50 reports will be returned. The maximum value is 1000; values above 1000
251
+ # will be coerced to 1000.
252
+ # @param page_token [::String]
253
+ # Optional. A page token, received from a previous
254
+ # `RetrievePartnerMatchReport` call. Provide this to retrieve the subsequent
255
+ # page.
256
+ #
257
+ # When paginating, all other parameters provided to
258
+ # `RetrievePartnerMatchReport` must match the call that provided the page
259
+ # token.
260
+ #
261
+ # @yield [response, operation] Access the result along with the RPC operation
262
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Ads::DataManager::V1::PartnerMatchReportEntry>]
263
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
264
+ #
265
+ # @return [::Gapic::PagedEnumerable<::Google::Ads::DataManager::V1::PartnerMatchReportEntry>]
266
+ #
267
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
268
+ #
269
+ # @example Basic example
270
+ # require "google/ads/data_manager/v1"
271
+ #
272
+ # # Create a client object. The client can be reused for multiple calls.
273
+ # client = Google::Ads::DataManager::V1::ReportingService::Client.new
274
+ #
275
+ # # Create a request. To set request fields, pass in keyword arguments.
276
+ # request = Google::Ads::DataManager::V1::RetrievePartnerMatchReportRequest.new
277
+ #
278
+ # # Call the retrieve_partner_match_report method.
279
+ # result = client.retrieve_partner_match_report request
280
+ #
281
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
282
+ # # over elements, and API calls will be issued to fetch pages as needed.
283
+ # result.each do |item|
284
+ # # Each element is of type ::Google::Ads::DataManager::V1::PartnerMatchReportEntry.
285
+ # p item
286
+ # end
287
+ #
288
+ def retrieve_partner_match_report request, options = nil
289
+ raise ::ArgumentError, "request must be provided" if request.nil?
290
+
291
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Ads::DataManager::V1::RetrievePartnerMatchReportRequest
292
+
293
+ # Converts hash and nil to an options object
294
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
295
+
296
+ # Customize the options with defaults
297
+ metadata = @config.rpcs.retrieve_partner_match_report.metadata.to_h
298
+
299
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
300
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
301
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
302
+ gapic_version: ::Google::Ads::DataManager::V1::VERSION
303
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
304
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
305
+
306
+ header_params = {}
307
+ if request.parent
308
+ header_params["parent"] = request.parent
309
+ end
310
+
311
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
312
+ metadata[:"x-goog-request-params"] ||= request_params_header
313
+
314
+ options.apply_defaults timeout: @config.rpcs.retrieve_partner_match_report.timeout,
315
+ metadata: metadata,
316
+ retry_policy: @config.rpcs.retrieve_partner_match_report.retry_policy
317
+
318
+ options.apply_defaults timeout: @config.timeout,
319
+ metadata: @config.metadata,
320
+ retry_policy: @config.retry_policy
321
+
322
+ @reporting_service_stub.call_rpc :retrieve_partner_match_report, request, options: options do |response, operation|
323
+ response = ::Gapic::PagedEnumerable.new @reporting_service_stub, :retrieve_partner_match_report, request, response, operation, options
324
+ yield response, operation if block_given?
325
+ throw :response, response
326
+ end
327
+ rescue ::GRPC::BadStatus => e
328
+ raise ::Google::Cloud::Error.from_error(e)
329
+ end
330
+
331
+ ##
332
+ # Configuration class for the ReportingService API.
333
+ #
334
+ # This class represents the configuration for ReportingService,
335
+ # providing control over timeouts, retry behavior, logging, transport
336
+ # parameters, and other low-level controls. Certain parameters can also be
337
+ # applied individually to specific RPCs. See
338
+ # {::Google::Ads::DataManager::V1::ReportingService::Client::Configuration::Rpcs}
339
+ # for a list of RPCs that can be configured independently.
340
+ #
341
+ # Configuration can be applied globally to all clients, or to a single client
342
+ # on construction.
343
+ #
344
+ # @example
345
+ #
346
+ # # Modify the global config, setting the timeout for
347
+ # # retrieve_partner_match_report to 20 seconds,
348
+ # # and all remaining timeouts to 10 seconds.
349
+ # ::Google::Ads::DataManager::V1::ReportingService::Client.configure do |config|
350
+ # config.timeout = 10.0
351
+ # config.rpcs.retrieve_partner_match_report.timeout = 20.0
352
+ # end
353
+ #
354
+ # # Apply the above configuration only to a new client.
355
+ # client = ::Google::Ads::DataManager::V1::ReportingService::Client.new do |config|
356
+ # config.timeout = 10.0
357
+ # config.rpcs.retrieve_partner_match_report.timeout = 20.0
358
+ # end
359
+ #
360
+ # @!attribute [rw] endpoint
361
+ # A custom service endpoint, as a hostname or hostname:port. The default is
362
+ # nil, indicating to use the default endpoint in the current universe domain.
363
+ # @return [::String,nil]
364
+ # @!attribute [rw] credentials
365
+ # Credentials to send with calls. You may provide any of the following types:
366
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
367
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
368
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
369
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
370
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
371
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
372
+ # * (`nil`) indicating no credentials
373
+ #
374
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
375
+ # is deprecated. Providing an unvalidated credential configuration to
376
+ # Google APIs can compromise the security of your systems and data.
377
+ #
378
+ # @example
379
+ #
380
+ # # The recommended way to provide credentials is to use the `make_creds` method
381
+ # # on the appropriate credentials class for your environment.
382
+ #
383
+ # require "googleauth"
384
+ #
385
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
386
+ # json_key_io: ::File.open("/path/to/keyfile.json")
387
+ # )
388
+ #
389
+ # client = ::Google::Ads::DataManager::V1::ReportingService::Client.new do |config|
390
+ # config.credentials = credentials
391
+ # end
392
+ #
393
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
394
+ # external source for authentication to Google Cloud, you must validate it before
395
+ # providing it to a Google API client library. Providing an unvalidated credential
396
+ # configuration to Google APIs can compromise the security of your systems and data.
397
+ # For more information, refer to [Validate credential configurations from external
398
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
399
+ # @return [::Object]
400
+ # @!attribute [rw] scope
401
+ # The OAuth scopes
402
+ # @return [::Array<::String>]
403
+ # @!attribute [rw] lib_name
404
+ # The library name as recorded in instrumentation and logging
405
+ # @return [::String]
406
+ # @!attribute [rw] lib_version
407
+ # The library version as recorded in instrumentation and logging
408
+ # @return [::String]
409
+ # @!attribute [rw] channel_args
410
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
411
+ # `GRPC::Core::Channel` object is provided as the credential.
412
+ # @return [::Hash]
413
+ # @!attribute [rw] interceptors
414
+ # An array of interceptors that are run before calls are executed.
415
+ # @return [::Array<::GRPC::ClientInterceptor>]
416
+ # @!attribute [rw] timeout
417
+ # The call timeout in seconds.
418
+ # @return [::Numeric]
419
+ # @!attribute [rw] metadata
420
+ # Additional gRPC headers to be sent with the call.
421
+ # @return [::Hash{::Symbol=>::String}]
422
+ # @!attribute [rw] retry_policy
423
+ # The retry policy. The value is a hash with the following keys:
424
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
425
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
426
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
427
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
428
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
429
+ # trigger a retry.
430
+ # @return [::Hash]
431
+ # @!attribute [rw] quota_project
432
+ # A separate project against which to charge quota.
433
+ # @return [::String]
434
+ # @!attribute [rw] universe_domain
435
+ # The universe domain within which to make requests. This determines the
436
+ # default endpoint URL. The default value of nil uses the environment
437
+ # universe (usually the default "googleapis.com" universe).
438
+ # @return [::String,nil]
439
+ # @!attribute [rw] logger
440
+ # A custom logger to use for request/response debug logging, or the value
441
+ # `:default` (the default) to construct a default logger, or `nil` to
442
+ # explicitly disable logging.
443
+ # @return [::Logger,:default,nil]
444
+ #
445
+ class Configuration
446
+ extend ::Gapic::Config
447
+
448
+ # @private
449
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
450
+ DEFAULT_ENDPOINT = "datamanager.googleapis.com"
451
+
452
+ config_attr :endpoint, nil, ::String, nil
453
+ config_attr :credentials, nil do |value|
454
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
455
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
456
+ allowed.any? { |klass| klass === value }
457
+ end
458
+ config_attr :scope, nil, ::String, ::Array, nil
459
+ config_attr :lib_name, nil, ::String, nil
460
+ config_attr :lib_version, nil, ::String, nil
461
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
462
+ config_attr :interceptors, nil, ::Array, nil
463
+ config_attr :timeout, nil, ::Numeric, nil
464
+ config_attr :metadata, nil, ::Hash, nil
465
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
466
+ config_attr :quota_project, nil, ::String, nil
467
+ config_attr :universe_domain, nil, ::String, nil
468
+ config_attr :logger, :default, ::Logger, nil, :default
469
+
470
+ # @private
471
+ def initialize parent_config = nil
472
+ @parent_config = parent_config unless parent_config.nil?
473
+
474
+ yield self if block_given?
475
+ end
476
+
477
+ ##
478
+ # Configurations for individual RPCs
479
+ # @return [Rpcs]
480
+ #
481
+ def rpcs
482
+ @rpcs ||= begin
483
+ parent_rpcs = nil
484
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
485
+ Rpcs.new parent_rpcs
486
+ end
487
+ end
488
+
489
+ ##
490
+ # Configuration for the channel pool
491
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
492
+ #
493
+ def channel_pool
494
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
495
+ end
496
+
497
+ ##
498
+ # Configuration RPC class for the ReportingService API.
499
+ #
500
+ # Includes fields providing the configuration for each RPC in this service.
501
+ # Each configuration object is of type `Gapic::Config::Method` and includes
502
+ # the following configuration fields:
503
+ #
504
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
505
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
506
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
507
+ # include the following keys:
508
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
509
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
510
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
511
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
512
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
513
+ # trigger a retry.
514
+ #
515
+ class Rpcs
516
+ ##
517
+ # RPC-specific configuration for `retrieve_partner_match_report`
518
+ # @return [::Gapic::Config::Method]
519
+ #
520
+ attr_reader :retrieve_partner_match_report
521
+
522
+ # @private
523
+ def initialize parent_rpcs = nil
524
+ retrieve_partner_match_report_config = parent_rpcs.retrieve_partner_match_report if parent_rpcs.respond_to? :retrieve_partner_match_report
525
+ @retrieve_partner_match_report = ::Gapic::Config::Method.new retrieve_partner_match_report_config
526
+
527
+ yield self if block_given?
528
+ end
529
+ end
530
+ end
531
+ end
532
+ end
533
+ end
534
+ end
535
+ end
536
+ end
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 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
+ require "googleauth"
20
+
21
+ module Google
22
+ module Ads
23
+ module DataManager
24
+ module V1
25
+ module ReportingService
26
+ # Credentials for the ReportingService API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/datamanager"
30
+ ]
31
+ self.env_vars = [
32
+ "GOOGLE_CLOUD_CREDENTIALS",
33
+ "GOOGLE_CLOUD_KEYFILE",
34
+ "GCLOUD_KEYFILE",
35
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
36
+ "GOOGLE_CLOUD_KEYFILE_JSON",
37
+ "GCLOUD_KEYFILE_JSON"
38
+ ]
39
+ self.paths = [
40
+ "~/.config/google_cloud/application_default_credentials.json"
41
+ ]
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end