google-apis-analyticsadmin_v1alpha 0.4.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AnalyticsadminV1alpha
18
18
  # Version of the google-apis-analyticsadmin_v1alpha gem
19
- GEM_VERSION = "0.4.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210304"
25
+ REVISION = "20210613"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,18 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
43
55
  class GoogleAnalyticsAdminV1alphaAuditUserLink
44
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
57
 
@@ -112,12 +124,30 @@ module Google
112
124
  include Google::Apis::Core::JsonObjectSupport
113
125
  end
114
126
 
127
+ class GoogleAnalyticsAdminV1alphaConversionEvent
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
115
133
  class GoogleAnalyticsAdminV1alphaCreateUserLinkRequest
116
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
135
 
118
136
  include Google::Apis::Core::JsonObjectSupport
119
137
  end
120
138
 
139
+ class GoogleAnalyticsAdminV1alphaCustomDimension
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class GoogleAnalyticsAdminV1alphaCustomMetric
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
121
151
  class GoogleAnalyticsAdminV1alphaDataSharingSettings
122
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
153
 
@@ -154,6 +184,12 @@ module Google
154
184
  include Google::Apis::Core::JsonObjectSupport
155
185
  end
156
186
 
187
+ class GoogleAnalyticsAdminV1alphaGoogleSignalsSettings
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
157
193
  class GoogleAnalyticsAdminV1alphaIosAppDataStream
158
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
195
 
@@ -178,6 +214,24 @@ module Google
178
214
  include Google::Apis::Core::JsonObjectSupport
179
215
  end
180
216
 
217
+ class GoogleAnalyticsAdminV1alphaListConversionEventsResponse
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class GoogleAnalyticsAdminV1alphaListCustomMetricsResponse
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
181
235
  class GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse
182
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
237
 
@@ -196,6 +250,12 @@ module Google
196
250
  include Google::Apis::Core::JsonObjectSupport
197
251
  end
198
252
 
253
+ class GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
199
259
  class GoogleAnalyticsAdminV1alphaListPropertiesResponse
200
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
261
 
@@ -214,6 +274,12 @@ module Google
214
274
  include Google::Apis::Core::JsonObjectSupport
215
275
  end
216
276
 
277
+ class GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
217
283
  class GoogleAnalyticsAdminV1alphaProperty
218
284
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
285
 
@@ -309,6 +375,18 @@ module Google
309
375
  end
310
376
  end
311
377
 
378
+ class GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest
379
+ # @private
380
+ class Representation < Google::Apis::Core::JsonRepresentation
381
+ end
382
+ end
383
+
384
+ class GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest
385
+ # @private
386
+ class Representation < Google::Apis::Core::JsonRepresentation
387
+ end
388
+ end
389
+
312
390
  class GoogleAnalyticsAdminV1alphaAuditUserLink
313
391
  # @private
314
392
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -404,12 +482,22 @@ module Google
404
482
 
405
483
  property :android_app_data_stream, as: 'androidAppDataStream', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream::Representation
406
484
 
485
+ property :conversion_event, as: 'conversionEvent', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent::Representation
486
+
487
+ property :custom_dimension, as: 'customDimension', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension::Representation
488
+
489
+ property :custom_metric, as: 'customMetric', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric::Representation
490
+
407
491
  property :firebase_link, as: 'firebaseLink', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation
408
492
 
409
493
  property :google_ads_link, as: 'googleAdsLink', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation
410
494
 
495
+ property :google_signals_settings, as: 'googleSignalsSettings', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings::Representation
496
+
411
497
  property :ios_app_data_stream, as: 'iosAppDataStream', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
412
498
 
499
+ property :measurement_protocol_secret, as: 'measurementProtocolSecret', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
500
+
413
501
  property :property, as: 'property', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty::Representation
414
502
 
415
503
  property :web_data_stream, as: 'webDataStream', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream::Representation
@@ -430,6 +518,17 @@ module Google
430
518
  end
431
519
  end
432
520
 
521
+ class GoogleAnalyticsAdminV1alphaConversionEvent
522
+ # @private
523
+ class Representation < Google::Apis::Core::JsonRepresentation
524
+ property :create_time, as: 'createTime'
525
+ property :custom, as: 'custom'
526
+ property :event_name, as: 'eventName'
527
+ property :is_deletable, as: 'isDeletable'
528
+ property :name, as: 'name'
529
+ end
530
+ end
531
+
433
532
  class GoogleAnalyticsAdminV1alphaCreateUserLinkRequest
434
533
  # @private
435
534
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -440,6 +539,30 @@ module Google
440
539
  end
441
540
  end
442
541
 
542
+ class GoogleAnalyticsAdminV1alphaCustomDimension
543
+ # @private
544
+ class Representation < Google::Apis::Core::JsonRepresentation
545
+ property :description, as: 'description'
546
+ property :disallow_ads_personalization, as: 'disallowAdsPersonalization'
547
+ property :display_name, as: 'displayName'
548
+ property :name, as: 'name'
549
+ property :parameter_name, as: 'parameterName'
550
+ property :scope, as: 'scope'
551
+ end
552
+ end
553
+
554
+ class GoogleAnalyticsAdminV1alphaCustomMetric
555
+ # @private
556
+ class Representation < Google::Apis::Core::JsonRepresentation
557
+ property :description, as: 'description'
558
+ property :display_name, as: 'displayName'
559
+ property :measurement_unit, as: 'measurementUnit'
560
+ property :name, as: 'name'
561
+ property :parameter_name, as: 'parameterName'
562
+ property :scope, as: 'scope'
563
+ end
564
+ end
565
+
443
566
  class GoogleAnalyticsAdminV1alphaDataSharingSettings
444
567
  # @private
445
568
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -481,7 +604,6 @@ module Google
481
604
  # @private
482
605
  class Representation < Google::Apis::Core::JsonRepresentation
483
606
  property :create_time, as: 'createTime'
484
- property :maximum_user_access, as: 'maximumUserAccess'
485
607
  property :name, as: 'name'
486
608
  property :project, as: 'project'
487
609
  end
@@ -501,13 +623,22 @@ module Google
501
623
  property :ads_personalization_enabled, as: 'adsPersonalizationEnabled'
502
624
  property :can_manage_clients, as: 'canManageClients'
503
625
  property :create_time, as: 'createTime'
626
+ property :creator_email_address, as: 'creatorEmailAddress'
504
627
  property :customer_id, as: 'customerId'
505
- property :email_address, as: 'emailAddress'
506
628
  property :name, as: 'name'
507
629
  property :update_time, as: 'updateTime'
508
630
  end
509
631
  end
510
632
 
633
+ class GoogleAnalyticsAdminV1alphaGoogleSignalsSettings
634
+ # @private
635
+ class Representation < Google::Apis::Core::JsonRepresentation
636
+ property :consent, as: 'consent'
637
+ property :name, as: 'name'
638
+ property :state, as: 'state'
639
+ end
640
+ end
641
+
511
642
  class GoogleAnalyticsAdminV1alphaIosAppDataStream
512
643
  # @private
513
644
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -547,6 +678,33 @@ module Google
547
678
  end
548
679
  end
549
680
 
681
+ class GoogleAnalyticsAdminV1alphaListConversionEventsResponse
682
+ # @private
683
+ class Representation < Google::Apis::Core::JsonRepresentation
684
+ collection :conversion_events, as: 'conversionEvents', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent::Representation
685
+
686
+ property :next_page_token, as: 'nextPageToken'
687
+ end
688
+ end
689
+
690
+ class GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse
691
+ # @private
692
+ class Representation < Google::Apis::Core::JsonRepresentation
693
+ collection :custom_dimensions, as: 'customDimensions', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension::Representation
694
+
695
+ property :next_page_token, as: 'nextPageToken'
696
+ end
697
+ end
698
+
699
+ class GoogleAnalyticsAdminV1alphaListCustomMetricsResponse
700
+ # @private
701
+ class Representation < Google::Apis::Core::JsonRepresentation
702
+ collection :custom_metrics, as: 'customMetrics', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric::Representation
703
+
704
+ property :next_page_token, as: 'nextPageToken'
705
+ end
706
+ end
707
+
550
708
  class GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse
551
709
  # @private
552
710
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -574,6 +732,15 @@ module Google
574
732
  end
575
733
  end
576
734
 
735
+ class GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse
736
+ # @private
737
+ class Representation < Google::Apis::Core::JsonRepresentation
738
+ collection :measurement_protocol_secrets, as: 'measurementProtocolSecrets', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
739
+
740
+ property :next_page_token, as: 'nextPageToken'
741
+ end
742
+ end
743
+
577
744
  class GoogleAnalyticsAdminV1alphaListPropertiesResponse
578
745
  # @private
579
746
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -601,13 +768,23 @@ module Google
601
768
  end
602
769
  end
603
770
 
771
+ class GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
772
+ # @private
773
+ class Representation < Google::Apis::Core::JsonRepresentation
774
+ property :display_name, as: 'displayName'
775
+ property :name, as: 'name'
776
+ property :secret_value, as: 'secretValue'
777
+ end
778
+ end
779
+
604
780
  class GoogleAnalyticsAdminV1alphaProperty
605
781
  # @private
606
782
  class Representation < Google::Apis::Core::JsonRepresentation
607
783
  property :create_time, as: 'createTime'
608
784
  property :currency_code, as: 'currencyCode'
609
- property :deleted, as: 'deleted'
785
+ property :delete_time, as: 'deleteTime'
610
786
  property :display_name, as: 'displayName'
787
+ property :expire_time, as: 'expireTime'
611
788
  property :industry_category, as: 'industryCategory'
612
789
  property :name, as: 'name'
613
790
  property :parent, as: 'parent'
@@ -658,7 +658,7 @@ module Google
658
658
 
659
659
  # Updates a user link on an account or property.
660
660
  # @param [String] name
661
- # Example format: properties/1234/userLinks/5678
661
+ # Output only. Example format: properties/1234/userLinks/5678
662
662
  # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] google_analytics_admin_v1alpha_user_link_object
663
663
  # @param [String] fields
664
664
  # Selector specifying which fields to include in a partial response.
@@ -738,18 +738,18 @@ module Google
738
738
  # Request-specific options
739
739
  #
740
740
  # @yield [result, err] Result & error if block supplied
741
- # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
741
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] parsed result object
742
742
  # @yieldparam err [StandardError] error object if request failed
743
743
  #
744
- # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
744
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty]
745
745
  #
746
746
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
747
747
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
748
748
  # @raise [Google::Apis::AuthorizationError] Authorization is required
