Skip to content

Commit fc96870

Browse files
Google APIscopybara-github
authored andcommitted
feat: add UserProvidedDataSettings resource and GetUserProvidedDataSettings RPC to Google Analytics
chore: update resource name fields to use IDENTIFIER field behavior across Google Analytics resources chore: add plural and singular names to google.api.resource definitions for Google Analytics resources chore: mark page_size and page_token fields as OPTIONAL in Google Analytics list request messages chore: update OAuth scopes for GetUserProvidedDataSettings and GetSubpropertySyncConfig in Google Analytics docs: update documentation for GetReportingIdentitySettings to correctly describe it as returning reporting identity settings in Google Analytics docs: update copyright year to 2026 in Google Analytics proto files PiperOrigin-RevId: 899639582
1 parent 96b171f commit fc96870

9 files changed

Lines changed: 192 additions & 99 deletions

google/analytics/admin/v1alpha/access_report.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/analytics/admin/v1alpha/analytics_admin.proto

Lines changed: 77 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -1602,14 +1602,23 @@ service AnalyticsAdminService {
16021602
option (google.api.method_signature) = "name";
16031603
}
16041604

1605-
// Returns the singleton data retention settings for this property.
1605+
// Returns the reporting identity settings for this property.
16061606
rpc GetReportingIdentitySettings(GetReportingIdentitySettingsRequest)
16071607
returns (ReportingIdentitySettings) {
16081608
option (google.api.http) = {
16091609
get: "/v1alpha/{name=properties/*/reportingIdentitySettings}"
16101610
};
16111611
option (google.api.method_signature) = "name";
16121612
}
1613+
1614+
// Looks up settings related to user-provided data for a property.
1615+
rpc GetUserProvidedDataSettings(GetUserProvidedDataSettingsRequest)
1616+
returns (UserProvidedDataSettings) {
1617+
option (google.api.http) = {
1618+
get: "/v1alpha/{name=properties/*/userProvidedDataSettings}"
1619+
};
1620+
option (google.api.method_signature) = "name";
1621+
}
16131622
}
16141623

16151624
// The request for a Data Access Record Report.
@@ -1750,17 +1759,17 @@ message GetAccountRequest {
17501759

17511760
// Request message for ListAccounts RPC.
17521761
message ListAccountsRequest {
1753-
// The maximum number of resources to return. The service may return
1762+
// Optional. The maximum number of resources to return. The service may return
17541763
// fewer than this value, even if there are additional pages.
17551764
// If unspecified, at most 50 resources will be returned.
17561765
// The maximum value is 200; (higher values will be coerced to the maximum)
1757-
int32 page_size = 1;
1766+
int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL];
17581767

1759-
// A page token, received from a previous `ListAccounts` call.
1768+
// Optional. A page token, received from a previous `ListAccounts` call.
17601769
// Provide this to retrieve the subsequent page.
17611770
// When paginating, all other parameters provided to `ListAccounts` must
17621771
// match the call that provided the page token.
1763-
string page_token = 2;
1772+
string page_token = 2 [(google.api.field_behavior) = OPTIONAL];
17641773

17651774
// Whether to include soft-deleted (ie: "trashed") Accounts in the
17661775
// results. Accounts can be inspected to determine whether they are deleted or
@@ -1854,17 +1863,17 @@ message ListPropertiesRequest {
18541863
// ```
18551864
string filter = 1 [(google.api.field_behavior) = REQUIRED];
18561865

1857-
// The maximum number of resources to return. The service may return
1866+
// Optional. The maximum number of resources to return. The service may return
18581867
// fewer than this value, even if there are additional pages.
18591868
// If unspecified, at most 50 resources will be returned.
18601869
// The maximum value is 200; (higher values will be coerced to the maximum)
1861-
int32 page_size = 2;
1870+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
18621871

1863-
// A page token, received from a previous `ListProperties` call.
1872+
// Optional. A page token, received from a previous `ListProperties` call.
18641873
// Provide this to retrieve the subsequent page.
18651874
// When paginating, all other parameters provided to `ListProperties` must
18661875
// match the call that provided the page token.
1867-
string page_token = 3;
1876+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
18681877

18691878
// Whether to include soft-deleted (ie: "trashed") Properties in the
18701879
// results. Properties can be inspected to determine whether they are deleted
@@ -1958,17 +1967,17 @@ message ListFirebaseLinksRequest {
19581967
}
19591968
];
19601969

1961-
// The maximum number of resources to return. The service may return
1970+
// Optional. The maximum number of resources to return. The service may return
19621971
// fewer than this value, even if there are additional pages.
19631972
// If unspecified, at most 50 resources will be returned.
19641973
// The maximum value is 200; (higher values will be coerced to the maximum)
1965-
int32 page_size = 2;
1974+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
19661975

1967-
// A page token, received from a previous `ListFirebaseLinks` call.
1976+
// Optional. A page token, received from a previous `ListFirebaseLinks` call.
19681977
// Provide this to retrieve the subsequent page.
19691978
// When paginating, all other parameters provided to `ListFirebaseLinks` must
19701979
// match the call that provided the page token.
1971-
string page_token = 3;
1980+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
19721981
}
19731982

