google-analytics-admin-v1alpha 0.17.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6600,7 +6600,7 @@ module Google
6600
6600
  # the default parameter values, pass an empty Hash as a request object (see above).
6601
6601
  #
6602
6602
  # @param name [::String]
6603
- # Required. The name of the Audience to get.
6603
+ # Required. The name of the ExpandedDataSet to get.
6604
6604
  # Example format: properties/1234/expandedDataSets/5678
6605
6605
  # @yield [result, operation] Access the result along with the TransportOperation object
6606
6606
  # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet]
@@ -6912,6 +6912,340 @@ module Google
6912
6912
  raise ::Google::Cloud::Error.from_error(e)
6913
6913
  end
6914
6914
 
6915
+ ##
6916
+ # Lookup for a single ChannelGroup.
6917
+ #
6918
+ # @overload get_channel_group(request, options = nil)
6919
+ # Pass arguments to `get_channel_group` via a request object, either of type
6920
+ # {::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest} or an equivalent Hash.
6921
+ #
6922
+ # @param request [::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest, ::Hash]
6923
+ # A request object representing the call parameters. Required. To specify no
6924
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6925
+ # @param options [::Gapic::CallOptions, ::Hash]
6926
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
6927
+ #
6928
+ # @overload get_channel_group(name: nil)
6929
+ # Pass arguments to `get_channel_group` via keyword arguments. Note that at
6930
+ # least one keyword argument is required. To specify no parameters, or to keep all
6931
+ # the default parameter values, pass an empty Hash as a request object (see above).
6932
+ #
6933
+ # @param name [::String]
6934
+ # Required. The ChannelGroup to get.
6935
+ # Example format: properties/1234/channelGroups/5678
6936
+ # @yield [result, operation] Access the result along with the TransportOperation object
6937
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup]
6938
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
6939
+ #
6940
+ # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup]
6941
+ #
6942
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
6943
+ def get_channel_group request, options = nil
6944
+ raise ::ArgumentError, "request must be provided" if request.nil?
6945
+
6946
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest
6947
+
6948
+ # Converts hash and nil to an options object
6949
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6950
+
6951
+ # Customize the options with defaults
6952
+ call_metadata = @config.rpcs.get_channel_group.metadata.to_h
6953
+
6954
+ # Set x-goog-api-client and x-goog-user-project headers
6955
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
6956
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
6957
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
6958
+ transports_version_send: [:rest]
6959
+
6960
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6961
+
6962
+ options.apply_defaults timeout: @config.rpcs.get_channel_group.timeout,
6963
+ metadata: call_metadata,
6964
+ retry_policy: @config.rpcs.get_channel_group.retry_policy
6965
+
6966
+ options.apply_defaults timeout: @config.timeout,
6967
+ metadata: @config.metadata,
6968
+ retry_policy: @config.retry_policy
6969
+
6970
+ @analytics_admin_service_stub.get_channel_group request, options do |result, operation|
6971
+ yield result, operation if block_given?
6972
+ return result
6973
+ end
6974
+ rescue ::Gapic::Rest::Error => e
6975
+ raise ::Google::Cloud::Error.from_error(e)
6976
+ end
6977
+
6978
+ ##
6979
+ # Lists ChannelGroups on a property.
6980
+ #
6981
+ # @overload list_channel_groups(request, options = nil)
6982
+ # Pass arguments to `list_channel_groups` via a request object, either of type
6983
+ # {::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest} or an equivalent Hash.
6984
+ #
6985
+ # @param request [::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest, ::Hash]
6986
+ # A request object representing the call parameters. Required. To specify no
6987
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
6988
+ # @param options [::Gapic::CallOptions, ::Hash]
6989
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
6990
+ #
6991
+ # @overload list_channel_groups(parent: nil, page_size: nil, page_token: nil)
6992
+ # Pass arguments to `list_channel_groups` via keyword arguments. Note that at
6993
+ # least one keyword argument is required. To specify no parameters, or to keep all
6994
+ # the default parameter values, pass an empty Hash as a request object (see above).
6995
+ #
6996
+ # @param parent [::String]
6997
+ # Required. The property for which to list ChannelGroups.
6998
+ # Example format: properties/1234
6999
+ # @param page_size [::Integer]
7000
+ # The maximum number of resources to return.
7001
+ # If unspecified, at most 50 resources will be returned.
7002
+ # The maximum value is 200 (higher values will be coerced to the maximum).
7003
+ # @param page_token [::String]
7004
+ # A page token, received from a previous `ListChannelGroups` call. Provide
7005
+ # this to retrieve the subsequent page.
7006
+ #
7007
+ # When paginating, all other parameters provided to `ListChannelGroups`
7008
+ # must match the call that provided the page token.
7009
+ # @yield [result, operation] Access the result along with the TransportOperation object
7010
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>]
7011
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
7012
+ #
7013
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>]
7014
+ #
7015
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
7016
+ def list_channel_groups request, options = nil
7017
+ raise ::ArgumentError, "request must be provided" if request.nil?
7018
+
7019
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest
7020
+
7021
+ # Converts hash and nil to an options object
7022
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7023
+
7024
+ # Customize the options with defaults
7025
+ call_metadata = @config.rpcs.list_channel_groups.metadata.to_h
7026
+
7027
+ # Set x-goog-api-client and x-goog-user-project headers
7028
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7029
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7030
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
7031
+ transports_version_send: [:rest]
7032
+
7033
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7034
+
7035
+ options.apply_defaults timeout: @config.rpcs.list_channel_groups.timeout,
7036
+ metadata: call_metadata,
7037
+ retry_policy: @config.rpcs.list_channel_groups.retry_policy
7038
+
7039
+ options.apply_defaults timeout: @config.timeout,
7040
+ metadata: @config.metadata,
7041
+ retry_policy: @config.retry_policy
7042
+
7043
+ @analytics_admin_service_stub.list_channel_groups request, options do |result, operation|
7044
+ result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_channel_groups, "channel_groups", request, result, options
7045
+ yield result, operation if block_given?
7046
+ return result
7047
+ end
7048
+ rescue ::Gapic::Rest::Error => e
7049
+ raise ::Google::Cloud::Error.from_error(e)
7050
+ end
7051
+
7052
+ ##
7053
+ # Creates a ChannelGroup.
7054
+ #
7055
+ # @overload create_channel_group(request, options = nil)
7056
+ # Pass arguments to `create_channel_group` via a request object, either of type
7057
+ # {::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest} or an equivalent Hash.
7058
+ #
7059
+ # @param request [::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest, ::Hash]
7060
+ # A request object representing the call parameters. Required. To specify no
7061
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7062
+ # @param options [::Gapic::CallOptions, ::Hash]
7063
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7064
+ #
7065
+ # @overload create_channel_group(parent: nil, channel_group: nil)
7066
+ # Pass arguments to `create_channel_group` via keyword arguments. Note that at
7067
+ # least one keyword argument is required. To specify no parameters, or to keep all
7068
+ # the default parameter values, pass an empty Hash as a request object (see above).
7069
+ #
7070
+ # @param parent [::String]
7071
+ # Required. The property for which to create a ChannelGroup.
7072
+ # Example format: properties/1234
7073
+ # @param channel_group [::Google::Analytics::Admin::V1alpha::ChannelGroup, ::Hash]
7074
+ # Required. The ChannelGroup to create.
7075
+ # @yield [result, operation] Access the result along with the TransportOperation object
7076
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup]
7077
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
7078
+ #
7079
+ # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup]
7080
+ #
7081
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
7082
+ def create_channel_group request, options = nil
7083
+ raise ::ArgumentError, "request must be provided" if request.nil?
7084
+
7085
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest
7086
+
7087
+ # Converts hash and nil to an options object
7088
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7089
+
7090
+ # Customize the options with defaults
7091
+ call_metadata = @config.rpcs.create_channel_group.metadata.to_h
7092
+
7093
+ # Set x-goog-api-client and x-goog-user-project headers
7094
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7095
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7096
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
7097
+ transports_version_send: [:rest]
7098
+
7099
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7100
+
7101
+ options.apply_defaults timeout: @config.rpcs.create_channel_group.timeout,
7102
+ metadata: call_metadata,
7103
+ retry_policy: @config.rpcs.create_channel_group.retry_policy
7104
+
7105
+ options.apply_defaults timeout: @config.timeout,
7106
+ metadata: @config.metadata,
7107
+ retry_policy: @config.retry_policy
7108
+
7109
+ @analytics_admin_service_stub.create_channel_group request, options do |result, operation|
7110
+ yield result, operation if block_given?
7111
+ return result
7112
+ end
7113
+ rescue ::Gapic::Rest::Error => e
7114
+ raise ::Google::Cloud::Error.from_error(e)
7115
+ end
7116
+
7117
+ ##
7118
+ # Updates a ChannelGroup.
7119
+ #
7120
+ # @overload update_channel_group(request, options = nil)
7121
+ # Pass arguments to `update_channel_group` via a request object, either of type
7122
+ # {::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest} or an equivalent Hash.
7123
+ #
7124
+ # @param request [::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest, ::Hash]
7125
+ # A request object representing the call parameters. Required. To specify no
7126
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7127
+ # @param options [::Gapic::CallOptions, ::Hash]
7128
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7129
+ #
7130
+ # @overload update_channel_group(channel_group: nil, update_mask: nil)
7131
+ # Pass arguments to `update_channel_group` via keyword arguments. Note that at
7132
+ # least one keyword argument is required. To specify no parameters, or to keep all
7133
+ # the default parameter values, pass an empty Hash as a request object (see above).
7134
+ #
7135
+ # @param channel_group [::Google::Analytics::Admin::V1alpha::ChannelGroup, ::Hash]
7136
+ # Required. The ChannelGroup to update.
7137
+ # The resource's `name` field is used to identify the ChannelGroup to be
7138
+ # updated.
7139
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
7140
+ # Required. The list of fields to be updated. Field names must be in snake
7141
+ # case (e.g., "field_to_update"). Omitted fields will not be updated. To
7142
+ # replace the entire entity, use one path with the string "*" to match all
7143
+ # fields.
7144
+ # @yield [result, operation] Access the result along with the TransportOperation object
7145
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup]
7146
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
7147
+ #
7148
+ # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup]
7149
+ #
7150
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
7151
+ def update_channel_group request, options = nil
7152
+ raise ::ArgumentError, "request must be provided" if request.nil?
7153
+
7154
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest
7155
+
7156
+ # Converts hash and nil to an options object
7157
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7158
+
7159
+ # Customize the options with defaults
7160
+ call_metadata = @config.rpcs.update_channel_group.metadata.to_h
7161
+
7162
+ # Set x-goog-api-client and x-goog-user-project headers
7163
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7164
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7165
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
7166
+ transports_version_send: [:rest]
7167
+
7168
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7169
+
7170
+ options.apply_defaults timeout: @config.rpcs.update_channel_group.timeout,
7171
+ metadata: call_metadata,
7172
+ retry_policy: @config.rpcs.update_channel_group.retry_policy
7173
+
7174
+ options.apply_defaults timeout: @config.timeout,
7175
+ metadata: @config.metadata,
7176
+ retry_policy: @config.retry_policy
7177
+
7178
+ @analytics_admin_service_stub.update_channel_group request, options do |result, operation|
7179
+ yield result, operation if block_given?
7180
+ return result
7181
+ end
7182
+ rescue ::Gapic::Rest::Error => e
7183
+ raise ::Google::Cloud::Error.from_error(e)
7184
+ end
7185
+
7186
+ ##
7187
+ # Deletes a ChannelGroup on a property.
7188
+ #
7189
+ # @overload delete_channel_group(request, options = nil)
7190
+ # Pass arguments to `delete_channel_group` via a request object, either of type
7191
+ # {::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest} or an equivalent Hash.
7192
+ #
7193
+ # @param request [::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest, ::Hash]
7194
+ # A request object representing the call parameters. Required. To specify no
7195
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7196
+ # @param options [::Gapic::CallOptions, ::Hash]
7197
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7198
+ #
7199
+ # @overload delete_channel_group(name: nil)
7200
+ # Pass arguments to `delete_channel_group` via keyword arguments. Note that at
7201
+ # least one keyword argument is required. To specify no parameters, or to keep all
7202
+ # the default parameter values, pass an empty Hash as a request object (see above).
7203
+ #
7204
+ # @param name [::String]
7205
+ # Required. The ChannelGroup to delete.
7206
+ # Example format: properties/1234/channelGroups/5678
7207
+ # @yield [result, operation] Access the result along with the TransportOperation object
7208
+ # @yieldparam result [::Google::Protobuf::Empty]
7209
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
7210
+ #
7211
+ # @return [::Google::Protobuf::Empty]
7212
+ #
7213
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
7214
+ def delete_channel_group request, options = nil
7215
+ raise ::ArgumentError, "request must be provided" if request.nil?
7216
+
7217
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest
7218
+
7219
+ # Converts hash and nil to an options object
7220
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7221
+
7222
+ # Customize the options with defaults
7223
+ call_metadata = @config.rpcs.delete_channel_group.metadata.to_h
7224
+
7225
+ # Set x-goog-api-client and x-goog-user-project headers
7226
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7227
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7228
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
7229
+ transports_version_send: [:rest]
7230
+
7231
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7232
+
7233
+ options.apply_defaults timeout: @config.rpcs.delete_channel_group.timeout,
7234
+ metadata: call_metadata,
7235
+ retry_policy: @config.rpcs.delete_channel_group.retry_policy
7236
+
7237
+ options.apply_defaults timeout: @config.timeout,
7238
+ metadata: @config.metadata,
7239
+ retry_policy: @config.retry_policy
7240
+
7241
+ @analytics_admin_service_stub.delete_channel_group request, options do |result, operation|
7242
+ yield result, operation if block_given?
7243
+ return result
7244
+ end
7245
+ rescue ::Gapic::Rest::Error => e
7246
+ raise ::Google::Cloud::Error.from_error(e)
7247
+ end
7248
+
6915
7249
  ##
6916
7250
  # Sets the opt out status for the automated GA4 setup process for a UA
6917
7251
  # property.
@@ -6940,22 +7274,701 @@ module Google
6940
7274
  # @param opt_out [::Boolean]
6941
7275
  # The status to set.
6942
7276
  # @yield [result, operation] Access the result along with the TransportOperation object
6943
- # @yieldparam result [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse]
7277
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse]
7278
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
7279
+ #
7280
+ # @return [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse]
7281
+ #
7282
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
7283
+ def set_automated_ga4_configuration_opt_out request, options = nil
7284
+ raise ::ArgumentError, "request must be provided" if request.nil?
7285
+
7286
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest
7287
+
7288
+ # Converts hash and nil to an options object
7289
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7290
+
7291
+ # Customize the options with defaults
7292
+ call_metadata = @config.rpcs.set_automated_ga4_configuration_opt_out.metadata.to_h
7293
+
7294
+ # Set x-goog-api-client and x-goog-user-project headers
7295
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7296
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7297
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
7298
+ transports_version_send: [:rest]
7299
+
7300
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7301
+
7302
+ options.apply_defaults timeout: @config.rpcs.set_automated_ga4_configuration_opt_out.timeout,
7303
+ metadata: call_metadata,
7304
+ retry_policy: @config.rpcs.set_automated_ga4_configuration_opt_out.retry_policy
7305
+
7306
+ options.apply_defaults timeout: @config.timeout,
7307
+ metadata: @config.metadata,
7308
+ retry_policy: @config.retry_policy
7309
+
7310
+ @analytics_admin_service_stub.set_automated_ga4_configuration_opt_out request, options do |result, operation|
7311
+ yield result, operation if block_given?
7312
+ return result
7313
+ end
7314
+ rescue ::Gapic::Rest::Error => e
7315
+ raise ::Google::Cloud::Error.from_error(e)
7316
+ end
7317
+
7318
+ ##
7319
+ # Fetches the opt out status for the automated GA4 setup process for a UA
7320
+ # property.
7321
+ # Note: this has no effect on GA4 property.
7322
+ #
7323
+ # @overload fetch_automated_ga4_configuration_opt_out(request, options = nil)
7324
+ # Pass arguments to `fetch_automated_ga4_configuration_opt_out` via a request object, either of type
7325
+ # {::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest} or an equivalent Hash.
7326
+ #
7327
+ # @param request [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest, ::Hash]
7328
+ # A request object representing the call parameters. Required. To specify no
7329
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7330
+ # @param options [::Gapic::CallOptions, ::Hash]
7331
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7332
+ #
7333
+ # @overload fetch_automated_ga4_configuration_opt_out(property: nil)
7334
+ # Pass arguments to `fetch_automated_ga4_configuration_opt_out` via keyword arguments. Note that at
7335
+ # least one keyword argument is required. To specify no parameters, or to keep all
7336
+ # the default parameter values, pass an empty Hash as a request object (see above).
7337
+ #
7338
+ # @param property [::String]
7339
+ # Required. The UA property to get the opt out status. Note this request uses
7340
+ # the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
7341
+ # Format: properties/\\{internalWebPropertyId}
7342
+ # Example: properties/1234
7343
+ # @yield [result, operation] Access the result along with the TransportOperation object
7344
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse]
7345
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
7346
+ #
7347
+ # @return [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse]
7348
+ #
7349
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
7350
+ def fetch_automated_ga4_configuration_opt_out request, options = nil
7351
+ raise ::ArgumentError, "request must be provided" if request.nil?
7352
+
7353
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest
7354
+
7355
+ # Converts hash and nil to an options object
7356
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7357
+
7358
+ # Customize the options with defaults
7359
+ call_metadata = @config.rpcs.fetch_automated_ga4_configuration_opt_out.metadata.to_h
7360
+
7361
+ # Set x-goog-api-client and x-goog-user-project headers
7362
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7363
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7364
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
7365
+ transports_version_send: [:rest]
7366
+
7367
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7368
+
7369
+ options.apply_defaults timeout: @config.rpcs.fetch_automated_ga4_configuration_opt_out.timeout,
7370
+ metadata: call_metadata,
7371
+ retry_policy: @config.rpcs.fetch_automated_ga4_configuration_opt_out.retry_policy
7372
+
7373
+ options.apply_defaults timeout: @config.timeout,
7374
+ metadata: @config.metadata,
7375
+ retry_policy: @config.retry_policy
7376
+
7377
+ @analytics_admin_service_stub.fetch_automated_ga4_configuration_opt_out request, options do |result, operation|
7378
+ yield result, operation if block_given?
7379
+ return result
7380
+ end
7381
+ rescue ::Gapic::Rest::Error => e
7382
+ raise ::Google::Cloud::Error.from_error(e)
7383
+ end
7384
+
7385
+ ##
7386
+ # Lookup for a single BigQuery Link.
7387
+ #
7388
+ # @overload get_big_query_link(request, options = nil)
7389
+ # Pass arguments to `get_big_query_link` via a request object, either of type
7390
+ # {::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest} or an equivalent Hash.
7391
+ #
7392
+ # @param request [::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest, ::Hash]
7393
+ # A request object representing the call parameters. Required. To specify no
7394
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7395
+ # @param options [::Gapic::CallOptions, ::Hash]
7396
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7397
+ #
7398
+ # @overload get_big_query_link(name: nil)
7399
+ # Pass arguments to `get_big_query_link` via keyword arguments. Note that at
7400
+ # least one keyword argument is required. To specify no parameters, or to keep all
7401
+ # the default parameter values, pass an empty Hash as a request object (see above).
7402
+ #
7403
+ # @param name [::String]
7404
+ # Required. The name of the BigQuery link to lookup.
7405
+ # Format: properties/\\{property_id}/bigQueryLinks/\\{bigquery_link_id}
7406
+ # Example: properties/123/bigQueryLinks/456
7407
+ # @yield [result, operation] Access the result along with the TransportOperation object
7408
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink]
7409
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
7410
+ #
7411
+ # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink]
7412
+ #
7413
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
7414
+ def get_big_query_link request, options = nil
7415
+ raise ::ArgumentError, "request must be provided" if request.nil?
7416
+
7417
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest
7418
+
7419
+ # Converts hash and nil to an options object
7420
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7421
+
7422
+ # Customize the options with defaults
7423
+ call_metadata = @config.rpcs.get_big_query_link.metadata.to_h
7424
+
7425
+ # Set x-goog-api-client and x-goog-user-project headers
7426
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7427
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7428
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
7429
+ transports_version_send: [:rest]
7430
+
7431
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7432
+
7433
+ options.apply_defaults timeout: @config.rpcs.get_big_query_link.timeout,
7434
+ metadata: call_metadata,
7435
+ retry_policy: @config.rpcs.get_big_query_link.retry_policy
7436
+
7437
+ options.apply_defaults timeout: @config.timeout,
7438
+ metadata: @config.metadata,
7439
+ retry_policy: @config.retry_policy
7440
+
7441
+ @analytics_admin_service_stub.get_big_query_link request, options do |result, operation|
7442
+ yield result, operation if block_given?
7443
+ return result
7444
+ end
7445
+ rescue ::Gapic::Rest::Error => e
7446
+ raise ::Google::Cloud::Error.from_error(e)
7447
+ end
7448
+
7449
+ ##
7450
+ # Lists BigQuery Links on a property.
7451
+ #
7452
+ # @overload list_big_query_links(request, options = nil)
7453
+ # Pass arguments to `list_big_query_links` via a request object, either of type
7454
+ # {::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest} or an equivalent Hash.
7455
+ #
7456
+ # @param request [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest, ::Hash]
7457
+ # A request object representing the call parameters. Required. To specify no
7458
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7459
+ # @param options [::Gapic::CallOptions, ::Hash]
7460
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7461
+ #
7462
+ # @overload list_big_query_links(parent: nil, page_size: nil, page_token: nil)
7463
+ # Pass arguments to `list_big_query_links` via keyword arguments. Note that at
7464
+ # least one keyword argument is required. To specify no parameters, or to keep all
7465
+ # the default parameter values, pass an empty Hash as a request object (see above).
7466
+ #
7467
+ # @param parent [::String]
7468
+ # Required. The name of the property to list BigQuery links under.
7469
+ # Format: properties/\\{property_id}
7470
+ # Example: properties/1234
7471
+ # @param page_size [::Integer]
7472
+ # The maximum number of resources to return. The service may return
7473
+ # fewer than this value, even if there are additional pages.
7474
+ # If unspecified, at most 50 resources will be returned.
7475
+ # The maximum value is 200; (higher values will be coerced to the maximum)
7476
+ # @param page_token [::String]
7477
+ # A page token, received from a previous `ListBigQueryLinks` call.
7478
+ # Provide this to retrieve the subsequent page.
7479
+ # When paginating, all other parameters provided to `ListBigQueryLinks` must
7480
+ # match the call that provided the page token.
7481
+ # @yield [result, operation] Access the result along with the TransportOperation object
7482
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>]
7483
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
7484
+ #
7485
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>]
7486
+ #
7487
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
7488
+ def list_big_query_links request, options = nil
7489
+ raise ::ArgumentError, "request must be provided" if request.nil?
7490
+
7491
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest
7492
+
7493
+ # Converts hash and nil to an options object
7494
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7495
+
7496
+ # Customize the options with defaults
7497
+ call_metadata = @config.rpcs.list_big_query_links.metadata.to_h
7498
+
7499
+ # Set x-goog-api-client and x-goog-user-project headers
7500
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7501
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7502
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
7503
+ transports_version_send: [:rest]
7504
+
7505
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7506
+
7507
+ options.apply_defaults timeout: @config.rpcs.list_big_query_links.timeout,
7508
+ metadata: call_metadata,
7509
+ retry_policy: @config.rpcs.list_big_query_links.retry_policy
7510
+
7511
+ options.apply_defaults timeout: @config.timeout,
7512
+ metadata: @config.metadata,
7513
+ retry_policy: @config.retry_policy
7514
+
7515
+ @analytics_admin_service_stub.list_big_query_links request, options do |result, operation|
7516
+ result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_big_query_links, "bigquery_links", request, result, options
7517
+ yield result, operation if block_given?
7518
+ return result
7519
+ end
7520
+ rescue ::Gapic::Rest::Error => e
7521
+ raise ::Google::Cloud::Error.from_error(e)
7522
+ end
7523
+
7524
+ ##
7525
+ # Returns the enhanced measurement settings for this data stream.
7526
+ # Note that the stream must enable enhanced measurement for these settings to
7527
+ # take effect.
7528
+ #
7529
+ # @overload get_enhanced_measurement_settings(request, options = nil)
7530
+ # Pass arguments to `get_enhanced_measurement_settings` via a request object, either of type
7531
+ # {::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest} or an equivalent Hash.
7532
+ #
7533
+ # @param request [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest, ::Hash]
7534
+ # A request object representing the call parameters. Required. To specify no
7535
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7536
+ # @param options [::Gapic::CallOptions, ::Hash]
7537
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7538
+ #
7539
+ # @overload get_enhanced_measurement_settings(name: nil)
7540
+ # Pass arguments to `get_enhanced_measurement_settings` via keyword arguments. Note that at
7541
+ # least one keyword argument is required. To specify no parameters, or to keep all
7542
+ # the default parameter values, pass an empty Hash as a request object (see above).
7543
+ #
7544
+ # @param name [::String]
7545
+ # Required. The name of the settings to lookup.
7546
+ # Format:
7547
+ # properties/\\{property}/dataStreams/\\{data_stream}/enhancedMeasurementSettings
7548
+ # Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
7549
+ # @yield [result, operation] Access the result along with the TransportOperation object
7550
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
7551
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
7552
+ #
7553
+ # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
7554
+ #
7555
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
7556
+ def get_enhanced_measurement_settings request, options = nil
7557
+ raise ::ArgumentError, "request must be provided" if request.nil?
7558
+
7559
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest
7560
+
7561
+ # Converts hash and nil to an options object
7562
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7563
+
7564
+ # Customize the options with defaults
7565
+ call_metadata = @config.rpcs.get_enhanced_measurement_settings.metadata.to_h
7566
+
7567
+ # Set x-goog-api-client and x-goog-user-project headers
7568
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7569
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7570
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
7571
+ transports_version_send: [:rest]
7572
+
7573
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7574
+
7575
+ options.apply_defaults timeout: @config.rpcs.get_enhanced_measurement_settings.timeout,
7576
+ metadata: call_metadata,
7577
+ retry_policy: @config.rpcs.get_enhanced_measurement_settings.retry_policy
7578
+
7579
+ options.apply_defaults timeout: @config.timeout,
7580
+ metadata: @config.metadata,
7581
+ retry_policy: @config.retry_policy
7582
+
7583
+ @analytics_admin_service_stub.get_enhanced_measurement_settings request, options do |result, operation|
7584
+ yield result, operation if block_given?
7585
+ return result
7586
+ end
7587
+ rescue ::Gapic::Rest::Error => e
7588
+ raise ::Google::Cloud::Error.from_error(e)
7589
+ end
7590
+
7591
+ ##
7592
+ # Updates the enhanced measurement settings for this data stream.
7593
+ # Note that the stream must enable enhanced measurement for these settings to
7594
+ # take effect.
7595
+ #
7596
+ # @overload update_enhanced_measurement_settings(request, options = nil)
7597
+ # Pass arguments to `update_enhanced_measurement_settings` via a request object, either of type
7598
+ # {::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest} or an equivalent Hash.
7599
+ #
7600
+ # @param request [::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest, ::Hash]
7601
+ # A request object representing the call parameters. Required. To specify no
7602
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7603
+ # @param options [::Gapic::CallOptions, ::Hash]
7604
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7605
+ #
7606
+ # @overload update_enhanced_measurement_settings(enhanced_measurement_settings: nil, update_mask: nil)
7607
+ # Pass arguments to `update_enhanced_measurement_settings` via keyword arguments. Note that at
7608
+ # least one keyword argument is required. To specify no parameters, or to keep all
7609
+ # the default parameter values, pass an empty Hash as a request object (see above).
7610
+ #
7611
+ # @param enhanced_measurement_settings [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings, ::Hash]
7612
+ # Required. The settings to update.
7613
+ # The `name` field is used to identify the settings to be updated.
7614
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
7615
+ # Required. The list of fields to be updated. Field names must be in snake
7616
+ # case (e.g., "field_to_update"). Omitted fields will not be updated. To
7617
+ # replace the entire entity, use one path with the string "*" to match all
7618
+ # fields.
7619
+ # @yield [result, operation] Access the result along with the TransportOperation object
7620
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
7621
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
7622
+ #
7623
+ # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
7624
+ #
7625
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
7626
+ def update_enhanced_measurement_settings request, options = nil
7627
+ raise ::ArgumentError, "request must be provided" if request.nil?
7628
+
7629
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest
7630
+
7631
+ # Converts hash and nil to an options object
7632
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7633
+
7634
+ # Customize the options with defaults
7635
+ call_metadata = @config.rpcs.update_enhanced_measurement_settings.metadata.to_h
7636
+
7637
+ # Set x-goog-api-client and x-goog-user-project headers
7638
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7639
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7640
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
7641
+ transports_version_send: [:rest]
7642
+
7643
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7644
+
7645
+ options.apply_defaults timeout: @config.rpcs.update_enhanced_measurement_settings.timeout,
7646
+ metadata: call_metadata,
7647
+ retry_policy: @config.rpcs.update_enhanced_measurement_settings.retry_policy
7648
+
7649
+ options.apply_defaults timeout: @config.timeout,
7650
+ metadata: @config.metadata,
7651
+ retry_policy: @config.retry_policy
7652
+
7653
+ @analytics_admin_service_stub.update_enhanced_measurement_settings request, options do |result, operation|
7654
+ yield result, operation if block_given?
7655
+ return result
7656
+ end
7657
+ rescue ::Gapic::Rest::Error => e
7658
+ raise ::Google::Cloud::Error.from_error(e)
7659
+ end
7660
+
7661
+ ##
7662
+ # Creates a connected site tag for a Universal Analytics property. You can
7663
+ # create a maximum of 20 connected site tags per property.
7664
+ # Note: This API cannot be used on GA4 properties.
7665
+ #
7666
+ # @overload create_connected_site_tag(request, options = nil)
7667
+ # Pass arguments to `create_connected_site_tag` via a request object, either of type
7668
+ # {::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest} or an equivalent Hash.
7669
+ #
7670
+ # @param request [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest, ::Hash]
7671
+ # A request object representing the call parameters. Required. To specify no
7672
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7673
+ # @param options [::Gapic::CallOptions, ::Hash]
7674
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7675
+ #
7676
+ # @overload create_connected_site_tag(property: nil, connected_site_tag: nil)
7677
+ # Pass arguments to `create_connected_site_tag` via keyword arguments. Note that at
7678
+ # least one keyword argument is required. To specify no parameters, or to keep all
7679
+ # the default parameter values, pass an empty Hash as a request object (see above).
7680
+ #
7681
+ # @param property [::String]
7682
+ # The Universal Analytics property to create connected site tags for.
7683
+ # This API does not support GA4 properties.
7684
+ # Format: properties/\\{universalAnalyticsPropertyId}
7685
+ # Example: properties/1234
7686
+ # @param connected_site_tag [::Google::Analytics::Admin::V1alpha::ConnectedSiteTag, ::Hash]
7687
+ # Required. The tag to add to the Universal Analytics property
7688
+ # @yield [result, operation] Access the result along with the TransportOperation object
7689
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse]
7690
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
7691
+ #
7692
+ # @return [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse]
7693
+ #
7694
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
7695
+ def create_connected_site_tag request, options = nil
7696
+ raise ::ArgumentError, "request must be provided" if request.nil?
7697
+
7698
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest
7699
+
7700
+ # Converts hash and nil to an options object
7701
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7702
+
7703
+ # Customize the options with defaults
7704
+ call_metadata = @config.rpcs.create_connected_site_tag.metadata.to_h
7705
+
7706
+ # Set x-goog-api-client and x-goog-user-project headers
7707
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7708
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7709
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
7710
+ transports_version_send: [:rest]
7711
+
7712
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7713
+
7714
+ options.apply_defaults timeout: @config.rpcs.create_connected_site_tag.timeout,
7715
+ metadata: call_metadata,
7716
+ retry_policy: @config.rpcs.create_connected_site_tag.retry_policy
7717
+
7718
+ options.apply_defaults timeout: @config.timeout,
7719
+ metadata: @config.metadata,
7720
+ retry_policy: @config.retry_policy
7721
+
7722
+ @analytics_admin_service_stub.create_connected_site_tag request, options do |result, operation|
7723
+ yield result, operation if block_given?
7724
+ return result
7725
+ end
7726
+ rescue ::Gapic::Rest::Error => e
7727
+ raise ::Google::Cloud::Error.from_error(e)
7728
+ end
7729
+
7730
+ ##
7731
+ # Deletes a connected site tag for a Universal Analytics property.
7732
+ # Note: this has no effect on GA4 properties.
7733
+ #
7734
+ # @overload delete_connected_site_tag(request, options = nil)
7735
+ # Pass arguments to `delete_connected_site_tag` via a request object, either of type
7736
+ # {::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest} or an equivalent Hash.
7737
+ #
7738
+ # @param request [::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest, ::Hash]
7739
+ # A request object representing the call parameters. Required. To specify no
7740
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7741
+ # @param options [::Gapic::CallOptions, ::Hash]
7742
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7743
+ #
7744
+ # @overload delete_connected_site_tag(property: nil, tag_id: nil)
7745
+ # Pass arguments to `delete_connected_site_tag` via keyword arguments. Note that at
7746
+ # least one keyword argument is required. To specify no parameters, or to keep all
7747
+ # the default parameter values, pass an empty Hash as a request object (see above).
7748
+ #
7749
+ # @param property [::String]
7750
+ # The Universal Analytics property to delete connected site tags for.
7751
+ # This API does not support GA4 properties.
7752
+ # Format: properties/\\{universalAnalyticsPropertyId}
7753
+ # Example: properties/1234
7754
+ # @param tag_id [::String]
7755
+ # Tag ID to forward events to. Also known as the Measurement ID, or the
7756
+ # "G-ID" (For example: G-12345).
7757
+ # @yield [result, operation] Access the result along with the TransportOperation object
7758
+ # @yieldparam result [::Google::Protobuf::Empty]
7759
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
7760
+ #
7761
+ # @return [::Google::Protobuf::Empty]
7762
+ #
7763
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
7764
+ def delete_connected_site_tag request, options = nil
7765
+ raise ::ArgumentError, "request must be provided" if request.nil?
7766
+
7767
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest
7768
+
7769
+ # Converts hash and nil to an options object
7770
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7771
+
7772
+ # Customize the options with defaults
7773
+ call_metadata = @config.rpcs.delete_connected_site_tag.metadata.to_h
7774
+
7775
+ # Set x-goog-api-client and x-goog-user-project headers
7776
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7777
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7778
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
7779
+ transports_version_send: [:rest]
7780
+
7781
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7782
+
7783
+ options.apply_defaults timeout: @config.rpcs.delete_connected_site_tag.timeout,
7784
+ metadata: call_metadata,
7785
+ retry_policy: @config.rpcs.delete_connected_site_tag.retry_policy
7786
+
7787
+ options.apply_defaults timeout: @config.timeout,
7788
+ metadata: @config.metadata,
7789
+ retry_policy: @config.retry_policy
7790
+
7791
+ @analytics_admin_service_stub.delete_connected_site_tag request, options do |result, operation|
7792
+ yield result, operation if block_given?
7793
+ return result
7794
+ end
7795
+ rescue ::Gapic::Rest::Error => e
7796
+ raise ::Google::Cloud::Error.from_error(e)
7797
+ end
7798
+
7799
+ ##
7800
+ # Lists the connected site tags for a Universal Analytics property. A maximum
7801
+ # of 20 connected site tags will be returned. Note: this has no effect on GA4
7802
+ # property.
7803
+ #
7804
+ # @overload list_connected_site_tags(request, options = nil)
7805
+ # Pass arguments to `list_connected_site_tags` via a request object, either of type
7806
+ # {::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest} or an equivalent Hash.
7807
+ #
7808
+ # @param request [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest, ::Hash]
7809
+ # A request object representing the call parameters. Required. To specify no
7810
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7811
+ # @param options [::Gapic::CallOptions, ::Hash]
7812
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7813
+ #
7814
+ # @overload list_connected_site_tags(property: nil)
7815
+ # Pass arguments to `list_connected_site_tags` via keyword arguments. Note that at
7816
+ # least one keyword argument is required. To specify no parameters, or to keep all
7817
+ # the default parameter values, pass an empty Hash as a request object (see above).
7818
+ #
7819
+ # @param property [::String]
7820
+ # The Universal Analytics property to fetch connected site tags for.
7821
+ # This does not work on GA4 properties. A maximum of 20 connected site tags
7822
+ # will be returned.
7823
+ # Example Format: `properties/1234`
7824
+ # @yield [result, operation] Access the result along with the TransportOperation object
7825
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse]
7826
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
7827
+ #
7828
+ # @return [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse]
7829
+ #
7830
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
7831
+ def list_connected_site_tags request, options = nil
7832
+ raise ::ArgumentError, "request must be provided" if request.nil?
7833
+
7834
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest
7835
+
7836
+ # Converts hash and nil to an options object
7837
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7838
+
7839
+ # Customize the options with defaults
7840
+ call_metadata = @config.rpcs.list_connected_site_tags.metadata.to_h
7841
+
7842
+ # Set x-goog-api-client and x-goog-user-project headers
7843
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7844
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7845
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
7846
+ transports_version_send: [:rest]
7847
+
7848
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7849
+
7850
+ options.apply_defaults timeout: @config.rpcs.list_connected_site_tags.timeout,
7851
+ metadata: call_metadata,
7852
+ retry_policy: @config.rpcs.list_connected_site_tags.retry_policy
7853
+
7854
+ options.apply_defaults timeout: @config.timeout,
7855
+ metadata: @config.metadata,
7856
+ retry_policy: @config.retry_policy
7857
+
7858
+ @analytics_admin_service_stub.list_connected_site_tags request, options do |result, operation|
7859
+ yield result, operation if block_given?
7860
+ return result
7861
+ end
7862
+ rescue ::Gapic::Rest::Error => e
7863
+ raise ::Google::Cloud::Error.from_error(e)
7864
+ end
7865
+
7866
+ ##
7867
+ # Given a specified UA property, looks up the GA4 property connected to it.
7868
+ # Note: this cannot be used with GA4 properties.
7869
+ #
7870
+ # @overload fetch_connected_ga4_property(request, options = nil)
7871
+ # Pass arguments to `fetch_connected_ga4_property` via a request object, either of type
7872
+ # {::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest} or an equivalent Hash.
7873
+ #
7874
+ # @param request [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest, ::Hash]
7875
+ # A request object representing the call parameters. Required. To specify no
7876
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7877
+ # @param options [::Gapic::CallOptions, ::Hash]
7878
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7879
+ #
7880
+ # @overload fetch_connected_ga4_property(property: nil)
7881
+ # Pass arguments to `fetch_connected_ga4_property` via keyword arguments. Note that at
7882
+ # least one keyword argument is required. To specify no parameters, or to keep all
7883
+ # the default parameter values, pass an empty Hash as a request object (see above).
7884
+ #
7885
+ # @param property [::String]
7886
+ # Required. The UA property for which to look up the connected GA4 property.
7887
+ # Note this request uses the
7888
+ # internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
7889
+ # Format: properties/\\{internal_web_property_id}
7890
+ # Example: properties/1234
7891
+ # @yield [result, operation] Access the result along with the TransportOperation object
7892
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse]
7893
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
7894
+ #
7895
+ # @return [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse]
7896
+ #
7897
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
7898
+ def fetch_connected_ga4_property request, options = nil
7899
+ raise ::ArgumentError, "request must be provided" if request.nil?
7900
+
7901
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest
7902
+
7903
+ # Converts hash and nil to an options object
7904
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7905
+
7906
+ # Customize the options with defaults
7907
+ call_metadata = @config.rpcs.fetch_connected_ga4_property.metadata.to_h
7908
+
7909
+ # Set x-goog-api-client and x-goog-user-project headers
7910
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
7911
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
7912
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION,
7913
+ transports_version_send: [:rest]
7914
+
7915
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7916
+
7917
+ options.apply_defaults timeout: @config.rpcs.fetch_connected_ga4_property.timeout,
7918
+ metadata: call_metadata,
7919
+ retry_policy: @config.rpcs.fetch_connected_ga4_property.retry_policy
7920
+
7921
+ options.apply_defaults timeout: @config.timeout,
7922
+ metadata: @config.metadata,
7923
+ retry_policy: @config.retry_policy
7924
+
7925
+ @analytics_admin_service_stub.fetch_connected_ga4_property request, options do |result, operation|
7926
+ yield result, operation if block_given?
7927
+ return result
7928
+ end
7929
+ rescue ::Gapic::Rest::Error => e
7930
+ raise ::Google::Cloud::Error.from_error(e)
7931
+ end
7932
+
7933
+ ##
7934
+ # Looks up a single AdSenseLink.
7935
+ #
7936
+ # @overload get_ad_sense_link(request, options = nil)
7937
+ # Pass arguments to `get_ad_sense_link` via a request object, either of type
7938
+ # {::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest} or an equivalent Hash.
7939
+ #
7940
+ # @param request [::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest, ::Hash]
7941
+ # A request object representing the call parameters. Required. To specify no
7942
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
7943
+ # @param options [::Gapic::CallOptions, ::Hash]
7944
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7945
+ #
7946
+ # @overload get_ad_sense_link(name: nil)
7947
+ # Pass arguments to `get_ad_sense_link` via keyword arguments. Note that at
7948
+ # least one keyword argument is required. To specify no parameters, or to keep all
7949
+ # the default parameter values, pass an empty Hash as a request object (see above).
7950
+ #
7951
+ # @param name [::String]
7952
+ # Required. Unique identifier for the AdSense Link requested.
7953
+ # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId}
7954
+ # Example: properties/1234/adSenseLinks/5678
7955
+ # @yield [result, operation] Access the result along with the TransportOperation object
7956
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::AdSenseLink]
6944
7957
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
6945
7958
  #
