google-analytics-admin-v1alpha 0.8.2 → 0.9.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/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb +74 -5
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb +1201 -249
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb +48 -0
- data/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb +37 -2
- data/lib/google/analytics/admin/v1alpha/resources_pb.rb +70 -10
- data/lib/google/analytics/admin/v1alpha/version.rb +1 -1
- data/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb +206 -14
- data/proto_docs/google/analytics/admin/v1alpha/resources.rb +222 -25
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9eaab51c64fbb783631c8b0272f1beee8a6c3abf6d202ef0326ee582291a2c60
|
4
|
+
data.tar.gz: 6f1bf163fbec193bd85a54bde552738a3159ffe95a3a5d6947a5663e939b8183
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0acf44c29d1dc7eaef3e14212350ee09191c2f63552fd580bfad848ed63bc49edb00b013babafb993d952d0babb3002436c40f1e784a54ef24a1523bb86a01a6
|
7
|
+
data.tar.gz: 72aac863696e518b10dd2505c52af210965928fd77b3c00d6415e3f5805d41db605593b5f5ae6887841b1b4b72db5a9af53b2bad9169d07220720310ce9c2115
|
@@ -192,10 +192,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
192
192
|
optional :parent, :string, 1
|
193
193
|
optional :firebase_link, :message, 2, "google.analytics.admin.v1alpha.FirebaseLink"
|
194
194
|
end
|
195
|
-
add_message "google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest" do
|
196
|
-
optional :firebase_link, :message, 1, "google.analytics.admin.v1alpha.FirebaseLink"
|
197
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
198
|
-
end
|
199
195
|
add_message "google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest" do
|
200
196
|
optional :name, :string, 1
|
201
197
|
end
|
@@ -306,6 +302,57 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
306
302
|
repeated :conversion_events, :message, 1, "google.analytics.admin.v1alpha.ConversionEvent"
|
307
303
|
optional :next_page_token, :string, 2
|
308
304
|
end
|
305
|
+
add_message "google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest" do
|
306
|
+
optional :name, :string, 1
|
307
|
+
end
|
308
|
+
add_message "google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest" do
|
309
|
+
optional :parent, :string, 1
|
310
|
+
optional :page_size, :int32, 2
|
311
|
+
optional :page_token, :string, 3
|
312
|
+
end
|
313
|
+
add_message "google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse" do
|
314
|
+
repeated :display_video_360_advertiser_links, :message, 1, "google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"
|
315
|
+
optional :next_page_token, :string, 2
|
316
|
+
end
|
317
|
+
add_message "google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest" do
|
318
|
+
optional :parent, :string, 1
|
319
|
+
optional :display_video_360_advertiser_link, :message, 2, "google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"
|
320
|
+
end
|
321
|
+
add_message "google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest" do
|
322
|
+
optional :name, :string, 1
|
323
|
+
end
|
324
|
+
add_message "google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest" do
|
325
|
+
optional :display_video_360_advertiser_link, :message, 1, "google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"
|
326
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
327
|
+
end
|
328
|
+
add_message "google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest" do
|
329
|
+
optional :name, :string, 1
|
330
|
+
end
|
331
|
+
add_message "google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest" do
|
332
|
+
optional :parent, :string, 1
|
333
|
+
optional :page_size, :int32, 2
|
334
|
+
optional :page_token, :string, 3
|
335
|
+
end
|
336
|
+
add_message "google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse" do
|
337
|
+
repeated :display_video_360_advertiser_link_proposals, :message, 1, "google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"
|
338
|
+
optional :next_page_token, :string, 2
|
339
|
+
end
|
340
|
+
add_message "google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest" do
|
341
|
+
optional :parent, :string, 1
|
342
|
+
optional :display_video_360_advertiser_link_proposal, :message, 2, "google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal"
|
343
|
+
end
|
344
|
+
add_message "google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest" do
|
345
|
+
optional :name, :string, 1
|
346
|
+
end
|
347
|
+
add_message "google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest" do
|
348
|
+
optional :name, :string, 1
|
349
|
+
end
|
350
|
+
add_message "google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse" do
|
351
|
+
optional :display_video_360_advertiser_link, :message, 1, "google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"
|
352
|
+
end
|
353
|
+
add_message "google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest" do
|
354
|
+
optional :name, :string, 1
|
355
|
+
end
|
309
356
|
add_message "google.analytics.admin.v1alpha.CreateCustomDimensionRequest" do
|
310
357
|
optional :parent, :string, 1
|
311
358
|
optional :custom_dimension, :message, 2, "google.analytics.admin.v1alpha.CustomDimension"
|
@@ -352,6 +399,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
352
399
|
add_message "google.analytics.admin.v1alpha.GetCustomMetricRequest" do
|
353
400
|
optional :name, :string, 1
|
354
401
|
end
|
402
|
+
add_message "google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest" do
|
403
|
+
optional :name, :string, 1
|
404
|
+
end
|
405
|
+
add_message "google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest" do
|
406
|
+
optional :data_retention_settings, :message, 1, "google.analytics.admin.v1alpha.DataRetentionSettings"
|
407
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
408
|
+
end
|
355
409
|
end
|
356
410
|
end
|
357
411
|
|
@@ -406,7 +460,6 @@ module Google
|
|
406
460
|
GetEnhancedMeasurementSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest").msgclass
|
407
461
|
UpdateEnhancedMeasurementSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest").msgclass
|
408
462
|
CreateFirebaseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateFirebaseLinkRequest").msgclass
|
409
|
-
UpdateFirebaseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest").msgclass
|
410
463
|
DeleteFirebaseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest").msgclass
|
411
464
|
ListFirebaseLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListFirebaseLinksRequest").msgclass
|
412
465
|
ListFirebaseLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListFirebaseLinksResponse").msgclass
|
@@ -434,6 +487,20 @@ module Google
|
|
434
487
|
DeleteConversionEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteConversionEventRequest").msgclass
|
435
488
|
ListConversionEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListConversionEventsRequest").msgclass
|
436
489
|
ListConversionEventsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListConversionEventsResponse").msgclass
|
490
|
+
GetDisplayVideo360AdvertiserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest").msgclass
|
491
|
+
ListDisplayVideo360AdvertiserLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest").msgclass
|
492
|
+
ListDisplayVideo360AdvertiserLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse").msgclass
|
493
|
+
CreateDisplayVideo360AdvertiserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest").msgclass
|
494
|
+
DeleteDisplayVideo360AdvertiserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest").msgclass
|
495
|
+
UpdateDisplayVideo360AdvertiserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest").msgclass
|
496
|
+
GetDisplayVideo360AdvertiserLinkProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest").msgclass
|
497
|
+
ListDisplayVideo360AdvertiserLinkProposalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest").msgclass
|
498
|
+
ListDisplayVideo360AdvertiserLinkProposalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse").msgclass
|
499
|
+
CreateDisplayVideo360AdvertiserLinkProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest").msgclass
|
500
|
+
DeleteDisplayVideo360AdvertiserLinkProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest").msgclass
|
501
|
+
ApproveDisplayVideo360AdvertiserLinkProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest").msgclass
|
502
|
+
ApproveDisplayVideo360AdvertiserLinkProposalResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse").msgclass
|
503
|
+
CancelDisplayVideo360AdvertiserLinkProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest").msgclass
|
437
504
|
CreateCustomDimensionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateCustomDimensionRequest").msgclass
|
438
505
|
UpdateCustomDimensionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateCustomDimensionRequest").msgclass
|
439
506
|
ListCustomDimensionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListCustomDimensionsRequest").msgclass
|
@@ -446,6 +513,8 @@ module Google
|
|
446
513
|
ListCustomMetricsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListCustomMetricsResponse").msgclass
|
447
514
|
ArchiveCustomMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ArchiveCustomMetricRequest").msgclass
|
448
515
|
GetCustomMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetCustomMetricRequest").msgclass
|
516
|
+
GetDataRetentionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest").msgclass
|
517
|
+
UpdateDataRetentionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest").msgclass
|
449
518
|
end
|
450
519
|
end
|
451
520
|
end
|
@@ -139,8 +139,6 @@ module Google
|
|
139
139
|
|
140
140
|
default_config.rpcs.create_firebase_link.timeout = 60.0
|
141
141
|
|
142
|
-
default_config.rpcs.update_firebase_link.timeout = 60.0
|
143
|
-
|
144
142
|
default_config.rpcs.delete_firebase_link.timeout = 60.0
|
145
143
|
|
146
144
|
default_config.rpcs.list_firebase_links.timeout = 60.0
|
@@ -2987,78 +2985,6 @@ module Google
|
|
2987
2985
|
raise ::Google::Cloud::Error.from_error(e)
|
2988
2986
|
end
|
2989
2987
|
|
2990
|
-
##
|
2991
|
-
# Updates a FirebaseLink on a property
|
2992
|
-
#
|
2993
|
-
# @overload update_firebase_link(request, options = nil)
|
2994
|
-
# Pass arguments to `update_firebase_link` via a request object, either of type
|
2995
|
-
# {::Google::Analytics::Admin::V1alpha::UpdateFirebaseLinkRequest} or an equivalent Hash.
|
2996
|
-
#
|
2997
|
-
# @param request [::Google::Analytics::Admin::V1alpha::UpdateFirebaseLinkRequest, ::Hash]
|
2998
|
-
# A request object representing the call parameters. Required. To specify no
|
2999
|
-
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3000
|
-
# @param options [::Gapic::CallOptions, ::Hash]
|
3001
|
-
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3002
|
-
#
|
3003
|
-
# @overload update_firebase_link(firebase_link: nil, update_mask: nil)
|
3004
|
-
# Pass arguments to `update_firebase_link` via keyword arguments. Note that at
|
3005
|
-
# least one keyword argument is required. To specify no parameters, or to keep all
|
3006
|
-
# the default parameter values, pass an empty Hash as a request object (see above).
|
3007
|
-
#
|
3008
|
-
# @param firebase_link [::Google::Analytics::Admin::V1alpha::FirebaseLink, ::Hash]
|
3009
|
-
# Required. The Firebase link to update.
|
3010
|
-
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
3011
|
-
# Required. The list of fields to be updated. Field names must be in snake case
|
3012
|
-
# (e.g., "field_to_update"). Omitted fields will not be updated. To replace
|
3013
|
-
# the entire entity, use one path with the string "*" to match all fields.
|
3014
|
-
#
|
3015
|
-
# @yield [response, operation] Access the result along with the RPC operation
|
3016
|
-
# @yieldparam response [::Google::Analytics::Admin::V1alpha::FirebaseLink]
|
3017
|
-
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3018
|
-
#
|
3019
|
-
# @return [::Google::Analytics::Admin::V1alpha::FirebaseLink]
|
3020
|
-
#
|
3021
|
-
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3022
|
-
#
|
3023
|
-
def update_firebase_link request, options = nil
|
3024
|
-
raise ::ArgumentError, "request must be provided" if request.nil?
|
3025
|
-
|
3026
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateFirebaseLinkRequest
|
3027
|
-
|
3028
|
-
# Converts hash and nil to an options object
|
3029
|
-
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3030
|
-
|
3031
|
-
# Customize the options with defaults
|
3032
|
-
metadata = @config.rpcs.update_firebase_link.metadata.to_h
|
3033
|
-
|
3034
|
-
# Set x-goog-api-client and x-goog-user-project headers
|
3035
|
-
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3036
|
-
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3037
|
-
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
3038
|
-
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3039
|
-
|
3040
|
-
header_params = {
|
3041
|
-
"firebase_link.name" => request.firebase_link.name
|
3042
|
-
}
|
3043
|
-
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3044
|
-
metadata[:"x-goog-request-params"] ||= request_params_header
|
3045
|
-
|
3046
|
-
options.apply_defaults timeout: @config.rpcs.update_firebase_link.timeout,
|
3047
|
-
metadata: metadata,
|
3048
|
-
retry_policy: @config.rpcs.update_firebase_link.retry_policy
|
3049
|
-
|
3050
|
-
options.apply_defaults timeout: @config.timeout,
|
3051
|
-
metadata: @config.metadata,
|
3052
|
-
retry_policy: @config.retry_policy
|
3053
|
-
|
3054
|
-
@analytics_admin_service_stub.call_rpc :update_firebase_link, request, options: options do |response, operation|
|
3055
|
-
yield response, operation if block_given?
|
3056
|
-
return response
|
3057
|
-
end
|
3058
|
-
rescue ::GRPC::BadStatus => e
|
3059
|
-
raise ::Google::Cloud::Error.from_error(e)
|
3060
|
-
end
|
3061
|
-
|
3062
2988
|
##
|
3063
2989
|
# Deletes a FirebaseLink on a property
|
3064
2990
|
#
|
@@ -4541,46 +4467,45 @@ module Google
|
|
4541
4467
|
end
|
4542
4468
|
|
4543
4469
|
##
|
4544
|
-
#
|
4470
|
+
# Look up a single DisplayVideo360AdvertiserLink
|
4545
4471
|
#
|
4546
|
-
# @overload
|
4547
|
-
# Pass arguments to `
|
4548
|
-
# {::Google::Analytics::Admin::V1alpha::
|
4472
|
+
# @overload get_display_video360_advertiser_link(request, options = nil)
|
4473
|
+
# Pass arguments to `get_display_video360_advertiser_link` via a request object, either of type
|
4474
|
+
# {::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash.
|
4549
4475
|
#
|
4550
|
-
# @param request [::Google::Analytics::Admin::V1alpha::
|
4476
|
+
# @param request [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest, ::Hash]
|
4551
4477
|
# A request object representing the call parameters. Required. To specify no
|
4552
4478
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4553
4479
|
# @param options [::Gapic::CallOptions, ::Hash]
|
4554
4480
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4555
4481
|
#
|
4556
|
-
# @overload
|
4557
|
-
# Pass arguments to `
|
4482
|
+
# @overload get_display_video360_advertiser_link(name: nil)
|
4483
|
+
# Pass arguments to `get_display_video360_advertiser_link` via keyword arguments. Note that at
|
4558
4484
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
4559
4485
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
4560
4486
|
#
|
4561
|
-
# @param
|
4562
|
-
# Required.
|
4563
|
-
#
|
4564
|
-
# Required. The CustomDimension to create.
|
4487
|
+
# @param name [::String]
|
4488
|
+
# Required. The name of the DisplayVideo360AdvertiserLink to get.
|
4489
|
+
# Example format: properties/1234/displayVideo360AdvertiserLink/5678
|
4565
4490
|
#
|
4566
4491
|
# @yield [response, operation] Access the result along with the RPC operation
|
4567
|
-
# @yieldparam response [::Google::Analytics::Admin::V1alpha::
|
4492
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink]
|
4568
4493
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4569
4494
|
#
|
4570
|
-
# @return [::Google::Analytics::Admin::V1alpha::
|
4495
|
+
# @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink]
|
4571
4496
|
#
|
4572
4497
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4573
4498
|
#
|
4574
|
-
def
|
4499
|
+
def get_display_video360_advertiser_link request, options = nil
|
4575
4500
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4576
4501
|
|
4577
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::
|
4502
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest
|
4578
4503
|
|
4579
4504
|
# Converts hash and nil to an options object
|
4580
4505
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4581
4506
|
|
4582
4507
|
# Customize the options with defaults
|
4583
|
-
metadata = @config.rpcs.
|
4508
|
+
metadata = @config.rpcs.get_display_video360_advertiser_link.metadata.to_h
|
4584
4509
|
|
4585
4510
|
# Set x-goog-api-client and x-goog-user-project headers
|
4586
4511
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -4589,20 +4514,20 @@ module Google
|
|
4589
4514
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4590
4515
|
|
4591
4516
|
header_params = {
|
4592
|
-
"
|
4517
|
+
"name" => request.name
|
4593
4518
|
}
|
4594
4519
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4595
4520
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4596
4521
|
|
4597
|
-
options.apply_defaults timeout: @config.rpcs.
|
4522
|
+
options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link.timeout,
|
4598
4523
|
metadata: metadata,
|
4599
|
-
retry_policy: @config.rpcs.
|
4524
|
+
retry_policy: @config.rpcs.get_display_video360_advertiser_link.retry_policy
|
4600
4525
|
|
4601
4526
|
options.apply_defaults timeout: @config.timeout,
|
4602
4527
|
metadata: @config.metadata,
|
4603
4528
|
retry_policy: @config.retry_policy
|
4604
4529
|
|
4605
|
-
@analytics_admin_service_stub.call_rpc :
|
4530
|
+
@analytics_admin_service_stub.call_rpc :get_display_video360_advertiser_link, request, options: options do |response, operation|
|
4606
4531
|
yield response, operation if block_given?
|
4607
4532
|
return response
|
4608
4533
|
end
|
@@ -4611,48 +4536,55 @@ module Google
|
|
4611
4536
|
end
|
4612
4537
|
|
4613
4538
|
##
|
4614
|
-
#
|
4539
|
+
# Lists all DisplayVideo360AdvertiserLinks on a property.
|
4615
4540
|
#
|
4616
|
-
# @overload
|
4617
|
-
# Pass arguments to `
|
4618
|
-
# {::Google::Analytics::Admin::V1alpha::
|
4541
|
+
# @overload list_display_video360_advertiser_links(request, options = nil)
|
4542
|
+
# Pass arguments to `list_display_video360_advertiser_links` via a request object, either of type
|
4543
|
+
# {::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest} or an equivalent Hash.
|
4619
4544
|
#
|
4620
|
-
# @param request [::Google::Analytics::Admin::V1alpha::
|
4545
|
+
# @param request [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest, ::Hash]
|
4621
4546
|
# A request object representing the call parameters. Required. To specify no
|
4622
4547
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4623
4548
|
# @param options [::Gapic::CallOptions, ::Hash]
|
4624
4549
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4625
4550
|
#
|
4626
|
-
# @overload
|
4627
|
-
# Pass arguments to `
|
4551
|
+
# @overload list_display_video360_advertiser_links(parent: nil, page_size: nil, page_token: nil)
|
4552
|
+
# Pass arguments to `list_display_video360_advertiser_links` via keyword arguments. Note that at
|
4628
4553
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
4629
4554
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
4630
4555
|
#
|
4631
|
-
# @param
|
4632
|
-
#
|
4633
|
-
# @param
|
4634
|
-
#
|
4635
|
-
#
|
4636
|
-
#
|
4556
|
+
# @param parent [::String]
|
4557
|
+
# Required. Example format: properties/1234
|
4558
|
+
# @param page_size [::Integer]
|
4559
|
+
# The maximum number of resources to return.
|
4560
|
+
# If unspecified, at most 50 resources will be returned.
|
4561
|
+
# The maximum value is 200 (higher values will be coerced to the maximum).
|
4562
|
+
# @param page_token [::String]
|
4563
|
+
# A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
|
4564
|
+
# call. Provide this to retrieve the subsequent page.
|
4565
|
+
#
|
4566
|
+
# When paginating, all other parameters provided to
|
4567
|
+
# `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
|
4568
|
+
# page token.
|
4637
4569
|
#
|
4638
4570
|
# @yield [response, operation] Access the result along with the RPC operation
|
4639
|
-
# @yieldparam response [::Google::Analytics::Admin::V1alpha::
|
4571
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>]
|
4640
4572
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4641
4573
|
#
|
4642
|
-
# @return [::Google::Analytics::Admin::V1alpha::
|
4574
|
+
# @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>]
|
4643
4575
|
#
|
4644
4576
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4645
4577
|
#
|
4646
|
-
def
|
4578
|
+
def list_display_video360_advertiser_links request, options = nil
|
4647
4579
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4648
4580
|
|
4649
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::
|
4581
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest
|
4650
4582
|
|
4651
4583
|
# Converts hash and nil to an options object
|
4652
4584
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4653
4585
|
|
4654
4586
|
# Customize the options with defaults
|
4655
|
-
metadata = @config.rpcs.
|
4587
|
+
metadata = @config.rpcs.list_display_video360_advertiser_links.metadata.to_h
|
4656
4588
|
|
4657
4589
|
# Set x-goog-api-client and x-goog-user-project headers
|
4658
4590
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -4661,20 +4593,21 @@ module Google
|
|
4661
4593
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4662
4594
|
|
4663
4595
|
header_params = {
|
4664
|
-
"
|
4596
|
+
"parent" => request.parent
|
4665
4597
|
}
|
4666
4598
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4667
4599
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4668
4600
|
|
4669
|
-
options.apply_defaults timeout: @config.rpcs.
|
4601
|
+
options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_links.timeout,
|
4670
4602
|
metadata: metadata,
|
4671
|
-
retry_policy: @config.rpcs.
|
4603
|
+
retry_policy: @config.rpcs.list_display_video360_advertiser_links.retry_policy
|
4672
4604
|
|
4673
4605
|
options.apply_defaults timeout: @config.timeout,
|
4674
4606
|
metadata: @config.metadata,
|
4675
4607
|
retry_policy: @config.retry_policy
|
4676
4608
|
|
4677
|
-
@analytics_admin_service_stub.call_rpc :
|
4609
|
+
@analytics_admin_service_stub.call_rpc :list_display_video360_advertiser_links, request, options: options do |response, operation|
|
4610
|
+
response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_links, request, response, operation, options
|
4678
4611
|
yield response, operation if block_given?
|
4679
4612
|
return response
|
4680
4613
|
end
|
@@ -4683,54 +4616,50 @@ module Google
|
|
4683
4616
|
end
|
4684
4617
|
|
4685
4618
|
##
|
4686
|
-
#
|
4619
|
+
# Creates a DisplayVideo360AdvertiserLink.
|
4620
|
+
# This can only be utilized by users who have proper authorization both on
|
4621
|
+
# the Google Analytics property and on the Display & Video 360 advertiser.
|
4622
|
+
# Users who do not have access to the Display & Video 360 advertiser should
|
4623
|
+
# instead seek to create a DisplayVideo360LinkProposal.
|
4687
4624
|
#
|
4688
|
-
# @overload
|
4689
|
-
# Pass arguments to `
|
4690
|
-
# {::Google::Analytics::Admin::V1alpha::
|
4625
|
+
# @overload create_display_video360_advertiser_link(request, options = nil)
|
4626
|
+
# Pass arguments to `create_display_video360_advertiser_link` via a request object, either of type
|
4627
|
+
# {::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash.
|
4691
4628
|
#
|
4692
|
-
# @param request [::Google::Analytics::Admin::V1alpha::
|
4629
|
+
# @param request [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest, ::Hash]
|
4693
4630
|
# A request object representing the call parameters. Required. To specify no
|
4694
4631
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4695
4632
|
# @param options [::Gapic::CallOptions, ::Hash]
|
4696
4633
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4697
4634
|
#
|
4698
|
-
# @overload
|
4699
|
-
# Pass arguments to `
|
4635
|
+
# @overload create_display_video360_advertiser_link(parent: nil, display_video_360_advertiser_link: nil)
|
4636
|
+
# Pass arguments to `create_display_video360_advertiser_link` via keyword arguments. Note that at
|
4700
4637
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
4701
4638
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
4702
4639
|
#
|
4703
4640
|
# @param parent [::String]
|
4704
4641
|
# Required. Example format: properties/1234
|
4705
|
-
# @param
|
4706
|
-
# The
|
4707
|
-
# If unspecified, at most 50 resources will be returned.
|
4708
|
-
# The maximum value is 200 (higher values will be coerced to the maximum).
|
4709
|
-
# @param page_token [::String]
|
4710
|
-
# A page token, received from a previous `ListCustomDimensions` call.
|
4711
|
-
# Provide this to retrieve the subsequent page.
|
4712
|
-
#
|
4713
|
-
# When paginating, all other parameters provided to `ListCustomDimensions`
|
4714
|
-
# must match the call that provided the page token.
|
4642
|
+
# @param display_video_360_advertiser_link [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash]
|
4643
|
+
# Required. The DisplayVideo360AdvertiserLink to create.
|
4715
4644
|
#
|
4716
4645
|
# @yield [response, operation] Access the result along with the RPC operation
|
4717
|
-
# @yieldparam response [::
|
4646
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink]
|
4718
4647
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4719
4648
|
#
|
4720
|
-
# @return [::
|
4649
|
+
# @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink]
|
4721
4650
|
#
|
4722
4651
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4723
4652
|
#
|
4724
|
-
def
|
4653
|
+
def create_display_video360_advertiser_link request, options = nil
|
4725
4654
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4726
4655
|
|
4727
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::
|
4656
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest
|
4728
4657
|
|
4729
4658
|
# Converts hash and nil to an options object
|
4730
4659
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4731
4660
|
|
4732
4661
|
# Customize the options with defaults
|
4733
|
-
metadata = @config.rpcs.
|
4662
|
+
metadata = @config.rpcs.create_display_video360_advertiser_link.metadata.to_h
|
4734
4663
|
|
4735
4664
|
# Set x-goog-api-client and x-goog-user-project headers
|
4736
4665
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -4744,16 +4673,15 @@ module Google
|
|
4744
4673
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4745
4674
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4746
4675
|
|
4747
|
-
options.apply_defaults timeout: @config.rpcs.
|
4676
|
+
options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link.timeout,
|
4748
4677
|
metadata: metadata,
|
4749
|
-
retry_policy: @config.rpcs.
|
4678
|
+
retry_policy: @config.rpcs.create_display_video360_advertiser_link.retry_policy
|
4750
4679
|
|
4751
4680
|
options.apply_defaults timeout: @config.timeout,
|
4752
4681
|
metadata: @config.metadata,
|
4753
4682
|
retry_policy: @config.retry_policy
|
4754
4683
|
|
4755
|
-
@analytics_admin_service_stub.call_rpc :
|
4756
|
-
response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_dimensions, request, response, operation, options
|
4684
|
+
@analytics_admin_service_stub.call_rpc :create_display_video360_advertiser_link, request, options: options do |response, operation|
|
4757
4685
|
yield response, operation if block_given?
|
4758
4686
|
return response
|
4759
4687
|
end
|
@@ -4762,26 +4690,26 @@ module Google
|
|
4762
4690
|
end
|
4763
4691
|
|
4764
4692
|
##
|
4765
|
-
#
|
4693
|
+
# Deletes a DisplayVideo360AdvertiserLink on a property.
|
4766
4694
|
#
|
4767
|
-
# @overload
|
4768
|
-
# Pass arguments to `
|
4769
|
-
# {::Google::Analytics::Admin::V1alpha::
|
4695
|
+
# @overload delete_display_video360_advertiser_link(request, options = nil)
|
4696
|
+
# Pass arguments to `delete_display_video360_advertiser_link` via a request object, either of type
|
4697
|
+
# {::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash.
|
4770
4698
|
#
|
4771
|
-
# @param request [::Google::Analytics::Admin::V1alpha::
|
4699
|
+
# @param request [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest, ::Hash]
|
4772
4700
|
# A request object representing the call parameters. Required. To specify no
|
4773
4701
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4774
4702
|
# @param options [::Gapic::CallOptions, ::Hash]
|
4775
4703
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4776
4704
|
#
|
4777
|
-
# @overload
|
4778
|
-
# Pass arguments to `
|
4705
|
+
# @overload delete_display_video360_advertiser_link(name: nil)
|
4706
|
+
# Pass arguments to `delete_display_video360_advertiser_link` via keyword arguments. Note that at
|
4779
4707
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
4780
4708
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
4781
4709
|
#
|
4782
4710
|
# @param name [::String]
|
4783
|
-
# Required. The name of the
|
4784
|
-
# Example format: properties/1234/
|
4711
|
+
# Required. The name of the DisplayVideo360AdvertiserLink to delete.
|
4712
|
+
# Example format: properties/1234/displayVideo360AdvertiserLinks/5678
|
4785
4713
|
#
|
4786
4714
|
# @yield [response, operation] Access the result along with the RPC operation
|
4787
4715
|
# @yieldparam response [::Google::Protobuf::Empty]
|
@@ -4791,16 +4719,16 @@ module Google
|
|
4791
4719
|
#
|
4792
4720
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4793
4721
|
#
|
4794
|
-
def
|
4722
|
+
def delete_display_video360_advertiser_link request, options = nil
|
4795
4723
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4796
4724
|
|
4797
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::
|
4725
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest
|
4798
4726
|
|
4799
4727
|
# Converts hash and nil to an options object
|
4800
4728
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4801
4729
|
|
4802
4730
|
# Customize the options with defaults
|
4803
|
-
metadata = @config.rpcs.
|
4731
|
+
metadata = @config.rpcs.delete_display_video360_advertiser_link.metadata.to_h
|
4804
4732
|
|
4805
4733
|
# Set x-goog-api-client and x-goog-user-project headers
|
4806
4734
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -4814,15 +4742,15 @@ module Google
|
|
4814
4742
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4815
4743
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4816
4744
|
|
4817
|
-
options.apply_defaults timeout: @config.rpcs.
|
4745
|
+
options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link.timeout,
|
4818
4746
|
metadata: metadata,
|
4819
|
-
retry_policy: @config.rpcs.
|
4747
|
+
retry_policy: @config.rpcs.delete_display_video360_advertiser_link.retry_policy
|
4820
4748
|
|
4821
4749
|
options.apply_defaults timeout: @config.timeout,
|
4822
4750
|
metadata: @config.metadata,
|
4823
4751
|
retry_policy: @config.retry_policy
|
4824
4752
|
|
4825
|
-
@analytics_admin_service_stub.call_rpc :
|
4753
|
+
@analytics_admin_service_stub.call_rpc :delete_display_video360_advertiser_link, request, options: options do |response, operation|
|
4826
4754
|
yield response, operation if block_given?
|
4827
4755
|
return response
|
4828
4756
|
end
|
@@ -4831,45 +4759,48 @@ module Google
|
|
4831
4759
|
end
|
4832
4760
|
|
4833
4761
|
##
|
4834
|
-
#
|
4762
|
+
# Updates a DisplayVideo360AdvertiserLink on a property.
|
4835
4763
|
#
|
4836
|
-
# @overload
|
4837
|
-
# Pass arguments to `
|
4838
|
-
# {::Google::Analytics::Admin::V1alpha::
|
4764
|
+
# @overload update_display_video360_advertiser_link(request, options = nil)
|
4765
|
+
# Pass arguments to `update_display_video360_advertiser_link` via a request object, either of type
|
4766
|
+
# {::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash.
|
4839
4767
|
#
|
4840
|
-
# @param request [::Google::Analytics::Admin::V1alpha::
|
4768
|
+
# @param request [::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest, ::Hash]
|
4841
4769
|
# A request object representing the call parameters. Required. To specify no
|
4842
4770
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4843
4771
|
# @param options [::Gapic::CallOptions, ::Hash]
|
4844
4772
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4845
4773
|
#
|
4846
|
-
# @overload
|
4847
|
-
# Pass arguments to `
|
4774
|
+
# @overload update_display_video360_advertiser_link(display_video_360_advertiser_link: nil, update_mask: nil)
|
4775
|
+
# Pass arguments to `update_display_video360_advertiser_link` via keyword arguments. Note that at
|
4848
4776
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
4849
4777
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
4850
4778
|
#
|
4851
|
-
# @param
|
4852
|
-
#
|
4853
|
-
#
|
4779
|
+
# @param display_video_360_advertiser_link [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash]
|
4780
|
+
# The DisplayVideo360AdvertiserLink to update
|
4781
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
4782
|
+
# Required. The list of fields to be updated. Omitted fields will not be updated.
|
4783
|
+
# To replace the entire entity, use one path with the string "*" to match
|
4784
|
+
# all fields.
|
4854
4785
|
#
|
4855
4786
|
# @yield [response, operation] Access the result along with the RPC operation
|
4856
|
-
# @yieldparam response [::Google::Analytics::Admin::V1alpha::
|
4787
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink]
|
4857
4788
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4858
4789
|
#
|
4859
|
-
# @return [::Google::Analytics::Admin::V1alpha::
|
4790
|
+
# @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink]
|
4860
4791
|
#
|
4861
4792
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4862
4793
|
#
|
4863
|
-
def
|
4794
|
+
def update_display_video360_advertiser_link request, options = nil
|
4864
4795
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4865
4796
|
|
4866
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::
|
4797
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest
|
4867
4798
|
|
4868
4799
|
# Converts hash and nil to an options object
|
4869
4800
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4870
4801
|
|
4871
4802
|
# Customize the options with defaults
|
4872
|
-
metadata = @config.rpcs.
|
4803
|
+
metadata = @config.rpcs.update_display_video360_advertiser_link.metadata.to_h
|
4873
4804
|
|
4874
4805
|
# Set x-goog-api-client and x-goog-user-project headers
|
4875
4806
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -4878,20 +4809,20 @@ module Google
|
|
4878
4809
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4879
4810
|
|
4880
4811
|
header_params = {
|
4881
|
-
"name" => request.name
|
4812
|
+
"display_video_360_advertiser_link.name" => request.display_video_360_advertiser_link.name
|
4882
4813
|
}
|
4883
4814
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4884
4815
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4885
4816
|
|
4886
|
-
options.apply_defaults timeout: @config.rpcs.
|
4817
|
+
options.apply_defaults timeout: @config.rpcs.update_display_video360_advertiser_link.timeout,
|
4887
4818
|
metadata: metadata,
|
4888
|
-
retry_policy: @config.rpcs.
|
4819
|
+
retry_policy: @config.rpcs.update_display_video360_advertiser_link.retry_policy
|
4889
4820
|
|
4890
4821
|
options.apply_defaults timeout: @config.timeout,
|
4891
4822
|
metadata: @config.metadata,
|
4892
4823
|
retry_policy: @config.retry_policy
|
4893
4824
|
|
4894
|
-
@analytics_admin_service_stub.call_rpc :
|
4825
|
+
@analytics_admin_service_stub.call_rpc :update_display_video360_advertiser_link, request, options: options do |response, operation|
|
4895
4826
|
yield response, operation if block_given?
|
4896
4827
|
return response
|
4897
4828
|
end
|
@@ -4900,46 +4831,45 @@ module Google
|
|
4900
4831
|
end
|
4901
4832
|
|
4902
4833
|
##
|
4903
|
-
#
|
4834
|
+
# Lookup for a single DisplayVideo360AdvertiserLinkProposal.
|
4904
4835
|
#
|
4905
|
-
# @overload
|
4906
|
-
# Pass arguments to `
|
4907
|
-
# {::Google::Analytics::Admin::V1alpha::
|
4836
|
+
# @overload get_display_video360_advertiser_link_proposal(request, options = nil)
|
4837
|
+
# Pass arguments to `get_display_video360_advertiser_link_proposal` via a request object, either of type
|
4838
|
+
# {::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash.
|
4908
4839
|
#
|
4909
|
-
# @param request [::Google::Analytics::Admin::V1alpha::
|
4840
|
+
# @param request [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest, ::Hash]
|
4910
4841
|
# A request object representing the call parameters. Required. To specify no
|
4911
4842
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4912
4843
|
# @param options [::Gapic::CallOptions, ::Hash]
|
4913
4844
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4914
4845
|
#
|
4915
|
-
# @overload
|
4916
|
-
# Pass arguments to `
|
4846
|
+
# @overload get_display_video360_advertiser_link_proposal(name: nil)
|
4847
|
+
# Pass arguments to `get_display_video360_advertiser_link_proposal` via keyword arguments. Note that at
|
4917
4848
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
4918
4849
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
4919
4850
|
#
|
4920
|
-
# @param
|
4921
|
-
# Required.
|
4922
|
-
#
|
4923
|
-
# Required. The CustomMetric to create.
|
4851
|
+
# @param name [::String]
|
4852
|
+
# Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
|
4853
|
+
# Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
|
4924
4854
|
#
|
4925
4855
|
# @yield [response, operation] Access the result along with the RPC operation
|
4926
|
-
# @yieldparam response [::Google::Analytics::Admin::V1alpha::
|
4856
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal]
|
4927
4857
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4928
4858
|
#
|
4929
|
-
# @return [::Google::Analytics::Admin::V1alpha::
|
4859
|
+
# @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal]
|
4930
4860
|
#
|
4931
4861
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4932
4862
|
#
|
4933
|
-
def
|
4863
|
+
def get_display_video360_advertiser_link_proposal request, options = nil
|
4934
4864
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4935
4865
|
|
4936
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::
|
4866
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest
|
4937
4867
|
|
4938
4868
|
# Converts hash and nil to an options object
|
4939
4869
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4940
4870
|
|
4941
4871
|
# Customize the options with defaults
|
4942
|
-
metadata = @config.rpcs.
|
4872
|
+
metadata = @config.rpcs.get_display_video360_advertiser_link_proposal.metadata.to_h
|
4943
4873
|
|
4944
4874
|
# Set x-goog-api-client and x-goog-user-project headers
|
4945
4875
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -4948,20 +4878,20 @@ module Google
|
|
4948
4878
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4949
4879
|
|
4950
4880
|
header_params = {
|
4951
|
-
"
|
4881
|
+
"name" => request.name
|
4952
4882
|
}
|
4953
4883
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4954
4884
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4955
4885
|
|
4956
|
-
options.apply_defaults timeout: @config.rpcs.
|
4886
|
+
options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link_proposal.timeout,
|
4957
4887
|
metadata: metadata,
|
4958
|
-
retry_policy: @config.rpcs.
|
4888
|
+
retry_policy: @config.rpcs.get_display_video360_advertiser_link_proposal.retry_policy
|
4959
4889
|
|
4960
4890
|
options.apply_defaults timeout: @config.timeout,
|
4961
4891
|
metadata: @config.metadata,
|
4962
4892
|
retry_policy: @config.retry_policy
|
4963
4893
|
|
4964
|
-
@analytics_admin_service_stub.call_rpc :
|
4894
|
+
@analytics_admin_service_stub.call_rpc :get_display_video360_advertiser_link_proposal, request, options: options do |response, operation|
|
4965
4895
|
yield response, operation if block_given?
|
4966
4896
|
return response
|
4967
4897
|
end
|
@@ -4970,48 +4900,56 @@ module Google
|
|
4970
4900
|
end
|
4971
4901
|
|
4972
4902
|
##
|
4973
|
-
#
|
4903
|
+
# Lists DisplayVideo360AdvertiserLinkProposals on a property.
|
4974
4904
|
#
|
4975
|
-
# @overload
|
4976
|
-
# Pass arguments to `
|
4977
|
-
# {::Google::Analytics::Admin::V1alpha::
|
4905
|
+
# @overload list_display_video360_advertiser_link_proposals(request, options = nil)
|
4906
|
+
# Pass arguments to `list_display_video360_advertiser_link_proposals` via a request object, either of type
|
4907
|
+
# {::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest} or an equivalent Hash.
|
4978
4908
|
#
|
4979
|
-
# @param request [::Google::Analytics::Admin::V1alpha::
|
4909
|
+
# @param request [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest, ::Hash]
|
4980
4910
|
# A request object representing the call parameters. Required. To specify no
|
4981
4911
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4982
4912
|
# @param options [::Gapic::CallOptions, ::Hash]
|
4983
4913
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4984
4914
|
#
|
4985
|
-
# @overload
|
4986
|
-
# Pass arguments to `
|
4915
|
+
# @overload list_display_video360_advertiser_link_proposals(parent: nil, page_size: nil, page_token: nil)
|
4916
|
+
# Pass arguments to `list_display_video360_advertiser_link_proposals` via keyword arguments. Note that at
|
4987
4917
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
4988
4918
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
4989
4919
|
#
|
4990
|
-
# @param
|
4991
|
-
#
|
4992
|
-
# @param
|
4993
|
-
#
|
4994
|
-
#
|
4995
|
-
#
|
4920
|
+
# @param parent [::String]
|
4921
|
+
# Required. Example format: properties/1234
|
4922
|
+
# @param page_size [::Integer]
|
4923
|
+
# The maximum number of resources to return.
|
4924
|
+
# If unspecified, at most 50 resources will be returned.
|
4925
|
+
# The maximum value is 200 (higher values will be coerced to the maximum).
|
4926
|
+
# @param page_token [::String]
|
4927
|
+
# A page token, received from a previous
|
4928
|
+
# `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
|
4929
|
+
# the subsequent page.
|
4930
|
+
#
|
4931
|
+
# When paginating, all other parameters provided to
|
4932
|
+
# `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
|
4933
|
+
# provided the page token.
|
4996
4934
|
#
|
4997
4935
|
# @yield [response, operation] Access the result along with the RPC operation
|
4998
|
-
# @yieldparam response [::Google::Analytics::Admin::V1alpha::
|
4936
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>]
|
4999
4937
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5000
4938
|
#
|
5001
|
-
# @return [::Google::Analytics::Admin::V1alpha::
|
4939
|
+
# @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>]
|
5002
4940
|
#
|
5003
4941
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5004
4942
|
#
|
5005
|
-
def
|
4943
|
+
def list_display_video360_advertiser_link_proposals request, options = nil
|
5006
4944
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
5007
4945
|
|
5008
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::
|
4946
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest
|
5009
4947
|
|
5010
4948
|
# Converts hash and nil to an options object
|
5011
4949
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5012
4950
|
|
5013
4951
|
# Customize the options with defaults
|
5014
|
-
metadata = @config.rpcs.
|
4952
|
+
metadata = @config.rpcs.list_display_video360_advertiser_link_proposals.metadata.to_h
|
5015
4953
|
|
5016
4954
|
# Set x-goog-api-client and x-goog-user-project headers
|
5017
4955
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -5020,20 +4958,21 @@ module Google
|
|
5020
4958
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5021
4959
|
|
5022
4960
|
header_params = {
|
5023
|
-
"
|
4961
|
+
"parent" => request.parent
|
5024
4962
|
}
|
5025
4963
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5026
4964
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
5027
4965
|
|
5028
|
-
options.apply_defaults timeout: @config.rpcs.
|
4966
|
+
options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_link_proposals.timeout,
|
5029
4967
|
metadata: metadata,
|
5030
|
-
retry_policy: @config.rpcs.
|
4968
|
+
retry_policy: @config.rpcs.list_display_video360_advertiser_link_proposals.retry_policy
|
5031
4969
|
|
5032
4970
|
options.apply_defaults timeout: @config.timeout,
|
5033
4971
|
metadata: @config.metadata,
|
5034
4972
|
retry_policy: @config.retry_policy
|
5035
4973
|
|
5036
|
-
@analytics_admin_service_stub.call_rpc :
|
4974
|
+
@analytics_admin_service_stub.call_rpc :list_display_video360_advertiser_link_proposals, request, options: options do |response, operation|
|
4975
|
+
response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_link_proposals, request, response, operation, options
|
5037
4976
|
yield response, operation if block_given?
|
5038
4977
|
return response
|
5039
4978
|
end
|
@@ -5042,54 +4981,46 @@ module Google
|
|
5042
4981
|
end
|
5043
4982
|
|
5044
4983
|
##
|
5045
|
-
#
|
4984
|
+
# Creates a DisplayVideo360AdvertiserLinkProposal.
|
5046
4985
|
#
|
5047
|
-
# @overload
|
5048
|
-
# Pass arguments to `
|
5049
|
-
# {::Google::Analytics::Admin::V1alpha::
|
4986
|
+
# @overload create_display_video360_advertiser_link_proposal(request, options = nil)
|
4987
|
+
# Pass arguments to `create_display_video360_advertiser_link_proposal` via a request object, either of type
|
4988
|
+
# {::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash.
|
5050
4989
|
#
|
5051
|
-
# @param request [::Google::Analytics::Admin::V1alpha::
|
4990
|
+
# @param request [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest, ::Hash]
|
5052
4991
|
# A request object representing the call parameters. Required. To specify no
|
5053
4992
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5054
4993
|
# @param options [::Gapic::CallOptions, ::Hash]
|
5055
4994
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5056
4995
|
#
|
5057
|
-
# @overload
|
5058
|
-
# Pass arguments to `
|
4996
|
+
# @overload create_display_video360_advertiser_link_proposal(parent: nil, display_video_360_advertiser_link_proposal: nil)
|
4997
|
+
# Pass arguments to `create_display_video360_advertiser_link_proposal` via keyword arguments. Note that at
|
5059
4998
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
5060
4999
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
5061
5000
|
#
|
5062
5001
|
# @param parent [::String]
|
5063
5002
|
# Required. Example format: properties/1234
|
5064
|
-
# @param
|
5065
|
-
# The
|
5066
|
-
# If unspecified, at most 50 resources will be returned.
|
5067
|
-
# The maximum value is 200 (higher values will be coerced to the maximum).
|
5068
|
-
# @param page_token [::String]
|
5069
|
-
# A page token, received from a previous `ListCustomMetrics` call.
|
5070
|
-
# Provide this to retrieve the subsequent page.
|
5071
|
-
#
|
5072
|
-
# When paginating, all other parameters provided to `ListCustomMetrics` must
|
5073
|
-
# match the call that provided the page token.
|
5003
|
+
# @param display_video_360_advertiser_link_proposal [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal, ::Hash]
|
5004
|
+
# Required. The DisplayVideo360AdvertiserLinkProposal to create.
|
5074
5005
|
#
|
5075
5006
|
# @yield [response, operation] Access the result along with the RPC operation
|
5076
|
-
# @yieldparam response [::
|
5007
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal]
|
5077
5008
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5078
5009
|
#
|
5079
|
-
# @return [::
|
5010
|
+
# @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal]
|
5080
5011
|
#
|
5081
5012
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5082
5013
|
#
|
5083
|
-
def
|
5014
|
+
def create_display_video360_advertiser_link_proposal request, options = nil
|
5084
5015
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
5085
5016
|
|
5086
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::
|
5017
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest
|
5087
5018
|
|
5088
5019
|
# Converts hash and nil to an options object
|
5089
5020
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5090
5021
|
|
5091
5022
|
# Customize the options with defaults
|
5092
|
-
metadata = @config.rpcs.
|
5023
|
+
metadata = @config.rpcs.create_display_video360_advertiser_link_proposal.metadata.to_h
|
5093
5024
|
|
5094
5025
|
# Set x-goog-api-client and x-goog-user-project headers
|
5095
5026
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -5103,9 +5034,802 @@ module Google
|
|
5103
5034
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5104
5035
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
5105
5036
|
|
5106
|
-
options.apply_defaults timeout: @config.rpcs.
|
5037
|
+
options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link_proposal.timeout,
|
5107
5038
|
metadata: metadata,
|
5108
|
-
retry_policy: @config.rpcs.
|
5039
|
+
retry_policy: @config.rpcs.create_display_video360_advertiser_link_proposal.retry_policy
|
5040
|
+
|
5041
|
+
options.apply_defaults timeout: @config.timeout,
|
5042
|
+
metadata: @config.metadata,
|
5043
|
+
retry_policy: @config.retry_policy
|
5044
|
+
|
5045
|
+
@analytics_admin_service_stub.call_rpc :create_display_video360_advertiser_link_proposal, request, options: options do |response, operation|
|
5046
|
+
yield response, operation if block_given?
|
5047
|
+
return response
|
5048
|
+
end
|
5049
|
+
rescue ::GRPC::BadStatus => e
|
5050
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5051
|
+
end
|
5052
|
+
|
5053
|
+
##
|
5054
|
+
# Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
|
5055
|
+
# This can only be used on cancelled proposals.
|
5056
|
+
#
|
5057
|
+
# @overload delete_display_video360_advertiser_link_proposal(request, options = nil)
|
5058
|
+
# Pass arguments to `delete_display_video360_advertiser_link_proposal` via a request object, either of type
|
5059
|
+
# {::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash.
|
5060
|
+
#
|
5061
|
+
# @param request [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest, ::Hash]
|
5062
|
+
# A request object representing the call parameters. Required. To specify no
|
5063
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5064
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5065
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5066
|
+
#
|
5067
|
+
# @overload delete_display_video360_advertiser_link_proposal(name: nil)
|
5068
|
+
# Pass arguments to `delete_display_video360_advertiser_link_proposal` via keyword arguments. Note that at
|
5069
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5070
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5071
|
+
#
|
5072
|
+
# @param name [::String]
|
5073
|
+
# Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
|
5074
|
+
# Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
|
5075
|
+
#
|
5076
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5077
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
5078
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5079
|
+
#
|
5080
|
+
# @return [::Google::Protobuf::Empty]
|
5081
|
+
#
|
5082
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5083
|
+
#
|
5084
|
+
def delete_display_video360_advertiser_link_proposal request, options = nil
|
5085
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5086
|
+
|
5087
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest
|
5088
|
+
|
5089
|
+
# Converts hash and nil to an options object
|
5090
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5091
|
+
|
5092
|
+
# Customize the options with defaults
|
5093
|
+
metadata = @config.rpcs.delete_display_video360_advertiser_link_proposal.metadata.to_h
|
5094
|
+
|
5095
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5096
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5097
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5098
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5099
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5100
|
+
|
5101
|
+
header_params = {
|
5102
|
+
"name" => request.name
|
5103
|
+
}
|
5104
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5105
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5106
|
+
|
5107
|
+
options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link_proposal.timeout,
|
5108
|
+
metadata: metadata,
|
5109
|
+
retry_policy: @config.rpcs.delete_display_video360_advertiser_link_proposal.retry_policy
|
5110
|
+
|
5111
|
+
options.apply_defaults timeout: @config.timeout,
|
5112
|
+
metadata: @config.metadata,
|
5113
|
+
retry_policy: @config.retry_policy
|
5114
|
+
|
5115
|
+
@analytics_admin_service_stub.call_rpc :delete_display_video360_advertiser_link_proposal, request, options: options do |response, operation|
|
5116
|
+
yield response, operation if block_given?
|
5117
|
+
return response
|
5118
|
+
end
|
5119
|
+
rescue ::GRPC::BadStatus => e
|
5120
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5121
|
+
end
|
5122
|
+
|
5123
|
+
##
|
5124
|
+
# Approves a DisplayVideo360AdvertiserLinkProposal.
|
5125
|
+
# The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
|
5126
|
+
# DisplayVideo360AdvertiserLink will be created.
|
5127
|
+
#
|
5128
|
+
# @overload approve_display_video360_advertiser_link_proposal(request, options = nil)
|
5129
|
+
# Pass arguments to `approve_display_video360_advertiser_link_proposal` via a request object, either of type
|
5130
|
+
# {::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash.
|
5131
|
+
#
|
5132
|
+
# @param request [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest, ::Hash]
|
5133
|
+
# A request object representing the call parameters. Required. To specify no
|
5134
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5135
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5136
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5137
|
+
#
|
5138
|
+
# @overload approve_display_video360_advertiser_link_proposal(name: nil)
|
5139
|
+
# Pass arguments to `approve_display_video360_advertiser_link_proposal` via keyword arguments. Note that at
|
5140
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5141
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5142
|
+
#
|
5143
|
+
# @param name [::String]
|
5144
|
+
# Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
|
5145
|
+
# Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
|
5146
|
+
#
|
5147
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5148
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse]
|
5149
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5150
|
+
#
|
5151
|
+
# @return [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse]
|
5152
|
+
#
|
5153
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5154
|
+
#
|
5155
|
+
def approve_display_video360_advertiser_link_proposal request, options = nil
|
5156
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5157
|
+
|
5158
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest
|
5159
|
+
|
5160
|
+
# Converts hash and nil to an options object
|
5161
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5162
|
+
|
5163
|
+
# Customize the options with defaults
|
5164
|
+
metadata = @config.rpcs.approve_display_video360_advertiser_link_proposal.metadata.to_h
|
5165
|
+
|
5166
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5167
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5168
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5169
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5170
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5171
|
+
|
5172
|
+
header_params = {
|
5173
|
+
"name" => request.name
|
5174
|
+
}
|
5175
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5176
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5177
|
+
|
5178
|
+
options.apply_defaults timeout: @config.rpcs.approve_display_video360_advertiser_link_proposal.timeout,
|
5179
|
+
metadata: metadata,
|
5180
|
+
retry_policy: @config.rpcs.approve_display_video360_advertiser_link_proposal.retry_policy
|
5181
|
+
|
5182
|
+
options.apply_defaults timeout: @config.timeout,
|
5183
|
+
metadata: @config.metadata,
|
5184
|
+
retry_policy: @config.retry_policy
|
5185
|
+
|
5186
|
+
@analytics_admin_service_stub.call_rpc :approve_display_video360_advertiser_link_proposal, request, options: options do |response, operation|
|
5187
|
+
yield response, operation if block_given?
|
5188
|
+
return response
|
5189
|
+
end
|
5190
|
+
rescue ::GRPC::BadStatus => e
|
5191
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5192
|
+
end
|
5193
|
+
|
5194
|
+
##
|
5195
|
+
# Cancels a DisplayVideo360AdvertiserLinkProposal.
|
5196
|
+
# Cancelling can mean either:
|
5197
|
+
# - Declining a proposal initiated from Display & Video 360
|
5198
|
+
# - Withdrawing a proposal initiated from Google Analytics
|
5199
|
+
# After being cancelled, a proposal will eventually be deleted automatically.
|
5200
|
+
#
|
5201
|
+
# @overload cancel_display_video360_advertiser_link_proposal(request, options = nil)
|
5202
|
+
# Pass arguments to `cancel_display_video360_advertiser_link_proposal` via a request object, either of type
|
5203
|
+
# {::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash.
|
5204
|
+
#
|
5205
|
+
# @param request [::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest, ::Hash]
|
5206
|
+
# A request object representing the call parameters. Required. To specify no
|
5207
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5208
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5209
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5210
|
+
#
|
5211
|
+
# @overload cancel_display_video360_advertiser_link_proposal(name: nil)
|
5212
|
+
# Pass arguments to `cancel_display_video360_advertiser_link_proposal` via keyword arguments. Note that at
|
5213
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5214
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5215
|
+
#
|
5216
|
+
# @param name [::String]
|
5217
|
+
# Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
|
5218
|
+
# Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
|
5219
|
+
#
|
5220
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5221
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal]
|
5222
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5223
|
+
#
|
5224
|
+
# @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal]
|
5225
|
+
#
|
5226
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5227
|
+
#
|
5228
|
+
def cancel_display_video360_advertiser_link_proposal request, options = nil
|
5229
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5230
|
+
|
5231
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest
|
5232
|
+
|
5233
|
+
# Converts hash and nil to an options object
|
5234
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5235
|
+
|
5236
|
+
# Customize the options with defaults
|
5237
|
+
metadata = @config.rpcs.cancel_display_video360_advertiser_link_proposal.metadata.to_h
|
5238
|
+
|
5239
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5240
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5241
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5242
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5243
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5244
|
+
|
5245
|
+
header_params = {
|
5246
|
+
"name" => request.name
|
5247
|
+
}
|
5248
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5249
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5250
|
+
|
5251
|
+
options.apply_defaults timeout: @config.rpcs.cancel_display_video360_advertiser_link_proposal.timeout,
|
5252
|
+
metadata: metadata,
|
5253
|
+
retry_policy: @config.rpcs.cancel_display_video360_advertiser_link_proposal.retry_policy
|
5254
|
+
|
5255
|
+
options.apply_defaults timeout: @config.timeout,
|
5256
|
+
metadata: @config.metadata,
|
5257
|
+
retry_policy: @config.retry_policy
|
5258
|
+
|
5259
|
+
@analytics_admin_service_stub.call_rpc :cancel_display_video360_advertiser_link_proposal, request, options: options do |response, operation|
|
5260
|
+
yield response, operation if block_given?
|
5261
|
+
return response
|
5262
|
+
end
|
5263
|
+
rescue ::GRPC::BadStatus => e
|
5264
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5265
|
+
end
|
5266
|
+
|
5267
|
+
##
|
5268
|
+
# Creates a CustomDimension.
|
5269
|
+
#
|
5270
|
+
# @overload create_custom_dimension(request, options = nil)
|
5271
|
+
# Pass arguments to `create_custom_dimension` via a request object, either of type
|
5272
|
+
# {::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest} or an equivalent Hash.
|
5273
|
+
#
|
5274
|
+
# @param request [::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest, ::Hash]
|
5275
|
+
# A request object representing the call parameters. Required. To specify no
|
5276
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5277
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5278
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5279
|
+
#
|
5280
|
+
# @overload create_custom_dimension(parent: nil, custom_dimension: nil)
|
5281
|
+
# Pass arguments to `create_custom_dimension` via keyword arguments. Note that at
|
5282
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5283
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5284
|
+
#
|
5285
|
+
# @param parent [::String]
|
5286
|
+
# Required. Example format: properties/1234
|
5287
|
+
# @param custom_dimension [::Google::Analytics::Admin::V1alpha::CustomDimension, ::Hash]
|
5288
|
+
# Required. The CustomDimension to create.
|
5289
|
+
#
|
5290
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5291
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomDimension]
|
5292
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5293
|
+
#
|
5294
|
+
# @return [::Google::Analytics::Admin::V1alpha::CustomDimension]
|
5295
|
+
#
|
5296
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5297
|
+
#
|
5298
|
+
def create_custom_dimension request, options = nil
|
5299
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5300
|
+
|
5301
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest
|
5302
|
+
|
5303
|
+
# Converts hash and nil to an options object
|
5304
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5305
|
+
|
5306
|
+
# Customize the options with defaults
|
5307
|
+
metadata = @config.rpcs.create_custom_dimension.metadata.to_h
|
5308
|
+
|
5309
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5310
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5311
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5312
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5313
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5314
|
+
|
5315
|
+
header_params = {
|
5316
|
+
"parent" => request.parent
|
5317
|
+
}
|
5318
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5319
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5320
|
+
|
5321
|
+
options.apply_defaults timeout: @config.rpcs.create_custom_dimension.timeout,
|
5322
|
+
metadata: metadata,
|
5323
|
+
retry_policy: @config.rpcs.create_custom_dimension.retry_policy
|
5324
|
+
|
5325
|
+
options.apply_defaults timeout: @config.timeout,
|
5326
|
+
metadata: @config.metadata,
|
5327
|
+
retry_policy: @config.retry_policy
|
5328
|
+
|
5329
|
+
@analytics_admin_service_stub.call_rpc :create_custom_dimension, request, options: options do |response, operation|
|
5330
|
+
yield response, operation if block_given?
|
5331
|
+
return response
|
5332
|
+
end
|
5333
|
+
rescue ::GRPC::BadStatus => e
|
5334
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5335
|
+
end
|
5336
|
+
|
5337
|
+
##
|
5338
|
+
# Updates a CustomDimension on a property.
|
5339
|
+
#
|
5340
|
+
# @overload update_custom_dimension(request, options = nil)
|
5341
|
+
# Pass arguments to `update_custom_dimension` via a request object, either of type
|
5342
|
+
# {::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest} or an equivalent Hash.
|
5343
|
+
#
|
5344
|
+
# @param request [::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest, ::Hash]
|
5345
|
+
# A request object representing the call parameters. Required. To specify no
|
5346
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5347
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5348
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5349
|
+
#
|
5350
|
+
# @overload update_custom_dimension(custom_dimension: nil, update_mask: nil)
|
5351
|
+
# Pass arguments to `update_custom_dimension` via keyword arguments. Note that at
|
5352
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5353
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5354
|
+
#
|
5355
|
+
# @param custom_dimension [::Google::Analytics::Admin::V1alpha::CustomDimension, ::Hash]
|
5356
|
+
# The CustomDimension to update
|
5357
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
5358
|
+
# Required. The list of fields to be updated. Omitted fields will not be updated.
|
5359
|
+
# To replace the entire entity, use one path with the string "*" to match
|
5360
|
+
# all fields.
|
5361
|
+
#
|
5362
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5363
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomDimension]
|
5364
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5365
|
+
#
|
5366
|
+
# @return [::Google::Analytics::Admin::V1alpha::CustomDimension]
|
5367
|
+
#
|
5368
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5369
|
+
#
|
5370
|
+
def update_custom_dimension request, options = nil
|
5371
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5372
|
+
|
5373
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest
|
5374
|
+
|
5375
|
+
# Converts hash and nil to an options object
|
5376
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5377
|
+
|
5378
|
+
# Customize the options with defaults
|
5379
|
+
metadata = @config.rpcs.update_custom_dimension.metadata.to_h
|
5380
|
+
|
5381
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5382
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5383
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5384
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5385
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5386
|
+
|
5387
|
+
header_params = {
|
5388
|
+
"custom_dimension.name" => request.custom_dimension.name
|
5389
|
+
}
|
5390
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5391
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5392
|
+
|
5393
|
+
options.apply_defaults timeout: @config.rpcs.update_custom_dimension.timeout,
|
5394
|
+
metadata: metadata,
|
5395
|
+
retry_policy: @config.rpcs.update_custom_dimension.retry_policy
|
5396
|
+
|
5397
|
+
options.apply_defaults timeout: @config.timeout,
|
5398
|
+
metadata: @config.metadata,
|
5399
|
+
retry_policy: @config.retry_policy
|
5400
|
+
|
5401
|
+
@analytics_admin_service_stub.call_rpc :update_custom_dimension, request, options: options do |response, operation|
|
5402
|
+
yield response, operation if block_given?
|
5403
|
+
return response
|
5404
|
+
end
|
5405
|
+
rescue ::GRPC::BadStatus => e
|
5406
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5407
|
+
end
|
5408
|
+
|
5409
|
+
##
|
5410
|
+
# Lists CustomDimensions on a property.
|
5411
|
+
#
|
5412
|
+
# @overload list_custom_dimensions(request, options = nil)
|
5413
|
+
# Pass arguments to `list_custom_dimensions` via a request object, either of type
|
5414
|
+
# {::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest} or an equivalent Hash.
|
5415
|
+
#
|
5416
|
+
# @param request [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest, ::Hash]
|
5417
|
+
# A request object representing the call parameters. Required. To specify no
|
5418
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5419
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5420
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5421
|
+
#
|
5422
|
+
# @overload list_custom_dimensions(parent: nil, page_size: nil, page_token: nil)
|
5423
|
+
# Pass arguments to `list_custom_dimensions` via keyword arguments. Note that at
|
5424
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5425
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5426
|
+
#
|
5427
|
+
# @param parent [::String]
|
5428
|
+
# Required. Example format: properties/1234
|
5429
|
+
# @param page_size [::Integer]
|
5430
|
+
# The maximum number of resources to return.
|
5431
|
+
# If unspecified, at most 50 resources will be returned.
|
5432
|
+
# The maximum value is 200 (higher values will be coerced to the maximum).
|
5433
|
+
# @param page_token [::String]
|
5434
|
+
# A page token, received from a previous `ListCustomDimensions` call.
|
5435
|
+
# Provide this to retrieve the subsequent page.
|
5436
|
+
#
|
5437
|
+
# When paginating, all other parameters provided to `ListCustomDimensions`
|
5438
|
+
# must match the call that provided the page token.
|
5439
|
+
#
|
5440
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5441
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>]
|
5442
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5443
|
+
#
|
5444
|
+
# @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>]
|
5445
|
+
#
|
5446
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5447
|
+
#
|
5448
|
+
def list_custom_dimensions request, options = nil
|
5449
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5450
|
+
|
5451
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest
|
5452
|
+
|
5453
|
+
# Converts hash and nil to an options object
|
5454
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5455
|
+
|
5456
|
+
# Customize the options with defaults
|
5457
|
+
metadata = @config.rpcs.list_custom_dimensions.metadata.to_h
|
5458
|
+
|
5459
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5460
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5461
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5462
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5463
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5464
|
+
|
5465
|
+
header_params = {
|
5466
|
+
"parent" => request.parent
|
5467
|
+
}
|
5468
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5469
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5470
|
+
|
5471
|
+
options.apply_defaults timeout: @config.rpcs.list_custom_dimensions.timeout,
|
5472
|
+
metadata: metadata,
|
5473
|
+
retry_policy: @config.rpcs.list_custom_dimensions.retry_policy
|
5474
|
+
|
5475
|
+
options.apply_defaults timeout: @config.timeout,
|
5476
|
+
metadata: @config.metadata,
|
5477
|
+
retry_policy: @config.retry_policy
|
5478
|
+
|
5479
|
+
@analytics_admin_service_stub.call_rpc :list_custom_dimensions, request, options: options do |response, operation|
|
5480
|
+
response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_dimensions, request, response, operation, options
|
5481
|
+
yield response, operation if block_given?
|
5482
|
+
return response
|
5483
|
+
end
|
5484
|
+
rescue ::GRPC::BadStatus => e
|
5485
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5486
|
+
end
|
5487
|
+
|
5488
|
+
##
|
5489
|
+
# Archives a CustomDimension on a property.
|
5490
|
+
#
|
5491
|
+
# @overload archive_custom_dimension(request, options = nil)
|
5492
|
+
# Pass arguments to `archive_custom_dimension` via a request object, either of type
|
5493
|
+
# {::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest} or an equivalent Hash.
|
5494
|
+
#
|
5495
|
+
# @param request [::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest, ::Hash]
|
5496
|
+
# A request object representing the call parameters. Required. To specify no
|
5497
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5498
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5499
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5500
|
+
#
|
5501
|
+
# @overload archive_custom_dimension(name: nil)
|
5502
|
+
# Pass arguments to `archive_custom_dimension` via keyword arguments. Note that at
|
5503
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5504
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5505
|
+
#
|
5506
|
+
# @param name [::String]
|
5507
|
+
# Required. The name of the CustomDimension to archive.
|
5508
|
+
# Example format: properties/1234/customDimensions/5678
|
5509
|
+
#
|
5510
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5511
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
5512
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5513
|
+
#
|
5514
|
+
# @return [::Google::Protobuf::Empty]
|
5515
|
+
#
|
5516
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5517
|
+
#
|
5518
|
+
def archive_custom_dimension request, options = nil
|
5519
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5520
|
+
|
5521
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest
|
5522
|
+
|
5523
|
+
# Converts hash and nil to an options object
|
5524
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5525
|
+
|
5526
|
+
# Customize the options with defaults
|
5527
|
+
metadata = @config.rpcs.archive_custom_dimension.metadata.to_h
|
5528
|
+
|
5529
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5530
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5531
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5532
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5533
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5534
|
+
|
5535
|
+
header_params = {
|
5536
|
+
"name" => request.name
|
5537
|
+
}
|
5538
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5539
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5540
|
+
|
5541
|
+
options.apply_defaults timeout: @config.rpcs.archive_custom_dimension.timeout,
|
5542
|
+
metadata: metadata,
|
5543
|
+
retry_policy: @config.rpcs.archive_custom_dimension.retry_policy
|
5544
|
+
|
5545
|
+
options.apply_defaults timeout: @config.timeout,
|
5546
|
+
metadata: @config.metadata,
|
5547
|
+
retry_policy: @config.retry_policy
|
5548
|
+
|
5549
|
+
@analytics_admin_service_stub.call_rpc :archive_custom_dimension, request, options: options do |response, operation|
|
5550
|
+
yield response, operation if block_given?
|
5551
|
+
return response
|
5552
|
+
end
|
5553
|
+
rescue ::GRPC::BadStatus => e
|
5554
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5555
|
+
end
|
5556
|
+
|
5557
|
+
##
|
5558
|
+
# Lookup for a single CustomDimension.
|
5559
|
+
#
|
5560
|
+
# @overload get_custom_dimension(request, options = nil)
|
5561
|
+
# Pass arguments to `get_custom_dimension` via a request object, either of type
|
5562
|
+
# {::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest} or an equivalent Hash.
|
5563
|
+
#
|
5564
|
+
# @param request [::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest, ::Hash]
|
5565
|
+
# A request object representing the call parameters. Required. To specify no
|
5566
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5567
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5568
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5569
|
+
#
|
5570
|
+
# @overload get_custom_dimension(name: nil)
|
5571
|
+
# Pass arguments to `get_custom_dimension` via keyword arguments. Note that at
|
5572
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5573
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5574
|
+
#
|
5575
|
+
# @param name [::String]
|
5576
|
+
# Required. The name of the CustomDimension to get.
|
5577
|
+
# Example format: properties/1234/customDimensions/5678
|
5578
|
+
#
|
5579
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5580
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomDimension]
|
5581
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5582
|
+
#
|
5583
|
+
# @return [::Google::Analytics::Admin::V1alpha::CustomDimension]
|
5584
|
+
#
|
5585
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5586
|
+
#
|
5587
|
+
def get_custom_dimension request, options = nil
|
5588
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5589
|
+
|
5590
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest
|
5591
|
+
|
5592
|
+
# Converts hash and nil to an options object
|
5593
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5594
|
+
|
5595
|
+
# Customize the options with defaults
|
5596
|
+
metadata = @config.rpcs.get_custom_dimension.metadata.to_h
|
5597
|
+
|
5598
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5599
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5600
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5601
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5602
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5603
|
+
|
5604
|
+
header_params = {
|
5605
|
+
"name" => request.name
|
5606
|
+
}
|
5607
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5608
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5609
|
+
|
5610
|
+
options.apply_defaults timeout: @config.rpcs.get_custom_dimension.timeout,
|
5611
|
+
metadata: metadata,
|
5612
|
+
retry_policy: @config.rpcs.get_custom_dimension.retry_policy
|
5613
|
+
|
5614
|
+
options.apply_defaults timeout: @config.timeout,
|
5615
|
+
metadata: @config.metadata,
|
5616
|
+
retry_policy: @config.retry_policy
|
5617
|
+
|
5618
|
+
@analytics_admin_service_stub.call_rpc :get_custom_dimension, request, options: options do |response, operation|
|
5619
|
+
yield response, operation if block_given?
|
5620
|
+
return response
|
5621
|
+
end
|
5622
|
+
rescue ::GRPC::BadStatus => e
|
5623
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5624
|
+
end
|
5625
|
+
|
5626
|
+
##
|
5627
|
+
# Creates a CustomMetric.
|
5628
|
+
#
|
5629
|
+
# @overload create_custom_metric(request, options = nil)
|
5630
|
+
# Pass arguments to `create_custom_metric` via a request object, either of type
|
5631
|
+
# {::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest} or an equivalent Hash.
|
5632
|
+
#
|
5633
|
+
# @param request [::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest, ::Hash]
|
5634
|
+
# A request object representing the call parameters. Required. To specify no
|
5635
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5636
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5637
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5638
|
+
#
|
5639
|
+
# @overload create_custom_metric(parent: nil, custom_metric: nil)
|
5640
|
+
# Pass arguments to `create_custom_metric` via keyword arguments. Note that at
|
5641
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5642
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5643
|
+
#
|
5644
|
+
# @param parent [::String]
|
5645
|
+
# Required. Example format: properties/1234
|
5646
|
+
# @param custom_metric [::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash]
|
5647
|
+
# Required. The CustomMetric to create.
|
5648
|
+
#
|
5649
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5650
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomMetric]
|
5651
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5652
|
+
#
|
5653
|
+
# @return [::Google::Analytics::Admin::V1alpha::CustomMetric]
|
5654
|
+
#
|
5655
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5656
|
+
#
|
5657
|
+
def create_custom_metric request, options = nil
|
5658
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5659
|
+
|
5660
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest
|
5661
|
+
|
5662
|
+
# Converts hash and nil to an options object
|
5663
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5664
|
+
|
5665
|
+
# Customize the options with defaults
|
5666
|
+
metadata = @config.rpcs.create_custom_metric.metadata.to_h
|
5667
|
+
|
5668
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5669
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5670
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5671
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5672
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5673
|
+
|
5674
|
+
header_params = {
|
5675
|
+
"parent" => request.parent
|
5676
|
+
}
|
5677
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5678
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5679
|
+
|
5680
|
+
options.apply_defaults timeout: @config.rpcs.create_custom_metric.timeout,
|
5681
|
+
metadata: metadata,
|
5682
|
+
retry_policy: @config.rpcs.create_custom_metric.retry_policy
|
5683
|
+
|
5684
|
+
options.apply_defaults timeout: @config.timeout,
|
5685
|
+
metadata: @config.metadata,
|
5686
|
+
retry_policy: @config.retry_policy
|
5687
|
+
|
5688
|
+
@analytics_admin_service_stub.call_rpc :create_custom_metric, request, options: options do |response, operation|
|
5689
|
+
yield response, operation if block_given?
|
5690
|
+
return response
|
5691
|
+
end
|
5692
|
+
rescue ::GRPC::BadStatus => e
|
5693
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5694
|
+
end
|
5695
|
+
|
5696
|
+
##
|
5697
|
+
# Updates a CustomMetric on a property.
|
5698
|
+
#
|
5699
|
+
# @overload update_custom_metric(request, options = nil)
|
5700
|
+
# Pass arguments to `update_custom_metric` via a request object, either of type
|
5701
|
+
# {::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest} or an equivalent Hash.
|
5702
|
+
#
|
5703
|
+
# @param request [::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest, ::Hash]
|
5704
|
+
# A request object representing the call parameters. Required. To specify no
|
5705
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5706
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5707
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5708
|
+
#
|
5709
|
+
# @overload update_custom_metric(custom_metric: nil, update_mask: nil)
|
5710
|
+
# Pass arguments to `update_custom_metric` via keyword arguments. Note that at
|
5711
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5712
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5713
|
+
#
|
5714
|
+
# @param custom_metric [::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash]
|
5715
|
+
# The CustomMetric to update
|
5716
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
5717
|
+
# Required. The list of fields to be updated. Omitted fields will not be updated.
|
5718
|
+
# To replace the entire entity, use one path with the string "*" to match
|
5719
|
+
# all fields.
|
5720
|
+
#
|
5721
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5722
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomMetric]
|
5723
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5724
|
+
#
|
5725
|
+
# @return [::Google::Analytics::Admin::V1alpha::CustomMetric]
|
5726
|
+
#
|
5727
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5728
|
+
#
|
5729
|
+
def update_custom_metric request, options = nil
|
5730
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5731
|
+
|
5732
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest
|
5733
|
+
|
5734
|
+
# Converts hash and nil to an options object
|
5735
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5736
|
+
|
5737
|
+
# Customize the options with defaults
|
5738
|
+
metadata = @config.rpcs.update_custom_metric.metadata.to_h
|
5739
|
+
|
5740
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5741
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5742
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5743
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5744
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5745
|
+
|
5746
|
+
header_params = {
|
5747
|
+
"custom_metric.name" => request.custom_metric.name
|
5748
|
+
}
|
5749
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5750
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5751
|
+
|
5752
|
+
options.apply_defaults timeout: @config.rpcs.update_custom_metric.timeout,
|
5753
|
+
metadata: metadata,
|
5754
|
+
retry_policy: @config.rpcs.update_custom_metric.retry_policy
|
5755
|
+
|
5756
|
+
options.apply_defaults timeout: @config.timeout,
|
5757
|
+
metadata: @config.metadata,
|
5758
|
+
retry_policy: @config.retry_policy
|
5759
|
+
|
5760
|
+
@analytics_admin_service_stub.call_rpc :update_custom_metric, request, options: options do |response, operation|
|
5761
|
+
yield response, operation if block_given?
|
5762
|
+
return response
|
5763
|
+
end
|
5764
|
+
rescue ::GRPC::BadStatus => e
|
5765
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5766
|
+
end
|
5767
|
+
|
5768
|
+
##
|
5769
|
+
# Lists CustomMetrics on a property.
|
5770
|
+
#
|
5771
|
+
# @overload list_custom_metrics(request, options = nil)
|
5772
|
+
# Pass arguments to `list_custom_metrics` via a request object, either of type
|
5773
|
+
# {::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest} or an equivalent Hash.
|
5774
|
+
#
|
5775
|
+
# @param request [::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest, ::Hash]
|
5776
|
+
# A request object representing the call parameters. Required. To specify no
|
5777
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5778
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5779
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5780
|
+
#
|
5781
|
+
# @overload list_custom_metrics(parent: nil, page_size: nil, page_token: nil)
|
5782
|
+
# Pass arguments to `list_custom_metrics` via keyword arguments. Note that at
|
5783
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5784
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5785
|
+
#
|
5786
|
+
# @param parent [::String]
|
5787
|
+
# Required. Example format: properties/1234
|
5788
|
+
# @param page_size [::Integer]
|
5789
|
+
# The maximum number of resources to return.
|
5790
|
+
# If unspecified, at most 50 resources will be returned.
|
5791
|
+
# The maximum value is 200 (higher values will be coerced to the maximum).
|
5792
|
+
# @param page_token [::String]
|
5793
|
+
# A page token, received from a previous `ListCustomMetrics` call.
|
5794
|
+
# Provide this to retrieve the subsequent page.
|
5795
|
+
#
|
5796
|
+
# When paginating, all other parameters provided to `ListCustomMetrics` must
|
5797
|
+
# match the call that provided the page token.
|
5798
|
+
#
|
5799
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5800
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>]
|
5801
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5802
|
+
#
|
5803
|
+
# @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>]
|
5804
|
+
#
|
5805
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5806
|
+
#
|
5807
|
+
def list_custom_metrics request, options = nil
|
5808
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5809
|
+
|
5810
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest
|
5811
|
+
|
5812
|
+
# Converts hash and nil to an options object
|
5813
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5814
|
+
|
5815
|
+
# Customize the options with defaults
|
5816
|
+
metadata = @config.rpcs.list_custom_metrics.metadata.to_h
|
5817
|
+
|
5818
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
5819
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5820
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5821
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
5822
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5823
|
+
|
5824
|
+
header_params = {
|
5825
|
+
"parent" => request.parent
|
5826
|
+
}
|
5827
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5828
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5829
|
+
|
5830
|
+
options.apply_defaults timeout: @config.rpcs.list_custom_metrics.timeout,
|
5831
|
+
metadata: metadata,
|
5832
|
+
retry_policy: @config.rpcs.list_custom_metrics.retry_policy
|
5109
5833
|
|
5110
5834
|
options.apply_defaults timeout: @config.timeout,
|
5111
5835
|
metadata: @config.metadata,
|
@@ -5258,6 +5982,150 @@ module Google
|
|
5258
5982
|
raise ::Google::Cloud::Error.from_error(e)
|
5259
5983
|
end
|
5260
5984
|
|
5985
|
+
##
|
5986
|
+
# Returns the singleton data retention settings for this property.
|
5987
|
+
#
|
5988
|
+
# @overload get_data_retention_settings(request, options = nil)
|
5989
|
+
# Pass arguments to `get_data_retention_settings` via a request object, either of type
|
5990
|
+
# {::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest} or an equivalent Hash.
|
5991
|
+
#
|
5992
|
+
# @param request [::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest, ::Hash]
|
5993
|
+
# A request object representing the call parameters. Required. To specify no
|
5994
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5995
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5996
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5997
|
+
#
|
5998
|
+
# @overload get_data_retention_settings(name: nil)
|
5999
|
+
# Pass arguments to `get_data_retention_settings` via keyword arguments. Note that at
|
6000
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6001
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6002
|
+
#
|
6003
|
+
# @param name [::String]
|
6004
|
+
# Required. The name of the settings to lookup.
|
6005
|
+
# Format:
|
6006
|
+
# properties/\\{property}/dataRetentionSettings
|
6007
|
+
# Example: "properties/1000/dataRetentionSettings"
|
6008
|
+
#
|
6009
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6010
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DataRetentionSettings]
|
6011
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6012
|
+
#
|
6013
|
+
# @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings]
|
6014
|
+
#
|
6015
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6016
|
+
#
|
6017
|
+
def get_data_retention_settings request, options = nil
|
6018
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6019
|
+
|
6020
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest
|
6021
|
+
|
6022
|
+
# Converts hash and nil to an options object
|
6023
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6024
|
+
|
6025
|
+
# Customize the options with defaults
|
6026
|
+
metadata = @config.rpcs.get_data_retention_settings.metadata.to_h
|
6027
|
+
|
6028
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
6029
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6030
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6031
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
6032
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6033
|
+
|
6034
|
+
header_params = {
|
6035
|
+
"name" => request.name
|
6036
|
+
}
|
6037
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6038
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6039
|
+
|
6040
|
+
options.apply_defaults timeout: @config.rpcs.get_data_retention_settings.timeout,
|
6041
|
+
metadata: metadata,
|
6042
|
+
retry_policy: @config.rpcs.get_data_retention_settings.retry_policy
|
6043
|
+
|
6044
|
+
options.apply_defaults timeout: @config.timeout,
|
6045
|
+
metadata: @config.metadata,
|
6046
|
+
retry_policy: @config.retry_policy
|
6047
|
+
|
6048
|
+
@analytics_admin_service_stub.call_rpc :get_data_retention_settings, request, options: options do |response, operation|
|
6049
|
+
yield response, operation if block_given?
|
6050
|
+
return response
|
6051
|
+
end
|
6052
|
+
rescue ::GRPC::BadStatus => e
|
6053
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6054
|
+
end
|
6055
|
+
|
6056
|
+
##
|
6057
|
+
# Updates the singleton data retention settings for this property.
|
6058
|
+
#
|
6059
|
+
# @overload update_data_retention_settings(request, options = nil)
|
6060
|
+
# Pass arguments to `update_data_retention_settings` via a request object, either of type
|
6061
|
+
# {::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest} or an equivalent Hash.
|
6062
|
+
#
|
6063
|
+
# @param request [::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest, ::Hash]
|
6064
|
+
# A request object representing the call parameters. Required. To specify no
|
6065
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6066
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6067
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6068
|
+
#
|
6069
|
+
# @overload update_data_retention_settings(data_retention_settings: nil, update_mask: nil)
|
6070
|
+
# Pass arguments to `update_data_retention_settings` via keyword arguments. Note that at
|
6071
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6072
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6073
|
+
#
|
6074
|
+
# @param data_retention_settings [::Google::Analytics::Admin::V1alpha::DataRetentionSettings, ::Hash]
|
6075
|
+
# Required. The settings to update.
|
6076
|
+
# The `name` field is used to identify the settings to be updated.
|
6077
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
6078
|
+
# Required. The list of fields to be updated. Field names must be in snake case
|
6079
|
+
# (e.g., "field_to_update"). Omitted fields will not be updated. To replace
|
6080
|
+
# the entire entity, use one path with the string "*" to match all fields.
|
6081
|
+
#
|
6082
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6083
|
+
# @yieldparam response [::Google::Analytics::Admin::V1alpha::DataRetentionSettings]
|
6084
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6085
|
+
#
|
6086
|
+
# @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings]
|
6087
|
+
#
|
6088
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6089
|
+
#
|
6090
|
+
def update_data_retention_settings request, options = nil
|
6091
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6092
|
+
|
6093
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest
|
6094
|
+
|
6095
|
+
# Converts hash and nil to an options object
|
6096
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6097
|
+
|
6098
|
+
# Customize the options with defaults
|
6099
|
+
metadata = @config.rpcs.update_data_retention_settings.metadata.to_h
|
6100
|
+
|
6101
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
6102
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6103
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6104
|
+
gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
|
6105
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6106
|
+
|
6107
|
+
header_params = {
|
6108
|
+
"data_retention_settings.name" => request.data_retention_settings.name
|
6109
|
+
}
|
6110
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6111
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6112
|
+
|
6113
|
+
options.apply_defaults timeout: @config.rpcs.update_data_retention_settings.timeout,
|
6114
|
+
metadata: metadata,
|
6115
|
+
retry_policy: @config.rpcs.update_data_retention_settings.retry_policy
|
6116
|
+
|
6117
|
+
options.apply_defaults timeout: @config.timeout,
|
6118
|
+
metadata: @config.metadata,
|
6119
|
+
retry_policy: @config.retry_policy
|
6120
|
+
|
6121
|
+
@analytics_admin_service_stub.call_rpc :update_data_retention_settings, request, options: options do |response, operation|
|
6122
|
+
yield response, operation if block_given?
|
6123
|
+
return response
|
6124
|
+
end
|
6125
|
+
rescue ::GRPC::BadStatus => e
|
6126
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6127
|
+
end
|
6128
|
+
|
5261
6129
|
##
|
5262
6130
|
# Configuration class for the AnalyticsAdminService API.
|
5263
6131
|
#
|
@@ -5579,11 +6447,6 @@ module Google
|
|
5579
6447
|
#
|
5580
6448
|
attr_reader :create_firebase_link
|
5581
6449
|
##
|
5582
|
-
# RPC-specific configuration for `update_firebase_link`
|
5583
|
-
# @return [::Gapic::Config::Method]
|
5584
|
-
#
|
5585
|
-
attr_reader :update_firebase_link
|
5586
|
-
##
|
5587
6450
|
# RPC-specific configuration for `delete_firebase_link`
|
5588
6451
|
# @return [::Gapic::Config::Method]
|
5589
6452
|
#
|
@@ -5684,6 +6547,61 @@ module Google
|
|
5684
6547
|
#
|
5685
6548
|
attr_reader :list_conversion_events
|
5686
6549
|
##
|
6550
|
+
# RPC-specific configuration for `get_display_video360_advertiser_link`
|
6551
|
+
# @return [::Gapic::Config::Method]
|
6552
|
+
#
|
6553
|
+
attr_reader :get_display_video360_advertiser_link
|
6554
|
+
##
|
6555
|
+
# RPC-specific configuration for `list_display_video360_advertiser_links`
|
6556
|
+
# @return [::Gapic::Config::Method]
|
6557
|
+
#
|
6558
|
+
attr_reader :list_display_video360_advertiser_links
|
6559
|
+
##
|
6560
|
+
# RPC-specific configuration for `create_display_video360_advertiser_link`
|
6561
|
+
# @return [::Gapic::Config::Method]
|
6562
|
+
#
|
6563
|
+
attr_reader :create_display_video360_advertiser_link
|
6564
|
+
##
|
6565
|
+
# RPC-specific configuration for `delete_display_video360_advertiser_link`
|
6566
|
+
# @return [::Gapic::Config::Method]
|
6567
|
+
#
|
6568
|
+
attr_reader :delete_display_video360_advertiser_link
|
6569
|
+
##
|
6570
|
+
# RPC-specific configuration for `update_display_video360_advertiser_link`
|
6571
|
+
# @return [::Gapic::Config::Method]
|
6572
|
+
#
|
6573
|
+
attr_reader :update_display_video360_advertiser_link
|
6574
|
+
##
|
6575
|
+
# RPC-specific configuration for `get_display_video360_advertiser_link_proposal`
|
6576
|
+
# @return [::Gapic::Config::Method]
|
6577
|
+
#
|
6578
|
+
attr_reader :get_display_video360_advertiser_link_proposal
|
6579
|
+
##
|
6580
|
+
# RPC-specific configuration for `list_display_video360_advertiser_link_proposals`
|
6581
|
+
# @return [::Gapic::Config::Method]
|
6582
|
+
#
|
6583
|
+
attr_reader :list_display_video360_advertiser_link_proposals
|
6584
|
+
##
|
6585
|
+
# RPC-specific configuration for `create_display_video360_advertiser_link_proposal`
|
6586
|
+
# @return [::Gapic::Config::Method]
|
6587
|
+
#
|
6588
|
+
attr_reader :create_display_video360_advertiser_link_proposal
|
6589
|
+
##
|
6590
|
+
# RPC-specific configuration for `delete_display_video360_advertiser_link_proposal`
|
6591
|
+
# @return [::Gapic::Config::Method]
|
6592
|
+
#
|
6593
|
+
attr_reader :delete_display_video360_advertiser_link_proposal
|
6594
|
+
##
|
6595
|
+
# RPC-specific configuration for `approve_display_video360_advertiser_link_proposal`
|
6596
|
+
# @return [::Gapic::Config::Method]
|
6597
|
+
#
|
6598
|
+
attr_reader :approve_display_video360_advertiser_link_proposal
|
6599
|
+
##
|
6600
|
+
# RPC-specific configuration for `cancel_display_video360_advertiser_link_proposal`
|
6601
|
+
# @return [::Gapic::Config::Method]
|
6602
|
+
#
|
6603
|
+
attr_reader :cancel_display_video360_advertiser_link_proposal
|
6604
|
+
##
|
5687
6605
|
# RPC-specific configuration for `create_custom_dimension`
|
5688
6606
|
# @return [::Gapic::Config::Method]
|
5689
6607
|
#
|
@@ -5733,6 +6651,16 @@ module Google
|
|
5733
6651
|
# @return [::Gapic::Config::Method]
|
5734
6652
|
#
|
5735
6653
|
attr_reader :get_custom_metric
|
6654
|
+
##
|
6655
|
+
# RPC-specific configuration for `get_data_retention_settings`
|
6656
|
+
# @return [::Gapic::Config::Method]
|
6657
|
+
#
|
6658
|
+
attr_reader :get_data_retention_settings
|
6659
|
+
##
|
6660
|
+
# RPC-specific configuration for `update_data_retention_settings`
|
6661
|
+
# @return [::Gapic::Config::Method]
|
6662
|
+
#
|
6663
|
+
attr_reader :update_data_retention_settings
|
5736
6664
|
|
5737
6665
|
# @private
|
5738
6666
|
def initialize parent_rpcs = nil
|
@@ -5810,8 +6738,6 @@ module Google
|
|
5810
6738
|
@update_enhanced_measurement_settings = ::Gapic::Config::Method.new update_enhanced_measurement_settings_config
|
5811
6739
|
create_firebase_link_config = parent_rpcs.create_firebase_link if parent_rpcs.respond_to? :create_firebase_link
|
5812
6740
|
@create_firebase_link = ::Gapic::Config::Method.new create_firebase_link_config
|
5813
|
-
update_firebase_link_config = parent_rpcs.update_firebase_link if parent_rpcs.respond_to? :update_firebase_link
|
5814
|
-
@update_firebase_link = ::Gapic::Config::Method.new update_firebase_link_config
|
5815
6741
|
delete_firebase_link_config = parent_rpcs.delete_firebase_link if parent_rpcs.respond_to? :delete_firebase_link
|
5816
6742
|
@delete_firebase_link = ::Gapic::Config::Method.new delete_firebase_link_config
|
5817
6743
|
list_firebase_links_config = parent_rpcs.list_firebase_links if parent_rpcs.respond_to? :list_firebase_links
|
@@ -5852,6 +6778,28 @@ module Google
|
|
5852
6778
|
@delete_conversion_event = ::Gapic::Config::Method.new delete_conversion_event_config
|
5853
6779
|
list_conversion_events_config = parent_rpcs.list_conversion_events if parent_rpcs.respond_to? :list_conversion_events
|
5854
6780
|
@list_conversion_events = ::Gapic::Config::Method.new list_conversion_events_config
|
6781
|
+
get_display_video360_advertiser_link_config = parent_rpcs.get_display_video360_advertiser_link if parent_rpcs.respond_to? :get_display_video360_advertiser_link
|
6782
|
+
@get_display_video360_advertiser_link = ::Gapic::Config::Method.new get_display_video360_advertiser_link_config
|
6783
|
+
list_display_video360_advertiser_links_config = parent_rpcs.list_display_video360_advertiser_links if parent_rpcs.respond_to? :list_display_video360_advertiser_links
|
6784
|
+
@list_display_video360_advertiser_links = ::Gapic::Config::Method.new list_display_video360_advertiser_links_config
|
6785
|
+
create_display_video360_advertiser_link_config = parent_rpcs.create_display_video360_advertiser_link if parent_rpcs.respond_to? :create_display_video360_advertiser_link
|
6786
|
+
@create_display_video360_advertiser_link = ::Gapic::Config::Method.new create_display_video360_advertiser_link_config
|
6787
|
+
delete_display_video360_advertiser_link_config = parent_rpcs.delete_display_video360_advertiser_link if parent_rpcs.respond_to? :delete_display_video360_advertiser_link
|
6788
|
+
@delete_display_video360_advertiser_link = ::Gapic::Config::Method.new delete_display_video360_advertiser_link_config
|
6789
|
+
update_display_video360_advertiser_link_config = parent_rpcs.update_display_video360_advertiser_link if parent_rpcs.respond_to? :update_display_video360_advertiser_link
|
6790
|
+
@update_display_video360_advertiser_link = ::Gapic::Config::Method.new update_display_video360_advertiser_link_config
|
6791
|
+
get_display_video360_advertiser_link_proposal_config = parent_rpcs.get_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :get_display_video360_advertiser_link_proposal
|
6792
|
+
@get_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new get_display_video360_advertiser_link_proposal_config
|
6793
|
+
list_display_video360_advertiser_link_proposals_config = parent_rpcs.list_display_video360_advertiser_link_proposals if parent_rpcs.respond_to? :list_display_video360_advertiser_link_proposals
|
6794
|
+
@list_display_video360_advertiser_link_proposals = ::Gapic::Config::Method.new list_display_video360_advertiser_link_proposals_config
|
6795
|
+
create_display_video360_advertiser_link_proposal_config = parent_rpcs.create_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :create_display_video360_advertiser_link_proposal
|
6796
|
+
@create_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new create_display_video360_advertiser_link_proposal_config
|
6797
|
+
delete_display_video360_advertiser_link_proposal_config = parent_rpcs.delete_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :delete_display_video360_advertiser_link_proposal
|
6798
|
+
@delete_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new delete_display_video360_advertiser_link_proposal_config
|
6799
|
+
approve_display_video360_advertiser_link_proposal_config = parent_rpcs.approve_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :approve_display_video360_advertiser_link_proposal
|
6800
|
+
@approve_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new approve_display_video360_advertiser_link_proposal_config
|
6801
|
+
cancel_display_video360_advertiser_link_proposal_config = parent_rpcs.cancel_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :cancel_display_video360_advertiser_link_proposal
|
6802
|
+
@cancel_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new cancel_display_video360_advertiser_link_proposal_config
|
5855
6803
|
create_custom_dimension_config = parent_rpcs.create_custom_dimension if parent_rpcs.respond_to? :create_custom_dimension
|
5856
6804
|
@create_custom_dimension = ::Gapic::Config::Method.new create_custom_dimension_config
|
5857
6805
|
update_custom_dimension_config = parent_rpcs.update_custom_dimension if parent_rpcs.respond_to? :update_custom_dimension
|
@@ -5872,6 +6820,10 @@ module Google
|
|
5872
6820
|
@archive_custom_metric = ::Gapic::Config::Method.new archive_custom_metric_config
|
5873
6821
|
get_custom_metric_config = parent_rpcs.get_custom_metric if parent_rpcs.respond_to? :get_custom_metric
|
5874
6822
|
@get_custom_metric = ::Gapic::Config::Method.new get_custom_metric_config
|
6823
|
+
get_data_retention_settings_config = parent_rpcs.get_data_retention_settings if parent_rpcs.respond_to? :get_data_retention_settings
|
6824
|
+
@get_data_retention_settings = ::Gapic::Config::Method.new get_data_retention_settings_config
|
6825
|
+
update_data_retention_settings_config = parent_rpcs.update_data_retention_settings if parent_rpcs.respond_to? :update_data_retention_settings
|
6826
|
+
@update_data_retention_settings = ::Gapic::Config::Method.new update_data_retention_settings_config
|
5875
6827
|
|
5876
6828
|
yield self if block_given?
|
5877
6829
|
end
|