19741983
// Response message for ListFirebaseLinks RPC
@@ -2046,17 +2055,17 @@ message ListGoogleAdsLinksRequest {
20462055
}
20472056
];
20482057

2049-
// The maximum number of resources to return.
2058+
// Optional. The maximum number of resources to return.
20502059
// If unspecified, at most 50 resources will be returned.
20512060
// The maximum value is 200 (higher values will be coerced to the maximum).
2052-
int32 page_size = 2;
2061+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
20532062

2054-
// A page token, received from a previous `ListGoogleAdsLinks` call.
2063+
// Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
20552064
// Provide this to retrieve the subsequent page.
20562065
//
20572066
// When paginating, all other parameters provided to `ListGoogleAdsLinks` must
20582067
// match the call that provided the page token.
2059-
string page_token = 3;
2068+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
20602069
}
20612070

20622071
// Response message for ListGoogleAdsLinks RPC.
@@ -2085,17 +2094,17 @@ message GetDataSharingSettingsRequest {
20852094

20862095
// Request message for ListAccountSummaries RPC.
20872096
message ListAccountSummariesRequest {
2088-
// The maximum number of AccountSummary resources to return. The service may
2089-
// return fewer than this value, even if there are additional pages.
2090-
// If unspecified, at most 50 resources will be returned.
2091-
// The maximum value is 200; (higher values will be coerced to the maximum)
2092-
int32 page_size = 1;
2097+
// Optional. The maximum number of AccountSummary resources to return. The
2098+
// service may return fewer than this value, even if there are additional
2099+
// pages. If unspecified, at most 50 resources will be returned. The maximum
2100+
// value is 200; (higher values will be coerced to the maximum)
2101+
int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL];
20932102

2094-
// A page token, received from a previous `ListAccountSummaries` call.
2095-
// Provide this to retrieve the subsequent page.
2096-
// When paginating, all other parameters provided to `ListAccountSummaries`
2097-
// must match the call that provided the page token.
2098-
string page_token = 2;
2103+
// Optional. A page token, received from a previous `ListAccountSummaries`
2104+
// call. Provide this to retrieve the subsequent page. When paginating, all
2105+
// other parameters provided to `ListAccountSummaries` must match the call
2106+
// that provided the page token.
2107+
string page_token = 2 [(google.api.field_behavior) = OPTIONAL];
20992108
}
21002109

21012110
// Response message for ListAccountSummaries RPC.
@@ -2273,16 +2282,17 @@ message ListMeasurementProtocolSecretsRequest {
22732282
}
22742283
];
22752284

2276-
// The maximum number of resources to return.
2285+
// Optional. The maximum number of resources to return.
22772286
// If unspecified, at most 10 resources will be returned.
22782287
// The maximum value is 10. Higher values will be coerced to the maximum.
2279-
int32 page_size = 2;
2288+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
22802289

2281-
// A page token, received from a previous `ListMeasurementProtocolSecrets`
2282-
// call. Provide this to retrieve the subsequent page. When paginating, all
2283-
// other parameters provided to `ListMeasurementProtocolSecrets` must match
2284-
// the call that provided the page token.
2285-
string page_token = 3;
2290+
// Optional. A page token, received from a previous
2291+
// `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
2292+
// subsequent page. When paginating, all other parameters provided to
2293+
// `ListMeasurementProtocolSecrets` must match the call that provided the page
2294+
// token.
2295+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
22862296
}
22872297

22882298
// Response message for ListMeasurementProtocolSecret RPC
@@ -2362,18 +2372,18 @@ message ListSKAdNetworkConversionValueSchemasRequest {
23622372
}
23632373
];
23642374

2365-
// The maximum number of resources to return. The service may return
2375+
// Optional. The maximum number of resources to return. The service may return
23662376
// fewer than this value, even if there are additional pages.
23672377
// If unspecified, at most 50 resources will be returned.
23682378
// The maximum value is 200; (higher values will be coerced to the maximum)
2369-
int32 page_size = 2;
2379+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
23702380

