google-apis-analyticsadmin_v1alpha 0.33.0 → 0.36.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1011,6 +1011,50 @@ module Google
1011
1011
  execute_or_queue_command(command, &block)
1012
1012
  end
1013
1013
 
1014
+ # Returns a customized report of data access records. The report provides
1015
+ # records of each time a user reads Google Analytics reporting data. Access
1016
+ # records are retained for up to 2 years. Data Access Reports can be requested
1017
+ # for a property. The property must be in Google Analytics 360. This method is
1018
+ # only available to Administrators. These data access records include GA4 UI
1019
+ # Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase
1020
+ # & Admob that can retrieve data from Google Analytics through a linkage. These
1021
+ # records don't include property configuration changes like adding a stream or
1022
+ # changing a property's time zone. For configuration change history, see [
1023
+ # searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/
1024
+ # config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
1025
+ # @param [String] entity
1026
+ # The Data Access Report is requested for this property. For example if "123" is
1027
+ # your GA4 property ID, then entity should be "properties/123".
1028
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaRunAccessReportRequest] google_analytics_admin_v1alpha_run_access_report_request_object
1029
+ # @param [String] fields
1030
+ # Selector specifying which fields to include in a partial response.
1031
+ # @param [String] quota_user
1032
+ # Available to use for quota purposes for server-side applications. Can be any
1033
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1034
+ # @param [Google::Apis::RequestOptions] options
1035
+ # Request-specific options
1036
+ #
1037
+ # @yield [result, err] Result & error if block supplied
1038
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaRunAccessReportResponse] parsed result object
1039
+ # @yieldparam err [StandardError] error object if request failed
1040
+ #
1041
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaRunAccessReportResponse]
1042
+ #
1043
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1044
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1045
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1046
+ def run_property_access_report(entity, google_analytics_admin_v1alpha_run_access_report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1047
+ command = make_simple_command(:post, 'v1alpha/{+entity}:runAccessReport', options)
1048
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaRunAccessReportRequest::Representation
1049
+ command.request_object = google_analytics_admin_v1alpha_run_access_report_request_object
1050
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaRunAccessReportResponse::Representation
1051
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaRunAccessReportResponse
1052
+ command.params['entity'] = entity unless entity.nil?
1053
+ command.query['fields'] = fields unless fields.nil?
1054
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1055
+ execute_or_queue_command(command, &block)
1056
+ end
1057
+
1014
1058
  # Updates attribution settings on a property.
1015
1059
  # @param [String] name
1016
1060
  # Output only. Resource name of this attribution settings resource. Format:
@@ -1129,6 +1173,184 @@ module Google
1129
1173
  execute_or_queue_command(command, &block)
1130
1174
  end
1131
1175
 
1176
+ # Archives an Audience on a property.
1177
+ # @param [String] name
1178
+ # Required. Example format: properties/1234/audiences/5678
1179
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaArchiveAudienceRequest] google_analytics_admin_v1alpha_archive_audience_request_object
1180
+ # @param [String] fields
1181
+ # Selector specifying which fields to include in a partial response.
1182
+ # @param [String] quota_user
1183
+ # Available to use for quota purposes for server-side applications. Can be any
1184
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1185
+ # @param [Google::Apis::RequestOptions] options
1186
+ # Request-specific options
1187
+ #
1188
+ # @yield [result, err] Result & error if block supplied
1189
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
1190
+ # @yieldparam err [StandardError] error object if request failed
1191
+ #
1192
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
1193
+ #
1194
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1195
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1196
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1197
+ def archive_property_audience(name, google_analytics_admin_v1alpha_archive_audience_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1198
+ command = make_simple_command(:post, 'v1alpha/{+name}:archive', options)
1199
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaArchiveAudienceRequest::Representation
1200
+ command.request_object = google_analytics_admin_v1alpha_archive_audience_request_object
1201
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1202
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
1203
+ command.params['name'] = name unless name.nil?
1204
+ command.query['fields'] = fields unless fields.nil?
1205
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1206
+ execute_or_queue_command(command, &block)
1207
+ end
1208
+
1209
+ # Creates an Audience.
1210
+ # @param [String] parent
1211
+ # Required. Example format: properties/1234
1212
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience] google_analytics_admin_v1alpha_audience_object
1213
+ # @param [String] fields
1214
+ # Selector specifying which fields to include in a partial response.
1215
+ # @param [String] quota_user
1216
+ # Available to use for quota purposes for server-side applications. Can be any
1217
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1218
+ # @param [Google::Apis::RequestOptions] options
1219
+ # Request-specific options
1220
+ #
1221
+ # @yield [result, err] Result & error if block supplied
1222
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience] parsed result object
1223
+ # @yieldparam err [StandardError] error object if request failed
1224
+ #
1225
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience]
1226
+ #
1227
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1228
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1229
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1230
+ def create_property_audience(parent, google_analytics_admin_v1alpha_audience_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1231
+ command = make_simple_command(:post, 'v1alpha/{+parent}/audiences', options)
1232
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience::Representation
1233
+ command.request_object = google_analytics_admin_v1alpha_audience_object
1234
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience::Representation
1235
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience
1236
+ command.params['parent'] = parent unless parent.nil?
1237
+ command.query['fields'] = fields unless fields.nil?
1238
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1239
+ execute_or_queue_command(command, &block)
1240
+ end
1241
+
1242
+ # Lookup for a single Audience. Audiences created before 2020 may not be
1243
+ # supported. Default audiences will not show filter definitions.
1244
+ # @param [String] name
1245
+ # Required. The name of the Audience to get. Example format: properties/1234/
1246
+ # audiences/5678
1247
+ # @param [String] fields
1248
+ # Selector specifying which fields to include in a partial response.
1249
+ # @param [String] quota_user
1250
+ # Available to use for quota purposes for server-side applications. Can be any
1251
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1252
+ # @param [Google::Apis::RequestOptions] options
1253
+ # Request-specific options
1254
+ #
1255
+ # @yield [result, err] Result & error if block supplied
1256
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience] parsed result object
1257
+ # @yieldparam err [StandardError] error object if request failed
1258
+ #
1259
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience]
1260
+ #
1261
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1262
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1263
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1264
+ def get_property_audience(name, fields: nil, quota_user: nil, options: nil, &block)
1265
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1266
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience::Representation
1267
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience
1268
+ command.params['name'] = name unless name.nil?
1269
+ command.query['fields'] = fields unless fields.nil?
1270
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1271
+ execute_or_queue_command(command, &block)
1272
+ end
1273
+
1274
+ # Lists Audiences on a property. Audiences created before 2020 may not be
1275
+ # supported. Default audiences will not show filter definitions.
1276
+ # @param [String] parent
1277
+ # Required. Example format: properties/1234
1278
+ # @param [Fixnum] page_size
1279
+ # The maximum number of resources to return. If unspecified, at most 50
1280
+ # resources will be returned. The maximum value is 200 (higher values will be
1281
+ # coerced to the maximum).
1282
+ # @param [String] page_token
1283
+ # A page token, received from a previous `ListAudiences` call. Provide this to
1284
+ # retrieve the subsequent page. When paginating, all other parameters provided
1285
+ # to `ListAudiences` must match the call that provided the page token.
1286
+ # @param [String] fields
1287
+ # Selector specifying which fields to include in a partial response.
1288
+ # @param [String] quota_user
1289
+ # Available to use for quota purposes for server-side applications. Can be any
1290
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1291
+ # @param [Google::Apis::RequestOptions] options
1292
+ # Request-specific options
1293
+ #
1294
+ # @yield [result, err] Result & error if block supplied
1295
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAudiencesResponse] parsed result object
1296
+ # @yieldparam err [StandardError] error object if request failed
1297
+ #
1298
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAudiencesResponse]
1299
+ #
1300
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1301
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1302
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1303
+ def list_property_audiences(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1304
+ command = make_simple_command(:get, 'v1alpha/{+parent}/audiences', options)
1305
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAudiencesResponse::Representation
1306
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAudiencesResponse
1307
+ command.params['parent'] = parent unless parent.nil?
1308
+ command.query['pageSize'] = page_size unless page_size.nil?
1309
+ command.query['pageToken'] = page_token unless page_token.nil?
1310
+ command.query['fields'] = fields unless fields.nil?
1311
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1312
+ execute_or_queue_command(command, &block)
1313
+ end
1314
+
1315
+ # Updates an Audience on a property.
1316
+ # @param [String] name
1317
+ # Output only. The resource name for this Audience resource. Format: properties/`
1318
+ # propertyId`/audiences/`audienceId`
1319
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience] google_analytics_admin_v1alpha_audience_object
1320
+ # @param [String] update_mask
1321
+ # Required. The list of fields to be updated. Field names must be in snake case (
1322
+ # e.g., "field_to_update"). Omitted fields will not be updated. To replace the
1323
+ # entire entity, use one path with the string "*" to match all fields.
1324
+ # @param [String] fields
1325
+ # Selector specifying which fields to include in a partial response.
1326
+ # @param [String] quota_user
1327
+ # Available to use for quota purposes for server-side applications. Can be any
1328
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1329
+ # @param [Google::Apis::RequestOptions] options
1330
+ # Request-specific options
1331
+ #
1332
+ # @yield [result, err] Result & error if block supplied
1333
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience] parsed result object
1334
+ # @yieldparam err [StandardError] error object if request failed
1335
+ #
1336
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience]
1337
+ #
1338
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1339
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1340
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1341
+ def patch_property_audience(name, google_analytics_admin_v1alpha_audience_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1342
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1343
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience::Representation
1344
+ command.request_object = google_analytics_admin_v1alpha_audience_object
1345
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience::Representation
1346
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience
1347
+ command.params['name'] = name unless name.nil?
1348
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1349
+ command.query['fields'] = fields unless fields.nil?
1350
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1351
+ execute_or_queue_command(command, &block)
1352
+ end
1353
+
1132
1354
  # Creates a conversion event with the specified attributes.
1133
1355
  # @param [String] parent
1134
1356
  # Required. The resource name of the parent property where this conversion event
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-analyticsadmin_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-11 00:00:00.000000000 Z
11
+ date: 2022-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-analyticsadmin_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-analyticsadmin_v1alpha/v0.33.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-analyticsadmin_v1alpha/v0.36.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-analyticsadmin_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []