Skip to content

Commit

Permalink
fix: [analytics-admin] rename the intraday_export_enabled field to …
Browse files Browse the repository at this point in the history
…`enterprise_export_enabled` in the `BigQueryLink` resource (#4530)

* fix: rename the `enterprise_daily_export_enabled` field to `fresh_daily_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

Source-Link: googleapis/googleapis@a9a67de

Source-Link: googleapis/googleapis-gen@31b8966
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFuYWx5dGljcy1hZG1pbi8uT3dsQm90LnlhbWwiLCJoIjoiMzFiODk2NmI2NWQ5MjMyYjViMzk2ZDczYmU2NTc4MDg2ZmZjNjcxOCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Aug 15, 2023
1 parent 338ba13 commit d08dad1
Show file tree
Hide file tree
Showing 13 changed files with 989 additions and 22 deletions.
1 change: 1 addition & 0 deletions packages/google-analytics-admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
| Analytics_admin_service.update_attribution_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js,packages/google-analytics-admin/samples/README.md) |
| Analytics_admin_service.update_audience | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js,packages/google-analytics-admin/samples/README.md) |
| Analytics_admin_service.update_channel_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_channel_group.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_channel_group.js,packages/google-analytics-admin/samples/README.md) |
| Analytics_admin_service.update_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_conversion_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_conversion_event.js,packages/google-analytics-admin/samples/README.md) |
| Analytics_admin_service.update_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js,packages/google-analytics-admin/samples/README.md) |
| Analytics_admin_service.update_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js,packages/google-analytics-admin/samples/README.md) |
| Analytics_admin_service.update_data_retention_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js,packages/google-analytics-admin/samples/README.md) |
Expand Down
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
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
148 changes: 144 additions & 4 deletions packages/google-analytics-admin/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d08dad1

Please sign in to comment.