749
749
  def delete_property(name, fields: nil, quota_user: nil, options: nil, &block)
750
750
  command = make_simple_command(:delete, 'v1alpha/{+name}', options)
751
- command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
752
- command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
751
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty::Representation
752
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty
753
753
  command.params['name'] = name unless name.nil?
754
754
  command.query['fields'] = fields unless fields.nil?
755
755
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -787,6 +787,37 @@ module Google
787
787
  execute_or_queue_command(command, &block)
788
788
  end
789
789
 
790
+ # Lookup for Google Signals settings for a property.
791
+ # @param [String] name
792
+ # Required. The name of the google signals settings to retrieve. Format:
793
+ # properties/`property`/googleSignalsSettings
794
+ # @param [String] fields
795
+ # Selector specifying which fields to include in a partial response.
796
+ # @param [String] quota_user
797
+ # Available to use for quota purposes for server-side applications. Can be any
798
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
799
+ # @param [Google::Apis::RequestOptions] options
800
+ # Request-specific options
801
+ #
802
+ # @yield [result, err] Result & error if block supplied
803
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings] parsed result object
804
+ # @yieldparam err [StandardError] error object if request failed
805
+ #
806
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings]
807
+ #
808
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
809
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
810
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
811
+ def get_property_google_signals_settings(name, fields: nil, quota_user: nil, options: nil, &block)
812
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
813
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings::Representation
814
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings
815
+ command.params['name'] = name unless name.nil?
816
+ command.query['fields'] = fields unless fields.nil?
817
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
818
+ execute_or_queue_command(command, &block)
819
+ end
820
+
790
821
  # Returns child Properties under the specified parent Account. Only "GA4"
791
822
  # properties will be returned. Properties will be excluded if the caller does
792
823
  # not have access. Soft-deleted (ie: "trashed") properties are excluded by
@@ -881,16 +912,15 @@ module Google
881
912
  execute_or_queue_command(command, &block)
882
913
  end
883
914
 
884
- # Creates an Android app stream with the specified location and attributes. Note
885
- # that an Android app stream must be linked to a Firebase app to receive traffic.
886
- # To create a working app stream, make sure your property is linked to a
887
- # Firebase project. Then, use the Firebase API to create a Firebase app, which
888
- # will also create an appropriate data stream in Analytics (may take up to 24
889
- # hours).
890
- # @param [String] parent
891
- # Required. The parent resource where this android app data stream will be
892
- # created. Format: properties/123
893
- # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream] google_analytics_admin_v1alpha_android_app_data_stream_object
915
+ # Updates Google Signals settings for a property.
916
+ # @param [String] name
917
+ # Output only. Resource name of this setting. Format: properties/`property_id`/
918
+ # googleSignalsSettings Example: "properties/1000/googleSignalsSettings"
919
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings] google_analytics_admin_v1alpha_google_signals_settings_object
920
+ # @param [String] update_mask
921
+ # Required. The list of fields to be updated. Field names must be in snake case (
922
+ # e.g., "field_to_update"). Omitted fields will not be updated. To replace the
923
+ # entire entity, use one path with the string "*" to match all fields.
894
924
  # @param [String] fields
895
925
  # Selector specifying which fields to include in a partial response.
896
926
  # @param [String] quota_user
@@ -900,21 +930,22 @@ module Google
900
930
  # Request-specific options
901
931
  #
902
932
  # @yield [result, err] Result & error if block supplied
903
- # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream] parsed result object
933
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings] parsed result object
904
934
  # @yieldparam err [StandardError] error object if request failed
905
935
  #
906
- # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream]
936
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings]
907
937
  #
908
938
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
909
939
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
910
940
  # @raise [Google::Apis::AuthorizationError] Authorization is required
911
- def create_property_android_app_data_stream(parent, google_analytics_admin_v1alpha_android_app_data_stream_object = nil, fields: nil, quota_user: nil, options: nil, &block)
912
- command = make_simple_command(:post, 'v1alpha/{+parent}/androidAppDataStreams', options)
913
- command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream::Representation
914
- command.request_object = google_analytics_admin_v1alpha_android_app_data_stream_object
915
- command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream::Representation
916
- command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream
917
- command.params['parent'] = parent unless parent.nil?
941
+ def update_property_google_signals_settings(name, google_analytics_admin_v1alpha_google_signals_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
942
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
943
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings::Representation
944
+ command.request_object = google_analytics_admin_v1alpha_google_signals_settings_object
945
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings::Representation
946
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings
947
+ command.params['name'] = name unless name.nil?
948
+ command.query['updateMask'] = update_mask unless update_mask.nil?
918
949
  command.query['fields'] = fields unless fields.nil?
919
950
  command.query['quotaUser'] = quota_user unless quota_user.nil?
920
951
  execute_or_queue_command(command, &block)
@@ -1067,10 +1098,12 @@ module Google
1067
1098
  execute_or_queue_command(command, &block)
1068
1099
  end
1069
1100
 
1070
- # Creates a FirebaseLink. Properties can have at most one FirebaseLink.
1101
+ # Creates a measurement protocol secret.
1071
1102
  # @param [String] parent
1072
- # Required. Format: properties/`property_id` Example: properties/1234
1073
- # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] google_analytics_admin_v1alpha_firebase_link_object
1103
+ # Required. The parent resource where this secret will be created. Any type of
1104
+ # stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
1105
+ # Format: properties/`property`/webDataStreams/`webDataStream`
1106
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] google_analytics_admin_v1alpha_measurement_protocol_secret_object
1074
1107
  # @param [String] fields
1075
1108
  # Selector specifying which fields to include in a partial response.
1076
1109
  # @param [String] quota_user
@@ -1080,30 +1113,32 @@ module Google
1080
1113
  # Request-specific options
1081
1114
  #
1082
1115
  # @yield [result, err] Result & error if block supplied
1083
- # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] parsed result object
1116
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
1084
1117
  # @yieldparam err [StandardError] error object if request failed
1085
1118
  #
1086
- # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink]
1119
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
1087
1120
  #
1088
1121
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1089
1122
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1090
1123
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1091
- def create_property_firebase_link(parent, google_analytics_admin_v1alpha_firebase_link_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1092
- command = make_simple_command(:post, 'v1alpha/{+parent}/firebaseLinks', options)
1093
- command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation
1094
- command.request_object = google_analytics_admin_v1alpha_firebase_link_object
1095
- command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation
1096
- command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink
1124
+ def create_property_android_app_data_stream_measurement_protocol_secret(parent, google_analytics_admin_v1alpha_measurement_protocol_secret_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1125
+ command = make_simple_command(:post, 'v1alpha/{+parent}/measurementProtocolSecrets', options)
1126
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
1127
+ command.request_object = google_analytics_admin_v1alpha_measurement_protocol_secret_object
1128
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
1129
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
1097
1130
  command.params['parent'] = parent unless parent.nil?
1098
1131
  command.query['fields'] = fields unless fields.nil?
1099
1132
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1100
1133
  execute_or_queue_command(command, &block)
1101
1134
  end
1102
1135
 
1103
- # Deletes a FirebaseLink on a property
1136
+ # Deletes target MeasurementProtocolSecret.
1104
1137
  # @param [String] name
1105
- # Required. Format: properties/`property_id`/firebaseLinks/`firebase_link_id`
1106
- # Example: properties/1234/firebaseLinks/5678
1138
+ # Required. The name of the MeasurementProtocolSecret to delete. Format:
1139
+ # properties/`property`/webDataStreams/`webDataStream`/
1140
+ # measurementProtocolSecrets/`measurementProtocolSecret` Note: Any type of
1141
+ # stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
1107
1142
  # @param [String] fields
1108
1143
  # Selector specifying which fields to include in a partial response.
1109
1144
  # @param [String] quota_user
@@ -1121,7 +1156,7 @@ module Google
1121
1156
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1122
1157
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1123
1158
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1124
- def delete_property_firebase_link(name, fields: nil, quota_user: nil, options: nil, &block)
1159
+ def delete_property_android_app_data_stream_measurement_protocol_secret(name, fields: nil, quota_user: nil, options: nil, &block)
1125
1160
  command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1126
1161
  command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1127
1162
  command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
@@ -1131,19 +1166,54 @@ module Google
1131
1166
  execute_or_queue_command(command, &block)
1132
1167
  end
1133
1168
 
1134
- # Lists FirebaseLinks on a property. Properties can have at most one
1135
- # FirebaseLink.
1169
+ # Lookup for a single "GA4" MeasurementProtocolSecret.
1170
+ # @param [String] name
1171
+ # Required. The name of the measurement protocol secret to lookup. Format:
1172
+ # properties/`property`/webDataStreams/`webDataStream`/
1173
+ # measurementProtocolSecrets/`measurementProtocolSecret` Note: Any type of
1174
+ # stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
1175
+ # @param [String] fields
1176
+ # Selector specifying which fields to include in a partial response.
1177
+ # @param [String] quota_user
1178
+ # Available to use for quota purposes for server-side applications. Can be any
1179
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1180
+ # @param [Google::Apis::RequestOptions] options
1181
+ # Request-specific options
1182
+ #
1183
+ # @yield [result, err] Result & error if block supplied
1184
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
1185
+ # @yieldparam err [StandardError] error object if request failed
1186
+ #
1187
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
1188
+ #
1189
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1190
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1191
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1192
+ def get_property_android_app_data_stream_measurement_protocol_secret(name, fields: nil, quota_user: nil, options: nil, &block)
1193
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1194
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
1195
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
1196
+ command.params['name'] = name unless name.nil?
1197
+ command.query['fields'] = fields unless fields.nil?
1198
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1199
+ execute_or_queue_command(command, &block)
1200
+ end
1201
+
1202
+ # Returns child MeasurementProtocolSecrets under the specified parent Property.
1136
1203
  # @param [String] parent
1137
- # Required. Format: properties/`property_id` Example: properties/1234
1204
+ # Required. The resource name of the parent stream. Any type of stream (
1205
+ # WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format:
1206
+ # properties/`property`/webDataStreams/`webDataStream`/
1207
+ # measurementProtocolSecrets
1138
1208
  # @param [Fixnum] page_size
1139
- # The maximum number of resources to return. The service may return fewer than
1140
- # this value, even if there are additional pages. If unspecified, at most 50
1141
- # resources will be returned. The maximum value is 200; (higher values will be
1142
- # coerced to the maximum)
1209
+ # The maximum number of resources to return. If unspecified, at most 10
1210
+ # resources will be returned. The maximum value is 10. Higher values will be
1211
+ # coerced to the maximum.
1143
1212
  # @param [String] page_token
1144
- # A page token, received from a previous `ListFirebaseLinks` call. Provide this
1145
- # to retrieve the subsequent page. When paginating, all other parameters
1146
- # provided to `ListProperties` must match the call that provided the page token.
1213
+ # A page token, received from a previous `ListMeasurementProtocolSecrets` call.
1214
+ # Provide this to retrieve the subsequent page. When paginating, all other
1215
+ # parameters provided to `ListMeasurementProtocolSecrets` must match the call
1216
+ # that provided the page token.
1147
1217
  # @param [String] fields
1148
1218
  # Selector specifying which fields to include in a partial response.
1149
1219
  # @param [String] quota_user
@@ -1153,18 +1223,18 @@ module Google
1153
1223
  # Request-specific options
1154
1224
  #
1155
1225
  # @yield [result, err] Result & error if block supplied
1156
- # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse] parsed result object
1226
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse] parsed result object
1157
1227
  # @yieldparam err [StandardError] error object if request failed
1158
1228
  #
1159
- # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse]
1229
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse]
1160
1230
  #