6946
- # @return [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse]
7959
+ # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink]
6947
7960
  #
6948
7961
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
6949
- def set_automated_ga4_configuration_opt_out request, options = nil
7962
+ def get_ad_sense_link request, options = nil
6950
7963
  raise ::ArgumentError, "request must be provided" if request.nil?
6951
7964
 
6952
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest
7965
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest
6953
7966
 
6954
7967
  # Converts hash and nil to an options object
6955
7968
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
6956
7969
 
6957
7970
  # Customize the options with defaults
6958
- call_metadata = @config.rpcs.set_automated_ga4_configuration_opt_out.metadata.to_h
7971
+ call_metadata = @config.rpcs.get_ad_sense_link.metadata.to_h
6959
7972
 
6960
7973
  # Set x-goog-api-client and x-goog-user-project headers
6961
7974
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -6965,15 +7978,15 @@ module Google
6965
7978
 
6966
7979
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
6967
7980
 
6968
- options.apply_defaults timeout: @config.rpcs.set_automated_ga4_configuration_opt_out.timeout,
7981
+ options.apply_defaults timeout: @config.rpcs.get_ad_sense_link.timeout,
6969
7982
  metadata: call_metadata,
6970
- retry_policy: @config.rpcs.set_automated_ga4_configuration_opt_out.retry_policy
7983
+ retry_policy: @config.rpcs.get_ad_sense_link.retry_policy
6971
7984
 
