From 631b9007c1d4fda977dd14a665d2dbffb2a451c5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 29 Mar 2022 23:16:11 +0000 Subject: [PATCH 1/8] chore(main): release 0.11.10-SNAPSHOT (#461) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 2a2e988d..d4031e66 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.9 + 0.11.10-SNAPSHOT pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.9 + 0.11.10-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.9 + 0.11.10-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.9 + 0.11.10-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 653edb6a..13d88df1 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.9 + 0.11.10-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.9 + 0.11.10-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 0cd9ee37..2a95477d 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.9 + 0.11.10-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.9 + 0.11.10-SNAPSHOT diff --git a/pom.xml b/pom.xml index d17427b4..a6b7e3c1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.9 + 0.11.10-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.9 + 0.11.10-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.9 + 0.11.10-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.9 + 0.11.10-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index decf9262..d5bd1820 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.9 + 0.11.10-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.9 + 0.11.10-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 95feba66..cbf29c1d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.9 + 0.11.10-SNAPSHOT diff --git a/versions.txt b/versions.txt index 410d7d0d..a5bfa712 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.9:0.11.9 -grpc-google-analytics-data-v1beta:0.11.9:0.11.9 -proto-google-analytics-data-v1beta:0.11.9:0.11.9 +google-analytics-data:0.11.9:0.11.10-SNAPSHOT +grpc-google-analytics-data-v1beta:0.11.9:0.11.10-SNAPSHOT +proto-google-analytics-data-v1beta:0.11.9:0.11.10-SNAPSHOT From dd988323d4d60529a47e9fda00cb2b404e76b17e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 18:48:14 +0200 Subject: [PATCH 2/8] chore(deps): update dependency com.google.cloud:libraries-bom to v25.1.0 (#464) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.0.0` -> `25.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/compatibility-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/confidence-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- README.md | 6 +++--- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c3444c1a..c766067d 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.11.8 + 0.11.9 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.11.8' +implementation 'com.google.analytics:google-analytics-data:0.11.9' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.8" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.9" ``` ## Authentication diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index cbf29c1d..d6874674 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 45dc890f..fd74b620 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import From bdd345f0bd61ddef3d43c6d7ef591a539f016dcd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 4 Apr 2022 21:00:17 +0200 Subject: [PATCH 3/8] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.11.5 (#440) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.11.4` -> `0.11.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.5/compatibility-slim/0.11.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.5/confidence-slim/0.11.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-data ### [`v0.11.5`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0115-httpsgithubcomgoogleapisjava-analytics-datacomparev0114v0115-2022-03-02) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.4...v0.11.5)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 7984fd8f49d9107603d10587294a1bfdb6564083 Mon Sep 17 00:00:00 2001 From: Anwesha Date: Mon, 4 Apr 2022 15:47:37 -0700 Subject: [PATCH 4/8] samples: add Java samples for runReport method (#458) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * A copy sample to test fork process * Adds sample RunReportSample * Modifies runReport sample to have headers printed * Addresses comment differences inbetween python and java sample * Changes println to printf for consistency * Test for run report * Fixes a matching tag * Fixes checkstyle violation * -Another commit to fix checkstyle violations * Changes to linting * Adds RunReportWithAggregation sample * Fixes duplicate comments with property ID for Java samples * Adds tests for java samples and completes unfinished samples * Fixes printing error discrepancy in RunReportSample and linting errors * Removes deleted files with incorrect naming conventions * Modifies documentation for cohorts sample in java * docs: fixes comment for cohorts sample * Makes suggested review edits * 🦉 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 --- README.md | 2 + .../example/analytics/QuickstartSample.java | 8 +- .../example/analytics/RunReportSample.java | 9 +- .../RunReportWithAggregationsSample.java | 82 ++++++++++++++++ .../analytics/RunReportWithCohortsSample.java | 97 +++++++++++++++++++ .../RunReportWithAggregationsSampleTest.java | 54 +++++++++++ .../RunReportWithCohortsSampleTest.java | 54 +++++++++++ 7 files changed, 291 insertions(+), 15 deletions(-) create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithAggregationsSampleTest.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithCohortsSampleTest.java diff --git a/README.md b/README.md index c766067d..12bfdbe7 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-analytics-dat | Quickstart Json Credentials Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/QuickstartJsonCredentialsSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/QuickstartJsonCredentialsSample.java) | | Quickstart Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java) | | Run Report Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportSample.java) | +| Run Report With Aggregations Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java) | +| Run Report With Cohorts Sample | [source code](https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-analytics-data&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java) | diff --git a/samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java b/samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java index 32983df9..7186562a 100644 --- a/samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java +++ b/samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -52,12 +52,6 @@ public static void main(String... args) throws Exception { // This is an example snippet that calls the Google Analytics Data API and runs a simple report // on the provided GA4 property id. static void sampleRunReport(String propertyId) throws Exception { - /** - * TODO(developer): Uncomment this variable and replace with your Google Analytics 4 property ID - * before running the sample. - */ - // propertyId = "YOUR-GA4-PROPERTY-ID"; - // [START analyticsdata_initialize] // Using a default constructor instructs the client to use the credentials // specified in GOOGLE_APPLICATION_CREDENTIALS environment variable. diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java index 1db677f6..0dbb8c16 100644 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java @@ -23,8 +23,6 @@ https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport for more information. -This application demonstrates the usage of the Analytics Data API using service account credentials. - Before you start the application, please review the comments starting with "TODO(developer)" and update the code to use correct values. @@ -58,11 +56,6 @@ public static void main(String... args) throws Exception { // Runs a report of active users grouped by country. static void sampleRunReport(String propertyId) throws Exception { - /** - * TODO(developer): Uncomment this variable and replace with your Google Analytics 4 property ID - * before running the sample. - */ - // propertyId = "YOUR-GA4-PROPERTY-ID"; // Using a default constructor instructs the client to use the credentials // specified in GOOGLE_APPLICATION_CREDENTIALS environment variable. @@ -92,7 +85,7 @@ static void printRunResponseResponse(RunReportResponse response) { } for (MetricHeader header : response.getMetricHeadersList()) { - System.out.printf("Metric header name: %s%n", header.getName()); + System.out.printf("Metric header name: %s (%s)%n", header.getName(), header.getType()); } // [END analyticsdata_print_run_report_response_header] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java new file mode 100644 index 00000000..55d6a88d --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java @@ -0,0 +1,82 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.analytics; + +/* Google Analytics Data API sample application demonstrating the usage of +metric aggregations in a report. + +See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.metric_aggregations +for more information. + +Before you start the application, please review the comments starting with +"TODO(developer)" and update the code to use correct values. + +To run this sample using Maven: + cd java-analytics-data/samples/snippets + mvn compile + mvn exec:java -Dexec.mainClass="com.example.analytics.RunReportWithAggregationsSample" + */ + +// [START analyticsdata_run_report_with_aggregations] +import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; +import com.google.analytics.data.v1beta.DateRange; +import com.google.analytics.data.v1beta.Dimension; +import com.google.analytics.data.v1beta.Metric; +import com.google.analytics.data.v1beta.MetricAggregation; +import com.google.analytics.data.v1beta.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; +import java.util.ArrayList; + +public class RunReportWithAggregationsSample { + + public static void main(String... args) throws Exception { + /** + * TODO(developer): Replace this variable with your Google Analytics 4 property ID before + * running the sample. + */ + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunReportWithAggregations(propertyId); + } + + // Runs a report which includes total, maximum and minimum values for each metric. + static void sampleRunReportWithAggregations(String propertyId) throws Exception { + // Using a default constructor instructs the client to use the credentials + // specified in GOOGLE_APPLICATION_CREDENTIALS environment variable. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDimensions(Dimension.newBuilder().setName("country")) + .addMetrics(Metric.newBuilder().setName("sessions")) + .addDateRanges(DateRange.newBuilder().setStartDate("365daysAgo").setEndDate("today")) + .addAllMetricAggregations( + new ArrayList() { + { + add(MetricAggregation.TOTAL); + add(MetricAggregation.MAXIMUM); + add(MetricAggregation.MINIMUM); + } + }) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + RunReportSample.printRunResponseResponse(response); + } + } +} +// [END analyticsdata_run_report_with_aggregations] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java new file mode 100644 index 00000000..510aab60 --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java @@ -0,0 +1,97 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.analytics; + +/* Google Analytics Data API sample application demonstrating the usage of +cohort specification in a report. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.cohort_spec +for more information. + +Before you start the application, please review the comments starting with +"TODO(developer)" and update the code to use correct values. + +To run this sample using Maven: + cd java-analytics-data/samples/snippets + mvn compile + mvn exec:java -Dexec.mainClass="com.example.analytics.RunReportWithCohortsSample" + */ + +// [START analyticsdata_run_report_with_cohorts] +import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; +import com.google.analytics.data.v1beta.Cohort; +import com.google.analytics.data.v1beta.CohortSpec; +import com.google.analytics.data.v1beta.CohortsRange; +import com.google.analytics.data.v1beta.DateRange; +import com.google.analytics.data.v1beta.Dimension; +import com.google.analytics.data.v1beta.Metric; +import com.google.analytics.data.v1beta.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; + +public class RunReportWithCohortsSample { + + public static void main(String... args) throws Exception { + /** + * TODO(developer): Replace this variable with your Google Analytics 4 property ID before + * running the sample. + */ + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunReportWithCohorts(propertyId); + } + + // Runs a report on a cohort of users whose first session happened on the + // same week. The number of active users and user retention rate is calculated + // for the cohort using WEEKLY granularity. + static void sampleRunReportWithCohorts(String propertyId) throws Exception { + // Using a default constructor instructs the client to use the credentials + // specified in GOOGLE_APPLICATION_CREDENTIALS environment variable. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDimensions(Dimension.newBuilder().setName("cohort")) + .addDimensions(Dimension.newBuilder().setName("cohortNthWeek")) + .addMetrics(Metric.newBuilder().setName("cohortActiveUsers")) + .addMetrics( + Metric.newBuilder() + .setName("cohortRetentionRate") + .setExpression("cohortActiveUsers/cohortTotalUsers")) + .setCohortSpec( + CohortSpec.newBuilder() + .addCohorts( + Cohort.newBuilder() + .setDimension("firstSessionDate") + .setName("cohort") + .setDateRange( + DateRange.newBuilder() + .setStartDate("2021-01-03") + .setEndDate("2021-01-09"))) + .setCohortsRange( + CohortsRange.newBuilder() + .setStartOffset(0) + .setEndOffset(4) + .setGranularity(CohortsRange.Granularity.WEEKLY))) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + RunReportSample.printRunResponseResponse(response); + } + } +} +// [END analyticsdata_run_report_with_cohorts] diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithAggregationsSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithAggregationsSampleTest.java new file mode 100644 index 00000000..566dbbb8 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithAggregationsSampleTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.analytics; + +import static com.google.common.truth.Truth.assertThat; + +import java.io.ByteArrayOutputStream; +import java.io.PrintStream; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for the RunReportWithAggregations sample. */ +@RunWith(JUnit4.class) +public class RunReportWithAggregationsSampleTest { + + private String ga4PropertyId = + System.getProperty("analyticsdata.quickstart.ga4PropertyId", "222596558"); + + private String runSample(String ga4PropertyId) throws Exception { + PrintStream stdOut = System.out; + ByteArrayOutputStream bout = new ByteArrayOutputStream(); + PrintStream out = new PrintStream(bout); + System.setOut(out); + + // Run the test using default system credentials. + RunReportWithAggregationsSample.sampleRunReportWithAggregations(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportWithAggregations() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithCohortsSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithCohortsSampleTest.java new file mode 100644 index 00000000..c018d4c7 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithCohortsSampleTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.analytics; + +import static com.google.common.truth.Truth.assertThat; + +import java.io.ByteArrayOutputStream; +import java.io.PrintStream; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Tests for the RunReportWithCohorts sample. */ +@RunWith(JUnit4.class) +public class RunReportWithCohortsSampleTest { + + private String ga4PropertyId = + System.getProperty("analyticsdata.quickstart.ga4PropertyId", "222596558"); + + private String runSample(String ga4PropertyId) throws Exception { + PrintStream stdOut = System.out; + ByteArrayOutputStream bout = new ByteArrayOutputStream(); + PrintStream out = new PrintStream(bout); + System.setOut(out); + + // Run the test using default system credentials. + RunReportWithCohortsSample.sampleRunReportWithCohorts(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportWithCohorts() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} From 224b9fdfba6e081d12a12ce52964e3597739ab7e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 7 Apr 2022 16:00:35 +0000 Subject: [PATCH 5/8] chore: Enable Size-Label bot in all googleapis Java repositories (#1381) (#468) * chore: Enable Size-Label bot in all googleapis Java repositories Auto-label T-shirt size indicator should be assigned on every new pull request in all googleapis Java repositories * Remove product Remove product since it is by default true * add license header Co-authored-by: Neenu Shaji Source-Link: https://github.com/googleapis/synthtool/commit/54b2c6ac75370a4a3582431b4a3080f777ba1f11 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 --- .github/.OwlBot.lock.yaml | 3 ++- .github/auto-label.yaml | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/auto-label.yaml diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 426cf83e..f60d7749 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:b0b1c1c89570e229b1026372a2b8989ba31495007055b8d30178b7648503eefa + digest: sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 +# created: 2022-04-06T16:30:03.627422514Z diff --git a/.github/auto-label.yaml b/.github/auto-label.yaml new file mode 100644 index 00000000..4caef688 --- /dev/null +++ b/.github/auto-label.yaml @@ -0,0 +1,15 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +requestsize: + enabled: true From 2c2fa47794f6c84b485281568db60e678c0443ff Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 Apr 2022 18:04:15 +0200 Subject: [PATCH 6/8] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.11.9 (#466) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.11.6` -> `0.11.9` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.9/compatibility-slim/0.11.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.9/confidence-slim/0.11.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-data ### [`v0.11.9`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0119-httpsgithubcomgoogleapisjava-analytics-datacomparev0118v0119-2022-03-29) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.8...v0.11.9) ### [`v0.11.8`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0118-httpsgithubcomgoogleapisjava-analytics-datacomparev0117v0118-2022-03-22) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.7...v0.11.8) ### [`v0.11.7`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0117-httpsgithubcomgoogleapisjava-analytics-datacomparev0116v0117-2022-03-21) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.6...v0.11.7)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 84f0e13b..3ce6f136 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.11.6 + 0.11.9 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index fd74b620..0fc3f35f 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.6 + 0.11.9 com.google.auth From 0346b09955c53309cc4d34497f5f075f73c78a8e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Apr 2022 21:24:15 +0200 Subject: [PATCH 7/8] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 (#478) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.9.0` -> `2.10.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/compatibility-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/confidence-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.10.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2100-httpsgithubcomgoogleapisjava-shared-dependenciescomparev290v2100-2022-04-15) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.9.0...v2.10.0) ##### Dependencies - google-cloud-core 2.6.0 ([#​668](https://togithub.com/googleapis/java-shared-dependencies/issues/668)) ([22f4d18](https://togithub.com/googleapis/java-shared-dependencies/commit/22f4d1809cbb9848174b3569ab527e4bef00d443)) - reverting protobuf to 3.19.4 ([#​657](https://togithub.com/googleapis/java-shared-dependencies/issues/657)) ([8501e6d](https://togithub.com/googleapis/java-shared-dependencies/commit/8501e6d842c10d2370bbd5d5246070134336bddd)) - update dependency com.fasterxml.jackson:jackson-bom to v2.13.2.20220328 ([#​646](https://togithub.com/googleapis/java-shared-dependencies/issues/646)) ([7bfd6d7](https://togithub.com/googleapis/java-shared-dependencies/commit/7bfd6d7073859d1955b91b368c6713a72ffa14b6)) - update dependency com.google.api-client:google-api-client-bom to v1.34.0 ([#​662](https://togithub.com/googleapis/java-shared-dependencies/issues/662)) ([1b8e378](https://togithub.com/googleapis/java-shared-dependencies/commit/1b8e378fe0ccf2a28c759868caaf5ba593a95728)) - update dependency com.google.errorprone:error_prone_annotations to v2.12.1 ([#​652](https://togithub.com/googleapis/java-shared-dependencies/issues/652)) ([1cc80ee](https://togithub.com/googleapis/java-shared-dependencies/commit/1cc80ee984ebcad9bc2a95e2f28c0a49fe924b37)) - update dependency com.google.errorprone:error_prone_annotations to v2.13.0 ([#​669](https://togithub.com/googleapis/java-shared-dependencies/issues/669)) ([61b7834](https://togithub.com/googleapis/java-shared-dependencies/commit/61b78341b34a251722be4805a6bdd895cd64836c)) - update dependency com.google.http-client:google-http-client-bom to v1.41.6 ([#​654](https://togithub.com/googleapis/java-shared-dependencies/issues/654)) ([140ef40](https://togithub.com/googleapis/java-shared-dependencies/commit/140ef405bc17ed83f5ce177df59affca14fbe49c)) - update dependency com.google.http-client:google-http-client-bom to v1.41.7 ([#​658](https://togithub.com/googleapis/java-shared-dependencies/issues/658)) ([f6f93e5](https://togithub.com/googleapis/java-shared-dependencies/commit/f6f93e5b9172c9684623c4c148e4a8fe2fae1e94)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.2 ([#​655](https://togithub.com/googleapis/java-shared-dependencies/issues/655)) ([20cd9ed](https://togithub.com/googleapis/java-shared-dependencies/commit/20cd9eda112c96836a5ab7485a4247ed2bc0edb8)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.3 ([#​663](https://togithub.com/googleapis/java-shared-dependencies/issues/663)) ([f011a46](https://togithub.com/googleapis/java-shared-dependencies/commit/f011a46c551dba16851b4f8c919c40452fc5d5c3)) - update dependency com.google.protobuf:protobuf-bom to v3.20.0 ([#​651](https://togithub.com/googleapis/java-shared-dependencies/issues/651)) ([ad2ff73](https://togithub.com/googleapis/java-shared-dependencies/commit/ad2ff73207dd6493321c77d8eca0022baf13b4ce)) - update dependency io.grpc:grpc-bom to v1.45.1 ([#​647](https://togithub.com/googleapis/java-shared-dependencies/issues/647)) ([38e46fc](https://togithub.com/googleapis/java-shared-dependencies/commit/38e46fc4f03af0a02f30ce4a2fa222c71797ae15)) - update dependency org.checkerframework:checker-qual to v3.21.4 ([#​650](https://togithub.com/googleapis/java-shared-dependencies/issues/650)) ([125e80a](https://togithub.com/googleapis/java-shared-dependencies/commit/125e80ab2c3225a00c03f5ff5de94872ebb94303)) - update gax.version to v2.15.0 ([#​649](https://togithub.com/googleapis/java-shared-dependencies/issues/649)) ([c7f32a6](https://togithub.com/googleapis/java-shared-dependencies/commit/c7f32a68b14520104432282ac9598643700162eb)) - update gax.version to v2.16.0 ([#​664](https://togithub.com/googleapis/java-shared-dependencies/issues/664)) ([caaf941](https://togithub.com/googleapis/java-shared-dependencies/commit/caaf941643af04295f5527a0144587d7bf040862)) - update google.common-protos.version to v2.8.1 ([#​656](https://togithub.com/googleapis/java-shared-dependencies/issues/656)) ([df4a4a2](https://togithub.com/googleapis/java-shared-dependencies/commit/df4a4a2130a3cdb2965ea42962d1ea6a85506ba7)) - update google.common-protos.version to v2.8.2 ([#​659](https://togithub.com/googleapis/java-shared-dependencies/issues/659)) ([b499e2b](https://togithub.com/googleapis/java-shared-dependencies/commit/b499e2bc99506d48d26e35bf6e68c09409ce8b11)) - update google.common-protos.version to v2.8.3 ([#​660](https://togithub.com/googleapis/java-shared-dependencies/issues/660)) ([461081c](https://togithub.com/googleapis/java-shared-dependencies/commit/461081c0cf73057c1f6e07fc573453ad467a60ae)) - update iam.version to v1.3.0 ([#​648](https://togithub.com/googleapis/java-shared-dependencies/issues/648)) ([6670c4f](https://togithub.com/googleapis/java-shared-dependencies/commit/6670c4f61fcf075c543bfd148eea49796e0662ce)) - update iam.version to v1.3.1 ([#​661](https://togithub.com/googleapis/java-shared-dependencies/issues/661)) ([cc8fbe6](https://togithub.com/googleapis/java-shared-dependencies/commit/cc8fbe6eae03341c2ece7d3356febc843a74a812))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a6b7e3c1..41305a50 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.9.0 + 2.10.0 pom import From 1723d8580548b7e4a5a678e13e1732195a50bf36 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 15 Apr 2022 19:46:19 +0000 Subject: [PATCH 8/8] chore(main): release 0.11.10 (#479) :robot: I have created a release *beep* *boop* --- ### [0.11.10](https://github.com/googleapis/java-analytics-data/compare/v0.11.9...v0.11.10) (2022-04-15) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#478](https://github.com/googleapis/java-analytics-data/issues/478)) ([0346b09](https://github.com/googleapis/java-analytics-data/commit/0346b09955c53309cc4d34497f5f075f73c78a8e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a677be26..6d15450b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [0.11.10](https://github.com/googleapis/java-analytics-data/compare/v0.11.9...v0.11.10) (2022-04-15) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#478](https://github.com/googleapis/java-analytics-data/issues/478)) ([0346b09](https://github.com/googleapis/java-analytics-data/commit/0346b09955c53309cc4d34497f5f075f73c78a8e)) + ### [0.11.9](https://github.com/googleapis/java-analytics-data/compare/v0.11.8...v0.11.9) (2022-03-29) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index d4031e66..2910c849 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.10-SNAPSHOT + 0.11.10 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.10-SNAPSHOT + 0.11.10 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.10-SNAPSHOT + 0.11.10 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.10-SNAPSHOT + 0.11.10
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 13d88df1..2462e75d 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.10-SNAPSHOT + 0.11.10 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.10-SNAPSHOT + 0.11.10 google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 2a95477d..42ef8430 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.10-SNAPSHOT + 0.11.10 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.10-SNAPSHOT + 0.11.10 diff --git a/pom.xml b/pom.xml index 41305a50..f2a5bf21 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.10-SNAPSHOT + 0.11.10 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.10-SNAPSHOT + 0.11.10 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.10-SNAPSHOT + 0.11.10 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.10-SNAPSHOT + 0.11.10 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index d5bd1820..f965f54e 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.10-SNAPSHOT + 0.11.10 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.10-SNAPSHOT + 0.11.10 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d6874674..a20a135e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.10-SNAPSHOT + 0.11.10 diff --git a/versions.txt b/versions.txt index a5bfa712..99fc3526 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.9:0.11.10-SNAPSHOT -grpc-google-analytics-data-v1beta:0.11.9:0.11.10-SNAPSHOT -proto-google-analytics-data-v1beta:0.11.9:0.11.10-SNAPSHOT +google-analytics-data:0.11.10:0.11.10 +grpc-google-analytics-data-v1beta:0.11.10:0.11.10 +proto-google-analytics-data-v1beta:0.11.10:0.11.10