1161
1231
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1162
1232
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1163
1233
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1164
- def list_property_firebase_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1165
- command = make_simple_command(:get, 'v1alpha/{+parent}/firebaseLinks', options)
1166
- command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse::Representation
1167
- command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse
1234
+ def list_property_android_app_data_stream_measurement_protocol_secrets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1235
+ command = make_simple_command(:get, 'v1alpha/{+parent}/measurementProtocolSecrets', options)
1236
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse::Representation
1237
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse
1168
1238
  command.params['parent'] = parent unless parent.nil?
1169
1239
  command.query['pageSize'] = page_size unless page_size.nil?
1170
1240
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -1173,14 +1243,14 @@ module Google
1173
1243
  execute_or_queue_command(command, &block)
1174
1244
  end
1175
1245
 
1176
- # Updates a FirebaseLink on a property
1246
+ # Updates a measurement protocol secret.
1177
1247
  # @param [String] name
1178
- # Output only. Example format: properties/1234/firebaseLinks/5678
1179
- # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] google_analytics_admin_v1alpha_firebase_link_object
1248
+ # Output only. Resource name of this secret. This secret may be a child of any
1249
+ # type of stream. Format: properties/`property`/webDataStreams/`webDataStream`/
1250
+ # measurementProtocolSecrets/`measurementProtocolSecret`
1251
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] google_analytics_admin_v1alpha_measurement_protocol_secret_object
1180
1252
  # @param [String] update_mask
1181
- # Required. The list of fields to be updated. Field names must be in snake case (
1182
- # e.g., "field_to_update"). Omitted fields will not be updated. To replace the
1183
- # entire entity, use one path with the string "*" to match all fields.
1253
+ # The list of fields to be updated. Omitted fields will not be updated.
1184
1254
  # @param [String] fields
1185
1255
  # Selector specifying which fields to include in a partial response.
1186
1256
  # @param [String] quota_user
@@ -1190,20 +1260,20 @@ module Google
1190
1260
  # Request-specific options
1191
1261
  #
1192
1262
  # @yield [result, err] Result & error if block supplied
1193
- # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] parsed result object
1263
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
1194
1264
  # @yieldparam err [StandardError] error object if request failed
1195
1265
  #
1196
- # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink]
1266
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
1197
1267
  #
1198
1268
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1199
1269
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1200
1270
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1201
- def patch_property_firebase_link(name, google_analytics_admin_v1alpha_firebase_link_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1271
+ def patch_property_android_app_data_stream_measurement_protocol_secret(name, google_analytics_admin_v1alpha_measurement_protocol_secret_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1202
1272
  command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1203
- command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation
1204
- command.request_object = google_analytics_admin_v1alpha_firebase_link_object
1205
- command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation
1206
- command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink
1273
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
1274
+ command.request_object = google_analytics_admin_v1alpha_measurement_protocol_secret_object
1275
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
1276
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
1207
1277
  command.params['name'] = name unless name.nil?
1208
1278
  command.query['updateMask'] = update_mask unless update_mask.nil?
1209
1279
  command.query['fields'] = fields unless fields.nil?
@@ -1211,10 +1281,184 @@ module Google
1211
1281
  execute_or_queue_command(command, &block)
1212
1282
  end
1213
1283
 
1214
- # Creates a GoogleAdsLink.
1284
+ # Creates a conversion event with the specified attributes.
1285
+ # @param [String] parent
1286
+ # Required. The resource name of the parent property where this conversion event
1287
+ # will be created. Format: properties/123
1288
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent] google_analytics_admin_v1alpha_conversion_event_object
1289
+ # @param [String] fields
1290
+ # Selector specifying which fields to include in a partial response.
1291
+ # @param [String] quota_user
1292
+ # Available to use for quota purposes for server-side applications. Can be any
1293
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1294
+ # @param [Google::Apis::RequestOptions] options
1295
+ # Request-specific options
1296
+ #
1297
+ # @yield [result, err] Result & error if block supplied
1298
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent] parsed result object
1299
+ # @yieldparam err [StandardError] error object if request failed
1300
+ #
1301
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent]
1302
+ #
1303
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1304
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1305
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1306
+ def create_property_conversion_event(parent, google_analytics_admin_v1alpha_conversion_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1307
+ command = make_simple_command(:post, 'v1alpha/{+parent}/conversionEvents', options)
1308
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent::Representation
1309
+ command.request_object = google_analytics_admin_v1alpha_conversion_event_object
1310
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent::Representation
1311
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent
1312
+ command.params['parent'] = parent unless parent.nil?
1313
+ command.query['fields'] = fields unless fields.nil?
1314
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1315
+ execute_or_queue_command(command, &block)
1316
+ end
1317
+
1318
+ # Deletes a conversion event in a property.
1319
+ # @param [String] name
1320
+ # Required. The resource name of the conversion event to delete. Format:
1321
+ # properties/`property`/conversionEvents/`conversion_event` Example: "properties/
1322
+ # 123/conversionEvents/456"
1323
+ # @param [String] fields
1324
+ # Selector specifying which fields to include in a partial response.
1325
+ # @param [String] quota_user
1326
+ # Available to use for quota purposes for server-side applications. Can be any
1327
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1328
+ # @param [Google::Apis::RequestOptions] options
1329
+ # Request-specific options
1330
+ #
1331
+ # @yield [result, err] Result & error if block supplied
1332
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
1333
+ # @yieldparam err [StandardError] error object if request failed
1334
+ #
1335
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
1336
+ #
1337
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1338
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1339
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1340
+ def delete_property_conversion_event(name, fields: nil, quota_user: nil, options: nil, &block)
1341
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1342
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1343
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
1344
+ command.params['name'] = name unless name.nil?
1345
+ command.query['fields'] = fields unless fields.nil?
1346
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1347
+ execute_or_queue_command(command, &block)
1348
+ end
1349
+
1350
+ # Retrieve a single conversion event.
1351
+ # @param [String] name
1352
+ # Required. The resource name of the conversion event to retrieve. Format:
1353
+ # properties/`property`/conversionEvents/`conversion_event` Example: "properties/
1354
+ # 123/conversionEvents/456"
1355
+ # @param [String] fields
1356
+ # Selector specifying which fields to include in a partial response.
1357
+ # @param [String] quota_user
1358
+ # Available to use for quota purposes for server-side applications. Can be any
1359
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1360
+ # @param [Google::Apis::RequestOptions] options
1361
+ # Request-specific options
1362
+ #
1363
+ # @yield [result, err] Result & error if block supplied
1364
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent] parsed result object
1365
+ # @yieldparam err [StandardError] error object if request failed
1366
+ #
1367
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent]
1368
+ #
1369
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1370
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1371
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1372
+ def get_property_conversion_event(name, fields: nil, quota_user: nil, options: nil, &block)
1373
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1374
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent::Representation
1375
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent
1376
+ command.params['name'] = name unless name.nil?
1377
+ command.query['fields'] = fields unless fields.nil?
1378
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1379
+ execute_or_queue_command(command, &block)
1380
+ end
1381
+
1382
+ # Returns a list of conversion events in the specified parent property. Returns
1383
+ # an empty list if no conversion events are found.
1384
+ # @param [String] parent
1385
+ # Required. The resource name of the parent property. Example: 'properties/123'
1386
+ # @param [Fixnum] page_size
1387
+ # The maximum number of resources to return. If unspecified, at most 50
1388
+ # resources will be returned. The maximum value is 200; (higher values will be
1389
+ # coerced to the maximum)
1390
+ # @param [String] page_token
1391
+ # A page token, received from a previous `ListConversionEvents` call. Provide
1392
+ # this to retrieve the subsequent page. When paginating, all other parameters
1393
+ # provided to `ListConversionEvents` must match the call that provided the page
1394
+ # token.
1395
+ # @param [String] fields
1396
+ # Selector specifying which fields to include in a partial response.
1397
+ # @param [String] quota_user
1398
+ # Available to use for quota purposes for server-side applications. Can be any
1399
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1400
+ # @param [Google::Apis::RequestOptions] options
1401
+ # Request-specific options
1402
+ #
1403
+ # @yield [result, err] Result & error if block supplied
1404
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListConversionEventsResponse] parsed result object
1405
+ # @yieldparam err [StandardError] error object if request failed
1406
+ #
1407
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListConversionEventsResponse]
1408
+ #
1409
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1410
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1411
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1412
+ def list_property_conversion_events(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1413
+ command = make_simple_command(:get, 'v1alpha/{+parent}/conversionEvents', options)
1414
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListConversionEventsResponse::Representation
1415
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListConversionEventsResponse
1416
+ command.params['parent'] = parent unless parent.nil?
1417
+ command.query['pageSize'] = page_size unless page_size.nil?
1418
+ command.query['pageToken'] = page_token unless page_token.nil?
1419
+ command.query['fields'] = fields unless fields.nil?
1420
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1421
+ execute_or_queue_command(command, &block)
1422
+ end
1423
+
1424
+ # Archives a CustomDimension on a property.
1425
+ # @param [String] name
1426
+ # Required. The name of the CustomDimension to archive. Example format:
1427
+ # properties/1234/customDimensions/5678
1428
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest] google_analytics_admin_v1alpha_archive_custom_dimension_request_object
1429
+ # @param [String] fields
1430
+ # Selector specifying which fields to include in a partial response.
1431
+ # @param [String] quota_user
1432
+ # Available to use for quota purposes for server-side applications. Can be any
1433
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1434
+ # @param [Google::Apis::RequestOptions] options
1435
+ # Request-specific options
1436
+ #
1437
+ # @yield [result, err] Result & error if block supplied
1438
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
1439
+ # @yieldparam err [StandardError] error object if request failed
1440
+ #
1441
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
1442
+ #
1443
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1444
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1445
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1446
+ def archive_property_custom_dimension(name, google_analytics_admin_v1alpha_archive_custom_dimension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1447
+ command = make_simple_command(:post, 'v1alpha/{+name}:archive', options)
1448
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest::Representation
1449
+ command.request_object = google_analytics_admin_v1alpha_archive_custom_dimension_request_object
1450
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1451
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
1452
+ command.params['name'] = name unless name.nil?
1453
+ command.query['fields'] = fields unless fields.nil?
1454
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1455
+ execute_or_queue_command(command, &block)
1456
+ end
1457
+
1458
+ # Creates a CustomDimension.
1215
1459
  # @param [String] parent
1216
1460
  # Required. Example format: properties/1234
1217
- # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] google_analytics_admin_v1alpha_google_ads_link_object
1461
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension] google_analytics_admin_v1alpha_custom_dimension_object
1218
1462
  # @param [String] fields