6972
7985
  options.apply_defaults timeout: @config.timeout,
6973
7986
  metadata: @config.metadata,
6974
7987
  retry_policy: @config.retry_policy
6975
7988
 
6976
- @analytics_admin_service_stub.set_automated_ga4_configuration_opt_out request, options do |result, operation|
7989
+ @analytics_admin_service_stub.get_ad_sense_link request, options do |result, operation|
6977
7990
  yield result, operation if block_given?
6978
7991
  return result
6979
7992
  end
@@ -6982,47 +7995,46 @@ module Google
6982
7995
  end
6983
7996
 
6984
7997
  ##
6985
- # Fetches the opt out status for the automated GA4 setup process for a UA
6986
- # property.
6987
- # Note: this has no effect on GA4 property.
7998
+ # Creates an AdSenseLink.
6988
7999
  #
6989
- # @overload fetch_automated_ga4_configuration_opt_out(request, options = nil)
6990
- # Pass arguments to `fetch_automated_ga4_configuration_opt_out` via a request object, either of type
6991
- # {::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest} or an equivalent Hash.
8000
+ # @overload create_ad_sense_link(request, options = nil)
8001
+ # Pass arguments to `create_ad_sense_link` via a request object, either of type
8002
+ # {::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest} or an equivalent Hash.
6992
8003
  #
