google-analytics-admin-v1alpha 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -264,6 +264,21 @@ module Google
264
264
  #
265
265
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
266
266
  #
267
+ # @example Basic example
268
+ # require "google/analytics/admin/v1alpha"
269
+ #
270
+ # # Create a client object. The client can be reused for multiple calls.
271
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
272
+ #
273
+ # # Create a request. To set request fields, pass in keyword arguments.
274
+ # request = Google::Analytics::Admin::V1alpha::GetAccountRequest.new
275
+ #
276
+ # # Call the get_account method.
277
+ # result = client.get_account request
278
+ #
279
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::Account.
280
+ # p result
281
+ #
267
282
  def get_account request, options = nil
268
283
  raise ::ArgumentError, "request must be provided" if request.nil?
269
284
 
@@ -281,9 +296,11 @@ module Google
281
296
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
282
297
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
283
298
 
284
- header_params = {
285
- "name" => request.name
286
- }
299
+ header_params = {}
300
+ if request.name
301
+ header_params["name"] = request.name
302
+ end
303
+
287
304
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
288
305
  metadata[:"x-goog-request-params"] ||= request_params_header
289
306
 
@@ -348,6 +365,27 @@ module Google
348
365
  #
349
366
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
350
367
  #
368
+ # @example Basic example
369
+ # require "google/analytics/admin/v1alpha"
370
+ #
371
+ # # Create a client object. The client can be reused for multiple calls.
372
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
373
+ #
374
+ # # Create a request. To set request fields, pass in keyword arguments.
375
+ # request = Google::Analytics::Admin::V1alpha::ListAccountsRequest.new
376
+ #
377
+ # # Call the list_accounts method.
378
+ # result = client.list_accounts request
379
+ #
380
+ # # The returned object is of type Gapic::PagedEnumerable. You can
381
+ # # iterate over all elements by calling #each, and the enumerable
382
+ # # will lazily make API calls to fetch subsequent pages. Other
383
+ # # methods are also available for managing paging directly.
384
+ # result.each do |response|
385
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::Account.
386
+ # p response
387
+ # end
388
+ #
351
389
  def list_accounts request, options = nil
352
390
  raise ::ArgumentError, "request must be provided" if request.nil?
353
391
 
@@ -423,6 +461,21 @@ module Google
423
461
  #
424
462
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
425
463
  #
464
+ # @example Basic example
465
+ # require "google/analytics/admin/v1alpha"
466
+ #
467
+ # # Create a client object. The client can be reused for multiple calls.
468
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
469
+ #
470
+ # # Create a request. To set request fields, pass in keyword arguments.
471
+ # request = Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new
472
+ #
473
+ # # Call the delete_account method.
474
+ # result = client.delete_account request
475
+ #
476
+ # # The returned object is of type Google::Protobuf::Empty.
477
+ # p result
478
+ #
426
479
  def delete_account request, options = nil
427
480
  raise ::ArgumentError, "request must be provided" if request.nil?
428
481
 
@@ -440,9 +493,11 @@ module Google
440
493
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
441
494
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
442
495
 
443
- header_params = {
444
- "name" => request.name
445
- }
496
+ header_params = {}
497
+ if request.name
498
+ header_params["name"] = request.name
499
+ end
500
+
446
501
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
447
502
  metadata[:"x-goog-request-params"] ||= request_params_header
448
503
 
@@ -496,6 +551,21 @@ module Google
496
551
  #
497
552
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
498
553
  #
554
+ # @example Basic example
555
+ # require "google/analytics/admin/v1alpha"
556
+ #
557
+ # # Create a client object. The client can be reused for multiple calls.
558
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
559
+ #
560
+ # # Create a request. To set request fields, pass in keyword arguments.
561
+ # request = Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new
562
+ #
563
+ # # Call the update_account method.
564
+ # result = client.update_account request
565
+ #
566
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::Account.
567
+ # p result
568
+ #
499
569
  def update_account request, options = nil
500
570
  raise ::ArgumentError, "request must be provided" if request.nil?
501
571
 
@@ -513,9 +583,11 @@ module Google
513
583
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
514
584
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
515
585
 
516
- header_params = {
517
- "account.name" => request.account.name
518
- }
586
+ header_params = {}
587
+ if request.account&.name
588
+ header_params["account.name"] = request.account.name
589
+ end
590
+
519
591
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
520
592
  metadata[:"x-goog-request-params"] ||= request_params_header
521
593
 
@@ -567,6 +639,21 @@ module Google
567
639
  #
568
640
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
569
641
  #
642
+ # @example Basic example
643
+ # require "google/analytics/admin/v1alpha"
644
+ #
645
+ # # Create a client object. The client can be reused for multiple calls.
646
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
647
+ #
648
+ # # Create a request. To set request fields, pass in keyword arguments.
649
+ # request = Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new
650
+ #
651
+ # # Call the provision_account_ticket method.
652
+ # result = client.provision_account_ticket request
653
+ #
654
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse.
655
+ # p result
656
+ #
570
657
  def provision_account_ticket request, options = nil
571
658
  raise ::ArgumentError, "request must be provided" if request.nil?
572
659
 
@@ -637,6 +724,27 @@ module Google
637
724
  #
638
725
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
639
726
  #
727
+ # @example Basic example
728
+ # require "google/analytics/admin/v1alpha"
729
+ #
730
+ # # Create a client object. The client can be reused for multiple calls.
731
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
732
+ #
733
+ # # Create a request. To set request fields, pass in keyword arguments.
734
+ # request = Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new
735
+ #
736
+ # # Call the list_account_summaries method.
737
+ # result = client.list_account_summaries request
738
+ #
739
+ # # The returned object is of type Gapic::PagedEnumerable. You can
740
+ # # iterate over all elements by calling #each, and the enumerable
741
+ # # will lazily make API calls to fetch subsequent pages. Other
742
+ # # methods are also available for managing paging directly.
743
+ # result.each do |response|
744
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::AccountSummary.
745
+ # p response
746
+ # end
747
+ #
640
748
  def list_account_summaries request, options = nil
641
749
  raise ::ArgumentError, "request must be provided" if request.nil?
642
750
 
@@ -702,6 +810,21 @@ module Google
702
810
  #
703
811
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
704
812
  #
813
+ # @example Basic example
814
+ # require "google/analytics/admin/v1alpha"
815
+ #
816
+ # # Create a client object. The client can be reused for multiple calls.
817
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
818
+ #
819
+ # # Create a request. To set request fields, pass in keyword arguments.
820
+ # request = Google::Analytics::Admin::V1alpha::GetPropertyRequest.new
821
+ #
822
+ # # Call the get_property method.
823
+ # result = client.get_property request
824
+ #
825
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::Property.
826
+ # p result
827
+ #
705
828
  def get_property request, options = nil
706
829
  raise ::ArgumentError, "request must be provided" if request.nil?
707
830
 
@@ -719,9 +842,11 @@ module Google
719
842
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
720
843
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
721
844
 
722
- header_params = {
723
- "name" => request.name
724
- }
845
+ header_params = {}
846
+ if request.name
847
+ header_params["name"] = request.name
848
+ end
849
+
725
850
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
726
851
  metadata[:"x-goog-request-params"] ||= request_params_header
727
852
 
@@ -801,6 +926,27 @@ module Google
801
926
  #
802
927
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
803
928
  #
929
+ # @example Basic example
930
+ # require "google/analytics/admin/v1alpha"
931
+ #
932
+ # # Create a client object. The client can be reused for multiple calls.
933
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
934
+ #
935
+ # # Create a request. To set request fields, pass in keyword arguments.
936
+ # request = Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new
937
+ #
938
+ # # Call the list_properties method.
939
+ # result = client.list_properties request
940
+ #
941
+ # # The returned object is of type Gapic::PagedEnumerable. You can
942
+ # # iterate over all elements by calling #each, and the enumerable
943
+ # # will lazily make API calls to fetch subsequent pages. Other
944
+ # # methods are also available for managing paging directly.
945
+ # result.each do |response|
946
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::Property.
947
+ # p response
948
+ # end
949
+ #
804
950
  def list_properties request, options = nil
805
951
  raise ::ArgumentError, "request must be provided" if request.nil?
806
952
 
@@ -865,6 +1011,21 @@ module Google
865
1011
  #
866
1012
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
867
1013
  #
1014
+ # @example Basic example
1015
+ # require "google/analytics/admin/v1alpha"
1016
+ #
1017
+ # # Create a client object. The client can be reused for multiple calls.
1018
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
1019
+ #
1020
+ # # Create a request. To set request fields, pass in keyword arguments.
1021
+ # request = Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new
1022
+ #
1023
+ # # Call the create_property method.
1024
+ # result = client.create_property request
1025
+ #
1026
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::Property.
1027
+ # p result
1028
+ #
868
1029
  def create_property request, options = nil
869
1030
  raise ::ArgumentError, "request must be provided" if request.nil?
870
1031
 
@@ -939,6 +1100,21 @@ module Google
939
1100
  #
940
1101
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
941
1102
  #
1103
+ # @example Basic example
1104
+ # require "google/analytics/admin/v1alpha"
1105
+ #
1106
+ # # Create a client object. The client can be reused for multiple calls.
1107
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
1108
+ #
1109
+ # # Create a request. To set request fields, pass in keyword arguments.
1110
+ # request = Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new
1111
+ #
1112
+ # # Call the delete_property method.
1113
+ # result = client.delete_property request
1114
+ #
1115
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::Property.
1116
+ # p result
1117
+ #
942
1118
  def delete_property request, options = nil
943
1119
  raise ::ArgumentError, "request must be provided" if request.nil?
944
1120
 
@@ -956,9 +1132,11 @@ module Google
956
1132
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
957
1133
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
958
1134
 
959
- header_params = {
960
- "name" => request.name
961
- }
1135
+ header_params = {}
1136
+ if request.name
1137
+ header_params["name"] = request.name
1138
+ end
1139
+
962
1140
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
963
1141
  metadata[:"x-goog-request-params"] ||= request_params_header
964
1142
 
@@ -1013,6 +1191,21 @@ module Google
1013
1191
  #
1014
1192
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1015
1193
  #
1194
+ # @example Basic example
1195
+ # require "google/analytics/admin/v1alpha"
1196
+ #
1197
+ # # Create a client object. The client can be reused for multiple calls.
1198
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
1199
+ #
1200
+ # # Create a request. To set request fields, pass in keyword arguments.
1201
+ # request = Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new
1202
+ #
1203
+ # # Call the update_property method.
1204
+ # result = client.update_property request
1205
+ #
1206
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::Property.
1207
+ # p result
1208
+ #
1016
1209
  def update_property request, options = nil
1017
1210
  raise ::ArgumentError, "request must be provided" if request.nil?
1018
1211
 
@@ -1030,9 +1223,11 @@ module Google
1030
1223
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1031
1224
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1032
1225
 
1033
- header_params = {
1034
- "property.name" => request.property.name
1035
- }
1226
+ header_params = {}
1227
+ if request.property&.name
1228
+ header_params["property.name"] = request.property.name
1229
+ end
1230
+
1036
1231
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1037
1232
  metadata[:"x-goog-request-params"] ||= request_params_header
1038
1233
 
@@ -1081,6 +1276,21 @@ module Google
1081
1276
  #
1082
1277
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1083
1278
  #
1279
+ # @example Basic example
1280
+ # require "google/analytics/admin/v1alpha"
1281
+ #
1282
+ # # Create a client object. The client can be reused for multiple calls.
1283
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
1284
+ #
1285
+ # # Create a request. To set request fields, pass in keyword arguments.
1286
+ # request = Google::Analytics::Admin::V1alpha::GetUserLinkRequest.new
1287
+ #
1288
+ # # Call the get_user_link method.
1289
+ # result = client.get_user_link request
1290
+ #
1291
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::UserLink.
1292
+ # p result
1293
+ #
1084
1294
  def get_user_link request, options = nil
1085
1295
  raise ::ArgumentError, "request must be provided" if request.nil?
1086
1296
 
@@ -1098,9 +1308,11 @@ module Google
1098
1308
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1099
1309
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1100
1310
 
1101
- header_params = {
1102
- "name" => request.name
1103
- }
1311
+ header_params = {}
1312
+ if request.name
1313
+ header_params["name"] = request.name
1314
+ end
1315
+
1104
1316
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1105
1317
  metadata[:"x-goog-request-params"] ||= request_params_header
1106
1318
 
@@ -1156,6 +1368,21 @@ module Google
1156
1368
  #
1157
1369
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1158
1370
  #
1371
+ # @example Basic example
1372
+ # require "google/analytics/admin/v1alpha"
1373
+ #
1374
+ # # Create a client object. The client can be reused for multiple calls.
1375
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
1376
+ #
1377
+ # # Create a request. To set request fields, pass in keyword arguments.
1378
+ # request = Google::Analytics::Admin::V1alpha::BatchGetUserLinksRequest.new
1379
+ #
1380
+ # # Call the batch_get_user_links method.
1381
+ # result = client.batch_get_user_links request
1382
+ #
1383
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchGetUserLinksResponse.
1384
+ # p result
1385
+ #
1159
1386
  def batch_get_user_links request, options = nil