1219
1463
  # Selector specifying which fields to include in a partial response.
1220
1464
  # @param [String] quota_user
@@ -1224,29 +1468,639 @@ module Google
1224
1468
  # Request-specific options
1225
1469
  #
1226
1470
  # @yield [result, err] Result & error if block supplied
1227
- # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] parsed result object
1471
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension] parsed result object
1228
1472
  # @yieldparam err [StandardError] error object if request failed
1229
1473
  #
1230
- # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink]
1474
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension]
1231
1475
  #
1232
1476
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1233
1477
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1234
1478
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1235
- def create_property_google_ads_link(parent, google_analytics_admin_v1alpha_google_ads_link_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1236
- command = make_simple_command(:post, 'v1alpha/{+parent}/googleAdsLinks', options)
1237
- command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation
1238
- command.request_object = google_analytics_admin_v1alpha_google_ads_link_object
1239
- command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation
1240
- command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink
1479
+ def create_property_custom_dimension(parent, google_analytics_admin_v1alpha_custom_dimension_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1480
+ command = make_simple_command(:post, 'v1alpha/{+parent}/customDimensions', options)
1481
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension::Representation
1482
+ command.request_object = google_analytics_admin_v1alpha_custom_dimension_object
1483
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension::Representation
1484
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension
1241
1485
  command.params['parent'] = parent unless parent.nil?
1242
1486
  command.query['fields'] = fields unless fields.nil?
1243
1487
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1244
1488
  execute_or_queue_command(command, &block)
1245
1489
  end
1246
1490
 
1247
- # Deletes a GoogleAdsLink on a property
1491
+ # Lookup for a single CustomDimension.
1492
+ # @param [String] name
1493
+ # Required. The name of the CustomDimension to get. Example format: properties/
1494
+ # 1234/customDimensions/5678
1495
+ # @param [String] fields
1496
+ # Selector specifying which fields to include in a partial response.
1497
+ # @param [String] quota_user
1498
+ # Available to use for quota purposes for server-side applications. Can be any
1499
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1500
+ # @param [Google::Apis::RequestOptions] options
1501
+ # Request-specific options
1502
+ #
1503
+ # @yield [result, err] Result & error if block supplied
1504
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension] parsed result object
1505
+ # @yieldparam err [StandardError] error object if request failed
1506
+ #
1507
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension]
1508
+ #
1509
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1510
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1511
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1512
+ def get_property_custom_dimension(name, fields: nil, quota_user: nil, options: nil, &block)
1513
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1514
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension::Representation
1515
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension
1516
+ command.params['name'] = name unless name.nil?
1517
+ command.query['fields'] = fields unless fields.nil?
1518
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1519
+ execute_or_queue_command(command, &block)
1520
+ end
1521
+
1522
+ # Lists CustomDimensions on a property.
1523
+ # @param [String] parent
1524
+ # Required. Example format: properties/1234
1525
+ # @param [Fixnum] page_size
1526
+ # The maximum number of resources to return. If unspecified, at most 50
1527
+ # resources will be returned. The maximum value is 200 (higher values will be
1528
+ # coerced to the maximum).
1529
+ # @param [String] page_token
1530
+ # A page token, received from a previous `ListCustomDimensions` call. Provide
1531
+ # this to retrieve the subsequent page. When paginating, all other parameters
1532
+ # provided to `ListCustomDimensions` must match the call that provided the page
1533
+ # token.
1534
+ # @param [String] fields
1535
+ # Selector specifying which fields to include in a partial response.
1536
+ # @param [String] quota_user
1537
+ # Available to use for quota purposes for server-side applications. Can be any
1538
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1539
+ # @param [Google::Apis::RequestOptions] options
1540
+ # Request-specific options
1541
+ #
1542
+ # @yield [result, err] Result & error if block supplied
1543
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse] parsed result object
1544
+ # @yieldparam err [StandardError] error object if request failed
1545
+ #
1546
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse]
1547
+ #
1548
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1549
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1550
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1551
+ def list_property_custom_dimensions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1552
+ command = make_simple_command(:get, 'v1alpha/{+parent}/customDimensions', options)
1553
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse::Representation
1554
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse
1555
+ command.params['parent'] = parent unless parent.nil?
1556
+ command.query['pageSize'] = page_size unless page_size.nil?
1557
+ command.query['pageToken'] = page_token unless page_token.nil?
1558
+ command.query['fields'] = fields unless fields.nil?
1559
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1560
+ execute_or_queue_command(command, &block)
1561
+ end
1562
+
1563
+ # Updates a CustomDimension on a property.
1564
+ # @param [String] name
1565
+ # Output only. Resource name for this CustomDimension resource. Format:
1566
+ # properties/`property`/customDimensions/`customDimension`
1567
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension] google_analytics_admin_v1alpha_custom_dimension_object
1568
+ # @param [String] update_mask
1569
+ # Required. The list of fields to be updated. Omitted fields will not be updated.
1570
+ # To replace the entire entity, use one path with the string "*" to match all
1571
+ # fields.
1572
+ # @param [String] fields
1573
+ # Selector specifying which fields to include in a partial response.
1574
+ # @param [String] quota_user
1575
+ # Available to use for quota purposes for server-side applications. Can be any
1576
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1577
+ # @param [Google::Apis::RequestOptions] options
1578
+ # Request-specific options
1579
+ #
1580
+ # @yield [result, err] Result & error if block supplied
1581
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension] parsed result object
1582
+ # @yieldparam err [StandardError] error object if request failed
1583
+ #
1584
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension]
1585
+ #
1586
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1587
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1588
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1589
+ def patch_property_custom_dimension(name, google_analytics_admin_v1alpha_custom_dimension_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1590
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1591
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension::Representation
1592
+ command.request_object = google_analytics_admin_v1alpha_custom_dimension_object
1593
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension::Representation
1594
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension
1595
+ command.params['name'] = name unless name.nil?
1596
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1597
+ command.query['fields'] = fields unless fields.nil?
1598
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1599
+ execute_or_queue_command(command, &block)
1600
+ end
1601
+
1602
+ # Archives a CustomMetric on a property.
1603
+ # @param [String] name
1604
+ # Required. The name of the CustomMetric to archive. Example format: properties/
1605
+ # 1234/customMetrics/5678
1606
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest] google_analytics_admin_v1alpha_archive_custom_metric_request_object
1607
+ # @param [String] fields
1608
+ # Selector specifying which fields to include in a partial response.
1609
+ # @param [String] quota_user
1610
+ # Available to use for quota purposes for server-side applications. Can be any
1611
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1612
+ # @param [Google::Apis::RequestOptions] options
1613
+ # Request-specific options
1614
+ #
1615
+ # @yield [result, err] Result & error if block supplied
1616
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
1617
+ # @yieldparam err [StandardError] error object if request failed
1618
+ #
1619
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
1620
+ #
1621
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1622
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1623
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1624
+ def archive_property_custom_metric(name, google_analytics_admin_v1alpha_archive_custom_metric_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1625
+ command = make_simple_command(:post, 'v1alpha/{+name}:archive', options)
1626
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest::Representation
1627
+ command.request_object = google_analytics_admin_v1alpha_archive_custom_metric_request_object
1628
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1629
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
1630
+ command.params['name'] = name unless name.nil?
1631
+ command.query['fields'] = fields unless fields.nil?
1632
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1633
+ execute_or_queue_command(command, &block)
1634
+ end
1635
+
1636
+ # Creates a CustomMetric.
1637
+ # @param [String] parent
1638
+ # Required. Example format: properties/1234
1639
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric] google_analytics_admin_v1alpha_custom_metric_object
1640
+ # @param [String] fields
1641
+ # Selector specifying which fields to include in a partial response.
1642
+ # @param [String] quota_user
1643
+ # Available to use for quota purposes for server-side applications. Can be any
1644
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1645
+ # @param [Google::Apis::RequestOptions] options
1646
+ # Request-specific options
1647
+ #
1648
+ # @yield [result, err] Result & error if block supplied
1649
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric] parsed result object
1650
+ # @yieldparam err [StandardError] error object if request failed
1651
+ #
1652
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric]
1653
+ #
1654
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1655
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1656
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1657
+ def create_property_custom_metric(parent, google_analytics_admin_v1alpha_custom_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1658
+ command = make_simple_command(:post, 'v1alpha/{+parent}/customMetrics', options)
1659
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric::Representation
1660
+ command.request_object = google_analytics_admin_v1alpha_custom_metric_object
1661
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric::Representation
1662
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric
1663
+ command.params['parent'] = parent unless parent.nil?
1664
+ command.query['fields'] = fields unless fields.nil?
1665
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1666
+ execute_or_queue_command(command, &block)
1667
+ end
1668
+
1669
+ # Lookup for a single CustomMetric.
1670
+ # @param [String] name
1671
+ # Required. The name of the CustomMetric to get. Example format: properties/1234/
1672
+ # customMetrics/5678
1673
+ # @param [String] fields
1674
+ # Selector specifying which fields to include in a partial response.
1675
+ # @param [String] quota_user
1676
+ # Available to use for quota purposes for server-side applications. Can be any
1677
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1678
+ # @param [Google::Apis::RequestOptions] options
1679
+ # Request-specific options
1680
+ #
1681
+ # @yield [result, err] Result & error if block supplied
1682
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric] parsed result object
1683
+ # @yieldparam err [StandardError] error object if request failed
1684
+ #
1685
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric]
1686
+ #
1687
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1688
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1689
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1690
+ def get_property_custom_metric(name, fields: nil, quota_user: nil, options: nil, &block)
1691
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1692
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric::Representation
1693
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric
1694
+ command.params['name'] = name unless name.nil?
1695
+ command.query['fields'] = fields unless fields.nil?
1696
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1697
+ execute_or_queue_command(command, &block)
1698
+ end
1699
+
1700
+ # Lists CustomMetrics on a property.
1701
+ # @param [String] parent
1702
+ # Required. Example format: properties/1234
1703
+ # @param [Fixnum] page_size
1704
+ # The maximum number of resources to return. If unspecified, at most 50
1705
+ # resources will be returned. The maximum value is 200 (higher values will be
1706
+ # coerced to the maximum).
1707
+ # @param [String] page_token
1708
+ # A page token, received from a previous `ListCustomMetrics` call. Provide this
1709
+ # to retrieve the subsequent page. When paginating, all other parameters
1710
+ # provided to `ListCustomMetrics` must match the call that provided the page
1711
+ # token.
1712
+ # @param [String] fields
1713
+ # Selector specifying which fields to include in a partial response.
1714
+ # @param [String] quota_user
1715
+ # Available to use for quota purposes for server-side applications. Can be any
1716
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1717
+ # @param [Google::Apis::RequestOptions] options
1718
+ # Request-specific options
1719
+ #
1720
+ # @yield [result, err] Result & error if block supplied
1721
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListCustomMetricsResponse] parsed result object
1722
+ # @yieldparam err [StandardError] error object if request failed
1723
+ #
1724
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListCustomMetricsResponse]
1725
+ #
1726
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1727
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1728
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1729
+ def list_property_custom_metrics(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1730
+ command = make_simple_command(:get, 'v1alpha/{+parent}/customMetrics', options)
1731
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListCustomMetricsResponse::Representation
1732
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListCustomMetricsResponse
1733
+ command.params['parent'] = parent unless parent.nil?
1734
+ command.query['pageSize'] = page_size unless page_size.nil?
1735
+ command.query['pageToken'] = page_token unless page_token.nil?
1736
+ command.query['fields'] = fields unless fields.nil?
1737
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1738
+ execute_or_queue_command(command, &block)
1739
+ end
1740
+
1741
+ # Updates a CustomMetric on a property.
1742
+ # @param [String] name
1743
+ # Output only. Resource name for this CustomMetric resource. Format: properties/`
1744
+ # property`/customMetrics/`customMetric`
1745
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric] google_analytics_admin_v1alpha_custom_metric_object
1746
+ # @param [String] update_mask
1747
+ # Required. The list of fields to be updated. Omitted fields will not be updated.
1748
+ # To replace the entire entity, use one path with the string "*" to match all
1749
+ # fields.
1750
+ # @param [String] fields
1751
+ # Selector specifying which fields to include in a partial response.
1752
+ # @param [String] quota_user
1753
+ # Available to use for quota purposes for server-side applications. Can be any
1754
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1755
+ # @param [Google::Apis::RequestOptions] options
1756
+ # Request-specific options
1757
+ #
1758
+ # @yield [result, err] Result & error if block supplied
1759
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric] parsed result object
1760
+ # @yieldparam err [StandardError] error object if request failed
1761
+ #
1762
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric]
1763
+ #
1764
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1765
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1766
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1767
+ def patch_property_custom_metric(name, google_analytics_admin_v1alpha_custom_metric_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1768
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1769
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric::Representation
1770
+ command.request_object = google_analytics_admin_v1alpha_custom_metric_object
1771
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric::Representation
1772
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric
1773
+ command.params['name'] = name unless name.nil?
1774
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1775
+ command.query['fields'] = fields unless fields.nil?
1776
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1777
+ execute_or_queue_command(command, &block)
1778
+ end
1779
+
1780
+ # Creates a FirebaseLink. Properties can have at most one FirebaseLink.
1781
+ # @param [String] parent
1782
+ # Required. Format: properties/`property_id` Example: properties/1234
1783
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] google_analytics_admin_v1alpha_firebase_link_object
1784
+ # @param [String] fields
1785
+ # Selector specifying which fields to include in a partial response.
1786
+ # @param [String] quota_user
1787
+ # Available to use for quota purposes for server-side applications. Can be any
1788
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1789
+ # @param [Google::Apis::RequestOptions] options
1790
+ # Request-specific options
1791
+ #
1792
+ # @yield [result, err] Result & error if block supplied
1793
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] parsed result object
1794
+ # @yieldparam err [StandardError] error object if request failed
1795
+ #
1796
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink]
1797
+ #
1798
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1799
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1800
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1801
+ def create_property_firebase_link(parent, google_analytics_admin_v1alpha_firebase_link_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1802
+ command = make_simple_command(:post, 'v1alpha/{+parent}/firebaseLinks', options)
1803
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation
1804
+ command.request_object = google_analytics_admin_v1alpha_firebase_link_object
1805
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation
1806
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink
1807
+ command.params['parent'] = parent unless parent.nil?
1808
+ command.query['fields'] = fields unless fields.nil?
1809
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1810
+ execute_or_queue_command(command, &block)
1811
+ end
1812
+
1813
+ # Deletes a FirebaseLink on a property
1814
+ # @param [String] name
1815
+ # Required. Format: properties/`property_id`/firebaseLinks/`firebase_link_id`
1816
+ # Example: properties/1234/firebaseLinks/5678
1817
+ # @param [String] fields
1818
+ # Selector specifying which fields to include in a partial response.
1819
+ # @param [String] quota_user
1820
+ # Available to use for quota purposes for server-side applications. Can be any
1821
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1822
+ # @param [Google::Apis::RequestOptions] options
1823
+ # Request-specific options
1824
+ #
1825
+ # @yield [result, err] Result & error if block supplied
1826
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
1827
+ # @yieldparam err [StandardError] error object if request failed
1828
+ #
1829
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
1830
+ #
1831
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1832
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1833
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1834
+ def delete_property_firebase_link(name, fields: nil, quota_user: nil, options: nil, &block)
1835
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1836
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1837
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
1838
+ command.params['name'] = name unless name.nil?
1839
+ command.query['fields'] = fields unless fields.nil?
1840
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1841
+ execute_or_queue_command(command, &block)
1842
+ end
1843
+
1844
+ # Lists FirebaseLinks on a property. Properties can have at most one
1845
+ # FirebaseLink.
1846
+ # @param [String] parent
1847
+ # Required. Format: properties/`property_id` Example: properties/1234
1848
+ # @param [Fixnum] page_size
1849
+ # The maximum number of resources to return. The service may return fewer than
1850
+ # this value, even if there are additional pages. If unspecified, at most 50
1851
+ # resources will be returned. The maximum value is 200; (higher values will be
1852
+ # coerced to the maximum)
1853
+ # @param [String] page_token
1854
+ # A page token, received from a previous `ListFirebaseLinks` call. Provide this
1855
+ # to retrieve the subsequent page. When paginating, all other parameters
1856
+ # provided to `ListProperties` must match the call that provided the page token.
1857
+ # @param [String] fields
1858
+ # Selector specifying which fields to include in a partial response.
1859
+ # @param [String] quota_user
1860
+ # Available to use for quota purposes for server-side applications. Can be any
1861
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1862
+ # @param [Google::Apis::RequestOptions] options
1863
+ # Request-specific options
1864
+ #
1865
+ # @yield [result, err] Result & error if block supplied
1866
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse] parsed result object
1867
+ # @yieldparam err [StandardError] error object if request failed
1868
+ #
1869
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse]
1870
+ #
1871
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1872
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1873
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1874
+ def list_property_firebase_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1875
+ command = make_simple_command(:get, 'v1alpha/{+parent}/firebaseLinks', options)
1876
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse::Representation
1877
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse
1878
+ command.params['parent'] = parent unless parent.nil?
1879
+ command.query['pageSize'] = page_size unless page_size.nil?
1880
+ command.query['pageToken'] = page_token unless page_token.nil?
1881
+ command.query['fields'] = fields unless fields.nil?
1882
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1883
+ execute_or_queue_command(command, &block)
1884
+ end
1885
+
1886
+ # Updates a FirebaseLink on a property
1887
+ # @param [String] name
1888
+ # Output only. Example format: properties/1234/firebaseLinks/5678
1889
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] google_analytics_admin_v1alpha_firebase_link_object
1890
+ # @param [String] update_mask
1891
+ # Required. The list of fields to be updated. Field names must be in snake case (
1892
+ # e.g., "field_to_update"). Omitted fields will not be updated. To replace the
1893
+ # entire entity, use one path with the string "*" to match all fields.
1894
+ # @param [String] fields
1895
+ # Selector specifying which fields to include in a partial response.
1896
+ # @param [String] quota_user
1897
+ # Available to use for quota purposes for server-side applications. Can be any
1898
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1899
+ # @param [Google::Apis::RequestOptions] options
1900
+ # Request-specific options
1901
+ #
1902
+ # @yield [result, err] Result & error if block supplied
1903
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] parsed result object
1904
+ # @yieldparam err [StandardError] error object if request failed
1905
+ #
1906
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink]
1907
+ #
1908
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1909
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1910
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1911
+ def patch_property_firebase_link(name, google_analytics_admin_v1alpha_firebase_link_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1912
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1913
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation
1914
+ command.request_object = google_analytics_admin_v1alpha_firebase_link_object
1915
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation
1916
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink
1917
+ command.params['name'] = name unless name.nil?
1918
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1919
+ command.query['fields'] = fields unless fields.nil?
1920
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1921
+ execute_or_queue_command(command, &block)
1922
+ end
1923
+
1924
+ # Creates a GoogleAdsLink.
1925
+ # @param [String] parent
1926
+ # Required. Example format: properties/1234
1927
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] google_analytics_admin_v1alpha_google_ads_link_object
1928
+ # @param [String] fields
1929
+ # Selector specifying which fields to include in a partial response.
1930
+ # @param [String] quota_user
1931
+ # Available to use for quota purposes for server-side applications. Can be any
1932
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1933
+ # @param [Google::Apis::RequestOptions] options
1934
+ # Request-specific options
1935
+ #
1936
+ # @yield [result, err] Result & error if block supplied
1937
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] parsed result object
1938
+ # @yieldparam err [StandardError] error object if request failed
1939
+ #
1940
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink]
1941
+ #
1942
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1943
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1944
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1945
+ def create_property_google_ads_link(parent, google_analytics_admin_v1alpha_google_ads_link_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1946
+ command = make_simple_command(:post, 'v1alpha/{+parent}/googleAdsLinks', options)
1947
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation
1948
+ command.request_object = google_analytics_admin_v1alpha_google_ads_link_object
1949
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation
1950
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink
1951
+ command.params['parent'] = parent unless parent.nil?
1952
+ command.query['fields'] = fields unless fields.nil?
1953
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1954
+ execute_or_queue_command(command, &block)
1955
+ end
1956
+
1957
+ # Deletes a GoogleAdsLink on a property
1958
+ # @param [String] name
1959
+ # Required. Example format: properties/1234/googleAdsLinks/5678
1960
+ # @param [String] fields
1961
+ # Selector specifying which fields to include in a partial response.
1962
+ # @param [String] quota_user
1963
+ # Available to use for quota purposes for server-side applications. Can be any
1964
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1965
+ # @param [Google::Apis::RequestOptions] options
1966
+ # Request-specific options
1967
+ #
1968
+ # @yield [result, err] Result & error if block supplied
1969
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
1970
+ # @yieldparam err [StandardError] error object if request failed
1971
+ #
1972
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
1973
+ #
1974
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1975
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1976
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1977
+ def delete_property_google_ads_link(name, fields: nil, quota_user: nil, options: nil, &block)
1978
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1979
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1980
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
1981
+ command.params['name'] = name unless name.nil?
1982
+ command.query['fields'] = fields unless fields.nil?
1983
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1984
+ execute_or_queue_command(command, &block)
1985
+ end
1986
+
1987
+ # Lists GoogleAdsLinks on a property.
1988
+ # @param [String] parent
1989
+ # Required. Example format: properties/1234
1990
+ # @param [Fixnum] page_size
1991
+ # The maximum number of resources to return. If unspecified, at most 50
1992
+ # resources will be returned. The maximum value is 200 (higher values will be
1993
+ # coerced to the maximum).
1994
+ # @param [String] page_token
1995
+ # A page token, received from a previous `ListGoogleAdsLinks` call. Provide this
1996
+ # to retrieve the subsequent page. When paginating, all other parameters
1997
+ # provided to `ListGoogleAdsLinks` must match the call that provided the page
1998
+ # token.
1999
+ # @param [String] fields
2000
+ # Selector specifying which fields to include in a partial response.
2001
+ # @param [String] quota_user
2002
+ # Available to use for quota purposes for server-side applications. Can be any
2003
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2004
+ # @param [Google::Apis::RequestOptions] options
2005
+ # Request-specific options
2006
+ #
2007
+ # @yield [result, err] Result & error if block supplied
2008
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse] parsed result object
2009
+ # @yieldparam err [StandardError] error object if request failed
2010
+ #
2011
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse]
2012
+ #
2013
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2014
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2015
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2016
+ def list_property_google_ads_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2017
+ command = make_simple_command(:get, 'v1alpha/{+parent}/googleAdsLinks', options)
2018
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse::Representation
2019
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse
2020
+ command.params['parent'] = parent unless parent.nil?
2021
+ command.query['pageSize'] = page_size unless page_size.nil?
2022
+ command.query['pageToken'] = page_token unless page_token.nil?
2023
+ command.query['fields'] = fields unless fields.nil?
2024
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2025
+ execute_or_queue_command(command, &block)
2026
+ end
2027
+
2028
+ # Updates a GoogleAdsLink on a property
2029
+ # @param [String] name
2030
+ # Output only. Format: properties/`propertyId`/googleAdsLinks/`googleAdsLinkId`
2031
+ # Note: googleAdsLinkId is not the Google Ads customer ID.
2032
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] google_analytics_admin_v1alpha_google_ads_link_object
2033
+ # @param [String] update_mask
2034
+ # Required. The list of fields to be updated. Field names must be in snake case (
2035
+ # e.g., "field_to_update"). Omitted fields will not be updated. To replace the
2036
+ # entire entity, use one path with the string "*" to match all fields.
2037
+ # @param [String] fields
2038
+ # Selector specifying which fields to include in a partial response.
2039
+ # @param [String] quota_user
2040
+ # Available to use for quota purposes for server-side applications. Can be any
2041
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2042
+ # @param [Google::Apis::RequestOptions] options
2043
+ # Request-specific options
2044
+ #
2045
+ # @yield [result, err] Result & error if block supplied
2046
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] parsed result object
2047
+ # @yieldparam err [StandardError] error object if request failed
2048
+ #
2049
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink]
2050
+ #
2051
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2052
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2053
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2054
+ def patch_property_google_ads_link(name, google_analytics_admin_v1alpha_google_ads_link_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2055
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
2056
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation
2057
+ command.request_object = google_analytics_admin_v1alpha_google_ads_link_object
2058
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation
2059
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink
2060
+ command.params['name'] = name unless name.nil?
2061
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2062
+ command.query['fields'] = fields unless fields.nil?
2063
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2064
+ execute_or_queue_command(command, &block)
2065
+ end
2066
+
2067
+ # Deletes an iOS app stream on a property.
2068
+ # @param [String] name
2069
+ # Required. The name of the iOS app data stream to delete. Format: properties/`
2070
+ # property_id`/iosAppDataStreams/`stream_id` Example: "properties/123/
2071
+ # iosAppDataStreams/456"
2072
+ # @param [String] fields
2073
+ # Selector specifying which fields to include in a partial response.
2074
+ # @param [String] quota_user
2075
+ # Available to use for quota purposes for server-side applications. Can be any
2076
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2077
+ # @param [Google::Apis::RequestOptions] options
2078
+ # Request-specific options
2079
+ #
2080
+ # @yield [result, err] Result & error if block supplied
2081
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
2082
+ # @yieldparam err [StandardError] error object if request failed
2083
+ #
2084
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
2085
+ #
2086
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2087
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2088
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2089
+ def delete_property_ios_app_data_stream(name, fields: nil, quota_user: nil, options: nil, &block)
2090
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
2091
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
2092
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
2093
+ command.params['name'] = name unless name.nil?
2094
+ command.query['fields'] = fields unless fields.nil?
2095
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2096
+ execute_or_queue_command(command, &block)
2097
+ end
2098
+
2099
+ # Lookup for a single IosAppDataStream
1248
2100
  # @param [String] name
1249
- # Required. Example format: properties/1234/googleAdsLinks/5678
2101
+ # Required. The name of the iOS app data stream to lookup. Format: properties/`
2102
+ # property_id`/iosAppDataStreams/`stream_id` Example: "properties/123/
2103
+ # iosAppDataStreams/456"
1250
2104
  # @param [String] fields
1251
2105
  # Selector specifying which fields to include in a partial response.
1252
2106
  # @param [String] quota_user
@@ -1256,35 +2110,38 @@ module Google
1256
2110
  # Request-specific options
1257
2111
  #
1258
2112
  # @yield [result, err] Result & error if block supplied
1259
- # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
2113
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] parsed result object
1260
2114
  # @yieldparam err [StandardError] error object if request failed