6993
- # @param request [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest, ::Hash]
8004
+ # @param request [::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest, ::Hash]
6994
8005
  # A request object representing the call parameters. Required. To specify no
6995
8006
  # parameters, or to keep all the default parameter values, pass an empty Hash.
6996
8007
  # @param options [::Gapic::CallOptions, ::Hash]
6997
8008
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
6998
8009
  #
6999
- # @overload fetch_automated_ga4_configuration_opt_out(property: nil)
7000
- # Pass arguments to `fetch_automated_ga4_configuration_opt_out` via keyword arguments. Note that at
8010
+ # @overload create_ad_sense_link(parent: nil, adsense_link: nil)
8011
+ # Pass arguments to `create_ad_sense_link` via keyword arguments. Note that at
7001
8012
  # least one keyword argument is required. To specify no parameters, or to keep all
7002
8013
  # the default parameter values, pass an empty Hash as a request object (see above).
7003
8014
  #
7004
- # @param property [::String]
7005
- # Required. The UA property to get the opt out status. Note this request uses
7006
- # the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
7007
- # Format: properties/\\{internalWebPropertyId}
8015
+ # @param parent [::String]
8016
+ # Required. The property for which to create an AdSense Link.
8017
+ # Format: properties/\\{propertyId}
7008
8018
  # Example: properties/1234
8019
+ # @param adsense_link [::Google::Analytics::Admin::V1alpha::AdSenseLink, ::Hash]
8020
+ # Required. The AdSense Link to create
7009
8021
  # @yield [result, operation] Access the result along with the TransportOperation object
7010
- # @yieldparam result [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse]
8022
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::AdSenseLink]
7011
8023
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
7012
8024
  #
7013
- # @return [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse]
8025
+ # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink]
7014
8026
  #
7015
8027
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
7016
- def fetch_automated_ga4_configuration_opt_out request, options = nil
8028
+ def create_ad_sense_link request, options = nil
7017
8029
  raise ::ArgumentError, "request must be provided" if request.nil?
7018
8030
 
7019
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest
8031
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest
7020
8032
 
7021
8033
  # Converts hash and nil to an options object
7022
8034
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7023
8035
 
7024
8036
  # Customize the options with defaults
7025
- call_metadata = @config.rpcs.fetch_automated_ga4_configuration_opt_out.metadata.to_h
8037
+ call_metadata = @config.rpcs.create_ad_sense_link.metadata.to_h
7026
8038
 
7027
8039
  # Set x-goog-api-client and x-goog-user-project headers
7028
8040
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -7032,15 +8044,15 @@ module Google
7032
8044
 
7033
8045
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7034
8046
 
7035
- options.apply_defaults timeout: @config.rpcs.fetch_automated_ga4_configuration_opt_out.timeout,
8047
+ options.apply_defaults timeout: @config.rpcs.create_ad_sense_link.timeout,
7036
8048
  metadata: call_metadata,
7037
- retry_policy: @config.rpcs.fetch_automated_ga4_configuration_opt_out.retry_policy
8049
+ retry_policy: @config.rpcs.create_ad_sense_link.retry_policy
7038
8050
 
7039
8051
  options.apply_defaults timeout: @config.timeout,
7040
8052
  metadata: @config.metadata,
7041
8053
  retry_policy: @config.retry_policy
7042
8054
 
7043
- @analytics_admin_service_stub.fetch_automated_ga4_configuration_opt_out request, options do |result, operation|
8055
+ @analytics_admin_service_stub.create_ad_sense_link request, options do |result, operation|
7044
8056
  yield result, operation if block_given?
7045
8057
  return result
7046
8058
  end
@@ -7049,44 +8061,44 @@ module Google
7049
8061
  end
7050
8062
 
7051
8063
  ##
7052
- # Lookup for a single BigQuery Link.
8064
+ # Deletes an AdSenseLink.
7053
8065
  #
7054
- # @overload get_big_query_link(request, options = nil)
7055
- # Pass arguments to `get_big_query_link` via a request object, either of type
7056
- # {::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest} or an equivalent Hash.
8066
+ # @overload delete_ad_sense_link(request, options = nil)
8067
+ # Pass arguments to `delete_ad_sense_link` via a request object, either of type
8068
+ # {::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest} or an equivalent Hash.
7057
8069
  #
7058
- # @param request [::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest, ::Hash]
8070
+ # @param request [::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest, ::Hash]
7059
8071
  # A request object representing the call parameters. Required. To specify no
7060
8072
  # parameters, or to keep all the default parameter values, pass an empty Hash.
7061
8073
  # @param options [::Gapic::CallOptions, ::Hash]
7062
8074
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7063
8075
  #
7064
- # @overload get_big_query_link(name: nil)
7065
- # Pass arguments to `get_big_query_link` via keyword arguments. Note that at
8076
+ # @overload delete_ad_sense_link(name: nil)
8077
+ # Pass arguments to `delete_ad_sense_link` via keyword arguments. Note that at
7066
8078
  # least one keyword argument is required. To specify no parameters, or to keep all
7067
8079
  # the default parameter values, pass an empty Hash as a request object (see above).
7068
8080
  #
7069
8081
  # @param name [::String]
7070
- # Required. The name of the BigQuery link to lookup.
7071
- # Format: properties/\\{property_id}/bigQueryLinks/\\{bigquery_link_id}
7072
- # Example: properties/123/bigQueryLinks/456
8082
+ # Required. Unique identifier for the AdSense Link to be deleted.
8083
+ # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId}
8084
+ # Example: properties/1234/adSenseLinks/5678
7073
8085
  # @yield [result, operation] Access the result along with the TransportOperation object
7074
- # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink]
8086
+ # @yieldparam result [::Google::Protobuf::Empty]
7075
8087
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
7076
8088
  #
7077
- # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink]
8089
+ # @return [::Google::Protobuf::Empty]
7078
8090
  #
7079
8091
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
7080
- def get_big_query_link request, options = nil
8092
+ def delete_ad_sense_link request, options = nil
7081
8093
  raise ::ArgumentError, "request must be provided" if request.nil?
7082
8094
 
7083
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest
8095
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest
7084
8096
 
7085
8097
  # Converts hash and nil to an options object
7086
8098
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7087
8099
 
7088
8100
  # Customize the options with defaults
7089
- call_metadata = @config.rpcs.get_big_query_link.metadata.to_h
8101
+ call_metadata = @config.rpcs.delete_ad_sense_link.metadata.to_h
7090
8102
 
7091
8103
  # Set x-goog-api-client and x-goog-user-project headers
7092
8104
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -7096,15 +8108,15 @@ module Google
7096
8108
 
7097
8109
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7098
8110
 
7099
- options.apply_defaults timeout: @config.rpcs.get_big_query_link.timeout,
8111
+ options.apply_defaults timeout: @config.rpcs.delete_ad_sense_link.timeout,
7100
8112
  metadata: call_metadata,
7101
- retry_policy: @config.rpcs.get_big_query_link.retry_policy
8113
+ retry_policy: @config.rpcs.delete_ad_sense_link.retry_policy
7102
8114
 
7103
8115
  options.apply_defaults timeout: @config.timeout,
7104
8116
  metadata: @config.metadata,
7105
8117
  retry_policy: @config.retry_policy
7106
8118
 
7107
- @analytics_admin_service_stub.get_big_query_link request, options do |result, operation|
8119
+ @analytics_admin_service_stub.delete_ad_sense_link request, options do |result, operation|
7108
8120
  yield result, operation if block_given?
7109
8121
  return result
7110
8122
  end
@@ -7113,54 +8125,54 @@ module Google
7113
8125
  end
7114
8126
 
7115
8127
  ##
7116
- # Lists BigQuery Links on a property.
8128
+ # Lists AdSenseLinks on a property.
7117
8129
  #
7118
- # @overload list_big_query_links(request, options = nil)
7119
- # Pass arguments to `list_big_query_links` via a request object, either of type
7120
- # {::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest} or an equivalent Hash.
8130
+ # @overload list_ad_sense_links(request, options = nil)
8131
+ # Pass arguments to `list_ad_sense_links` via a request object, either of type
8132
+ # {::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest} or an equivalent Hash.
7121
8133
  #
7122
- # @param request [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest, ::Hash]
8134
+ # @param request [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest, ::Hash]
7123
8135
  # A request object representing the call parameters. Required. To specify no
7124
8136
  # parameters, or to keep all the default parameter values, pass an empty Hash.
7125
8137
  # @param options [::Gapic::CallOptions, ::Hash]
7126
8138
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7127
8139
  #
7128
- # @overload list_big_query_links(parent: nil, page_size: nil, page_token: nil)
7129
- # Pass arguments to `list_big_query_links` via keyword arguments. Note that at
8140
+ # @overload list_ad_sense_links(parent: nil, page_size: nil, page_token: nil)
8141
+ # Pass arguments to `list_ad_sense_links` via keyword arguments. Note that at
7130
8142
  # least one keyword argument is required. To specify no parameters, or to keep all
7131
8143
  # the default parameter values, pass an empty Hash as a request object (see above).
7132
8144
  #
7133
8145
  # @param parent [::String]
7134
- # Required. The name of the property to list BigQuery links under.
7135
- # Format: properties/\\{property_id}
8146
+ # Required. Resource name of the parent property.
8147
+ # Format: properties/\\{propertyId}
7136
8148
  # Example: properties/1234
7137
8149
  # @param page_size [::Integer]
7138
- # The maximum number of resources to return. The service may return
7139
- # fewer than this value, even if there are additional pages.
8150
+ # The maximum number of resources to return.
7140
8151
  # If unspecified, at most 50 resources will be returned.
7141
- # The maximum value is 200; (higher values will be coerced to the maximum)
8152
+ # The maximum value is 200 (higher values will be coerced to the maximum).
7142
8153
  # @param page_token [::String]