1160
1387
  raise ::ArgumentError, "request must be provided" if request.nil?
1161
1388
 
@@ -1173,9 +1400,11 @@ module Google
1173
1400
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1174
1401
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1175
1402
 
1176
- header_params = {
1177
- "parent" => request.parent
1178
- }
1403
+ header_params = {}
1404
+ if request.parent
1405
+ header_params["parent"] = request.parent
1406
+ end
1407
+
1179
1408
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1180
1409
  metadata[:"x-goog-request-params"] ||= request_params_header
1181
1410
 
@@ -1234,6 +1463,27 @@ module Google
1234
1463
  #
1235
1464
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1236
1465
  #
1466
+ # @example Basic example
1467
+ # require "google/analytics/admin/v1alpha"
1468
+ #
1469
+ # # Create a client object. The client can be reused for multiple calls.
1470
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
1471
+ #
1472
+ # # Create a request. To set request fields, pass in keyword arguments.
1473
+ # request = Google::Analytics::Admin::V1alpha::ListUserLinksRequest.new
1474
+ #
1475
+ # # Call the list_user_links method.
1476
+ # result = client.list_user_links request
1477
+ #
1478
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1479
+ # # iterate over all elements by calling #each, and the enumerable
1480
+ # # will lazily make API calls to fetch subsequent pages. Other
1481
+ # # methods are also available for managing paging directly.
1482
+ # result.each do |response|
1483
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::UserLink.
1484
+ # p response
1485
+ # end
1486
+ #
1237
1487
  def list_user_links request, options = nil
1238
1488
  raise ::ArgumentError, "request must be provided" if request.nil?
1239
1489
 
@@ -1251,9 +1501,11 @@ module Google
1251
1501
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1252
1502
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1253
1503
 
1254
- header_params = {
1255
- "parent" => request.parent
1256
- }
1504
+ header_params = {}
1505
+ if request.parent
1506
+ header_params["parent"] = request.parent
1507
+ end
1508
+
1257
1509
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1258
1510
  metadata[:"x-goog-request-params"] ||= request_params_header
1259
1511
 
@@ -1321,6 +1573,27 @@ module Google
1321
1573
  #
1322
1574
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1323
1575
  #
1576
+ # @example Basic example
1577
+ # require "google/analytics/admin/v1alpha"
1578
+ #
1579
+ # # Create a client object. The client can be reused for multiple calls.
1580
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
1581
+ #
1582
+ # # Create a request. To set request fields, pass in keyword arguments.
1583
+ # request = Google::Analytics::Admin::V1alpha::AuditUserLinksRequest.new
1584
+ #
1585
+ # # Call the audit_user_links method.
1586
+ # result = client.audit_user_links request
1587
+ #
1588
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1589
+ # # iterate over all elements by calling #each, and the enumerable
1590
+ # # will lazily make API calls to fetch subsequent pages. Other
1591
+ # # methods are also available for managing paging directly.
1592
+ # result.each do |response|
1593
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::AuditUserLink.
1594
+ # p response
1595
+ # end
1596
+ #
1324
1597
  def audit_user_links request, options = nil
1325
1598
  raise ::ArgumentError, "request must be provided" if request.nil?
1326
1599
 
@@ -1338,9 +1611,11 @@ module Google
1338
1611
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1339
1612
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1340
1613
 
1341
- header_params = {
1342
- "parent" => request.parent
1343
- }
1614
+ header_params = {}
1615
+ if request.parent
1616
+ header_params["parent"] = request.parent
1617
+ end
1618
+
1344
1619
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1345
1620
  metadata[:"x-goog-request-params"] ||= request_params_header
1346
1621
 
@@ -1399,6 +1674,21 @@ module Google
1399
1674
  #
1400
1675
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1401
1676
  #
1677
+ # @example Basic example
1678
+ # require "google/analytics/admin/v1alpha"
1679
+ #
1680
+ # # Create a client object. The client can be reused for multiple calls.
1681
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
1682
+ #
1683
+ # # Create a request. To set request fields, pass in keyword arguments.
1684
+ # request = Google::Analytics::Admin::V1alpha::CreateUserLinkRequest.new
1685
+ #
1686
+ # # Call the create_user_link method.
1687
+ # result = client.create_user_link request
1688
+ #
1689
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::UserLink.
1690
+ # p result
1691
+ #
1402
1692
  def create_user_link request, options = nil
1403
1693
  raise ::ArgumentError, "request must be provided" if request.nil?
1404
1694
 
@@ -1416,9 +1706,11 @@ module Google
1416
1706
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1417
1707
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1418
1708
 
1419
- header_params = {
1420
- "parent" => request.parent
1421
- }
1709
+ header_params = {}
1710
+ if request.parent
1711
+ header_params["parent"] = request.parent
1712
+ end
1713
+
1422
1714
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1423
1715
  metadata[:"x-goog-request-params"] ||= request_params_header
1424
1716
 
@@ -1480,6 +1772,21 @@ module Google
1480
1772
  #
1481
1773
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1482
1774
  #
1775
+ # @example Basic example
1776
+ # require "google/analytics/admin/v1alpha"
1777
+ #
1778
+ # # Create a client object. The client can be reused for multiple calls.
1779
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
1780
+ #
1781
+ # # Create a request. To set request fields, pass in keyword arguments.
1782
+ # request = Google::Analytics::Admin::V1alpha::BatchCreateUserLinksRequest.new
1783
+ #
1784
+ # # Call the batch_create_user_links method.
1785
+ # result = client.batch_create_user_links request
1786
+ #
1787
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchCreateUserLinksResponse.
1788
+ # p result
1789
+ #
1483
1790
  def batch_create_user_links request, options = nil
1484
1791
  raise ::ArgumentError, "request must be provided" if request.nil?
1485
1792
 
@@ -1497,9 +1804,11 @@ module Google
1497
1804
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1498
1805
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1499
1806
 
1500
- header_params = {
1501
- "parent" => request.parent
1502
- }
1807
+ header_params = {}
1808
+ if request.parent
1809
+ header_params["parent"] = request.parent
1810
+ end
1811
+
1503
1812
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1504
1813
  metadata[:"x-goog-request-params"] ||= request_params_header
1505
1814
 
@@ -1548,6 +1857,21 @@ module Google
1548
1857
  #
1549
1858
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1550
1859
  #
1860
+ # @example Basic example
1861
+ # require "google/analytics/admin/v1alpha"
1862
+ #
1863
+ # # Create a client object. The client can be reused for multiple calls.
1864
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
1865
+ #
1866
+ # # Create a request. To set request fields, pass in keyword arguments.
1867
+ # request = Google::Analytics::Admin::V1alpha::UpdateUserLinkRequest.new
1868
+ #
1869
+ # # Call the update_user_link method.
1870
+ # result = client.update_user_link request
1871
+ #
1872
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::UserLink.
1873
+ # p result
1874
+ #
1551
1875
  def update_user_link request, options = nil
1552
1876
  raise ::ArgumentError, "request must be provided" if request.nil?
1553
1877
 
@@ -1565,9 +1889,11 @@ module Google
1565
1889
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1566
1890
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1567
1891
 
1568
- header_params = {
1569
- "user_link.name" => request.user_link.name
1570
- }
1892
+ header_params = {}
1893
+ if request.user_link&.name
1894
+ header_params["user_link.name"] = request.user_link.name
1895
+ end
1896
+
1571
1897
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1572
1898
  metadata[:"x-goog-request-params"] ||= request_params_header
1573
1899
 
@@ -1622,6 +1948,21 @@ module Google
1622
1948
  #
1623
1949
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1624
1950
  #
1951
+ # @example Basic example
1952
+ # require "google/analytics/admin/v1alpha"
1953
+ #
1954
+ # # Create a client object. The client can be reused for multiple calls.
1955
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
1956
+ #
1957
+ # # Create a request. To set request fields, pass in keyword arguments.
1958
+ # request = Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksRequest.new
1959
+ #
1960
+ # # Call the batch_update_user_links method.
1961
+ # result = client.batch_update_user_links request
1962
+ #
1963
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksResponse.
1964
+ # p result
1965
+ #
1625
1966
  def batch_update_user_links request, options = nil
1626
1967
  raise ::ArgumentError, "request must be provided" if request.nil?
1627
1968
 
@@ -1639,9 +1980,11 @@ module Google
1639
1980
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1640
1981
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1641
1982
 
1642
- header_params = {
1643
- "parent" => request.parent
1644
- }
1983
+ header_params = {}
1984
+ if request.parent
1985
+ header_params["parent"] = request.parent
1986
+ end
1987
+
1645
1988
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1646
1989
  metadata[:"x-goog-request-params"] ||= request_params_header
1647
1990
 
@@ -1690,6 +2033,21 @@ module Google
1690
2033
  #
1691
2034
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1692
2035
  #
2036
+ # @example Basic example
2037
+ # require "google/analytics/admin/v1alpha"
2038
+ #
2039
+ # # Create a client object. The client can be reused for multiple calls.
2040
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
2041
+ #
2042
+ # # Create a request. To set request fields, pass in keyword arguments.
2043
+ # request = Google::Analytics::Admin::V1alpha::DeleteUserLinkRequest.new
2044
+ #
2045
+ # # Call the delete_user_link method.
2046
+ # result = client.delete_user_link request
2047
+ #
2048
+ # # The returned object is of type Google::Protobuf::Empty.
2049
+ # p result
2050
+ #
1693
2051
  def delete_user_link request, options = nil
1694
2052
  raise ::ArgumentError, "request must be provided" if request.nil?
1695
2053
 
@@ -1707,9 +2065,11 @@ module Google
1707
2065
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1708
2066
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1709
2067
 
1710
- header_params = {
1711
- "name" => request.name
1712
- }
2068
+ header_params = {}
2069
+ if request.name
2070
+ header_params["name"] = request.name
2071
+ end
2072
+
1713
2073
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1714
2074
  metadata[:"x-goog-request-params"] ||= request_params_header
1715
2075
 
@@ -1764,6 +2124,21 @@ module Google
1764
2124
  #
1765
2125
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1766
2126
  #
2127
+ # @example Basic example
2128
+ # require "google/analytics/admin/v1alpha"
2129
+ #
2130
+ # # Create a client object. The client can be reused for multiple calls.
2131
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
2132
+ #
2133
+ # # Create a request. To set request fields, pass in keyword arguments.
2134
+ # request = Google::Analytics::Admin::V1alpha::BatchDeleteUserLinksRequest.new
2135
+ #
2136
+ # # Call the batch_delete_user_links method.
2137
+ # result = client.batch_delete_user_links request
2138
+ #
2139
+ # # The returned object is of type Google::Protobuf::Empty.
2140
+ # p result
2141
+ #
1767
2142
  def batch_delete_user_links request, options = nil
1768
2143
  raise ::ArgumentError, "request must be provided" if request.nil?
1769
2144
 
@@ -1781,9 +2156,11 @@ module Google
1781
2156
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1782
2157
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1783
2158
 
1784
- header_params = {
1785
- "parent" => request.parent
1786
- }
2159
+ header_params = {}
2160
+ if request.parent
2161
+ header_params["parent"] = request.parent
2162
+ end
2163
+
1787
2164
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1788
2165
  metadata[:"x-goog-request-params"] ||= request_params_header
1789
2166
 
@@ -1834,6 +2211,21 @@ module Google
1834
2211
  #
1835
2212
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1836
2213
  #
2214
+ # @example Basic example
2215
+ # require "google/analytics/admin/v1alpha"
2216
+ #
2217
+ # # Create a client object. The client can be reused for multiple calls.
2218
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
2219
+ #
2220
+ # # Create a request. To set request fields, pass in keyword arguments.
2221
+ # request = Google::Analytics::Admin::V1alpha::GetWebDataStreamRequest.new
2222
+ #
2223
+ # # Call the get_web_data_stream method.
2224
+ # result = client.get_web_data_stream request
2225
+ #
2226
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::WebDataStream.
2227
+ # p result
2228
+ #
1837
2229
  def get_web_data_stream request, options = nil
1838
2230
  raise ::ArgumentError, "request must be provided" if request.nil?
1839
2231
 
@@ -1851,9 +2243,11 @@ module Google
1851
2243
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1852
2244
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1853
2245
 
1854
- header_params = {
1855
- "name" => request.name
1856
- }
2246
+ header_params = {}
2247
+ if request.name
2248
+ header_params["name"] = request.name
2249
+ end
2250
+
1857
2251
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1858
2252
  metadata[:"x-goog-request-params"] ||= request_params_header
1859
2253
 
