Skip to content

Commit

Permalink
fix!: rename the enterprise_daily_export_enabled field to `fresh_da…
Browse files Browse the repository at this point in the history
…ily_export_enabled` in the `BigQueryLink` resource

feat: add `UpdateConversionEvent` method to the Admin API v1 alpha
feat: add the `counting_method` field to the `ConversionEvent` type
feat: add the `ConversionCountingMethod` enum

PiperOrigin-RevId: 555379699
  • Loading branch information
Google APIs authored and Copybara-Service committed Aug 10, 2023
1 parent eca156a commit a9a67de
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
1 change: 1 addition & 0 deletions google/analytics/admin/v1alpha/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ load(

csharp_proto_library(
name = "admin_csharp_proto",
extra_opts = [],
deps = [":admin_proto"],
)

Expand Down
24 changes: 24 additions & 0 deletions google/analytics/admin/v1alpha/analytics_admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,16 @@ service AnalyticsAdminService {
option (google.api.method_signature) = "parent,conversion_event";
}

// Updates a conversion event with the specified attributes.
rpc UpdateConversionEvent(UpdateConversionEventRequest)
returns (ConversionEvent) {
option (google.api.http) = {
patch: "/v1alpha/{conversion_event.name=properties/*/conversionEvents/*}"
body: "conversion_event"
};
option (google.api.method_signature) = "conversion_event,update_mask";
}

// Retrieve a single conversion event.
rpc GetConversionEvent(GetConversionEventRequest) returns (ConversionEvent) {
option (google.api.http) = {
Expand Down Expand Up @@ -2243,6 +2253,20 @@ message CreateConversionEventRequest {
];
}

// Request message for UpdateConversionEvent RPC
message UpdateConversionEventRequest {
// Required. The conversion event to update.
// The `name` field is used to identify the settings to be updated.
ConversionEvent conversion_event = 1 [(google.api.field_behavior) = REQUIRED];

// Required. The list of fields to be updated. Field names must be in snake
// case (e.g., "field_to_update"). Omitted fields will not be updated. To
// replace the entire entity, use one path with the string "*" to match all
// fields.
google.protobuf.FieldMask update_mask = 2
[(google.api.field_behavior) = REQUIRED];
}

// Request message for GetConversionEvent RPC
message GetConversionEventRequest {
// Required. The resource name of the conversion event to retrieve.
Expand Down
24 changes: 22 additions & 2 deletions google/analytics/admin/v1alpha/resources.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,20 @@ message ConversionEvent {
pattern: "properties/{property}/conversionEvents/{conversion_event}"
};

// The method by which conversions will be counted across multiple events
// within a session.
enum ConversionCountingMethod {
// Counting method not specified.
CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0;

// Each Event instance is considered a Conversion.
ONCE_PER_EVENT = 1;

// An Event instance is considered a Conversion at most once per session per
// user.
ONCE_PER_SESSION = 2;
}

// Output only. Resource name of this conversion event.
// Format: properties/{property}/conversionEvents/{conversion_event}
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
Expand All @@ -1083,6 +1097,12 @@ message ConversionEvent {
// by property admins. Custom events count towards the maximum number of
// custom conversion events that may be created per property.
bool custom = 5 [(google.api.field_behavior) = OUTPUT_ONLY];

// Optional. The method by which conversions will be counted across multiple
// events within a session. If this value is not provided, it will be set to
// `ONCE_PER_EVENT`.
ConversionCountingMethod counting_method = 6
[(google.api.field_behavior) = OPTIONAL];
}

// Settings values for Google Signals. This is a singleton resource.
Expand Down Expand Up @@ -1559,8 +1579,8 @@ message BigQueryLink {
// If set true, enables streaming export to the linked Google Cloud project.
bool streaming_export_enabled = 5;

// If set true, enables intraday export to the linked Google Cloud project.
bool intraday_export_enabled = 9;
// If set true, enables enterprise export to the linked Google Cloud project.
bool enterprise_export_enabled = 9;

// If set true, exported data will include advertising identifiers for mobile
// app streams.
Expand Down

0 comments on commit a9a67de

Please sign in to comment.