@@ -187,6 +187,50 @@ enum ChangeHistoryResourceType {
187187
188188 // GoogleAdsLink resource
189189 GOOGLE_ADS_LINK = 7 ;
190+
191+ // GoogleSignalsSettings resource
192+ GOOGLE_SIGNALS_SETTINGS = 8 ;
193+
194+ // ConversionEvent resource
195+ CONVERSION_EVENT = 9 ;
196+
197+ // MeasurementProtocolSecret resource
198+ MEASUREMENT_PROTOCOL_SECRET = 10 ;
199+
200+ // CustomDimension resource
201+ CUSTOM_DIMENSION = 11 ;
202+
203+ // CustomMetric resource
204+ CUSTOM_METRIC = 12 ;
205+ }
206+
207+ // Status of the Google Signals settings (i.e., whether this feature has been
208+ // enabled for the property).
209+ enum GoogleSignalsState {
210+ // Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to
211+ // represent that the user has not made an explicit choice.
212+ GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0 ;
213+
214+ // Google Signals is enabled.
215+ GOOGLE_SIGNALS_ENABLED = 1 ;
216+
217+ // Google Signals is disabled.
218+ GOOGLE_SIGNALS_DISABLED = 2 ;
219+ }
220+
221+ // Consent field of the Google Signals settings (i.e., whether the user has
222+ // consented to the Google Signals terms of service.)
223+ enum GoogleSignalsConsent {
224+ // Google Signals consent value defaults to
225+ // GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. This will be treated as
226+ // GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED.
227+ GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0 ;
228+
229+ // Terms of service have been accepted
230+ GOOGLE_SIGNALS_CONSENT_CONSENTED = 2 ;
231+
232+ // Terms of service have not been accepted
233+ GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1 ;
190234}
191235
192236// A resource message representing a Google Analytics account.
@@ -392,11 +436,11 @@ message UserLink {
392436 pattern : "properties/{property}/userLinks/{user_link}"
393437 };
394438
395- // Example format: properties/1234/userLinks/5678
396- string name = 1 ;
439+ // Output only. Example format: properties/1234/userLinks/5678
440+ string name = 1 [ (google.api .field_behavior ) = OUTPUT_ONLY ] ;
397441
398- // Email address of the user to link
399- string email_address = 2 ;
442+ // Immutable. Email address of the user to link
443+ string email_address = 2 [ (google.api .field_behavior ) = IMMUTABLE ] ;
400444
401445 // Roles directly assigned to this user for this account or property.
402446 //
@@ -563,7 +607,7 @@ message GoogleAdsLink {
563607 // Enable personalized advertising features with this integration.
564608 // Automatically publish my Google Analytics audience lists and Google
565609 // Analytics remarketing events/parameters to the linked Google Ads account.
566- // If this field is not set on create/update it will be defaulted to true.
610+ // If this field is not set on create/update, it will be defaulted to true.
567611 google.protobuf.BoolValue ads_personalization_enabled = 5 ;
568612
569613 // Output only. Email address of the user that created the link.
@@ -650,6 +694,28 @@ message PropertySummary {
650694 string display_name = 2 ;
651695}
652696
697+ // A secret value used for sending hits to Measurement Protocol.
698+ message MeasurementProtocolSecret {
699+ option (google.api.resource ) = {
700+ type : "analyticsadmin.googleapis.com/MeasurementProtocolSecret"
701+ pattern : "properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}"
702+ };
703+
704+ // Output only. Resource name of this secret. This secret may be a child of any type of
705+ // stream.
706+ // Format:
707+ // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
708+ string name = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
709+
710+ // Required. Human-readable display name for this secret.
711+ string display_name = 2 [(google.api.field_behavior ) = REQUIRED ];
712+
713+ // Output only. The measurement protocol secret value. Pass this value to the api_secret
714+ // field of the Measurement Protocol API when sending hits to this
715+ // secret's parent property.
716+ string secret_value = 3 [(google.api.field_behavior ) = OUTPUT_ONLY ];
717+ }
718+
653719// A set of changes within a Google Analytics account or its child properties
654720// that resulted from the same cause. Common causes would be updates made in the
655721// Google Analytics UI, changes from customer support, or automatic Google
@@ -704,6 +770,21 @@ message ChangeHistoryChange {
704770
705771 // A snapshot of a GoogleAdsLink resource in change history.
706772 GoogleAdsLink google_ads_link = 7 ;
773+
774+ // A snapshot of a GoogleSignalsSettings resource in change history.
775+ GoogleSignalsSettings google_signals_settings = 8 ;
776+
777+ // A snapshot of a ConversionEvent resource in change history.
778+ ConversionEvent conversion_event = 11 ;
779+
780+ // A snapshot of a MeasurementProtocolSecret resource in change history.
781+ MeasurementProtocolSecret measurement_protocol_secret = 12 ;
782+
783+ // A snapshot of a CustomDimension resource in change history.
784+ CustomDimension custom_dimension = 13 ;
785+
786+ // A snapshot of a CustomMetric resource in change history.
787+ CustomMetric custom_metric = 14 ;
707788 }
708789 }
709790
@@ -721,3 +802,199 @@ message ChangeHistoryChange {
721802 // deleted in this change, this field will be missing.
722803 ChangeHistoryResource resource_after_change = 4 ;
723804}
805+
806+ // A conversion event in a Google Analytics property.
807+ message ConversionEvent {
808+ option (google.api.resource ) = {
809+ type : "analyticsadmin.googleapis.com/ConversionEvent"
810+ pattern : "properties/{property}/conversionEvents/{conversion_event}"
811+ };
812+
813+ // Output only. Resource name of this conversion event.
814+ // Format: properties/{property}/conversionEvents/{conversion_event}
815+ string name = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
816+
817+ // Immutable. The event name for this conversion event.
818+ // Examples: 'click', 'purchase'
819+ string event_name = 2 [(google.api.field_behavior ) = IMMUTABLE ];
820+
821+ // Output only. Time when this conversion event was created in the property.
822+ google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior ) = OUTPUT_ONLY ];
823+
824+ // Output only. If set, this event can currently be deleted via DeleteConversionEvent.
825+ bool is_deletable = 4 [(google.api.field_behavior ) = OUTPUT_ONLY ];
826+ }
827+
828+ // Settings values for Google Signals. This is a singleton resource.
829+ message GoogleSignalsSettings {
830+ option (google.api.resource ) = {
831+ type : "analyticsadmin.googleapis.com/GoogleSignalsSettings"
832+ pattern : "properties/{property}/googleSignalsSettings"
833+ };
834+
835+ // Output only. Resource name of this setting.
836+ // Format: properties/{property_id}/googleSignalsSettings
837+ // Example: "properties/1000/googleSignalsSettings"
838+ string name = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
839+
840+ // Status of this setting.
841+ GoogleSignalsState state = 3 ;
842+
843+ // Output only. Terms of Service acceptance.
844+ GoogleSignalsConsent consent = 4 [(google.api.field_behavior ) = OUTPUT_ONLY ];
845+ }
846+
847+ // A definition for a CustomDimension.
848+ message CustomDimension {
849+ option (google.api.resource ) = {
850+ type : "analyticsadmin.googleapis.com/CustomDimension"
851+ pattern : "properties/{property}/customDimensions"
852+ };
853+
854+ // Valid values for the scope of this dimension.
855+ enum DimensionScope {
856+ // Scope unknown or not specified.
857+ DIMENSION_SCOPE_UNSPECIFIED = 0 ;
858+
859+ // Dimension scoped to an event.
860+ EVENT = 1 ;
861+
862+ // Dimension scoped to a user.
863+ USER = 2 ;
864+ }
865+
866+ // Output only. Resource name for this CustomDimension resource.
867+ // Format: properties/{property}/customDimensions/{customDimension}
868+ string name = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
869+
870+ // Required. Immutable. Tagging parameter name for this custom dimension.
871+ //
872+ // If this is a user-scoped dimension, then this is the user property name.
873+ // If this is an event-scoped dimension, then this is the event parameter
874+ // name.
875+ //
876+ // May only contain alphanumeric and underscore characters, starting with a
877+ // letter. Max length of 24 characters for user-scoped dimensions, 40
878+ // characters for event-scoped dimensions.
879+ string parameter_name = 2 [
880+ (google.api.field_behavior ) = REQUIRED ,
881+ (google.api.field_behavior ) = IMMUTABLE
882+ ];
883+
884+ // Required. Display name for this custom dimension as shown in the Analytics UI.
885+ // Max length of 82 characters, alphanumeric plus space and underscore
886+ // starting with a letter. Legacy system-generated display names may contain
887+ // square brackets, but updates to this field will never permit square
888+ // brackets.
889+ string display_name = 3 [(google.api.field_behavior ) = REQUIRED ];
890+
891+ // Optional. Description for this custom dimension. Max length of 150 characters.
892+ string description = 4 [(google.api.field_behavior ) = OPTIONAL ];
893+
894+ // Required. Immutable. The scope of this dimension.
895+ DimensionScope scope = 5 [
896+ (google.api.field_behavior ) = REQUIRED ,
897+ (google.api.field_behavior ) = IMMUTABLE
898+ ];
899+
900+ // Optional. If set to true, sets this dimension as NPA and excludes it from ads
901+ // personalization.
902+ //
903+ // This is currently only supported by user-scoped custom dimensions.
904+ bool disallow_ads_personalization = 6 [(google.api.field_behavior ) = OPTIONAL ];
905+ }
906+
907+ // A definition for a custom metric.
908+ message CustomMetric {
909+ option (google.api.resource ) = {
910+ type : "analyticsadmin.googleapis.com/CustomMetric"
911+ pattern : "properties/{property}/customMetrics"
912+ };
913+
914+ // Possible types of representing the custom metric's value.
915+ //
916+ // Currency representation may change in the future, requiring a breaking API
917+ // change.
918+ enum MeasurementUnit {
919+ // MeasurementUnit unspecified or missing.
920+ MEASUREMENT_UNIT_UNSPECIFIED = 0 ;
921+
922+ // This metric uses default units.
923+ STANDARD = 1 ;
924+
925+ // This metric measures a currency.
926+ CURRENCY = 2 ;
927+
928+ // This metric measures feet.
929+ FEET = 3 ;
930+
931+ // This metric measures meters.
932+ METERS = 4 ;
933+
934+ // This metric measures kilometers.
935+ KILOMETERS = 5 ;
936+
937+ // This metric measures miles.
938+ MILES = 6 ;
939+
940+ // This metric measures milliseconds.
941+ MILLISECONDS = 7 ;
942+
943+ // This metric measures seconds.
944+ SECONDS = 8 ;
945+
946+ // This metric measures minutes.
947+ MINUTES = 9 ;
948+
949+ // This metric measures hours.
950+ HOURS = 10 ;
951+ }
952+
953+ // The scope of this metric.
954+ enum MetricScope {
955+ // Scope unknown or not specified.
956+ METRIC_SCOPE_UNSPECIFIED = 0 ;
957+
958+ // Metric scoped to an event.
959+ EVENT = 1 ;
960+ }
961+
962+ // Output only. Resource name for this CustomMetric resource.
963+ // Format: properties/{property}/customMetrics/{customMetric}
964+ string name = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
965+
966+ // Required. Immutable. Tagging name for this custom metric.
967+ //
968+ // If this is an event-scoped metric, then this is the event parameter
969+ // name.
970+ //
971+ // May only contain alphanumeric and underscore charactes, starting with a
972+ // letter. Max length of 40 characters for event-scoped metrics.
973+ string parameter_name = 2 [
974+ (google.api.field_behavior ) = REQUIRED ,
975+ (google.api.field_behavior ) = IMMUTABLE
976+ ];
977+
978+ // Required. Display name for this custom metric as shown in the Analytics UI.
979+ // Max length of 82 characters, alphanumeric plus space and underscore
980+ // starting with a letter. Legacy system-generated display names may contain
981+ // square brackets, but updates to this field will never permit square
982+ // brackets.
983+ string display_name = 3 [(google.api.field_behavior ) = REQUIRED ];
984+
985+ // Optional. Description for this custom dimension.
986+ // Max length of 150 characters.
987+ string description = 4 [(google.api.field_behavior ) = OPTIONAL ];
988+
989+ // Required. Immutable. The type for the custom metric's value.
990+ MeasurementUnit measurement_unit = 5 [
991+ (google.api.field_behavior ) = REQUIRED ,
992+ (google.api.field_behavior ) = IMMUTABLE
993+ ];
994+
995+ // Required. Immutable. The scope of this custom metric.
996+ MetricScope scope = 6 [
997+ (google.api.field_behavior ) = REQUIRED ,
998+ (google.api.field_behavior ) = IMMUTABLE
999+ ];
1000+ }
0 commit comments