@@ -1904,6 +2298,21 @@ module Google
1904
2298
  #
1905
2299
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1906
2300
  #
2301
+ # @example Basic example
2302
+ # require "google/analytics/admin/v1alpha"
2303
+ #
2304
+ # # Create a client object. The client can be reused for multiple calls.
2305
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
2306
+ #
2307
+ # # Create a request. To set request fields, pass in keyword arguments.
2308
+ # request = Google::Analytics::Admin::V1alpha::DeleteWebDataStreamRequest.new
2309
+ #
2310
+ # # Call the delete_web_data_stream method.
2311
+ # result = client.delete_web_data_stream request
2312
+ #
2313
+ # # The returned object is of type Google::Protobuf::Empty.
2314
+ # p result
2315
+ #
1907
2316
  def delete_web_data_stream request, options = nil
1908
2317
  raise ::ArgumentError, "request must be provided" if request.nil?
1909
2318
 
@@ -1921,9 +2330,11 @@ module Google
1921
2330
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1922
2331
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1923
2332
 
1924
- header_params = {
1925
- "name" => request.name
1926
- }
2333
+ header_params = {}
2334
+ if request.name
2335
+ header_params["name"] = request.name
2336
+ end
2337
+
1927
2338
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1928
2339
  metadata[:"x-goog-request-params"] ||= request_params_header
1929
2340
 
@@ -1977,6 +2388,21 @@ module Google
1977
2388
  #
1978
2389
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1979
2390
  #
2391
+ # @example Basic example
2392
+ # require "google/analytics/admin/v1alpha"
2393
+ #
2394
+ # # Create a client object. The client can be reused for multiple calls.
2395
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
2396
+ #
2397
+ # # Create a request. To set request fields, pass in keyword arguments.
2398
+ # request = Google::Analytics::Admin::V1alpha::UpdateWebDataStreamRequest.new
2399
+ #
2400
+ # # Call the update_web_data_stream method.
2401
+ # result = client.update_web_data_stream request
2402
+ #
2403
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::WebDataStream.
2404
+ # p result
2405
+ #
1980
2406
  def update_web_data_stream request, options = nil
1981
2407
  raise ::ArgumentError, "request must be provided" if request.nil?
1982
2408
 
@@ -1994,9 +2420,11 @@ module Google
1994
2420
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
1995
2421
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1996
2422
 
1997
- header_params = {
1998
- "web_data_stream.name" => request.web_data_stream.name
1999
- }
2423
+ header_params = {}
2424
+ if request.web_data_stream&.name
2425
+ header_params["web_data_stream.name"] = request.web_data_stream.name
2426
+ end
2427
+
2000
2428
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2001
2429
  metadata[:"x-goog-request-params"] ||= request_params_header
2002
2430
 
@@ -2048,6 +2476,21 @@ module Google
2048
2476
  #
2049
2477
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2050
2478
  #
2479
+ # @example Basic example
2480
+ # require "google/analytics/admin/v1alpha"
2481
+ #
2482
+ # # Create a client object. The client can be reused for multiple calls.
2483
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
2484
+ #
2485
+ # # Create a request. To set request fields, pass in keyword arguments.
2486
+ # request = Google::Analytics::Admin::V1alpha::CreateWebDataStreamRequest.new
2487
+ #
2488
+ # # Call the create_web_data_stream method.
2489
+ # result = client.create_web_data_stream request
2490
+ #
2491
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::WebDataStream.
2492
+ # p result
2493
+ #
2051
2494
  def create_web_data_stream request, options = nil
2052
2495
  raise ::ArgumentError, "request must be provided" if request.nil?
2053
2496
 
@@ -2065,9 +2508,11 @@ module Google
2065
2508
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2066
2509
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2067
2510
 
2068
- header_params = {
2069
- "parent" => request.parent
2070
- }
2511
+ header_params = {}
2512
+ if request.parent
2513
+ header_params["parent"] = request.parent
2514
+ end
2515
+
2071
2516
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2072
2517
  metadata[:"x-goog-request-params"] ||= request_params_header
2073
2518
 
@@ -2130,6 +2575,27 @@ module Google
2130
2575
  #
2131
2576
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2132
2577
  #
2578
+ # @example Basic example
2579
+ # require "google/analytics/admin/v1alpha"
2580
+ #
2581
+ # # Create a client object. The client can be reused for multiple calls.
2582
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
2583
+ #
2584
+ # # Create a request. To set request fields, pass in keyword arguments.
2585
+ # request = Google::Analytics::Admin::V1alpha::ListWebDataStreamsRequest.new
2586
+ #
2587
+ # # Call the list_web_data_streams method.
2588
+ # result = client.list_web_data_streams request
2589
+ #
2590
+ # # The returned object is of type Gapic::PagedEnumerable. You can
2591
+ # # iterate over all elements by calling #each, and the enumerable
2592
+ # # will lazily make API calls to fetch subsequent pages. Other
2593
+ # # methods are also available for managing paging directly.
2594
+ # result.each do |response|
2595
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::WebDataStream.
2596
+ # p response
2597
+ # end
2598
+ #
2133
2599
  def list_web_data_streams request, options = nil
2134
2600
  raise ::ArgumentError, "request must be provided" if request.nil?
2135
2601
 
@@ -2147,9 +2613,11 @@ module Google
2147
2613
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2148
2614
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2149
2615
 
2150
- header_params = {
2151
- "parent" => request.parent
2152
- }
2616
+ header_params = {}
2617
+ if request.parent
2618
+ header_params["parent"] = request.parent
2619
+ end
2620
+
2153
2621
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2154
2622
  metadata[:"x-goog-request-params"] ||= request_params_header
2155
2623
 
@@ -2201,6 +2669,21 @@ module Google
2201
2669
  #
2202
2670
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2203
2671
  #
2672
+ # @example Basic example
2673
+ # require "google/analytics/admin/v1alpha"
2674
+ #
2675
+ # # Create a client object. The client can be reused for multiple calls.
2676
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
2677
+ #
2678
+ # # Create a request. To set request fields, pass in keyword arguments.
2679
+ # request = Google::Analytics::Admin::V1alpha::GetIosAppDataStreamRequest.new
2680
+ #
2681
+ # # Call the get_ios_app_data_stream method.
2682
+ # result = client.get_ios_app_data_stream request
2683
+ #
2684
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::IosAppDataStream.
2685
+ # p result
2686
+ #
2204
2687
  def get_ios_app_data_stream request, options = nil
2205
2688
  raise ::ArgumentError, "request must be provided" if request.nil?
2206
2689
 
@@ -2218,9 +2701,11 @@ module Google
2218
2701
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2219
2702
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2220
2703
 
2221
- header_params = {
2222
- "name" => request.name
2223
- }
2704
+ header_params = {}
2705
+ if request.name
2706
+ header_params["name"] = request.name
2707
+ end
2708
+
2224
2709
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2225
2710
  metadata[:"x-goog-request-params"] ||= request_params_header
2226
2711
 
@@ -2271,6 +2756,21 @@ module Google
2271
2756
  #
2272
2757
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2273
2758
  #
2759
+ # @example Basic example
2760
+ # require "google/analytics/admin/v1alpha"
2761
+ #
2762
+ # # Create a client object. The client can be reused for multiple calls.
2763
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
2764
+ #
2765
+ # # Create a request. To set request fields, pass in keyword arguments.
2766
+ # request = Google::Analytics::Admin::V1alpha::DeleteIosAppDataStreamRequest.new
2767
+ #
2768
+ # # Call the delete_ios_app_data_stream method.
2769
+ # result = client.delete_ios_app_data_stream request
2770
+ #
2771
+ # # The returned object is of type Google::Protobuf::Empty.
2772
+ # p result
2773
+ #
2274
2774
  def delete_ios_app_data_stream request, options = nil
2275
2775
  raise ::ArgumentError, "request must be provided" if request.nil?
2276
2776
 
@@ -2288,9 +2788,11 @@ module Google
2288
2788
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2289
2789
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2290
2790
 
2291
- header_params = {
2292
- "name" => request.name
2293
- }
2791
+ header_params = {}
2792
+ if request.name
2793
+ header_params["name"] = request.name
2794
+ end
2795
+
2294
2796
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2295
2797
  metadata[:"x-goog-request-params"] ||= request_params_header
2296
2798
 
@@ -2344,6 +2846,21 @@ module Google
2344
2846
  #
2345
2847
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2346
2848
  #
2849
+ # @example Basic example
2850
+ # require "google/analytics/admin/v1alpha"
2851
+ #
2852
+ # # Create a client object. The client can be reused for multiple calls.
2853
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
2854
+ #
2855
+ # # Create a request. To set request fields, pass in keyword arguments.
2856
+ # request = Google::Analytics::Admin::V1alpha::UpdateIosAppDataStreamRequest.new
2857
+ #
2858
+ # # Call the update_ios_app_data_stream method.
2859
+ # result = client.update_ios_app_data_stream request
2860
+ #
2861
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::IosAppDataStream.
2862
+ # p result
2863
+ #
2347
2864
  def update_ios_app_data_stream request, options = nil
2348
2865
  raise ::ArgumentError, "request must be provided" if request.nil?
2349
2866
 
@@ -2361,9 +2878,11 @@ module Google
2361
2878
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2362
2879
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2363
2880
 
2364
- header_params = {
2365
- "ios_app_data_stream.name" => request.ios_app_data_stream.name
2366
- }
2881
+ header_params = {}
2882
+ if request.ios_app_data_stream&.name
2883
+ header_params["ios_app_data_stream.name"] = request.ios_app_data_stream.name
2884
+ end
2885
+
2367
2886
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2368
2887
  metadata[:"x-goog-request-params"] ||= request_params_header
2369
2888
 
@@ -2426,6 +2945,27 @@ module Google
2426
2945
  #
2427
2946
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2428
2947
  #
2948
+ # @example Basic example
2949
+ # require "google/analytics/admin/v1alpha"
2950
+ #
2951
+ # # Create a client object. The client can be reused for multiple calls.
2952
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
2953
+ #
2954
+ # # Create a request. To set request fields, pass in keyword arguments.
2955
+ # request = Google::Analytics::Admin::V1alpha::ListIosAppDataStreamsRequest.new
2956
+ #
2957
+ # # Call the list_ios_app_data_streams method.
2958
+ # result = client.list_ios_app_data_streams request
2959
+ #
2960
+ # # The returned object is of type Gapic::PagedEnumerable. You can
2961
+ # # iterate over all elements by calling #each, and the enumerable
2962
+ # # will lazily make API calls to fetch subsequent pages. Other
2963
+ # # methods are also available for managing paging directly.
2964
+ # result.each do |response|
2965
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::IosAppDataStream.
2966
+ # p response
2967
+ # end
2968
+ #
2429
2969
  def list_ios_app_data_streams request, options = nil
2430
2970
  raise ::ArgumentError, "request must be provided" if request.nil?
2431
2971
 
@@ -2443,9 +2983,11 @@ module Google
2443
2983
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2444
2984
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2445
2985
 
2446
- header_params = {
2447
- "parent" => request.parent
2448
- }
2986
+ header_params = {}
2987
+ if request.parent
2988
+ header_params["parent"] = request.parent
2989
+ end
2990
+
2449
2991
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2450
2992
  metadata[:"x-goog-request-params"] ||= request_params_header
2451
2993
 
@@ -2497,6 +3039,21 @@ module Google
2497
3039
  #
2498
3040
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2499
3041
  #
3042
+ # @example Basic example
3043
+ # require "google/analytics/admin/v1alpha"
3044
+ #
3045
+ # # Create a client object. The client can be reused for multiple calls.
3046
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
3047
+ #
3048
+ # # Create a request. To set request fields, pass in keyword arguments.
3049
+ # request = Google::Analytics::Admin::V1alpha::GetAndroidAppDataStreamRequest.new
3050
+ #
3051
+ # # Call the get_android_app_data_stream method.
3052
+ # result = client.get_android_app_data_stream request
3053
+ #
3054
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::AndroidAppDataStream.
3055
+ # p result
3056
+ #
2500
3057
  def get_android_app_data_stream request, options = nil
2501
3058
  raise ::ArgumentError, "request must be provided" if request.nil?
2502
3059
 
@@ -2514,9 +3071,11 @@ module Google
2514
3071
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2515
3072
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2516
3073
 
2517
- header_params = {
2518
- "name" => request.name
2519
- }
3074
+ header_params = {}
3075
+ if request.name
3076
+ header_params["name"] = request.name
3077
+ end
3078
+
2520
3079
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2521
3080
  metadata[:"x-goog-request-params"] ||= request_params_header
2522
3081
 
@@ -2567,6 +3126,21 @@ module Google
2567
3126
  #
2568
3127
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2569
3128
  #