7143
- # A page token, received from a previous `ListBigQueryLinks` call.
8154
+ # A page token received from a previous `ListAdSenseLinks` call.
7144
8155
  # Provide this to retrieve the subsequent page.
7145
- # When paginating, all other parameters provided to `ListBigQueryLinks` must
8156
+ #
8157
+ # When paginating, all other parameters provided to `ListAdSenseLinks` must
7146
8158
  # match the call that provided the page token.
7147
8159
  # @yield [result, operation] Access the result along with the TransportOperation object
7148
- # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>]
8160
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>]
7149
8161
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
7150
8162
  #
7151
- # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>]
8163
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>]
7152
8164
  #
7153
8165
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
7154
- def list_big_query_links request, options = nil
8166
+ def list_ad_sense_links request, options = nil
7155
8167
  raise ::ArgumentError, "request must be provided" if request.nil?
7156
8168
 
7157
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest
8169
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest
7158
8170
 
7159
8171
  # Converts hash and nil to an options object
7160
8172
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7161
8173
 
7162
8174
  # Customize the options with defaults
7163
- call_metadata = @config.rpcs.list_big_query_links.metadata.to_h
8175
+ call_metadata = @config.rpcs.list_ad_sense_links.metadata.to_h
7164
8176
 
7165
8177
  # Set x-goog-api-client and x-goog-user-project headers
7166
8178
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -7170,16 +8182,16 @@ module Google
7170
8182
 
7171
8183
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7172
8184
 
7173
- options.apply_defaults timeout: @config.rpcs.list_big_query_links.timeout,
8185
+ options.apply_defaults timeout: @config.rpcs.list_ad_sense_links.timeout,
7174
8186
  metadata: call_metadata,
7175
- retry_policy: @config.rpcs.list_big_query_links.retry_policy
8187
+ retry_policy: @config.rpcs.list_ad_sense_links.retry_policy
7176
8188
 
7177
8189
  options.apply_defaults timeout: @config.timeout,
7178
8190
  metadata: @config.metadata,
7179
8191
  retry_policy: @config.retry_policy
7180
8192
 
7181
- @analytics_admin_service_stub.list_big_query_links request, options do |result, operation|
7182
- result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_big_query_links, "bigquery_links", request, result, options
8193
+ @analytics_admin_service_stub.list_ad_sense_links request, options do |result, operation|
8194
+ result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_ad_sense_links, "adsense_links", request, result, options
7183
8195
  yield result, operation if block_given?
7184
8196
  return result
7185
8197
  end
@@ -7188,47 +8200,43 @@ module Google
7188
8200
  end
7189
8201
 
7190
8202
  ##
7191
- # Returns the enhanced measurement settings for this data stream.
7192
- # Note that the stream must enable enhanced measurement for these settings to
7193
- # take effect.
8203
+ # Lookup for a single EventCreateRule.
7194
8204
  #
7195
- # @overload get_enhanced_measurement_settings(request, options = nil)
7196
- # Pass arguments to `get_enhanced_measurement_settings` via a request object, either of type
7197
- # {::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest} or an equivalent Hash.
8205
+ # @overload get_event_create_rule(request, options = nil)
8206
+ # Pass arguments to `get_event_create_rule` via a request object, either of type
8207
+ # {::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest} or an equivalent Hash.
7198
8208
  #
7199
- # @param request [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest, ::Hash]
8209
+ # @param request [::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest, ::Hash]
7200
8210
  # A request object representing the call parameters. Required. To specify no
7201
8211
  # parameters, or to keep all the default parameter values, pass an empty Hash.
7202
8212
  # @param options [::Gapic::CallOptions, ::Hash]
7203
8213
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7204
8214
  #
7205
- # @overload get_enhanced_measurement_settings(name: nil)
7206
- # Pass arguments to `get_enhanced_measurement_settings` via keyword arguments. Note that at
8215
+ # @overload get_event_create_rule(name: nil)
8216
+ # Pass arguments to `get_event_create_rule` via keyword arguments. Note that at
7207
8217
  # least one keyword argument is required. To specify no parameters, or to keep all
7208
8218
  # the default parameter values, pass an empty Hash as a request object (see above).
7209
8219
  #
7210
8220
  # @param name [::String]
7211
- # Required. The name of the settings to lookup.
7212
- # Format:
7213
- # properties/\\{property}/dataStreams/\\{data_stream}/enhancedMeasurementSettings
7214
- # Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
8221
+ # Required. The name of the EventCreateRule to get.
8222
+ # Example format: properties/123/dataStreams/456/eventCreateRules/789
7215
8223
  # @yield [result, operation] Access the result along with the TransportOperation object
7216
- # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
8224
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule]
7217
8225
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
7218
8226
  #
7219
- # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
8227
+ # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule]
7220
8228
  #
7221
8229
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
7222
- def get_enhanced_measurement_settings request, options = nil
8230
+ def get_event_create_rule request, options = nil
7223
8231
  raise ::ArgumentError, "request must be provided" if request.nil?
7224
8232
 
7225
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest
8233
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest
7226
8234
 
7227
8235
  # Converts hash and nil to an options object
7228
8236
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7229
8237
 
7230
8238
  # Customize the options with defaults
7231
- call_metadata = @config.rpcs.get_enhanced_measurement_settings.metadata.to_h
8239
+ call_metadata = @config.rpcs.get_event_create_rule.metadata.to_h
7232
8240
 
7233
8241
  # Set x-goog-api-client and x-goog-user-project headers
7234
8242
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -7238,15 +8246,15 @@ module Google
7238
8246
 
7239
8247
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7240
8248
 
7241
- options.apply_defaults timeout: @config.rpcs.get_enhanced_measurement_settings.timeout,
8249
+ options.apply_defaults timeout: @config.rpcs.get_event_create_rule.timeout,
7242
8250
  metadata: call_metadata,
7243
- retry_policy: @config.rpcs.get_enhanced_measurement_settings.retry_policy
8251
+ retry_policy: @config.rpcs.get_event_create_rule.retry_policy
7244
8252
 
7245
8253
  options.apply_defaults timeout: @config.timeout,
7246
8254
  metadata: @config.metadata,
7247
8255
  retry_policy: @config.retry_policy
7248
8256
 
7249
- @analytics_admin_service_stub.get_enhanced_measurement_settings request, options do |result, operation|
8257
+ @analytics_admin_service_stub.get_event_create_rule request, options do |result, operation|
7250
8258
  yield result, operation if block_given?
7251
8259
  return result
7252
8260
  end
@@ -7255,50 +8263,52 @@ module Google
7255
8263
  end
7256
8264
 
7257
8265
  ##
7258
- # Updates the enhanced measurement settings for this data stream.
7259
- # Note that the stream must enable enhanced measurement for these settings to
7260
- # take effect.
8266
+ # Lists EventCreateRules on a web data stream.
7261
8267
  #
7262
- # @overload update_enhanced_measurement_settings(request, options = nil)
7263
- # Pass arguments to `update_enhanced_measurement_settings` via a request object, either of type
7264
- # {::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest} or an equivalent Hash.
8268
+ # @overload list_event_create_rules(request, options = nil)
8269
+ # Pass arguments to `list_event_create_rules` via a request object, either of type
8270
+ # {::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest} or an equivalent Hash.
7265
8271
  #
7266
- # @param request [::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest, ::Hash]
8272
+ # @param request [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest, ::Hash]
7267
8273
  # A request object representing the call parameters. Required. To specify no
7268
8274
  # parameters, or to keep all the default parameter values, pass an empty Hash.
7269
8275
  # @param options [::Gapic::CallOptions, ::Hash]
7270
8276
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7271
8277
  #
7272
- # @overload update_enhanced_measurement_settings(enhanced_measurement_settings: nil, update_mask: nil)
7273
- # Pass arguments to `update_enhanced_measurement_settings` via keyword arguments. Note that at
8278
+ # @overload list_event_create_rules(parent: nil, page_size: nil, page_token: nil)
8279
+ # Pass arguments to `list_event_create_rules` via keyword arguments. Note that at
7274
8280
  # least one keyword argument is required. To specify no parameters, or to keep all
7275
8281
  # the default parameter values, pass an empty Hash as a request object (see above).
7276
8282
  #
7277
- # @param enhanced_measurement_settings [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings, ::Hash]
7278
- # Required. The settings to update.
7279
- # The `name` field is used to identify the settings to be updated.
7280
- # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
7281
- # Required. The list of fields to be updated. Field names must be in snake
7282
- # case (e.g., "field_to_update"). Omitted fields will not be updated. To
7283
- # replace the entire entity, use one path with the string "*" to match all
7284
- # fields.
8283
+ # @param parent [::String]
8284
+ # Required. Example format: properties/123/dataStreams/456
8285
+ # @param page_size [::Integer]
8286
+ # The maximum number of resources to return.
8287
+ # If unspecified, at most 50 resources will be returned.
8288
+ # The maximum value is 200 (higher values will be coerced to the maximum).
8289
+ # @param page_token [::String]
8290
+ # A page token, received from a previous `ListEventCreateRules` call. Provide
8291
+ # this to retrieve the subsequent page.
8292
+ #
8293
+ # When paginating, all other parameters provided to `ListEventCreateRules`
8294
+ # must match the call that provided the page token.
7285
8295
  # @yield [result, operation] Access the result along with the TransportOperation object
7286
- # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
8296
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>]
7287
8297
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
7288
8298
  #
7289
- # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings]
8299
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>]
7290
8300
  #
7291
8301
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
7292
- def update_enhanced_measurement_settings request, options = nil
8302
+ def list_event_create_rules request, options = nil
7293
8303
  raise ::ArgumentError, "request must be provided" if request.nil?
7294
8304
 
7295
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest
8305
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest
7296
8306
 
7297
8307
  # Converts hash and nil to an options object
7298
8308
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7299
8309
 
7300
8310
  # Customize the options with defaults
7301
- call_metadata = @config.rpcs.update_enhanced_measurement_settings.metadata.to_h
8311
+ call_metadata = @config.rpcs.list_event_create_rules.metadata.to_h
7302
8312
 
7303
8313
  # Set x-goog-api-client and x-goog-user-project headers
7304
8314
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -7308,15 +8318,16 @@ module Google
7308
8318
 
7309
8319
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7310
8320
 
7311
- options.apply_defaults timeout: @config.rpcs.update_enhanced_measurement_settings.timeout,
8321
+ options.apply_defaults timeout: @config.rpcs.list_event_create_rules.timeout,
7312
8322
  metadata: call_metadata,
7313
- retry_policy: @config.rpcs.update_enhanced_measurement_settings.retry_policy
8323
+ retry_policy: @config.rpcs.list_event_create_rules.retry_policy
7314
8324
 
7315
8325
  options.apply_defaults timeout: @config.timeout,
7316
8326
  metadata: @config.metadata,
7317
8327
  retry_policy: @config.retry_policy
7318
8328
 