2371-
// A page token, received from a previous
2381+
// Optional. A page token, received from a previous
23722382
// `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
23732383
// subsequent page. When paginating, all other parameters provided to
23742384
// `ListSKAdNetworkConversionValueSchema` must match the call that provided
23752385
// the page token.
2376-
string page_token = 3;
2386+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
23772387
}
23782388

23792389
// Response message for ListSKAdNetworkConversionValueSchemas RPC
@@ -2484,16 +2494,16 @@ message ListConversionEventsRequest {
24842494
}
24852495
];
24862496

2487-
// The maximum number of resources to return.
2497+
// Optional. The maximum number of resources to return.
24882498
// If unspecified, at most 50 resources will be returned.
24892499
// The maximum value is 200; (higher values will be coerced to the maximum)
2490-
int32 page_size = 2;
2500+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
24912501

2492-
// A page token, received from a previous `ListConversionEvents` call.
2493-
// Provide this to retrieve the subsequent page.
2494-
// When paginating, all other parameters provided to `ListConversionEvents`
2495-
// must match the call that provided the page token.
2496-
string page_token = 3;
2502+
// Optional. A page token, received from a previous `ListConversionEvents`
2503+
// call. Provide this to retrieve the subsequent page. When paginating, all
2504+
// other parameters provided to `ListConversionEvents` must match the call
2505+
// that provided the page token.
2506+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
24972507
}
24982508

24992509
// Response message for ListConversionEvents RPC.
@@ -2572,16 +2582,16 @@ message ListKeyEventsRequest {
25722582
}
25732583
];
25742584

2575-
// The maximum number of resources to return.
2585+
// Optional. The maximum number of resources to return.
25762586
// If unspecified, at most 50 resources will be returned.
25772587
// The maximum value is 200; (higher values will be coerced to the maximum)
2578-
int32 page_size = 2;
2588+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
25792589

2580-
// A page token, received from a previous `ListKeyEvents` call.
2590+
// Optional. A page token, received from a previous `ListKeyEvents` call.
25812591
// Provide this to retrieve the subsequent page.
25822592
// When paginating, all other parameters provided to `ListKeyEvents`
25832593
// must match the call that provided the page token.
2584-
string page_token = 3;
2594+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
25852595
}
25862596

25872597
// Response message for ListKeyEvents RPC.
@@ -2907,17 +2917,17 @@ message ListCustomDimensionsRequest {
29072917
}
29082918
];
29092919

2910-
// The maximum number of resources to return.
2920+
// Optional. The maximum number of resources to return.
29112921
// If unspecified, at most 50 resources will be returned.
29122922
// The maximum value is 200 (higher values will be coerced to the maximum).
2913-
int32 page_size = 2;
2923+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
29142924

2915-
// A page token, received from a previous `ListCustomDimensions` call.
2916-
// Provide this to retrieve the subsequent page.
2925+
// Optional. A page token, received from a previous `ListCustomDimensions`
2926+
// call. Provide this to retrieve the subsequent page.
29172927
//
29182928
// When paginating, all other parameters provided to `ListCustomDimensions`
29192929
// must match the call that provided the page token.
2920-
string page_token = 3;
2930+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
29212931
}
29222932

29232933
// Response message for ListCustomDimensions RPC.
@@ -4625,3 +4635,15 @@ message GetReportingIdentitySettingsRequest {
46254635
}
46264636
];
46274637
}
4638+
4639+
// Request message for GetUserProvidedDataSettings RPC
4640+
message GetUserProvidedDataSettingsRequest {
4641+
// Required. The name of the user provided data settings to retrieve.
4642+
// Format: properties/{property}/userProvidedDataSettings
4643+
string name = 1 [
4644+
(google.api.field_behavior) = REQUIRED,
4645+
(google.api.resource_reference) = {
4646+
type: "analyticsadmin.googleapis.com/UserProvidedDataSettings"
4647+
}
4648+
];
4649+
}

google/analytics/admin/v1alpha/analyticsadmin_v1alpha.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ authentication:
212212
canonical_scopes: |-
213213
https://www.googleapis.com/auth/analytics.edit,
214214
https://www.googleapis.com/auth/analytics.readonly
215+
- selector: google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserProvidedDataSettings
216+
oauth:
217+
canonical_scopes: |-
218+
https://www.googleapis.com/auth/analytics.edit,
219+
https://www.googleapis.com/auth/analytics.readonly
215220
- selector: google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccessBindings
216221
oauth:
217222
canonical_scopes: |-

google/analytics/admin/v1alpha/audience.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/analytics/admin/v1alpha/channel_group.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/analytics/admin/v1alpha/event_create_and_edit.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/analytics/admin/v1alpha/expanded_data_set.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)