|
1 | | -// Copyright 2022 Google LLC |
| 1 | +// Copyright 2023 Google LLC |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
@@ -918,6 +918,10 @@ service AnalyticsAdminService { |
918 | 918 | option (google.api.http) = { |
919 | 919 | post: "/v1alpha/{entity=properties/*}:runAccessReport" |
920 | 920 | body: "*" |
| 921 | + additional_bindings { |
| 922 | + post: "/v1alpha/{entity=accounts/*}:runAccessReport" |
| 923 | + body: "*" |
| 924 | + } |
921 | 925 | }; |
922 | 926 | } |
923 | 927 |
|
@@ -1123,13 +1127,75 @@ service AnalyticsAdminService { |
1123 | 1127 | }; |
1124 | 1128 | option (google.api.method_signature) = "parent"; |
1125 | 1129 | } |
| 1130 | + |
| 1131 | + // Returns the enhanced measurement settings for this data stream. |
| 1132 | + // Note that the stream must enable enhanced measurement for these settings to |
| 1133 | + // take effect. |
| 1134 | + rpc GetEnhancedMeasurementSettings(GetEnhancedMeasurementSettingsRequest) |
| 1135 | + returns (EnhancedMeasurementSettings) { |
| 1136 | + option (google.api.http) = { |
| 1137 | + get: "/v1alpha/{name=properties/*/dataStreams/*/enhancedMeasurementSettings}" |
| 1138 | + }; |
| 1139 | + option (google.api.method_signature) = "name"; |
| 1140 | + } |
| 1141 | + |
| 1142 | + // Updates the enhanced measurement settings for this data stream. |
| 1143 | + // Note that the stream must enable enhanced measurement for these settings to |
| 1144 | + // take effect. |
| 1145 | + rpc UpdateEnhancedMeasurementSettings( |
| 1146 | + UpdateEnhancedMeasurementSettingsRequest) |
| 1147 | + returns (EnhancedMeasurementSettings) { |
| 1148 | + option (google.api.http) = { |
| 1149 | + patch: "/v1alpha/{enhanced_measurement_settings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}" |
| 1150 | + body: "enhanced_measurement_settings" |
| 1151 | + }; |
| 1152 | + option (google.api.method_signature) = |
| 1153 | + "enhanced_measurement_settings,update_mask"; |
| 1154 | + } |
| 1155 | + |
| 1156 | + // Creates a connected site tag for a Universal Analytics property. You can |
| 1157 | + // create a maximum of 20 connected site tags per property. |
| 1158 | + // Note: This API cannot be used on GA4 properties. |
| 1159 | + rpc CreateConnectedSiteTag(CreateConnectedSiteTagRequest) |
| 1160 | + returns (CreateConnectedSiteTagResponse) { |
| 1161 | + option (google.api.http) = { |
| 1162 | + post: "/v1alpha/properties:createConnectedSiteTag" |
| 1163 | + body: "*" |
| 1164 | + }; |
| 1165 | + } |
| 1166 | + |
| 1167 | + // Deletes a connected site tag for a Universal Analytics property. |
| 1168 | + // Note: this has no effect on GA4 properties. |
| 1169 | + rpc DeleteConnectedSiteTag(DeleteConnectedSiteTagRequest) |
| 1170 | + returns (google.protobuf.Empty) { |
| 1171 | + option (google.api.http) = { |
| 1172 | + post: "/v1alpha/properties:deleteConnectedSiteTag" |
| 1173 | + body: "*" |
| 1174 | + }; |
| 1175 | + } |
| 1176 | + |
| 1177 | + // Lists the connected site tags for a Universal Analytics property. A maximum |
| 1178 | + // of 20 connected site tags will be returned. Note: this has no effect on GA4 |
| 1179 | + // property. |
| 1180 | + rpc ListConnectedSiteTags(ListConnectedSiteTagsRequest) |
| 1181 | + returns (ListConnectedSiteTagsResponse) { |
| 1182 | + option (google.api.http) = { |
| 1183 | + post: "/v1alpha/properties:listConnectedSiteTags" |
| 1184 | + body: "*" |
| 1185 | + }; |
| 1186 | + } |
1126 | 1187 | } |
1127 | 1188 |
|
1128 | 1189 | // The request for a Data Access Record Report. |
1129 | 1190 | message RunAccessReportRequest { |
1130 | | - // The Data Access Report is requested for this property. |
1131 | | - // For example if "123" is your GA4 property ID, then entity should be |
1132 | | - // "properties/123". |
| 1191 | + // The Data Access Report supports requesting at the property level or account |
| 1192 | + // level. If requested at the account level, Data Access Reports include all |
| 1193 | + // access for all properties under that account. |
| 1194 | + // |
| 1195 | + // To request at the property level, entity should be for example |
| 1196 | + // 'properties/123' if "123" is your GA4 property ID. To request at the |
| 1197 | + // account level, entity should be for example 'accounts/1234' if "1234" is |
| 1198 | + // your GA4 Account ID. |
1133 | 1199 | string entity = 1; |
1134 | 1200 |
|
1135 | 1201 | // The dimensions requested and displayed in the response. Requests are |
@@ -1195,7 +1261,8 @@ message RunAccessReportRequest { |
1195 | 1261 | repeated AccessOrderBy order_bys = 10; |
1196 | 1262 |
|
1197 | 1263 | // Toggles whether to return the current state of this Analytics Property's |
1198 | | - // quota. Quota is returned in [AccessQuota](#AccessQuota). |
| 1264 | + // quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level |
| 1265 | + // requests, this field must be false. |
1199 | 1266 | bool return_entity_quota = 11; |
1200 | 1267 | } |
1201 | 1268 |
|
@@ -1224,7 +1291,8 @@ message RunAccessReportResponse { |
1224 | 1291 | // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). |
1225 | 1292 | int32 row_count = 4; |
1226 | 1293 |
|
1227 | | - // The quota state for this Analytics property including this request. |
| 1294 | + // The quota state for this Analytics property including this request. This |
| 1295 | + // field doesn't work with account-level requests. |
1228 | 1296 | AccessQuota quota = 5; |
1229 | 1297 | } |
1230 | 1298 |
|
@@ -1304,7 +1372,7 @@ message ProvisionAccountTicketRequest { |
1304 | 1372 | Account account = 1; |
1305 | 1373 |
|
1306 | 1374 | // Redirect URI where the user will be sent after accepting Terms of Service. |
1307 | | - // Must be configured in Developers Console as a Redirect URI. |
| 1375 | + // Must be configured in Cloud Console as a Redirect URI. |
1308 | 1376 | string redirect_uri = 2; |
1309 | 1377 | } |
1310 | 1378 |
|
@@ -2896,8 +2964,9 @@ message UpdateAccessBindingRequest { |
2896 | 2964 | // Request message for BatchUpdateAccessBindings RPC. |
2897 | 2965 | message BatchUpdateAccessBindingsRequest { |
2898 | 2966 | // Required. The account or property that owns the access bindings. The parent |
2899 | | - // field in the UpdateAccessBindingRequest messages must either be empty or |
2900 | | - // match this field. Formats: |
| 2967 | + // of all provided AccessBinding in UpdateAccessBindingRequest messages must |
| 2968 | + // match this field. |
| 2969 | + // Formats: |
2901 | 2970 | // - accounts/{account} |
2902 | 2971 | // - properties/{property} |
2903 | 2972 | string parent = 1 [ |
@@ -2935,8 +3004,8 @@ message DeleteAccessBindingRequest { |
2935 | 3004 | // Request message for BatchDeleteAccessBindings RPC. |
2936 | 3005 | message BatchDeleteAccessBindingsRequest { |
2937 | 3006 | // Required. The account or property that owns the access bindings. The parent |
2938 | | - // field in the DeleteAccessBindingRequest messages must either be empty or |
2939 | | - // match this field. Formats: |
| 3007 | + // of all provided values for the 'names' field in DeleteAccessBindingRequest |
| 3008 | + // messages must match this field. Formats: |
2940 | 3009 | // - accounts/{account} |
2941 | 3010 | // - properties/{property} |
2942 | 3011 | string parent = 1 [ |
@@ -3119,3 +3188,77 @@ message ListBigQueryLinksResponse { |
3119 | 3188 | // If this field is omitted, there are no subsequent pages. |
3120 | 3189 | string next_page_token = 2; |
3121 | 3190 | } |
| 3191 | + |
| 3192 | +// Request message for GetEnhancedMeasurementSettings RPC. |
| 3193 | +message GetEnhancedMeasurementSettingsRequest { |
| 3194 | + // Required. The name of the settings to lookup. |
| 3195 | + // Format: |
| 3196 | + // properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings |
| 3197 | + // Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" |
| 3198 | + string name = 1 [ |
| 3199 | + (google.api.field_behavior) = REQUIRED, |
| 3200 | + (google.api.resource_reference) = { |
| 3201 | + type: "analyticsadmin.googleapis.com/EnhancedMeasurementSettings" |
| 3202 | + } |
| 3203 | + ]; |
| 3204 | +} |
| 3205 | + |
| 3206 | +// Request message for UpdateEnhancedMeasurementSettings RPC. |
| 3207 | +message UpdateEnhancedMeasurementSettingsRequest { |
| 3208 | + // Required. The settings to update. |
| 3209 | + // The `name` field is used to identify the settings to be updated. |
| 3210 | + EnhancedMeasurementSettings enhanced_measurement_settings = 1 |
| 3211 | + [(google.api.field_behavior) = REQUIRED]; |
| 3212 | + |
| 3213 | + // Required. The list of fields to be updated. Field names must be in snake |
| 3214 | + // case (e.g., "field_to_update"). Omitted fields will not be updated. To |
| 3215 | + // replace the entire entity, use one path with the string "*" to match all |
| 3216 | + // fields. |
| 3217 | + google.protobuf.FieldMask update_mask = 2 |
| 3218 | + [(google.api.field_behavior) = REQUIRED]; |
| 3219 | +} |
| 3220 | + |
| 3221 | +// Request message for CreateConnectedSiteTag RPC. |
| 3222 | +message CreateConnectedSiteTagRequest { |
| 3223 | + // The Universal Analytics property to create connected site tags for. |
| 3224 | + // This API does not support GA4 properties. |
| 3225 | + // Format: properties/{universalAnalyticsPropertyId} |
| 3226 | + // Example: properties/1234 |
| 3227 | + string property = 1; |
| 3228 | + |
| 3229 | + // Required. The tag to add to the Universal Analytics property |
| 3230 | + ConnectedSiteTag connected_site_tag = 2 |
| 3231 | + [(google.api.field_behavior) = REQUIRED]; |
| 3232 | +} |
| 3233 | + |
| 3234 | +// Response message for CreateConnectedSiteTag RPC. |
| 3235 | +message CreateConnectedSiteTagResponse {} |
| 3236 | + |
| 3237 | +// Request message for DeleteConnectedSiteTag RPC. |
| 3238 | +message DeleteConnectedSiteTagRequest { |
| 3239 | + // The Universal Analytics property to delete connected site tags for. |
| 3240 | + // This API does not support GA4 properties. |
| 3241 | + // Format: properties/{universalAnalyticsPropertyId} |
| 3242 | + // Example: properties/1234 |
| 3243 | + string property = 1; |
| 3244 | + |
| 3245 | + // Tag ID to forward events to. Also known as the Measurement ID, or the |
| 3246 | + // "G-ID" (For example: G-12345). |
| 3247 | + string tag_id = 2; |
| 3248 | +} |
| 3249 | + |
| 3250 | +// Request message for ListConnectedSiteTags RPC. |
| 3251 | +message ListConnectedSiteTagsRequest { |
| 3252 | + // The Universal Analytics property to fetch connected site tags for. |
| 3253 | + // This does not work on GA4 properties. A maximum of 20 connected site tags |
| 3254 | + // will be returned. |
| 3255 | + // Example Format: `properties/1234` |
| 3256 | + string property = 1; |
| 3257 | +} |
| 3258 | + |
| 3259 | +// Response message for ListConnectedSiteTags RPC. |
| 3260 | +message ListConnectedSiteTagsResponse { |
| 3261 | + // The site tags for the Universal Analytics property. A maximum of 20 |
| 3262 | + // connected site tags will be returned. |
| 3263 | + repeated ConnectedSiteTag connected_site_tags = 1; |
| 3264 | +} |
0 commit comments