3129
+ # @example Basic example
3130
+ # require "google/analytics/admin/v1alpha"
3131
+ #
3132
+ # # Create a client object. The client can be reused for multiple calls.
3133
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
3134
+ #
3135
+ # # Create a request. To set request fields, pass in keyword arguments.
3136
+ # request = Google::Analytics::Admin::V1alpha::DeleteAndroidAppDataStreamRequest.new
3137
+ #
3138
+ # # Call the delete_android_app_data_stream method.
3139
+ # result = client.delete_android_app_data_stream request
3140
+ #
3141
+ # # The returned object is of type Google::Protobuf::Empty.
3142
+ # p result
3143
+ #
2570
3144
  def delete_android_app_data_stream request, options = nil
2571
3145
  raise ::ArgumentError, "request must be provided" if request.nil?
2572
3146
 
@@ -2584,9 +3158,11 @@ module Google
2584
3158
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2585
3159
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2586
3160
 
2587
- header_params = {
2588
- "name" => request.name
2589
- }
3161
+ header_params = {}
3162
+ if request.name
3163
+ header_params["name"] = request.name
3164
+ end
3165
+
2590
3166
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2591
3167
  metadata[:"x-goog-request-params"] ||= request_params_header
2592
3168
 
@@ -2640,6 +3216,21 @@ module Google
2640
3216
  #
2641
3217
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2642
3218
  #
3219
+ # @example Basic example
3220
+ # require "google/analytics/admin/v1alpha"
3221
+ #
3222
+ # # Create a client object. The client can be reused for multiple calls.
3223
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
3224
+ #
3225
+ # # Create a request. To set request fields, pass in keyword arguments.
3226
+ # request = Google::Analytics::Admin::V1alpha::UpdateAndroidAppDataStreamRequest.new
3227
+ #
3228
+ # # Call the update_android_app_data_stream method.
3229
+ # result = client.update_android_app_data_stream request
3230
+ #
3231
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::AndroidAppDataStream.
3232
+ # p result
3233
+ #
2643
3234
  def update_android_app_data_stream request, options = nil
2644
3235
  raise ::ArgumentError, "request must be provided" if request.nil?
2645
3236
 
@@ -2657,9 +3248,11 @@ module Google
2657
3248
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2658
3249
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2659
3250
 
2660
- header_params = {
2661
- "android_app_data_stream.name" => request.android_app_data_stream.name
2662
- }
3251
+ header_params = {}
3252
+ if request.android_app_data_stream&.name
3253
+ header_params["android_app_data_stream.name"] = request.android_app_data_stream.name
3254
+ end
3255
+
2663
3256
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2664
3257
  metadata[:"x-goog-request-params"] ||= request_params_header
2665
3258
 
@@ -2724,6 +3317,27 @@ module Google
2724
3317
  #
2725
3318
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2726
3319
  #
3320
+ # @example Basic example
3321
+ # require "google/analytics/admin/v1alpha"
3322
+ #
3323
+ # # Create a client object. The client can be reused for multiple calls.
3324
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
3325
+ #
3326
+ # # Create a request. To set request fields, pass in keyword arguments.
3327
+ # request = Google::Analytics::Admin::V1alpha::ListAndroidAppDataStreamsRequest.new
3328
+ #
3329
+ # # Call the list_android_app_data_streams method.
3330
+ # result = client.list_android_app_data_streams request
3331
+ #
3332
+ # # The returned object is of type Gapic::PagedEnumerable. You can
3333
+ # # iterate over all elements by calling #each, and the enumerable
3334
+ # # will lazily make API calls to fetch subsequent pages. Other
3335
+ # # methods are also available for managing paging directly.
3336
+ # result.each do |response|
3337
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::AndroidAppDataStream.
3338
+ # p response
3339
+ # end
3340
+ #
2727
3341
  def list_android_app_data_streams request, options = nil
2728
3342
  raise ::ArgumentError, "request must be provided" if request.nil?
2729
3343
 
@@ -2741,9 +3355,11 @@ module Google
2741
3355
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2742
3356
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2743
3357
 
2744
- header_params = {
2745
- "parent" => request.parent
2746
- }
3358
+ header_params = {}
3359
+ if request.parent
3360
+ header_params["parent"] = request.parent
3361
+ end
3362
+
2747
3363
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2748
3364
  metadata[:"x-goog-request-params"] ||= request_params_header
2749
3365
 
@@ -2798,6 +3414,21 @@ module Google
2798
3414
  #
2799
3415
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2800
3416
  #
3417
+ # @example Basic example
3418
+ # require "google/analytics/admin/v1alpha"
3419
+ #
3420
+ # # Create a client object. The client can be reused for multiple calls.
3421
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
3422
+ #
3423
+ # # Create a request. To set request fields, pass in keyword arguments.
3424
+ # request = Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new
3425
+ #
3426
+ # # Call the get_enhanced_measurement_settings method.
3427
+ # result = client.get_enhanced_measurement_settings request
3428
+ #
3429
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.
3430
+ # p result
3431
+ #
2801
3432
  def get_enhanced_measurement_settings request, options = nil
2802
3433
  raise ::ArgumentError, "request must be provided" if request.nil?
2803
3434
 
@@ -2815,9 +3446,11 @@ module Google
2815
3446
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2816
3447
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2817
3448
 
2818
- header_params = {
2819
- "name" => request.name
2820
- }
3449
+ header_params = {}
3450
+ if request.name
3451
+ header_params["name"] = request.name
3452
+ end
3453
+
2821
3454
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2822
3455
  metadata[:"x-goog-request-params"] ||= request_params_header
2823
3456
 
@@ -2873,6 +3506,21 @@ module Google
2873
3506
  #
2874
3507
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2875
3508
  #
3509
+ # @example Basic example
3510
+ # require "google/analytics/admin/v1alpha"
3511
+ #
3512
+ # # Create a client object. The client can be reused for multiple calls.
3513
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
3514
+ #
3515
+ # # Create a request. To set request fields, pass in keyword arguments.
3516
+ # request = Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new
3517
+ #
3518
+ # # Call the update_enhanced_measurement_settings method.
3519
+ # result = client.update_enhanced_measurement_settings request
3520
+ #
3521
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.
3522
+ # p result
3523
+ #
2876
3524
  def update_enhanced_measurement_settings request, options = nil
2877
3525
  raise ::ArgumentError, "request must be provided" if request.nil?
2878
3526
 
@@ -2890,9 +3538,11 @@ module Google
2890
3538
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2891
3539
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2892
3540
 
2893
- header_params = {
2894
- "enhanced_measurement_settings.name" => request.enhanced_measurement_settings.name
2895
- }
3541
+ header_params = {}
3542
+ if request.enhanced_measurement_settings&.name
3543
+ header_params["enhanced_measurement_settings.name"] = request.enhanced_measurement_settings.name
3544
+ end
3545
+
2896
3546
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2897
3547
  metadata[:"x-goog-request-params"] ||= request_params_header
2898
3548
 
@@ -2946,6 +3596,21 @@ module Google
2946
3596
  #
2947
3597
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2948
3598
  #
3599
+ # @example Basic example
3600
+ # require "google/analytics/admin/v1alpha"
3601
+ #
3602
+ # # Create a client object. The client can be reused for multiple calls.
3603
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
3604
+ #
3605
+ # # Create a request. To set request fields, pass in keyword arguments.
3606
+ # request = Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new
3607
+ #
3608
+ # # Call the create_firebase_link method.
3609
+ # result = client.create_firebase_link request
3610
+ #
3611
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::FirebaseLink.
3612
+ # p result
3613
+ #
2949
3614
  def create_firebase_link request, options = nil
2950
3615
  raise ::ArgumentError, "request must be provided" if request.nil?
2951
3616
 
@@ -2963,10 +3628,12 @@ module Google
2963
3628
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
2964
3629
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2965
3630
 
2966
- header_params = {
2967
- "parent" => request.parent
2968
- }
2969
- request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3631
+ header_params = {}
3632
+ if request.parent
3633
+ header_params["parent"] = request.parent
3634
+ end
3635
+
3636
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2970
3637
  metadata[:"x-goog-request-params"] ||= request_params_header
2971
3638
 
2972
3639
  options.apply_defaults timeout: @config.rpcs.create_firebase_link.timeout,
@@ -3015,6 +3682,21 @@ module Google
3015
3682
  #
3016
3683
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3017
3684
  #
3685
+ # @example Basic example
3686
+ # require "google/analytics/admin/v1alpha"
3687
+ #
3688
+ # # Create a client object. The client can be reused for multiple calls.
3689
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
3690
+ #
3691
+ # # Create a request. To set request fields, pass in keyword arguments.
3692
+ # request = Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new
3693
+ #
3694
+ # # Call the delete_firebase_link method.
3695
+ # result = client.delete_firebase_link request
3696
+ #
3697
+ # # The returned object is of type Google::Protobuf::Empty.
3698
+ # p result
3699
+ #
3018
3700
  def delete_firebase_link request, options = nil
3019
3701
  raise ::ArgumentError, "request must be provided" if request.nil?
3020
3702
 
@@ -3032,9 +3714,11 @@ module Google
3032
3714
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3033
3715
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3034
3716
 
3035
- header_params = {
3036
- "name" => request.name
3037
- }
3717
+ header_params = {}
3718
+ if request.name
3719
+ header_params["name"] = request.name
3720
+ end
3721
+
3038
3722
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3039
3723
  metadata[:"x-goog-request-params"] ||= request_params_header
3040
3724
 
@@ -3095,6 +3779,27 @@ module Google
3095
3779
  #
3096
3780
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3097
3781
  #
3782
+ # @example Basic example
3783
+ # require "google/analytics/admin/v1alpha"
3784
+ #
3785
+ # # Create a client object. The client can be reused for multiple calls.
3786
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
3787
+ #
3788
+ # # Create a request. To set request fields, pass in keyword arguments.
3789
+ # request = Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new
3790
+ #
3791
+ # # Call the list_firebase_links method.
3792
+ # result = client.list_firebase_links request
3793
+ #
3794
+ # # The returned object is of type Gapic::PagedEnumerable. You can
3795
+ # # iterate over all elements by calling #each, and the enumerable
3796
+ # # will lazily make API calls to fetch subsequent pages. Other
3797
+ # # methods are also available for managing paging directly.
3798
+ # result.each do |response|
3799
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::FirebaseLink.
3800
+ # p response
3801
+ # end
3802
+ #
3098
3803
  def list_firebase_links request, options = nil
3099
3804
  raise ::ArgumentError, "request must be provided" if request.nil?
3100
3805
 
@@ -3112,9 +3817,11 @@ module Google
3112
3817
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3113
3818
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3114
3819
 
3115
- header_params = {
3116
- "parent" => request.parent
3117
- }
3820
+ header_params = {}
3821
+ if request.parent
3822
+ header_params["parent"] = request.parent
3823
+ end
3824
+
3118
3825
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3119
3826
  metadata[:"x-goog-request-params"] ||= request_params_header
3120
3827
 
@@ -3168,6 +3875,21 @@ module Google
3168
3875
  #
3169
3876
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3170
3877
  #
3878
+ # @example Basic example
3879
+ # require "google/analytics/admin/v1alpha"
3880
+ #
3881
+ # # Create a client object. The client can be reused for multiple calls.
3882
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
3883
+ #
3884
+ # # Create a request. To set request fields, pass in keyword arguments.
3885
+ # request = Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new
3886
+ #
3887
+ # # Call the get_global_site_tag method.
3888
+ # result = client.get_global_site_tag request
3889
+ #
3890
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::GlobalSiteTag.
3891
+ # p result
3892
+ #
3171
3893
  def get_global_site_tag request, options = nil
3172
3894
  raise ::ArgumentError, "request must be provided" if request.nil?
3173
3895
 
@@ -3185,9 +3907,11 @@ module Google
3185
3907
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3186
3908
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3187
3909
 
3188
- header_params = {
3189
- "name" => request.name
3190
- }
3910
+ header_params = {}
3911
+ if request.name
3912
+ header_params["name"] = request.name
3913
+ end
3914
+
3191
3915
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3192
3916
  metadata[:"x-goog-request-params"] ||= request_params_header
3193
3917
 
@@ -3238,6 +3962,21 @@ module Google
3238
3962
  #
3239
3963
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3240
3964
  #
3965
+ # @example Basic example
3966
+ # require "google/analytics/admin/v1alpha"
3967
+ #
3968
+ # # Create a client object. The client can be reused for multiple calls.
3969
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
3970
+ #
3971
+ # # Create a request. To set request fields, pass in keyword arguments.
3972
+ # request = Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new
3973
+ #
3974
+ # # Call the create_google_ads_link method.
3975
+ # result = client.create_google_ads_link request
3976
+ #
3977
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink.
3978
+ # p result
3979
+ #
3241
3980
  def create_google_ads_link request, options = nil
3242
3981
  raise ::ArgumentError, "request must be provided" if request.nil?
3243
3982
 