1261
2115
  #
1262
- # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
2116
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream]
1263
2117
  #
1264
2118
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1265
2119
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1266
2120
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1267
- def delete_property_google_ads_link(name, fields: nil, quota_user: nil, options: nil, &block)
1268
- command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1269
- command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1270
- command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
2121
+ def get_property_ios_app_data_stream(name, fields: nil, quota_user: nil, options: nil, &block)
2122
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
2123
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
2124
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream
1271
2125
  command.params['name'] = name unless name.nil?
1272
2126
  command.query['fields'] = fields unless fields.nil?
1273
2127
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1274
2128
  execute_or_queue_command(command, &block)
1275
2129
  end
1276
2130
 
1277
- # Lists GoogleAdsLinks on a property.
2131
+ # Returns child iOS app data streams under the specified parent property. iOS
2132
+ # app data streams will be excluded if the caller does not have access. Returns
2133
+ # an empty list if no relevant iOS app data streams are found.
1278
2134
  # @param [String] parent
1279
- # Required. Example format: properties/1234
2135
+ # Required. The name of the parent property. For example, to list results of app
2136
+ # streams under the property with Id 123: "properties/123"
1280
2137
  # @param [Fixnum] page_size
1281
2138
  # The maximum number of resources to return. If unspecified, at most 50