7319
- @analytics_admin_service_stub.update_enhanced_measurement_settings request, options do |result, operation|
8329
+ @analytics_admin_service_stub.list_event_create_rules request, options do |result, operation|
8330
+ result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_event_create_rules, "event_create_rules", request, result, options
7320
8331
  yield result, operation if block_given?
7321
8332
  return result
7322
8333
  end
@@ -7325,49 +8336,44 @@ module Google
7325
8336
  end
7326
8337
 
7327
8338
  ##
7328
- # Creates a connected site tag for a Universal Analytics property. You can
7329
- # create a maximum of 20 connected site tags per property.
7330
- # Note: This API cannot be used on GA4 properties.
8339
+ # Creates an EventCreateRule.
7331
8340
  #
7332
- # @overload create_connected_site_tag(request, options = nil)
7333
- # Pass arguments to `create_connected_site_tag` via a request object, either of type
7334
- # {::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest} or an equivalent Hash.
8341
+ # @overload create_event_create_rule(request, options = nil)
8342
+ # Pass arguments to `create_event_create_rule` via a request object, either of type
8343
+ # {::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest} or an equivalent Hash.
7335
8344
  #
7336
- # @param request [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest, ::Hash]
8345
+ # @param request [::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest, ::Hash]
7337
8346
  # A request object representing the call parameters. Required. To specify no
7338
8347
  # parameters, or to keep all the default parameter values, pass an empty Hash.
7339
8348
  # @param options [::Gapic::CallOptions, ::Hash]
7340
8349
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7341
8350
  #
7342
- # @overload create_connected_site_tag(property: nil, connected_site_tag: nil)
7343
- # Pass arguments to `create_connected_site_tag` via keyword arguments. Note that at
8351
+ # @overload create_event_create_rule(parent: nil, event_create_rule: nil)
8352
+ # Pass arguments to `create_event_create_rule` via keyword arguments. Note that at
7344
8353
  # least one keyword argument is required. To specify no parameters, or to keep all
7345
8354
  # the default parameter values, pass an empty Hash as a request object (see above).
7346
8355
  #
7347
- # @param property [::String]
7348
- # The Universal Analytics property to create connected site tags for.
7349
- # This API does not support GA4 properties.
7350
- # Format: properties/\\{universalAnalyticsPropertyId}
7351
- # Example: properties/1234
7352
- # @param connected_site_tag [::Google::Analytics::Admin::V1alpha::ConnectedSiteTag, ::Hash]
7353
- # Required. The tag to add to the Universal Analytics property
8356
+ # @param parent [::String]
8357
+ # Required. Example format: properties/123/dataStreams/456
8358
+ # @param event_create_rule [::Google::Analytics::Admin::V1alpha::EventCreateRule, ::Hash]
8359
+ # Required. The EventCreateRule to create.
7354
8360
  # @yield [result, operation] Access the result along with the TransportOperation object
7355
- # @yieldparam result [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse]
8361
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule]
7356
8362
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
7357
8363
  #
7358
- # @return [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse]
8364
+ # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule]
7359
8365
  #
7360
8366
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
7361
- def create_connected_site_tag request, options = nil
8367
+ def create_event_create_rule request, options = nil
7362
8368
  raise ::ArgumentError, "request must be provided" if request.nil?
7363
8369
 
7364
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest
8370
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest
7365
8371
 
7366
8372
  # Converts hash and nil to an options object
7367
8373
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7368
8374
 
7369
8375
  # Customize the options with defaults
7370
- call_metadata = @config.rpcs.create_connected_site_tag.metadata.to_h
8376
+ call_metadata = @config.rpcs.create_event_create_rule.metadata.to_h
7371
8377
 
7372
8378
  # Set x-goog-api-client and x-goog-user-project headers
7373
8379
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -7377,15 +8383,15 @@ module Google
7377
8383
 
7378
8384
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7379
8385
 
7380
- options.apply_defaults timeout: @config.rpcs.create_connected_site_tag.timeout,
8386
+ options.apply_defaults timeout: @config.rpcs.create_event_create_rule.timeout,
7381
8387
  metadata: call_metadata,
7382
- retry_policy: @config.rpcs.create_connected_site_tag.retry_policy
8388
+ retry_policy: @config.rpcs.create_event_create_rule.retry_policy
7383
8389
 
7384
8390
  options.apply_defaults timeout: @config.timeout,
7385
8391
  metadata: @config.metadata,
7386
8392
  retry_policy: @config.retry_policy
7387
8393
 
7388
- @analytics_admin_service_stub.create_connected_site_tag request, options do |result, operation|
8394
+ @analytics_admin_service_stub.create_event_create_rule request, options do |result, operation|
7389
8395
  yield result, operation if block_given?
7390
8396
  return result
7391
8397
  end
@@ -7394,49 +8400,49 @@ module Google
7394
8400
  end
7395
8401
 
7396
8402
  ##
7397
- # Deletes a connected site tag for a Universal Analytics property.
7398
- # Note: this has no effect on GA4 properties.
8403
+ # Updates an EventCreateRule.
7399
8404
  #
7400
- # @overload delete_connected_site_tag(request, options = nil)
7401
- # Pass arguments to `delete_connected_site_tag` via a request object, either of type
7402
- # {::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest} or an equivalent Hash.
8405
+ # @overload update_event_create_rule(request, options = nil)
8406
+ # Pass arguments to `update_event_create_rule` via a request object, either of type
8407
+ # {::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest} or an equivalent Hash.
7403
8408
  #
7404
- # @param request [::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest, ::Hash]
8409
+ # @param request [::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest, ::Hash]
7405
8410
  # A request object representing the call parameters. Required. To specify no
7406
8411
  # parameters, or to keep all the default parameter values, pass an empty Hash.
7407
8412
  # @param options [::Gapic::CallOptions, ::Hash]
7408
8413
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7409
8414
  #
7410
- # @overload delete_connected_site_tag(property: nil, tag_id: nil)
7411
- # Pass arguments to `delete_connected_site_tag` via keyword arguments. Note that at
8415
+ # @overload update_event_create_rule(event_create_rule: nil, update_mask: nil)
8416
+ # Pass arguments to `update_event_create_rule` via keyword arguments. Note that at
7412
8417
  # least one keyword argument is required. To specify no parameters, or to keep all
7413
8418
  # the default parameter values, pass an empty Hash as a request object (see above).
7414
8419
  #
7415
- # @param property [::String]
7416
- # The Universal Analytics property to delete connected site tags for.
7417
- # This API does not support GA4 properties.
7418
- # Format: properties/\\{universalAnalyticsPropertyId}
7419
- # Example: properties/1234
7420
- # @param tag_id [::String]
7421
- # Tag ID to forward events to. Also known as the Measurement ID, or the
7422
- # "G-ID" (For example: G-12345).
8420
+ # @param event_create_rule [::Google::Analytics::Admin::V1alpha::EventCreateRule, ::Hash]
8421
+ # Required. The EventCreateRule to update.
8422
+ # The resource's `name` field is used to identify the EventCreateRule to be
8423
+ # updated.
8424
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
8425
+ # Required. The list of fields to be updated. Field names must be in snake
8426
+ # case (e.g., "field_to_update"). Omitted fields will not be updated. To
8427
+ # replace the entire entity, use one path with the string "*" to match all
8428
+ # fields.
7423
8429
  # @yield [result, operation] Access the result along with the TransportOperation object
7424
- # @yieldparam result [::Google::Protobuf::Empty]
8430
+ # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule]
7425
8431
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
7426
8432
  #
7427
- # @return [::Google::Protobuf::Empty]
8433
+ # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule]
7428
8434
  #
7429
8435
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
7430
- def delete_connected_site_tag request, options = nil
8436
+ def update_event_create_rule request, options = nil
7431
8437
  raise ::ArgumentError, "request must be provided" if request.nil?
7432
8438
 
7433
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest
8439
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest
7434
8440
 
7435
8441
  # Converts hash and nil to an options object
7436
8442
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7437
8443
 
7438
8444
  # Customize the options with defaults
7439
- call_metadata = @config.rpcs.delete_connected_site_tag.metadata.to_h
8445
+ call_metadata = @config.rpcs.update_event_create_rule.metadata.to_h
7440
8446
 
7441
8447
  # Set x-goog-api-client and x-goog-user-project headers
7442
8448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -7446,15 +8452,15 @@ module Google
7446
8452
 
7447
8453
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7448
8454
 
7449
- options.apply_defaults timeout: @config.rpcs.delete_connected_site_tag.timeout,
8455
+ options.apply_defaults timeout: @config.rpcs.update_event_create_rule.timeout,
7450
8456
  metadata: call_metadata,
7451
- retry_policy: @config.rpcs.delete_connected_site_tag.retry_policy
8457
+ retry_policy: @config.rpcs.update_event_create_rule.retry_policy
7452
8458
 
7453
8459
  options.apply_defaults timeout: @config.timeout,
7454
8460
  metadata: @config.metadata,
7455
8461
  retry_policy: @config.retry_policy
7456
8462
 
7457
- @analytics_admin_service_stub.delete_connected_site_tag request, options do |result, operation|
8463
+ @analytics_admin_service_stub.update_event_create_rule request, options do |result, operation|
7458
8464
  yield result, operation if block_given?
7459
8465
  return result
7460
8466
  end
@@ -7463,47 +8469,43 @@ module Google
7463
8469
  end
7464
8470
 
7465
8471
  ##
7466
- # Lists the connected site tags for a Universal Analytics property. A maximum
7467
- # of 20 connected site tags will be returned. Note: this has no effect on GA4
7468
- # property.
8472
+ # Deletes an EventCreateRule.
7469
8473
  #
7470
- # @overload list_connected_site_tags(request, options = nil)
7471
- # Pass arguments to `list_connected_site_tags` via a request object, either of type
7472
- # {::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest} or an equivalent Hash.
8474
+ # @overload delete_event_create_rule(request, options = nil)
8475
+ # Pass arguments to `delete_event_create_rule` via a request object, either of type
8476
+ # {::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest} or an equivalent Hash.
7473
8477
  #
7474
- # @param request [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest, ::Hash]
8478
+ # @param request [::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest, ::Hash]
7475
8479
  # A request object representing the call parameters. Required. To specify no
7476
8480
  # parameters, or to keep all the default parameter values, pass an empty Hash.
7477
8481
  # @param options [::Gapic::CallOptions, ::Hash]
7478
8482
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
7479
8483
  #
7480
- # @overload list_connected_site_tags(property: nil)
7481
- # Pass arguments to `list_connected_site_tags` via keyword arguments. Note that at
8484
+ # @overload delete_event_create_rule(name: nil)
8485
+ # Pass arguments to `delete_event_create_rule` via keyword arguments. Note that at
7482
8486
  # least one keyword argument is required. To specify no parameters, or to keep all
7483
8487
  # the default parameter values, pass an empty Hash as a request object (see above).
7484
8488
  #
7485
- # @param property [::String]
7486
- # The Universal Analytics property to fetch connected site tags for.
7487
- # This does not work on GA4 properties. A maximum of 20 connected site tags
7488
- # will be returned.
7489
- # Example Format: `properties/1234`
8489
+ # @param name [::String]
8490
+ # Required. Example format:
8491
+ # properties/123/dataStreams/456/eventCreateRules/789
7490
8492
  # @yield [result, operation] Access the result along with the TransportOperation object
7491
- # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse]
8493
+ # @yieldparam result [::Google::Protobuf::Empty]
7492
8494
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
7493
8495
  #
7494
- # @return [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse]
8496
+ # @return [::Google::Protobuf::Empty]
7495
8497
  #
7496
8498
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
7497
- def list_connected_site_tags request, options = nil
8499
+ def delete_event_create_rule request, options = nil
7498
8500
  raise ::ArgumentError, "request must be provided" if request.nil?
7499
8501
 
7500
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest
8502
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest
7501
8503
 
7502
8504
  # Converts hash and nil to an options object
7503
8505
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
7504
8506
 
7505
8507
  # Customize the options with defaults
7506
- call_metadata = @config.rpcs.list_connected_site_tags.metadata.to_h
8508
+ call_metadata = @config.rpcs.delete_event_create_rule.metadata.to_h
7507
8509
 
7508
8510
  # Set x-goog-api-client and x-goog-user-project headers
7509
8511
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -7513,15 +8515,15 @@ module Google
7513
8515
 
7514
8516
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
7515
8517
 
7516
- options.apply_defaults timeout: @config.rpcs.list_connected_site_tags.timeout,
8518
+ options.apply_defaults timeout: @config.rpcs.delete_event_create_rule.timeout,
7517
8519
  metadata: call_metadata,
7518
- retry_policy: @config.rpcs.list_connected_site_tags.retry_policy
8520
+ retry_policy: @config.rpcs.delete_event_create_rule.retry_policy
7519
8521
 
7520
8522
  options.apply_defaults timeout: @config.timeout,
7521
8523
  metadata: @config.metadata,
7522
8524
  retry_policy: @config.retry_policy
7523
8525
 
7524
- @analytics_admin_service_stub.list_connected_site_tags request, options do |result, operation|
8526
+ @analytics_admin_service_stub.delete_event_create_rule request, options do |result, operation|
7525
8527
  yield result, operation if block_given?
7526
8528
  return result
7527
8529
  end
@@ -8143,6 +9145,31 @@ module Google
8143
9145
  #
8144
9146
  attr_reader :delete_expanded_data_set
8145
9147
  ##
9148
+ # RPC-specific configuration for `get_channel_group`
9149
+ # @return [::Gapic::Config::Method]
9150
+ #
9151
+ attr_reader :get_channel_group
9152
+ ##
9153
+ # RPC-specific configuration for `list_channel_groups`
9154
+ # @return [::Gapic::Config::Method]
9155
+ #
9156
+ attr_reader :list_channel_groups
9157
+ ##
9158
+ # RPC-specific configuration for `create_channel_group`
9159
+ # @return [::Gapic::Config::Method]
9160
+ #
9161
+ attr_reader :create_channel_group
9162
+ ##
9163
+ # RPC-specific configuration for `update_channel_group`
9164
+ # @return [::Gapic::Config::Method]
9165
+ #
9166
+ attr_reader :update_channel_group
9167
+ ##
9168
+ # RPC-specific configuration for `delete_channel_group`
9169
+ # @return [::Gapic::Config::Method]
9170
+ #
9171
+ attr_reader :delete_channel_group
9172
+ ##
8146
9173
  # RPC-specific configuration for `set_automated_ga4_configuration_opt_out`
8147
9174
  # @return [::Gapic::Config::Method]
8148
9175
  #
@@ -8187,6 +9214,56 @@ module Google
8187
9214
  # @return [::Gapic::Config::Method]
8188
9215
  #
8189
9216
  attr_reader :list_connected_site_tags
9217
+ ##
9218
+ # RPC-specific configuration for `fetch_connected_ga4_property`
9219
+ # @return [::Gapic::Config::Method]
9220
+ #
9221
+ attr_reader :fetch_connected_ga4_property
9222
+ ##
9223
+ # RPC-specific configuration for `get_ad_sense_link`
9224
+ # @return [::Gapic::Config::Method]
9225
+ #
9226
+ attr_reader :get_ad_sense_link
9227
+ ##
9228
+ # RPC-specific configuration for `create_ad_sense_link`
9229
+ # @return [::Gapic::Config::Method]
9230
+ #
9231
+ attr_reader :create_ad_sense_link
9232
+ ##
9233
+ # RPC-specific configuration for `delete_ad_sense_link`
9234
+ # @return [::Gapic::Config::Method]
9235
+ #
9236
+ attr_reader :delete_ad_sense_link
9237
+ ##
9238
+ # RPC-specific configuration for `list_ad_sense_links`
9239
+ # @return [::Gapic::Config::Method]
9240
+ #
9241
+ attr_reader :list_ad_sense_links
9242
+ ##
9243
+ # RPC-specific configuration for `get_event_create_rule`
9244
+ # @return [::Gapic::Config::Method]
9245
+ #
9246
+ attr_reader :get_event_create_rule
9247
+ ##
9248
+ # RPC-specific configuration for `list_event_create_rules`
9249
+ # @return [::Gapic::Config::Method]
9250
+ #
9251
+ attr_reader :list_event_create_rules
9252
+ ##
9253
+ # RPC-specific configuration for `create_event_create_rule`
9254
+ # @return [::Gapic::Config::Method]
9255
+ #
9256
+ attr_reader :create_event_create_rule
9257
+ ##
9258
+ # RPC-specific configuration for `update_event_create_rule`
9259
+ # @return [::Gapic::Config::Method]
9260
+ #
9261
+ attr_reader :update_event_create_rule
9262
+ ##
9263
+ # RPC-specific configuration for `delete_event_create_rule`
9264
+ # @return [::Gapic::Config::Method]
9265
+ #
9266
+ attr_reader :delete_event_create_rule
8190
9267
 
8191
9268
  # @private
8192
9269
  def initialize parent_rpcs = nil
@@ -8386,6 +9463,16 @@ module Google
8386
9463
  @update_expanded_data_set = ::Gapic::Config::Method.new update_expanded_data_set_config
8387
9464
  delete_expanded_data_set_config = parent_rpcs.delete_expanded_data_set if parent_rpcs.respond_to? :delete_expanded_data_set
8388
9465
  @delete_expanded_data_set = ::Gapic::Config::Method.new delete_expanded_data_set_config
9466
+ get_channel_group_config = parent_rpcs.get_channel_group if parent_rpcs.respond_to? :get_channel_group
9467
+ @get_channel_group = ::Gapic::Config::Method.new get_channel_group_config
9468
+ list_channel_groups_config = parent_rpcs.list_channel_groups if parent_rpcs.respond_to? :list_channel_groups
9469
+ @list_channel_groups = ::Gapic::Config::Method.new list_channel_groups_config
9470
+ create_channel_group_config = parent_rpcs.create_channel_group if parent_rpcs.respond_to? :create_channel_group
9471
+ @create_channel_group = ::Gapic::Config::Method.new create_channel_group_config
9472
+ update_channel_group_config = parent_rpcs.update_channel_group if parent_rpcs.respond_to? :update_channel_group
9473
+ @update_channel_group = ::Gapic::Config::Method.new update_channel_group_config
9474
+ delete_channel_group_config = parent_rpcs.delete_channel_group if parent_rpcs.respond_to? :delete_channel_group
9475
+ @delete_channel_group = ::Gapic::Config::Method.new delete_channel_group_config
8389
9476
  set_automated_ga4_configuration_opt_out_config = parent_rpcs.set_automated_ga4_configuration_opt_out if parent_rpcs.respond_to? :set_automated_ga4_configuration_opt_out
8390
9477
  @set_automated_ga4_configuration_opt_out = ::Gapic::Config::Method.new set_automated_ga4_configuration_opt_out_config
8391
9478
  fetch_automated_ga4_configuration_opt_out_config = parent_rpcs.fetch_automated_ga4_configuration_opt_out if parent_rpcs.respond_to? :fetch_automated_ga4_configuration_opt_out
@@ -8404,6 +9491,26 @@ module Google
8404
9491
  @delete_connected_site_tag = ::Gapic::Config::Method.new delete_connected_site_tag_config
8405
9492
  list_connected_site_tags_config = parent_rpcs.list_connected_site_tags if parent_rpcs.respond_to? :list_connected_site_tags
8406
9493
  @list_connected_site_tags = ::Gapic::Config::Method.new list_connected_site_tags_config
9494
+ fetch_connected_ga4_property_config = parent_rpcs.fetch_connected_ga4_property if parent_rpcs.respond_to? :fetch_connected_ga4_property
9495
+ @fetch_connected_ga4_property = ::Gapic::Config::Method.new fetch_connected_ga4_property_config
9496
+ get_ad_sense_link_config = parent_rpcs.get_ad_sense_link if parent_rpcs.respond_to? :get_ad_sense_link
9497
+ @get_ad_sense_link = ::Gapic::Config::Method.new get_ad_sense_link_config
9498
+ create_ad_sense_link_config = parent_rpcs.create_ad_sense_link if parent_rpcs.respond_to? :create_ad_sense_link
9499
+ @create_ad_sense_link = ::Gapic::Config::Method.new create_ad_sense_link_config
9500
+ delete_ad_sense_link_config = parent_rpcs.delete_ad_sense_link if parent_rpcs.respond_to? :delete_ad_sense_link
9501
+ @delete_ad_sense_link = ::Gapic::Config::Method.new delete_ad_sense_link_config
9502
+ list_ad_sense_links_config = parent_rpcs.list_ad_sense_links if parent_rpcs.respond_to? :list_ad_sense_links
9503
+ @list_ad_sense_links = ::Gapic::Config::Method.new list_ad_sense_links_config
9504
+ get_event_create_rule_config = parent_rpcs.get_event_create_rule if parent_rpcs.respond_to? :get_event_create_rule
9505
+ @get_event_create_rule = ::Gapic::Config::Method.new get_event_create_rule_config
9506
+ list_event_create_rules_config = parent_rpcs.list_event_create_rules if parent_rpcs.respond_to? :list_event_create_rules
9507
+ @list_event_create_rules = ::Gapic::Config::Method.new list_event_create_rules_config
9508
+ create_event_create_rule_config = parent_rpcs.create_event_create_rule if parent_rpcs.respond_to? :create_event_create_rule
9509
+ @create_event_create_rule = ::Gapic::Config::Method.new create_event_create_rule_config
9510
+ update_event_create_rule_config = parent_rpcs.update_event_create_rule if parent_rpcs.respond_to? :update_event_create_rule
9511
+ @update_event_create_rule = ::Gapic::Config::Method.new update_event_create_rule_config
9512
+ delete_event_create_rule_config = parent_rpcs.delete_event_create_rule if parent_rpcs.respond_to? :delete_event_create_rule
9513
+ @delete_event_create_rule = ::Gapic::Config::Method.new delete_event_create_rule_config
8407
9514
 
8408
9515
  yield self if block_given?
8409
9516
  end