@@ -3255,9 +3994,11 @@ module Google
3255
3994
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3256
3995
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3257
3996
 
3258
- header_params = {
3259
- "parent" => request.parent
3260
- }
3997
+ header_params = {}
3998
+ if request.parent
3999
+ header_params["parent"] = request.parent
4000
+ end
4001
+
3261
4002
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3262
4003
  metadata[:"x-goog-request-params"] ||= request_params_header
3263
4004
 
@@ -3310,6 +4051,21 @@ module Google
3310
4051
  #
3311
4052
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3312
4053
  #
4054
+ # @example Basic example
4055
+ # require "google/analytics/admin/v1alpha"
4056
+ #
4057
+ # # Create a client object. The client can be reused for multiple calls.
4058
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
4059
+ #
4060
+ # # Create a request. To set request fields, pass in keyword arguments.
4061
+ # request = Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new
4062
+ #
4063
+ # # Call the update_google_ads_link method.
4064
+ # result = client.update_google_ads_link request
4065
+ #
4066
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink.
4067
+ # p result
4068
+ #
3313
4069
  def update_google_ads_link request, options = nil
3314
4070
  raise ::ArgumentError, "request must be provided" if request.nil?
3315
4071
 
@@ -3327,9 +4083,11 @@ module Google
3327
4083
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3328
4084
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3329
4085
 
3330
- header_params = {
3331
- "google_ads_link.name" => request.google_ads_link.name
3332
- }
4086
+ header_params = {}
4087
+ if request.google_ads_link&.name
4088
+ header_params["google_ads_link.name"] = request.google_ads_link.name
4089
+ end
4090
+
3333
4091
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3334
4092
  metadata[:"x-goog-request-params"] ||= request_params_header
3335
4093
 
@@ -3378,6 +4136,21 @@ module Google
3378
4136
  #
3379
4137
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3380
4138
  #
4139
+ # @example Basic example
4140
+ # require "google/analytics/admin/v1alpha"
4141
+ #
4142
+ # # Create a client object. The client can be reused for multiple calls.
4143
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
4144
+ #
4145
+ # # Create a request. To set request fields, pass in keyword arguments.
4146
+ # request = Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new
4147
+ #
4148
+ # # Call the delete_google_ads_link method.
4149
+ # result = client.delete_google_ads_link request
4150
+ #
4151
+ # # The returned object is of type Google::Protobuf::Empty.
4152
+ # p result
4153
+ #
3381
4154
  def delete_google_ads_link request, options = nil
3382
4155
  raise ::ArgumentError, "request must be provided" if request.nil?
3383
4156
 
@@ -3395,9 +4168,11 @@ module Google
3395
4168
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3396
4169
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3397
4170
 
3398
- header_params = {
3399
- "name" => request.name
3400
- }
4171
+ header_params = {}
4172
+ if request.name
4173
+ header_params["name"] = request.name
4174
+ end
4175
+
3401
4176
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3402
4177
  metadata[:"x-goog-request-params"] ||= request_params_header
3403
4178
 
@@ -3456,6 +4231,27 @@ module Google
3456
4231
  #
3457
4232
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3458
4233
  #
4234
+ # @example Basic example
4235
+ # require "google/analytics/admin/v1alpha"
4236
+ #
4237
+ # # Create a client object. The client can be reused for multiple calls.
4238
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
4239
+ #
4240
+ # # Create a request. To set request fields, pass in keyword arguments.
4241
+ # request = Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new
4242
+ #
4243
+ # # Call the list_google_ads_links method.
4244
+ # result = client.list_google_ads_links request
4245
+ #
4246
+ # # The returned object is of type Gapic::PagedEnumerable. You can
4247
+ # # iterate over all elements by calling #each, and the enumerable
4248
+ # # will lazily make API calls to fetch subsequent pages. Other
4249
+ # # methods are also available for managing paging directly.
4250
+ # result.each do |response|
4251
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.
4252
+ # p response
4253
+ # end
4254
+ #
3459
4255
  def list_google_ads_links request, options = nil
3460
4256
  raise ::ArgumentError, "request must be provided" if request.nil?
3461
4257
 
@@ -3473,9 +4269,11 @@ module Google
3473
4269
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3474
4270
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3475
4271
 
3476
- header_params = {
3477
- "parent" => request.parent
3478
- }
4272
+ header_params = {}
4273
+ if request.parent
4274
+ header_params["parent"] = request.parent
4275
+ end
4276
+
3479
4277
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3480
4278
  metadata[:"x-goog-request-params"] ||= request_params_header
3481
4279
 
@@ -3528,6 +4326,21 @@ module Google
3528
4326
  #
3529
4327
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3530
4328
  #
4329
+ # @example Basic example
4330
+ # require "google/analytics/admin/v1alpha"
4331
+ #
4332
+ # # Create a client object. The client can be reused for multiple calls.
4333
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
4334
+ #
4335
+ # # Create a request. To set request fields, pass in keyword arguments.
4336
+ # request = Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new
4337
+ #
4338
+ # # Call the get_data_sharing_settings method.
4339
+ # result = client.get_data_sharing_settings request
4340
+ #
4341
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::DataSharingSettings.
4342
+ # p result
4343
+ #
3531
4344
  def get_data_sharing_settings request, options = nil
3532
4345
  raise ::ArgumentError, "request must be provided" if request.nil?
3533
4346
 
@@ -3545,9 +4358,11 @@ module Google
3545
4358
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3546
4359
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3547
4360
 
3548
- header_params = {
3549
- "name" => request.name
3550
- }
4361
+ header_params = {}
4362
+ if request.name
4363
+ header_params["name"] = request.name
4364
+ end
4365
+
3551
4366
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3552
4367
  metadata[:"x-goog-request-params"] ||= request_params_header
3553
4368
 
@@ -3600,6 +4415,21 @@ module Google
3600
4415
  #
3601
4416
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3602
4417
  #
4418
+ # @example Basic example
4419
+ # require "google/analytics/admin/v1alpha"
4420
+ #
4421
+ # # Create a client object. The client can be reused for multiple calls.
4422
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
4423
+ #
4424
+ # # Create a request. To set request fields, pass in keyword arguments.
4425
+ # request = Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new
4426
+ #
4427
+ # # Call the get_measurement_protocol_secret method.
4428
+ # result = client.get_measurement_protocol_secret request
4429
+ #
4430
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.
4431
+ # p result
4432
+ #
3603
4433
  def get_measurement_protocol_secret request, options = nil
3604
4434
  raise ::ArgumentError, "request must be provided" if request.nil?
3605
4435
 
@@ -3617,9 +4447,11 @@ module Google
3617
4447
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3618
4448
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3619
4449
 
3620
- header_params = {
3621
- "name" => request.name
3622
- }
4450
+ header_params = {}
4451
+ if request.name
4452
+ header_params["name"] = request.name
4453
+ end
4454
+
3623
4455
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3624
4456
  metadata[:"x-goog-request-params"] ||= request_params_header
3625
4457
 
@@ -3682,6 +4514,27 @@ module Google
3682
4514
  #
3683
4515
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3684
4516
  #
4517
+ # @example Basic example
4518
+ # require "google/analytics/admin/v1alpha"
4519
+ #
4520
+ # # Create a client object. The client can be reused for multiple calls.
4521
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
4522
+ #
4523
+ # # Create a request. To set request fields, pass in keyword arguments.
4524
+ # request = Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new
4525
+ #
4526
+ # # Call the list_measurement_protocol_secrets method.
4527
+ # result = client.list_measurement_protocol_secrets request
4528
+ #
4529
+ # # The returned object is of type Gapic::PagedEnumerable. You can
4530
+ # # iterate over all elements by calling #each, and the enumerable
4531
+ # # will lazily make API calls to fetch subsequent pages. Other
4532
+ # # methods are also available for managing paging directly.
4533
+ # result.each do |response|
4534
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.
4535
+ # p response
4536
+ # end
4537
+ #
3685
4538
  def list_measurement_protocol_secrets request, options = nil
3686
4539
  raise ::ArgumentError, "request must be provided" if request.nil?
3687
4540
 
@@ -3699,9 +4552,11 @@ module Google
3699
4552
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3700
4553
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3701
4554
 
3702
- header_params = {
3703
- "parent" => request.parent
3704
- }
4555
+ header_params = {}
4556
+ if request.parent
4557
+ header_params["parent"] = request.parent
4558
+ end
4559
+
3705
4560
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3706
4561
  metadata[:"x-goog-request-params"] ||= request_params_header
3707
4562
 
@@ -3756,6 +4611,21 @@ module Google
3756
4611
  #
3757
4612
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3758
4613
  #
4614
+ # @example Basic example
4615
+ # require "google/analytics/admin/v1alpha"
4616
+ #
4617
+ # # Create a client object. The client can be reused for multiple calls.
4618
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
4619
+ #
4620
+ # # Create a request. To set request fields, pass in keyword arguments.
4621
+ # request = Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new
4622
+ #
4623
+ # # Call the create_measurement_protocol_secret method.
4624
+ # result = client.create_measurement_protocol_secret request
4625
+ #
4626
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.
4627
+ # p result
4628
+ #
3759
4629
  def create_measurement_protocol_secret request, options = nil
3760
4630
  raise ::ArgumentError, "request must be provided" if request.nil?
3761
4631
 
@@ -3773,9 +4643,11 @@ module Google
3773
4643
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3774
4644
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3775
4645
 
3776
- header_params = {
3777
- "parent" => request.parent
3778
- }
4646
+ header_params = {}
4647
+ if request.parent
4648
+ header_params["parent"] = request.parent
4649
+ end
4650
+
3779
4651
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3780
4652
  metadata[:"x-goog-request-params"] ||= request_params_header
3781
4653
 
@@ -3828,6 +4700,21 @@ module Google
3828
4700
  #
3829
4701
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3830
4702
  #
4703
+ # @example Basic example
4704
+ # require "google/analytics/admin/v1alpha"
4705
+ #
4706
+ # # Create a client object. The client can be reused for multiple calls.
4707
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
4708
+ #
4709
+ # # Create a request. To set request fields, pass in keyword arguments.
4710
+ # request = Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new
4711
+ #
4712
+ # # Call the delete_measurement_protocol_secret method.
4713
+ # result = client.delete_measurement_protocol_secret request
4714
+ #
4715
+ # # The returned object is of type Google::Protobuf::Empty.
4716
+ # p result
4717
+ #
3831
4718
  def delete_measurement_protocol_secret request, options = nil
3832
4719
  raise ::ArgumentError, "request must be provided" if request.nil?
3833
4720
 
@@ -3845,9 +4732,11 @@ module Google
3845
4732
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3846
4733
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3847
4734
 
3848
- header_params = {
3849
- "name" => request.name
3850
- }
4735
+ header_params = {}
4736
+ if request.name
4737
+ header_params["name"] = request.name
4738
+ end
4739
+
3851
4740
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3852
4741
  metadata[:"x-goog-request-params"] ||= request_params_header
3853
4742
 
@@ -3898,6 +4787,21 @@ module Google
3898
4787
  #
3899
4788
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3900
4789
  #
4790
+ # @example Basic example
4791
+ # require "google/analytics/admin/v1alpha"
4792
+ #
4793
+ # # Create a client object. The client can be reused for multiple calls.
4794
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
4795
+ #
4796
+ # # Create a request. To set request fields, pass in keyword arguments.
4797
+ # request = Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new
4798
+ #
4799
+ # # Call the update_measurement_protocol_secret method.
4800
+ # result = client.update_measurement_protocol_secret request
4801
+ #
4802
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.
4803
+ # p result
4804
+ #
3901
4805
  def update_measurement_protocol_secret request, options = nil
3902
4806
  raise ::ArgumentError, "request must be provided" if request.nil?
3903
4807
 
@@ -3915,9 +4819,11 @@ module Google
3915
4819
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
3916
4820
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3917
4821
 
3918
- header_params = {
3919
- "measurement_protocol_secret.name" => request.measurement_protocol_secret.name
3920
- }
4822
+ header_params = {}
4823
+ if request.measurement_protocol_secret&.name
4824
+ header_params["measurement_protocol_secret.name"] = request.measurement_protocol_secret.name
4825
+ end
4826
+
3921
4827
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3922
4828
  metadata[:"x-goog-request-params"] ||= request_params_header
3923
4829
 
@@ -3992,6 +4898,27 @@ module Google
3992
4898
  #
3993
4899
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3994
4900
  #
4901
+ # @example Basic example
4902
+ # require "google/analytics/admin/v1alpha"
4903
+ #
4904
+ # # Create a client object. The client can be reused for multiple calls.
4905
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
4906
+ #
4907
+ # # Create a request. To set request fields, pass in keyword arguments.
4908
+ # request = Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new
4909
+ #
4910
+ # # Call the search_change_history_events method.
4911
+ # result = client.search_change_history_events request
4912
+ #
4913
+ # # The returned object is of type Gapic::PagedEnumerable. You can
4914
+ # # iterate over all elements by calling #each, and the enumerable
4915
+ # # will lazily make API calls to fetch subsequent pages. Other
4916
+ # # methods are also available for managing paging directly.
4917
+ # result.each do |response|
4918
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent.
4919
+ # p response
4920
+ # end
4921
+ #
3995
4922
  def search_change_history_events request, options = nil