1282
- # resources will be returned. The maximum value is 200 (higher values will be
1283
- # coerced to the maximum).
2139
+ # resources will be returned. The maximum value is 200; (higher values will be
2140
+ # coerced to the maximum)
1284
2141
  # @param [String] page_token
1285
- # A page token, received from a previous `ListGoogleAdsLinks` call. Provide this
1286
- # to retrieve the subsequent page. When paginating, all other parameters
1287
- # provided to `ListGoogleAdsLinks` must match the call that provided the page
2142
+ # A page token, received from a previous `ListIosAppDataStreams` call. Provide
2143
+ # this to retrieve the subsequent page. When paginating, all other parameters
2144
+ # provided to `ListIosAppDataStreams` must match the call that provided the page
1288
2145
  # token.
1289
2146
  # @param [String] fields
1290
2147
  # Selector specifying which fields to include in a partial response.
@@ -1295,18 +2152,18 @@ module Google
1295
2152
  # Request-specific options
1296
2153
  #
1297
2154
  # @yield [result, err] Result & error if block supplied
1298
- # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse] parsed result object
2155
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse] parsed result object
1299
2156
  # @yieldparam err [StandardError] error object if request failed
1300
2157
  #
1301
- # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse]
2158
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse]
1302
2159
  #
1303
2160
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1304
2161
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1305
2162
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1306
- def list_property_google_ads_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1307
- command = make_simple_command(:get, 'v1alpha/{+parent}/googleAdsLinks', options)
1308
- command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse::Representation
1309
- command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse
2163
+ def list_property_ios_app_data_streams(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2164
+ command = make_simple_command(:get, 'v1alpha/{+parent}/iosAppDataStreams', options)
2165
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse::Representation
2166
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse
1310
2167
  command.params['parent'] = parent unless parent.nil?
1311
2168
  command.query['pageSize'] = page_size unless page_size.nil?
1312
2169
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -1315,11 +2172,12 @@ module Google
1315
2172
  execute_or_queue_command(command, &block)
1316
2173
  end
1317
2174
 
1318
- # Updates a GoogleAdsLink on a property
2175
+ # Updates an iOS app stream on a property.
1319
2176
  # @param [String] name
1320
- # Output only. Format: properties/`propertyId`/googleAdsLinks/`googleAdsLinkId`
1321
- # Note: googleAdsLinkId is not the Google Ads customer ID.
1322
- # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] google_analytics_admin_v1alpha_google_ads_link_object
2177
+ # Output only. Resource name of this Data Stream. Format: properties/`
2178
+ # property_id`/iosAppDataStreams/`stream_id` Example: "properties/1000/
2179
+ # iosAppDataStreams/2000"
2180
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] google_analytics_admin_v1alpha_ios_app_data_stream_object
1323
2181
  # @param [String] update_mask