3996
4923
  raise ::ArgumentError, "request must be provided" if request.nil?
3997
4924
 
@@ -4009,9 +4936,11 @@ module Google
4009
4936
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
4010
4937
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4011
4938
 
4012
- header_params = {
4013
- "account" => request.account
4014
- }
4939
+ header_params = {}
4940
+ if request.account
4941
+ header_params["account"] = request.account
4942
+ end
4943
+
4015
4944
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4016
4945
  metadata[:"x-goog-request-params"] ||= request_params_header
4017
4946
 
@@ -4062,6 +4991,21 @@ module Google
4062
4991
  #
4063
4992
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
4064
4993
  #
4994
+ # @example Basic example
4995
+ # require "google/analytics/admin/v1alpha"
4996
+ #
4997
+ # # Create a client object. The client can be reused for multiple calls.
4998
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
4999
+ #
5000
+ # # Create a request. To set request fields, pass in keyword arguments.
5001
+ # request = Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new
5002
+ #
5003
+ # # Call the get_google_signals_settings method.
5004
+ # result = client.get_google_signals_settings request
5005
+ #
5006
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.
5007
+ # p result
5008
+ #
4065
5009
  def get_google_signals_settings request, options = nil
4066
5010
  raise ::ArgumentError, "request must be provided" if request.nil?
4067
5011
 
@@ -4079,9 +5023,11 @@ module Google
4079
5023
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
4080
5024
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4081
5025
 
4082
- header_params = {
4083
- "name" => request.name
4084
- }
5026
+ header_params = {}
5027
+ if request.name
5028
+ header_params["name"] = request.name
5029
+ end
5030
+
4085
5031
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4086
5032
  metadata[:"x-goog-request-params"] ||= request_params_header
4087
5033
 
@@ -4135,6 +5081,21 @@ module Google
4135
5081
  #
4136
5082
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
4137
5083
  #
5084
+ # @example Basic example
5085
+ # require "google/analytics/admin/v1alpha"
5086
+ #
5087
+ # # Create a client object. The client can be reused for multiple calls.
5088
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
5089
+ #
5090
+ # # Create a request. To set request fields, pass in keyword arguments.
5091
+ # request = Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new
5092
+ #
5093
+ # # Call the update_google_signals_settings method.
5094
+ # result = client.update_google_signals_settings request
5095
+ #
5096
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.
5097
+ # p result
5098
+ #
4138
5099
  def update_google_signals_settings request, options = nil
4139
5100
  raise ::ArgumentError, "request must be provided" if request.nil?
4140
5101
 
@@ -4152,9 +5113,11 @@ module Google
4152
5113
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
4153
5114
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4154
5115
 
4155
- header_params = {
4156
- "google_signals_settings.name" => request.google_signals_settings.name
4157
- }
5116
+ header_params = {}
5117
+ if request.google_signals_settings&.name
5118
+ header_params["google_signals_settings.name"] = request.google_signals_settings.name
5119
+ end
5120
+
4158
5121
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4159
5122
  metadata[:"x-goog-request-params"] ||= request_params_header
4160
5123
 
@@ -4206,6 +5169,21 @@ module Google
4206
5169
  #
4207
5170
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
4208
5171
  #
5172
+ # @example Basic example
5173
+ # require "google/analytics/admin/v1alpha"
5174
+ #
5175
+ # # Create a client object. The client can be reused for multiple calls.
5176
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
5177
+ #
5178
+ # # Create a request. To set request fields, pass in keyword arguments.
5179
+ # request = Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new
5180
+ #
5181
+ # # Call the create_conversion_event method.
5182
+ # result = client.create_conversion_event request
5183
+ #
5184
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent.
5185
+ # p result
5186
+ #
4209
5187
  def create_conversion_event request, options = nil
4210
5188
  raise ::ArgumentError, "request must be provided" if request.nil?
4211
5189
 
@@ -4223,9 +5201,11 @@ module Google
4223
5201
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
4224
5202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4225
5203
 
4226
- header_params = {
4227
- "parent" => request.parent
4228
- }
5204
+ header_params = {}
5205
+ if request.parent
5206
+ header_params["parent"] = request.parent
5207
+ end
5208
+
4229
5209
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4230
5210
  metadata[:"x-goog-request-params"] ||= request_params_header
4231
5211
 
@@ -4276,6 +5256,21 @@ module Google
4276
5256
  #
4277
5257
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
4278
5258
  #
5259
+ # @example Basic example
5260
+ # require "google/analytics/admin/v1alpha"
5261
+ #
5262
+ # # Create a client object. The client can be reused for multiple calls.
5263
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
5264
+ #
5265
+ # # Create a request. To set request fields, pass in keyword arguments.
5266
+ # request = Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new
5267
+ #
5268
+ # # Call the get_conversion_event method.
5269
+ # result = client.get_conversion_event request
5270
+ #
5271
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent.
5272
+ # p result
5273
+ #
4279
5274
  def get_conversion_event request, options = nil
4280
5275
  raise ::ArgumentError, "request must be provided" if request.nil?
4281
5276
 
@@ -4293,9 +5288,11 @@ module Google
4293
5288
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
4294
5289
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4295
5290
 
4296
- header_params = {
4297
- "name" => request.name
4298
- }
5291
+ header_params = {}
5292
+ if request.name
5293
+ header_params["name"] = request.name
5294
+ end
5295
+
4299
5296
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4300
5297
  metadata[:"x-goog-request-params"] ||= request_params_header
4301
5298
 
@@ -4346,6 +5343,21 @@ module Google
4346
5343
  #
4347
5344
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
4348
5345
  #
5346
+ # @example Basic example
5347
+ # require "google/analytics/admin/v1alpha"
5348
+ #
5349
+ # # Create a client object. The client can be reused for multiple calls.
5350
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
5351
+ #
5352
+ # # Create a request. To set request fields, pass in keyword arguments.
5353
+ # request = Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new
5354
+ #
5355
+ # # Call the delete_conversion_event method.
5356
+ # result = client.delete_conversion_event request
5357
+ #
5358
+ # # The returned object is of type Google::Protobuf::Empty.
5359
+ # p result
5360
+ #
4349
5361
  def delete_conversion_event request, options = nil
4350
5362
  raise ::ArgumentError, "request must be provided" if request.nil?
4351
5363
 
@@ -4363,9 +5375,11 @@ module Google
4363
5375
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
4364
5376
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4365
5377
 
4366
- header_params = {
4367
- "name" => request.name
4368
- }
5378
+ header_params = {}
5379
+ if request.name
5380
+ header_params["name"] = request.name
5381
+ end
5382
+
4369
5383
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4370
5384
  metadata[:"x-goog-request-params"] ||= request_params_header
4371
5385
 
@@ -4426,6 +5440,27 @@ module Google
4426
5440
  #
4427
5441
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
4428
5442
  #
5443
+ # @example Basic example
5444
+ # require "google/analytics/admin/v1alpha"
5445
+ #
5446
+ # # Create a client object. The client can be reused for multiple calls.
5447
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
5448
+ #
5449
+ # # Create a request. To set request fields, pass in keyword arguments.
5450
+ # request = Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new
5451
+ #
5452
+ # # Call the list_conversion_events method.
5453
+ # result = client.list_conversion_events request
5454
+ #
5455
+ # # The returned object is of type Gapic::PagedEnumerable. You can
5456
+ # # iterate over all elements by calling #each, and the enumerable
5457
+ # # will lazily make API calls to fetch subsequent pages. Other
5458
+ # # methods are also available for managing paging directly.
5459
+ # result.each do |response|
5460
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::ConversionEvent.
5461
+ # p response
5462
+ # end
5463
+ #
4429
5464
  def list_conversion_events request, options = nil
4430
5465
  raise ::ArgumentError, "request must be provided" if request.nil?
4431
5466
 
@@ -4443,9 +5478,11 @@ module Google
4443
5478
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
4444
5479
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4445
5480
 
4446
- header_params = {
4447
- "parent" => request.parent
4448
- }
5481
+ header_params = {}
5482
+ if request.parent
5483
+ header_params["parent"] = request.parent
5484
+ end
5485
+
4449
5486
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4450
5487
  metadata[:"x-goog-request-params"] ||= request_params_header
4451
5488
 
@@ -4496,6 +5533,21 @@ module Google
4496
5533
  #
4497
5534
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
4498
5535
  #
5536
+ # @example Basic example
5537
+ # require "google/analytics/admin/v1alpha"
5538
+ #
5539
+ # # Create a client object. The client can be reused for multiple calls.
5540
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
5541
+ #
5542
+ # # Create a request. To set request fields, pass in keyword arguments.
5543
+ # request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new
5544
+ #
5545
+ # # Call the get_display_video360_advertiser_link method.
5546
+ # result = client.get_display_video360_advertiser_link request
5547
+ #
5548
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.
5549
+ # p result
5550
+ #
4499
5551
  def get_display_video360_advertiser_link request, options = nil
4500
5552
  raise ::ArgumentError, "request must be provided" if request.nil?
4501
5553
 
@@ -4513,9 +5565,11 @@ module Google
4513
5565
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
4514
5566
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4515
5567
 
4516
- header_params = {
4517
- "name" => request.name
4518
- }
5568
+ header_params = {}
5569
+ if request.name
5570
+ header_params["name"] = request.name
5571
+ end
5572
+
4519
5573
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4520
5574
  metadata[:"x-goog-request-params"] ||= request_params_header
4521
5575
 
@@ -4575,6 +5629,27 @@ module Google
4575
5629
  #
4576
5630
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
4577
5631
  #
5632
+ # @example Basic example
5633
+ # require "google/analytics/admin/v1alpha"
5634
+ #
5635
+ # # Create a client object. The client can be reused for multiple calls.
5636
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
5637
+ #
5638
+ # # Create a request. To set request fields, pass in keyword arguments.
5639
+ # request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new
5640
+ #
5641
+ # # Call the list_display_video360_advertiser_links method.
5642
+ # result = client.list_display_video360_advertiser_links request
5643
+ #
5644
+ # # The returned object is of type Gapic::PagedEnumerable. You can
5645
+ # # iterate over all elements by calling #each, and the enumerable
5646
+ # # will lazily make API calls to fetch subsequent pages. Other
5647
+ # # methods are also available for managing paging directly.
5648
+ # result.each do |response|
5649
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.
5650
+ # p response
5651
+ # end
5652
+ #
4578
5653
  def list_display_video360_advertiser_links request, options = nil
4579
5654
  raise ::ArgumentError, "request must be provided" if request.nil?
4580
5655
 
@@ -4592,9 +5667,11 @@ module Google
4592
5667
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
4593
5668
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4594
5669
 
4595
- header_params = {
4596
- "parent" => request.parent
4597
- }
5670
+ header_params = {}
5671
+ if request.parent
5672
+ header_params["parent"] = request.parent
5673
+ end
5674
+
4598
5675
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4599
5676
  metadata[:"x-goog-request-params"] ||= request_params_header
4600
5677
 
@@ -4650,6 +5727,21 @@ module Google
4650
5727
  #
4651
5728
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
4652
5729
  #
5730
+ # @example Basic example
5731
+ # require "google/analytics/admin/v1alpha"
5732
+ #
5733
+ # # Create a client object. The client can be reused for multiple calls.
5734
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
5735
+ #
5736
+ # # Create a request. To set request fields, pass in keyword arguments.
5737
+ # request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new
5738
+ #
5739
+ # # Call the create_display_video360_advertiser_link method.
5740
+ # result = client.create_display_video360_advertiser_link request
5741
+ #
5742
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.
5743
+ # p result
5744
+ #
4653
5745
  def create_display_video360_advertiser_link request, options = nil
4654
5746
  raise ::ArgumentError, "request must be provided" if request.nil?
4655
5747
 
@@ -4667,9 +5759,11 @@ module Google
4667
5759
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
4668
5760
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4669
5761
 
4670
- header_params = {
4671
- "parent" => request.parent
4672
- }
5762
+ header_params = {}
5763
+ if request.parent
5764
+ header_params["parent"] = request.parent
5765
+ end
5766
+
4673
5767
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4674
5768
  metadata[:"x-goog-request-params"] ||= request_params_header
4675
5769
 
@@ -4719,6 +5813,21 @@ module Google
4719
5813
  #
4720
5814
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
4721
5815
  #
5816
+ # @example Basic example
5817
+ # require "google/analytics/admin/v1alpha"
5818
+ #
5819
+ # # Create a client object. The client can be reused for multiple calls.
5820
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
5821
+ #
5822
+ # # Create a request. To set request fields, pass in keyword arguments.
5823
+ # request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new
5824
+ #
5825
+ # # Call the delete_display_video360_advertiser_link method.
5826
+ # result = client.delete_display_video360_advertiser_link request
5827
+ #
5828
+ # # The returned object is of type Google::Protobuf::Empty.
5829
+ # p result
5830
+ #
4722
5831
  def delete_display_video360_advertiser_link request, options = nil
4723
5832
  raise ::ArgumentError, "request must be provided" if request.nil?
4724
5833
 
@@ -4736,9 +5845,11 @@ module Google
4736
5845
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
4737
5846
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4738
5847
 
4739
- header_params = {
4740
- "name" => request.name
4741
- }
5848
+ header_params = {}
5849
+ if request.name
5850
+ header_params["name"] = request.name
5851
+ end
5852
+
4742
5853
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4743
5854
  metadata[:"x-goog-request-params"] ||= request_params_header
4744
5855
 
@@ -4791,6 +5902,21 @@ module Google
4791
5902
  #
4792
5903
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
4793
5904
  #
5905
+ # @example Basic example
5906
+ # require "google/analytics/admin/v1alpha"
5907
+ #
5908
+ # # Create a client object. The client can be reused for multiple calls.
5909
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
5910
+ #
5911
+ # # Create a request. To set request fields, pass in keyword arguments.
5912
+ # request = Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new
5913
+ #
5914
+ # # Call the update_display_video360_advertiser_link method.
5915
+ # result = client.update_display_video360_advertiser_link request
5916
+ #
5917
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.
5918
+ # p result
5919
+ #
4794
5920
  def update_display_video360_advertiser_link request, options = nil
4795
5921
  raise ::ArgumentError, "request must be provided" if request.nil?
4796
5922
 
@@ -4808,9 +5934,11 @@ module Google
4808
5934
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
4809
5935
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4810
5936
 
4811
- header_params = {
4812
- "display_video_360_advertiser_link.name" => request.display_video_360_advertiser_link.name
4813
- }
5937
+ header_params = {}
5938
+ if request.display_video_360_advertiser_link&.name
5939
+ header_params["display_video_360_advertiser_link.name"] = request.display_video_360_advertiser_link.name
5940
+ end
5941
+
4814
5942
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4815
5943
  metadata[:"x-goog-request-params"] ||= request_params_header
4816
5944
 
@@ -4860,6 +5988,21 @@ module Google
4860
5988
  #
4861
5989
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
4862
5990
  #
5991
+ # @example Basic example
5992
+ # require "google/analytics/admin/v1alpha"
5993
+ #
5994
+ # # Create a client object. The client can be reused for multiple calls.
5995
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
5996
+ #
5997
+ # # Create a request. To set request fields, pass in keyword arguments.
5998
+ # request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new
5999
+ #
6000
+ # # Call the get_display_video360_advertiser_link_proposal method.
6001
+ # result = client.get_display_video360_advertiser_link_proposal request
6002
+ #
6003
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.
6004
+ # p result
6005
+ #
4863
6006
  def get_display_video360_advertiser_link_proposal request, options = nil
4864
6007
  raise ::ArgumentError, "request must be provided" if request.nil?
4865
6008
 
@@ -4877,9 +6020,11 @@ module Google
4877
6020
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
4878
6021
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4879
6022
 
4880
- header_params = {
4881
- "name" => request.name
4882
- }
6023
+ header_params = {}
6024
+ if request.name
6025
+ header_params["name"] = request.name
6026
+ end
6027
+
4883
6028
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4884
6029
  metadata[:"x-goog-request-params"] ||= request_params_header
4885
6030
 
@@ -4940,6 +6085,27 @@ module Google
4940
6085
  #
4941
6086
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
4942
6087
  #
6088
+ # @example Basic example
6089
+ # require "google/analytics/admin/v1alpha"
6090
+ #
6091
+ # # Create a client object. The client can be reused for multiple calls.
6092
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
6093
+ #
6094
+ # # Create a request. To set request fields, pass in keyword arguments.
6095
+ # request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new
6096
+ #
6097
+ # # Call the list_display_video360_advertiser_link_proposals method.
6098
+ # result = client.list_display_video360_advertiser_link_proposals request
6099
+ #
6100
+ # # The returned object is of type Gapic::PagedEnumerable. You can
6101
+ # # iterate over all elements by calling #each, and the enumerable
6102
+ # # will lazily make API calls to fetch subsequent pages. Other
6103
+ # # methods are also available for managing paging directly.
6104
+ # result.each do |response|
6105
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.
6106
+ # p response
6107
+ # end
6108
+ #
4943
6109
  def list_display_video360_advertiser_link_proposals request, options = nil
4944
6110
  raise ::ArgumentError, "request must be provided" if request.nil?
4945
6111
 
@@ -4957,9 +6123,11 @@ module Google
4957
6123
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
4958
6124
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4959
6125
 
4960
- header_params = {
4961
- "parent" => request.parent
4962
- }
6126
+ header_params = {}
6127
+ if request.parent
6128
+ header_params["parent"] = request.parent
6129
+ end
6130
+
4963
6131
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4964
6132
  metadata[:"x-goog-request-params"] ||= request_params_header
4965
6133
 
@@ -5011,6 +6179,21 @@ module Google
5011
6179
  #
5012
6180
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
5013
6181
  #
6182
+ # @example Basic example
6183
+ # require "google/analytics/admin/v1alpha"
6184
+ #
6185
+ # # Create a client object. The client can be reused for multiple calls.
6186
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
6187
+ #
6188
+ # # Create a request. To set request fields, pass in keyword arguments.
6189
+ # request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new
6190
+ #
6191
+ # # Call the create_display_video360_advertiser_link_proposal method.
6192
+ # result = client.create_display_video360_advertiser_link_proposal request
6193
+ #
6194
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.
6195
+ # p result
6196
+ #
5014
6197
  def create_display_video360_advertiser_link_proposal request, options = nil
5015
6198
  raise ::ArgumentError, "request must be provided" if request.nil?
5016
6199
 
@@ -5028,9 +6211,11 @@ module Google
5028
6211
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
5029
6212
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5030
6213
 
5031
- header_params = {
5032
- "parent" => request.parent
5033
- }
6214
+ header_params = {}
6215
+ if request.parent
6216
+ header_params["parent"] = request.parent
6217
+ end
6218
+
5034
6219
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5035
6220
  metadata[:"x-goog-request-params"] ||= request_params_header
5036
6221
 
@@ -5081,6 +6266,21 @@ module Google
5081
6266
  #
5082
6267
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
5083
6268
  #
6269
+ # @example Basic example
6270
+ # require "google/analytics/admin/v1alpha"
6271
+ #
6272
+ # # Create a client object. The client can be reused for multiple calls.
6273
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
6274
+ #
6275
+ # # Create a request. To set request fields, pass in keyword arguments.
6276
+ # request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new
6277
+ #
6278
+ # # Call the delete_display_video360_advertiser_link_proposal method.
6279
+ # result = client.delete_display_video360_advertiser_link_proposal request
6280
+ #
6281
+ # # The returned object is of type Google::Protobuf::Empty.
6282
+ # p result
6283
+ #
5084
6284
  def delete_display_video360_advertiser_link_proposal request, options = nil
5085
6285
  raise ::ArgumentError, "request must be provided" if request.nil?
5086
6286
 
@@ -5098,9 +6298,11 @@ module Google
5098
6298
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
5099
6299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5100
6300
 
5101
- header_params = {
5102
- "name" => request.name
5103
- }
6301
+ header_params = {}
6302
+ if request.name
6303
+ header_params["name"] = request.name
6304
+ end
6305
+
5104
6306
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5105
6307
  metadata[:"x-goog-request-params"] ||= request_params_header
5106
6308
 
@@ -5152,6 +6354,21 @@ module Google
5152
6354
  #
5153
6355
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
5154
6356
  #
6357
+ # @example Basic example
6358
+ # require "google/analytics/admin/v1alpha"
6359
+ #
6360
+ # # Create a client object. The client can be reused for multiple calls.
6361
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
6362
+ #
6363
+ # # Create a request. To set request fields, pass in keyword arguments.
6364
+ # request = Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new
6365
+ #
6366
+ # # Call the approve_display_video360_advertiser_link_proposal method.
6367
+ # result = client.approve_display_video360_advertiser_link_proposal request
6368
+ #
6369
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse.
6370
+ # p result
6371
+ #
5155
6372
  def approve_display_video360_advertiser_link_proposal request, options = nil
5156
6373
  raise ::ArgumentError, "request must be provided" if request.nil?
5157
6374
 
@@ -5169,9 +6386,11 @@ module Google
5169
6386
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
5170
6387
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5171
6388
 
5172
- header_params = {
5173
- "name" => request.name
5174
- }
6389
+ header_params = {}
6390
+ if request.name
6391
+ header_params["name"] = request.name
6392
+ end
6393
+
5175
6394
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5176
6395
  metadata[:"x-goog-request-params"] ||= request_params_header
5177
6396
 
@@ -5225,6 +6444,21 @@ module Google
5225
6444
  #
5226
6445
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
5227
6446
  #
6447
+ # @example Basic example
6448
+ # require "google/analytics/admin/v1alpha"
6449
+ #
6450
+ # # Create a client object. The client can be reused for multiple calls.
6451
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
6452
+ #
6453
+ # # Create a request. To set request fields, pass in keyword arguments.
6454
+ # request = Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new
6455
+ #
6456
+ # # Call the cancel_display_video360_advertiser_link_proposal method.
6457
+ # result = client.cancel_display_video360_advertiser_link_proposal request
6458
+ #
6459
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.
6460
+ # p result
6461
+ #
5228
6462
  def cancel_display_video360_advertiser_link_proposal request, options = nil
5229
6463
  raise ::ArgumentError, "request must be provided" if request.nil?
5230
6464
 
@@ -5242,9 +6476,11 @@ module Google
5242
6476
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
5243
6477
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5244
6478
 
5245
- header_params = {
5246
- "name" => request.name
5247
- }
6479
+ header_params = {}
6480
+ if request.name
6481
+ header_params["name"] = request.name
6482
+ end
6483
+
5248
6484
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5249
6485
  metadata[:"x-goog-request-params"] ||= request_params_header
5250
6486
 
@@ -5295,6 +6531,21 @@ module Google
5295
6531
  #
5296
6532
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
5297
6533
  #
6534
+ # @example Basic example
6535
+ # require "google/analytics/admin/v1alpha"
6536
+ #
6537
+ # # Create a client object. The client can be reused for multiple calls.
6538
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
6539
+ #
6540
+ # # Create a request. To set request fields, pass in keyword arguments.
6541
+ # request = Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new
6542
+ #
6543
+ # # Call the create_custom_dimension method.
6544
+ # result = client.create_custom_dimension request
6545
+ #
6546
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension.
6547
+ # p result
6548
+ #
5298
6549
  def create_custom_dimension request, options = nil
5299
6550
  raise ::ArgumentError, "request must be provided" if request.nil?
5300
6551
 
@@ -5312,9 +6563,11 @@ module Google
5312
6563
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
5313
6564
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5314
6565
 
5315
- header_params = {
5316
- "parent" => request.parent
5317
- }
6566
+ header_params = {}
6567
+ if request.parent
6568
+ header_params["parent"] = request.parent
6569
+ end
6570
+
5318
6571
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5319
6572
  metadata[:"x-goog-request-params"] ||= request_params_header
5320
6573
 
@@ -5367,6 +6620,21 @@ module Google
5367
6620
  #
5368
6621
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
5369
6622
  #
6623
+ # @example Basic example
6624
+ # require "google/analytics/admin/v1alpha"
6625
+ #
6626
+ # # Create a client object. The client can be reused for multiple calls.
6627
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
6628
+ #
6629
+ # # Create a request. To set request fields, pass in keyword arguments.
6630
+ # request = Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new
6631
+ #
6632
+ # # Call the update_custom_dimension method.
6633
+ # result = client.update_custom_dimension request
6634
+ #
6635
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension.
6636
+ # p result
6637
+ #
5370
6638
  def update_custom_dimension request, options = nil
5371
6639
  raise ::ArgumentError, "request must be provided" if request.nil?
5372
6640
 
@@ -5384,9 +6652,11 @@ module Google
5384
6652
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
5385
6653
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5386
6654
 
5387
- header_params = {
5388
- "custom_dimension.name" => request.custom_dimension.name
5389
- }
6655
+ header_params = {}
6656
+ if request.custom_dimension&.name
6657
+ header_params["custom_dimension.name"] = request.custom_dimension.name
6658
+ end
6659
+
5390
6660
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5391
6661
  metadata[:"x-goog-request-params"] ||= request_params_header
5392
6662
 
@@ -5445,6 +6715,27 @@ module Google
5445
6715
  #
5446
6716
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
5447
6717
  #
6718
+ # @example Basic example
6719
+ # require "google/analytics/admin/v1alpha"
6720
+ #
6721
+ # # Create a client object. The client can be reused for multiple calls.
6722
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
6723
+ #
6724
+ # # Create a request. To set request fields, pass in keyword arguments.
6725
+ # request = Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new
6726
+ #
6727
+ # # Call the list_custom_dimensions method.
6728
+ # result = client.list_custom_dimensions request
6729
+ #
6730
+ # # The returned object is of type Gapic::PagedEnumerable. You can
6731
+ # # iterate over all elements by calling #each, and the enumerable
6732
+ # # will lazily make API calls to fetch subsequent pages. Other
6733
+ # # methods are also available for managing paging directly.
6734
+ # result.each do |response|
6735
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomDimension.
6736
+ # p response
6737
+ # end
6738
+ #
5448
6739
  def list_custom_dimensions request, options = nil
5449
6740
  raise ::ArgumentError, "request must be provided" if request.nil?
5450
6741
 
@@ -5462,9 +6753,11 @@ module Google
5462
6753
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
5463
6754
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5464
6755
 
5465
- header_params = {
5466
- "parent" => request.parent
5467
- }
6756
+ header_params = {}
6757
+ if request.parent
6758
+ header_params["parent"] = request.parent
6759
+ end
6760
+
5468
6761
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5469
6762
  metadata[:"x-goog-request-params"] ||= request_params_header
5470
6763
 
@@ -5515,6 +6808,21 @@ module Google
5515
6808
  #
5516
6809
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
5517
6810
  #
6811
+ # @example Basic example
6812
+ # require "google/analytics/admin/v1alpha"
6813
+ #
6814
+ # # Create a client object. The client can be reused for multiple calls.
6815
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
6816
+ #
6817
+ # # Create a request. To set request fields, pass in keyword arguments.
6818
+ # request = Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new
6819
+ #
6820
+ # # Call the archive_custom_dimension method.
6821
+ # result = client.archive_custom_dimension request
6822
+ #
6823
+ # # The returned object is of type Google::Protobuf::Empty.
6824
+ # p result
6825
+ #
5518
6826
  def archive_custom_dimension request, options = nil
5519
6827
  raise ::ArgumentError, "request must be provided" if request.nil?
5520
6828
 
@@ -5532,9 +6840,11 @@ module Google
5532
6840
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
5533
6841
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5534
6842
 
5535
- header_params = {
5536
- "name" => request.name
5537
- }
6843
+ header_params = {}
6844
+ if request.name
6845
+ header_params["name"] = request.name
6846
+ end
6847
+
5538
6848
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5539
6849
  metadata[:"x-goog-request-params"] ||= request_params_header
5540
6850
 
@@ -5584,6 +6894,21 @@ module Google
5584
6894
  #
5585
6895
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
5586
6896
  #
6897
+ # @example Basic example
6898
+ # require "google/analytics/admin/v1alpha"
6899
+ #
6900
+ # # Create a client object. The client can be reused for multiple calls.
6901
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
6902
+ #
6903
+ # # Create a request. To set request fields, pass in keyword arguments.
6904
+ # request = Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new
6905
+ #
6906
+ # # Call the get_custom_dimension method.
6907
+ # result = client.get_custom_dimension request
6908
+ #
6909
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension.
6910
+ # p result
6911
+ #
5587
6912
  def get_custom_dimension request, options = nil
5588
6913
  raise ::ArgumentError, "request must be provided" if request.nil?
5589
6914
 
@@ -5601,9 +6926,11 @@ module Google
5601
6926
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
5602
6927
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5603
6928
 
5604
- header_params = {
5605
- "name" => request.name
5606
- }
6929
+ header_params = {}
6930
+ if request.name
6931
+ header_params["name"] = request.name
6932
+ end
6933
+
5607
6934
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5608
6935
  metadata[:"x-goog-request-params"] ||= request_params_header
5609
6936
 
@@ -5654,6 +6981,21 @@ module Google
5654
6981
  #
5655
6982
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
5656
6983
  #
6984
+ # @example Basic example
6985
+ # require "google/analytics/admin/v1alpha"
6986
+ #
6987
+ # # Create a client object. The client can be reused for multiple calls.
6988
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
6989
+ #
6990
+ # # Create a request. To set request fields, pass in keyword arguments.
6991
+ # request = Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new
6992
+ #
6993
+ # # Call the create_custom_metric method.
6994
+ # result = client.create_custom_metric request
6995
+ #
6996
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric.
6997
+ # p result
6998
+ #
5657
6999
  def create_custom_metric request, options = nil
5658
7000
  raise ::ArgumentError, "request must be provided" if request.nil?
5659
7001
 
@@ -5671,9 +7013,11 @@ module Google
5671
7013
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
5672
7014
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5673
7015
 
5674
- header_params = {
5675
- "parent" => request.parent
5676
- }
7016
+ header_params = {}
7017
+ if request.parent
7018
+ header_params["parent"] = request.parent
7019
+ end
7020
+
5677
7021
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5678
7022
  metadata[:"x-goog-request-params"] ||= request_params_header
5679
7023
 
@@ -5726,6 +7070,21 @@ module Google
5726
7070
  #
5727
7071
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
5728
7072
  #
7073
+ # @example Basic example
7074
+ # require "google/analytics/admin/v1alpha"
7075
+ #
7076
+ # # Create a client object. The client can be reused for multiple calls.
7077
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
7078
+ #
7079
+ # # Create a request. To set request fields, pass in keyword arguments.
7080
+ # request = Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new
7081
+ #
7082
+ # # Call the update_custom_metric method.
7083
+ # result = client.update_custom_metric request
7084
+ #
7085
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric.
7086
+ # p result
7087
+ #
5729
7088
  def update_custom_metric request, options = nil
5730
7089
  raise ::ArgumentError, "request must be provided" if request.nil?
5731
7090
 
@@ -5743,9 +7102,11 @@ module Google
5743
7102
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
5744
7103
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5745
7104
 
5746
- header_params = {
5747
- "custom_metric.name" => request.custom_metric.name
5748
- }
7105
+ header_params = {}
7106
+ if request.custom_metric&.name
7107
+ header_params["custom_metric.name"] = request.custom_metric.name
7108
+ end
7109
+
5749
7110
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5750
7111
  metadata[:"x-goog-request-params"] ||= request_params_header
5751
7112
 
@@ -5804,6 +7165,27 @@ module Google
5804
7165
  #
5805
7166
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
5806
7167
  #
7168
+ # @example Basic example
7169
+ # require "google/analytics/admin/v1alpha"
7170
+ #
7171
+ # # Create a client object. The client can be reused for multiple calls.
7172
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
7173
+ #
7174
+ # # Create a request. To set request fields, pass in keyword arguments.
7175
+ # request = Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new
7176
+ #
7177
+ # # Call the list_custom_metrics method.
7178
+ # result = client.list_custom_metrics request
7179
+ #
7180
+ # # The returned object is of type Gapic::PagedEnumerable. You can
7181
+ # # iterate over all elements by calling #each, and the enumerable
7182
+ # # will lazily make API calls to fetch subsequent pages. Other
7183
+ # # methods are also available for managing paging directly.
7184
+ # result.each do |response|
7185
+ # # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomMetric.
7186
+ # p response
7187
+ # end
7188
+ #
5807
7189
  def list_custom_metrics request, options = nil
5808
7190
  raise ::ArgumentError, "request must be provided" if request.nil?
5809
7191
 
@@ -5821,9 +7203,11 @@ module Google
5821
7203
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
5822
7204
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5823
7205
 
5824
- header_params = {
5825
- "parent" => request.parent
5826
- }
7206
+ header_params = {}
7207
+ if request.parent
7208
+ header_params["parent"] = request.parent
7209
+ end
7210
+
5827
7211
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5828
7212
  metadata[:"x-goog-request-params"] ||= request_params_header
5829
7213
 
@@ -5874,6 +7258,21 @@ module Google
5874
7258
  #
5875
7259
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
5876
7260
  #
7261
+ # @example Basic example
7262
+ # require "google/analytics/admin/v1alpha"
7263
+ #
7264
+ # # Create a client object. The client can be reused for multiple calls.
7265
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
7266
+ #
7267
+ # # Create a request. To set request fields, pass in keyword arguments.
7268
+ # request = Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new
7269
+ #
7270
+ # # Call the archive_custom_metric method.
7271
+ # result = client.archive_custom_metric request
7272
+ #
7273
+ # # The returned object is of type Google::Protobuf::Empty.
7274
+ # p result
7275
+ #
5877
7276
  def archive_custom_metric request, options = nil
5878
7277
  raise ::ArgumentError, "request must be provided" if request.nil?
5879
7278
 
@@ -5891,9 +7290,11 @@ module Google
5891
7290
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
5892
7291
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5893
7292
 
5894
- header_params = {
5895
- "name" => request.name
5896
- }
7293
+ header_params = {}
7294
+ if request.name
7295
+ header_params["name"] = request.name
7296
+ end
7297
+
5897
7298
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5898
7299
  metadata[:"x-goog-request-params"] ||= request_params_header
5899
7300
 
@@ -5943,6 +7344,21 @@ module Google
5943
7344
  #
5944
7345
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
5945
7346
  #
7347
+ # @example Basic example
7348
+ # require "google/analytics/admin/v1alpha"
7349
+ #
7350
+ # # Create a client object. The client can be reused for multiple calls.
7351
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
7352
+ #
7353
+ # # Create a request. To set request fields, pass in keyword arguments.
7354
+ # request = Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new
7355
+ #
7356
+ # # Call the get_custom_metric method.
7357
+ # result = client.get_custom_metric request
7358
+ #
7359
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric.
7360
+ # p result
7361
+ #
5946
7362
  def get_custom_metric request, options = nil
5947
7363
  raise ::ArgumentError, "request must be provided" if request.nil?
5948
7364
 
@@ -5960,9 +7376,11 @@ module Google
5960
7376
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
5961
7377
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5962
7378
 
5963
- header_params = {
5964
- "name" => request.name
5965
- }
7379
+ header_params = {}
7380
+ if request.name
7381
+ header_params["name"] = request.name
7382
+ end
7383
+
5966
7384
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5967
7385
  metadata[:"x-goog-request-params"] ||= request_params_header
5968
7386
 
@@ -6014,6 +7432,21 @@ module Google
6014
7432
  #
6015
7433
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
6016
7434
  #
7435
+ # @example Basic example
7436
+ # require "google/analytics/admin/v1alpha"
7437
+ #
7438
+ # # Create a client object. The client can be reused for multiple calls.
7439
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
7440
+ #
7441
+ # # Create a request. To set request fields, pass in keyword arguments.
7442
+ # request = Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new
7443
+ #
7444
+ # # Call the get_data_retention_settings method.
7445
+ # result = client.get_data_retention_settings request
7446
+ #
7447
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings.
7448
+ # p result
7449
+ #
6017
7450
  def get_data_retention_settings request, options = nil
6018
7451
  raise ::ArgumentError, "request must be provided" if request.nil?
6019
7452
 
@@ -6031,9 +7464,11 @@ module Google
6031
7464
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
6032
7465
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6033
7466
 
6034
- header_params = {
6035
- "name" => request.name
6036
- }
7467
+ header_params = {}
7468
+ if request.name
7469
+ header_params["name"] = request.name
7470
+ end
7471
+
6037
7472
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6038
7473
  metadata[:"x-goog-request-params"] ||= request_params_header
6039
7474
 
@@ -6087,6 +7522,21 @@ module Google
6087
7522
  #
6088
7523
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
6089
7524
  #
7525
+ # @example Basic example
7526
+ # require "google/analytics/admin/v1alpha"
7527
+ #
7528
+ # # Create a client object. The client can be reused for multiple calls.
7529
+ # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new
7530
+ #
7531
+ # # Create a request. To set request fields, pass in keyword arguments.
7532
+ # request = Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new
7533
+ #
7534
+ # # Call the update_data_retention_settings method.
7535
+ # result = client.update_data_retention_settings request
7536
+ #
7537
+ # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings.
7538
+ # p result
7539
+ #
6090
7540
  def update_data_retention_settings request, options = nil
6091
7541
  raise ::ArgumentError, "request must be provided" if request.nil?
6092
7542
 
@@ -6104,9 +7554,11 @@ module Google
6104
7554
  gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
6105
7555
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6106
7556
 
6107
- header_params = {
6108
- "data_retention_settings.name" => request.data_retention_settings.name
6109
- }
7557
+ header_params = {}
7558
+ if request.data_retention_settings&.name
7559
+ header_params["data_retention_settings.name"] = request.data_retention_settings.name
7560
+ end
7561
+
6110
7562
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
6111
7563
  metadata[:"x-goog-request-params"] ||= request_params_header
6112
7564