1324
2182
  # Required. The list of fields to be updated. Field names must be in snake case (
1325
2183
  # e.g., "field_to_update"). Omitted fields will not be updated. To replace the
@@ -1333,20 +2191,20 @@ module Google
1333
2191
  # Request-specific options
1334
2192
  #
1335
2193
  # @yield [result, err] Result & error if block supplied
1336
- # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] parsed result object
2194
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] parsed result object
1337
2195
  # @yieldparam err [StandardError] error object if request failed
1338
2196
  #
1339
- # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink]
2197
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream]
1340
2198
  #
1341
2199
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1342
2200
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1343
2201
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1344
- def patch_property_google_ads_link(name, google_analytics_admin_v1alpha_google_ads_link_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2202
+ def patch_property_ios_app_data_stream(name, google_analytics_admin_v1alpha_ios_app_data_stream_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1345
2203
  command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1346
- command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation
1347
- command.request_object = google_analytics_admin_v1alpha_google_ads_link_object
1348
- command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation
1349
- command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink
2204
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
2205
+ command.request_object = google_analytics_admin_v1alpha_ios_app_data_stream_object
2206
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
2207
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream
1350
2208
  command.params['name'] = name unless name.nil?
1351
2209
  command.query['updateMask'] = update_mask unless update_mask.nil?
1352
2210
  command.query['fields'] = fields unless fields.nil?
@@ -1354,15 +2212,12 @@ module Google
1354
2212
  execute_or_queue_command(command, &block)
1355
2213
  end
1356
2214
 
1357
- # Creates an iOS app stream with the specified location and attributes. Note
1358
- # that an iOS app stream must be linked to a Firebase app to receive traffic. To
1359
- # create a working app stream, make sure your property is linked to a Firebase
1360
- # project. Then, use the Firebase API to create a Firebase app, which will also
1361
- # create an appropriate data stream in Analytics (may take up to 24 hours).
2215
+ # Creates a measurement protocol secret.
1362
2216
  # @param [String] parent
1363
- # Required. The parent resource where this ios app data stream will be created.
1364
- # Format: properties/123
1365
- # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] google_analytics_admin_v1alpha_ios_app_data_stream_object
2217
+ # Required. The parent resource where this secret will be created. Any type of
2218
+ # stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
2219
+ # Format: properties/`property`/webDataStreams/`webDataStream`
2220
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] google_analytics_admin_v1alpha_measurement_protocol_secret_object
1366
2221
  # @param [String] fields
1367
2222
  # Selector specifying which fields to include in a partial response.
1368
2223
  # @param [String] quota_user
@@ -1372,31 +2227,32 @@ module Google
1372
2227
  # Request-specific options
1373
2228
  #
1374
2229
  # @yield [result, err] Result & error if block supplied
1375
- # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] parsed result object
2230
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
1376
2231
  # @yieldparam err [StandardError] error object if request failed
1377
2232
  #
1378
- # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream]
2233
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
1379
2234
  #
1380
2235
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1381
2236
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1382
2237
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1383
- def create_property_ios_app_data_stream(parent, google_analytics_admin_v1alpha_ios_app_data_stream_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1384
- command = make_simple_command(:post, 'v1alpha/{+parent}/iosAppDataStreams', options)
1385
- command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
1386
- command.request_object = google_analytics_admin_v1alpha_ios_app_data_stream_object
1387
- command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
1388
- command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream
2238
+ def create_property_ios_app_data_stream_measurement_protocol_secret(parent, google_analytics_admin_v1alpha_measurement_protocol_secret_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2239
+ command = make_simple_command(:post, 'v1alpha/{+parent}/measurementProtocolSecrets', options)
2240
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
2241
+ command.request_object = google_analytics_admin_v1alpha_measurement_protocol_secret_object
2242
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
2243
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
1389
2244
  command.params['parent'] = parent unless parent.nil?
1390
2245
  command.query['fields'] = fields unless fields.nil?
1391
2246
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1392
2247
  execute_or_queue_command(command, &block)
1393
2248
  end
1394
2249
 
1395
- # Deletes an iOS app stream on a property.
2250
+ # Deletes target MeasurementProtocolSecret.
1396
2251
  # @param [String] name
1397
- # Required. The name of the iOS app data stream to delete. Format: properties/`
1398
- # property_id`/iosAppDataStreams/`stream_id` Example: "properties/123/
1399
- # iosAppDataStreams/456"
2252
+ # Required. The name of the MeasurementProtocolSecret to delete. Format:
2253
+ # properties/`property`/webDataStreams/`webDataStream`/
2254
+ # measurementProtocolSecrets/`measurementProtocolSecret` Note: Any type of
2255
+ # stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
1400
2256
  # @param [String] fields
1401
2257
  # Selector specifying which fields to include in a partial response.
1402
2258
  # @param [String] quota_user
@@ -1414,7 +2270,7 @@ module Google
1414
2270
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1415
2271
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1416
2272
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1417
- def delete_property_ios_app_data_stream(name, fields: nil, quota_user: nil, options: nil, &block)
2273
+ def delete_property_ios_app_data_stream_measurement_protocol_secret(name, fields: nil, quota_user: nil, options: nil, &block)
1418
2274
  command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1419
2275
  command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1420
2276
  command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
@@ -1424,11 +2280,12 @@ module Google
1424
2280
  execute_or_queue_command(command, &block)
1425
2281
  end
1426
2282
 
1427
- # Lookup for a single IosAppDataStream
2283
+ # Lookup for a single "GA4" MeasurementProtocolSecret.
1428
2284
  # @param [String] name
1429
- # Required. The name of the iOS app data stream to lookup. Format: properties/`
1430
- # property_id`/iosAppDataStreams/`stream_id` Example: "properties/123/
1431
- # iosAppDataStreams/456"
2285
+ # Required. The name of the measurement protocol secret to lookup. Format:
2286
+ # properties/`property`/webDataStreams/`webDataStream`/
2287
+ # measurementProtocolSecrets/`measurementProtocolSecret` Note: Any type of
2288
+ # stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
1432
2289
  # @param [String] fields
1433
2290
  # Selector specifying which fields to include in a partial response.
1434
2291
  # @param [String] quota_user
@@ -1438,39 +2295,39 @@ module Google
1438
2295
  # Request-specific options
1439
2296
  #
1440
2297
  # @yield [result, err] Result & error if block supplied
1441
- # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] parsed result object
2298
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
1442
2299
  # @yieldparam err [StandardError] error object if request failed
1443
2300
  #
1444
- # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream]
2301
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
1445
2302
  #
1446
2303
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1447
2304
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1448
2305
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1449
- def get_property_ios_app_data_stream(name, fields: nil, quota_user: nil, options: nil, &block)
2306
+ def get_property_ios_app_data_stream_measurement_protocol_secret(name, fields: nil, quota_user: nil, options: nil, &block)
1450
2307
  command = make_simple_command(:get, 'v1alpha/{+name}', options)
1451
- command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
1452
- command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream
2308
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
2309
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
1453
2310
  command.params['name'] = name unless name.nil?
1454
2311
  command.query['fields'] = fields unless fields.nil?
1455
2312
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1456
2313
  execute_or_queue_command(command, &block)
1457
2314
  end
1458
2315
 
1459
- # Returns child iOS app data streams under the specified parent property. iOS
1460
- # app data streams will be excluded if the caller does not have access. Returns
1461
- # an empty list if no relevant iOS app data streams are found.
2316
+ # Returns child MeasurementProtocolSecrets under the specified parent Property.
1462
2317
  # @param [String] parent
1463
- # Required. The name of the parent property. For example, to list results of app
1464
- # streams under the property with Id 123: "properties/123"
2318
+ # Required. The resource name of the parent stream. Any type of stream (
2319
+ # WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format:
2320
+ # properties/`property`/webDataStreams/`webDataStream`/
2321
+ # measurementProtocolSecrets
1465
2322
  # @param [Fixnum] page_size
1466
- # The maximum number of resources to return. If unspecified, at most 50
1467
- # resources will be returned. The maximum value is 200; (higher values will be
1468
- # coerced to the maximum)
2323
+ # The maximum number of resources to return. If unspecified, at most 10
2324
+ # resources will be returned. The maximum value is 10. Higher values will be
2325
+ # coerced to the maximum.
1469
2326
  # @param [String] page_token
1470
- # A page token, received from a previous `ListIosAppDataStreams` call. Provide
1471
- # this to retrieve the subsequent page. When paginating, all other parameters
1472
- # provided to `ListIosAppDataStreams` must match the call that provided the page
1473
- # token.
2327
+ # A page token, received from a previous `ListMeasurementProtocolSecrets` call.
2328
+ # Provide this to retrieve the subsequent page. When paginating, all other
2329
+ # parameters provided to `ListMeasurementProtocolSecrets` must match the call
2330
+ # that provided the page token.
1474
2331
  # @param [String] fields
1475
2332
  # Selector specifying which fields to include in a partial response.
1476
2333
  # @param [String] quota_user
@@ -1480,18 +2337,18 @@ module Google
1480
2337
  # Request-specific options
1481
2338
  #
1482
2339
  # @yield [result, err] Result & error if block supplied
1483
- # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse] parsed result object
2340
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse] parsed result object
1484
2341
  # @yieldparam err [StandardError] error object if request failed
1485
2342
  #
1486
- # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse]
2343
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse]
1487
2344
  #
1488
2345
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1489
2346
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1490
2347
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1491
- def list_property_ios_app_data_streams(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1492
- command = make_simple_command(:get, 'v1alpha/{+parent}/iosAppDataStreams', options)
1493
- command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse::Representation
1494
- command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse
2348
+ def list_property_ios_app_data_stream_measurement_protocol_secrets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2349
+ command = make_simple_command(:get, 'v1alpha/{+parent}/measurementProtocolSecrets', options)
2350
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse::Representation
2351
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse
1495
2352
  command.params['parent'] = parent unless parent.nil?
1496
2353
  command.query['pageSize'] = page_size unless page_size.nil?
1497
2354
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -1500,16 +2357,14 @@ module Google
1500
2357
  execute_or_queue_command(command, &block)
1501
2358
  end
1502
2359
 
1503
- # Updates an iOS app stream on a property.
2360
+ # Updates a measurement protocol secret.
1504
2361
  # @param [String] name
1505
- # Output only. Resource name of this Data Stream. Format: properties/`
1506
- # property_id`/iosAppDataStreams/`stream_id` Example: "properties/1000/
1507
- # iosAppDataStreams/2000"
1508
- # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] google_analytics_admin_v1alpha_ios_app_data_stream_object
2362
+ # Output only. Resource name of this secret. This secret may be a child of any
2363
+ # type of stream. Format: properties/`property`/webDataStreams/`webDataStream`/
2364
+ # measurementProtocolSecrets/`measurementProtocolSecret`
2365
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] google_analytics_admin_v1alpha_measurement_protocol_secret_object
1509
2366
  # @param [String] update_mask
1510
- # Required. The list of fields to be updated. Field names must be in snake case (
1511
- # e.g., "field_to_update"). Omitted fields will not be updated. To replace the
1512
- # entire entity, use one path with the string "*" to match all fields.
2367
+ # The list of fields to be updated. Omitted fields will not be updated.
1513
2368
  # @param [String] fields
1514
2369
  # Selector specifying which fields to include in a partial response.
1515
2370
  # @param [String] quota_user
@@ -1519,20 +2374,20 @@ module Google
1519
2374
  # Request-specific options
1520
2375
  #
1521
2376
  # @yield [result, err] Result & error if block supplied
1522
- # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] parsed result object
2377
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
1523
2378
  # @yieldparam err [StandardError] error object if request failed
1524
2379
  #
1525
- # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream]
2380
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
1526
2381
  #
1527
2382
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1528
2383
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1529
2384
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1530
- def patch_property_ios_app_data_stream(name, google_analytics_admin_v1alpha_ios_app_data_stream_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2385
+ def patch_property_ios_app_data_stream_measurement_protocol_secret(name, google_analytics_admin_v1alpha_measurement_protocol_secret_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1531
2386
  command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1532
- command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
1533
- command.request_object = google_analytics_admin_v1alpha_ios_app_data_stream_object
1534
- command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
1535
- command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream
2387
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
2388
+ command.request_object = google_analytics_admin_v1alpha_measurement_protocol_secret_object
2389
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
2390
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
1536
2391
  command.params['name'] = name unless name.nil?
1537
2392
  command.query['updateMask'] = update_mask unless update_mask.nil?
1538
2393
  command.query['fields'] = fields unless fields.nil?
@@ -1864,7 +2719,7 @@ module Google
1864
2719
 
1865
2720
  # Updates a user link on an account or property.
1866
2721
  # @param [String] name
1867
- # Example format: properties/1234/userLinks/5678
2722
+ # Output only. Example format: properties/1234/userLinks/5678
1868
2723
  # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] google_analytics_admin_v1alpha_user_link_object
1869
2724
  # @param [String] fields
1870
2725
  # Selector specifying which fields to include in a partial response.
@@ -2186,6 +3041,189 @@ module Google
2186
3041
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2187
3042
  execute_or_queue_command(command, &block)
2188
3043
  end
3044
+
3045
+ # Creates a measurement protocol secret.
3046
+ # @param [String] parent
3047
+ # Required. The parent resource where this secret will be created. Any type of
3048
+ # stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
3049
+ # Format: properties/`property`/webDataStreams/`webDataStream`
3050
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] google_analytics_admin_v1alpha_measurement_protocol_secret_object
3051
+ # @param [String] fields
3052
+ # Selector specifying which fields to include in a partial response.
3053
+ # @param [String] quota_user
3054
+ # Available to use for quota purposes for server-side applications. Can be any
3055
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3056
+ # @param [Google::Apis::RequestOptions] options
3057
+ # Request-specific options
3058
+ #
3059
+ # @yield [result, err] Result & error if block supplied
3060
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
3061
+ # @yieldparam err [StandardError] error object if request failed
3062
+ #
3063
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
3064
+ #
3065
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3066
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3067
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3068
+ def create_property_web_data_stream_measurement_protocol_secret(parent, google_analytics_admin_v1alpha_measurement_protocol_secret_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3069
+ command = make_simple_command(:post, 'v1alpha/{+parent}/measurementProtocolSecrets', options)
3070
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
3071
+ command.request_object = google_analytics_admin_v1alpha_measurement_protocol_secret_object
3072
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
3073
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
3074
+ command.params['parent'] = parent unless parent.nil?
3075
+ command.query['fields'] = fields unless fields.nil?
3076
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3077
+ execute_or_queue_command(command, &block)
3078
+ end
3079
+
3080
+ # Deletes target MeasurementProtocolSecret.
3081
+ # @param [String] name
3082
+ # Required. The name of the MeasurementProtocolSecret to delete. Format:
3083
+ # properties/`property`/webDataStreams/`webDataStream`/
3084
+ # measurementProtocolSecrets/`measurementProtocolSecret` Note: Any type of
3085
+ # stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
3086
+ # @param [String] fields
3087
+ # Selector specifying which fields to include in a partial response.
3088
+ # @param [String] quota_user
3089
+ # Available to use for quota purposes for server-side applications. Can be any
3090
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3091
+ # @param [Google::Apis::RequestOptions] options
3092
+ # Request-specific options
3093
+ #
3094
+ # @yield [result, err] Result & error if block supplied
3095
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
3096
+ # @yieldparam err [StandardError] error object if request failed
3097
+ #
3098
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
3099
+ #
3100
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3101
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3102
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3103
+ def delete_property_web_data_stream_measurement_protocol_secret(name, fields: nil, quota_user: nil, options: nil, &block)
3104
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
3105
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
3106
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
3107
+ command.params['name'] = name unless name.nil?
3108
+ command.query['fields'] = fields unless fields.nil?
3109
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3110
+ execute_or_queue_command(command, &block)
3111
+ end
3112
+
3113
+ # Lookup for a single "GA4" MeasurementProtocolSecret.
3114
+ # @param [String] name
3115
+ # Required. The name of the measurement protocol secret to lookup. Format:
3116
+ # properties/`property`/webDataStreams/`webDataStream`/
3117
+ # measurementProtocolSecrets/`measurementProtocolSecret` Note: Any type of
3118
+ # stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
3119
+ # @param [String] fields
3120
+ # Selector specifying which fields to include in a partial response.
3121
+ # @param [String] quota_user
3122
+ # Available to use for quota purposes for server-side applications. Can be any
3123
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3124
+ # @param [Google::Apis::RequestOptions] options
3125
+ # Request-specific options
3126
+ #
3127
+ # @yield [result, err] Result & error if block supplied
3128
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
3129
+ # @yieldparam err [StandardError] error object if request failed
3130
+ #
3131
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
3132
+ #
3133
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3134
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3135
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3136
+ def get_property_web_data_stream_measurement_protocol_secret(name, fields: nil, quota_user: nil, options: nil, &block)
3137
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
3138
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
3139
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
3140
+ command.params['name'] = name unless name.nil?
3141
+ command.query['fields'] = fields unless fields.nil?
3142
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3143
+ execute_or_queue_command(command, &block)
3144
+ end
3145
+
3146
+ # Returns child MeasurementProtocolSecrets under the specified parent Property.
3147
+ # @param [String] parent
3148
+ # Required. The resource name of the parent stream. Any type of stream (
3149
+ # WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format:
3150
+ # properties/`property`/webDataStreams/`webDataStream`/
3151
+ # measurementProtocolSecrets
3152
+ # @param [Fixnum] page_size
3153
+ # The maximum number of resources to return. If unspecified, at most 10
3154
+ # resources will be returned. The maximum value is 10. Higher values will be
3155
+ # coerced to the maximum.
3156
+ # @param [String] page_token
3157
+ # A page token, received from a previous `ListMeasurementProtocolSecrets` call.
3158
+ # Provide this to retrieve the subsequent page. When paginating, all other
3159
+ # parameters provided to `ListMeasurementProtocolSecrets` must match the call
3160
+ # that provided the page token.
3161
+ # @param [String] fields
3162
+ # Selector specifying which fields to include in a partial response.
3163
+ # @param [String] quota_user
3164
+ # Available to use for quota purposes for server-side applications. Can be any
3165
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3166
+ # @param [Google::Apis::RequestOptions] options
3167
+ # Request-specific options
3168
+ #
3169
+ # @yield [result, err] Result & error if block supplied
3170
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse] parsed result object
3171
+ # @yieldparam err [StandardError] error object if request failed
3172
+ #
3173
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse]
3174
+ #
3175
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3176
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3177
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3178
+ def list_property_web_data_stream_measurement_protocol_secrets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3179
+ command = make_simple_command(:get, 'v1alpha/{+parent}/measurementProtocolSecrets', options)
3180
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse::Representation
3181
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse
3182
+ command.params['parent'] = parent unless parent.nil?
3183
+ command.query['pageSize'] = page_size unless page_size.nil?
3184
+ command.query['pageToken'] = page_token unless page_token.nil?
3185
+ command.query['fields'] = fields unless fields.nil?
3186
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3187
+ execute_or_queue_command(command, &block)
3188
+ end
3189
+
3190
+ # Updates a measurement protocol secret.
3191
+ # @param [String] name
3192
+ # Output only. Resource name of this secret. This secret may be a child of any
3193
+ # type of stream. Format: properties/`property`/webDataStreams/`webDataStream`/
3194
+ # measurementProtocolSecrets/`measurementProtocolSecret`
3195
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] google_analytics_admin_v1alpha_measurement_protocol_secret_object
3196
+ # @param [String] update_mask
3197
+ # The list of fields to be updated. Omitted fields will not be updated.
3198
+ # @param [String] fields
3199
+ # Selector specifying which fields to include in a partial response.
3200
+ # @param [String] quota_user
3201
+ # Available to use for quota purposes for server-side applications. Can be any
3202
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3203
+ # @param [Google::Apis::RequestOptions] options
3204
+ # Request-specific options
3205
+ #
3206
+ # @yield [result, err] Result & error if block supplied
3207
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
3208
+ # @yieldparam err [StandardError] error object if request failed
3209
+ #
3210
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
3211
+ #
3212
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3213
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3214
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3215
+ def patch_property_web_data_stream_measurement_protocol_secret(name, google_analytics_admin_v1alpha_measurement_protocol_secret_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3216
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
3217
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
3218
+ command.request_object = google_analytics_admin_v1alpha_measurement_protocol_secret_object
3219
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
3220
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
3221
+ command.params['name'] = name unless name.nil?
3222
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3223
+ command.query['fields'] = fields unless fields.nil?
3224
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3225
+ execute_or_queue_command(command, &block)
3226
+ end
2189
3227
 
2190
3228
  protected
2191
3229