[ANALYTICS-432] Run report with multiple dimensions/metrics and dimensionsFilters/metricFilters for GA4 Created: 20/Apr/23  Updated: 05/May/23  Resolved: 28/Apr/23

Status: Closed
Project: Analytics
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2.3

Type: New Feature Priority: Neutral
Reporter: Thuy To Assignee: Thuy To
Resolution: Done Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 3d 7h Time Spent: 3d 7h
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: PNG File image-2023-04-26-15-19-53-244.png     PNG File image-2023-04-26-15-21-16-068.png     PNG File image-2023-04-26-15-24-58-642.png    
Sub-Tasks:
Key
Summary
Type
Status
Assignee
ANALYTICS-433 Implementation Sub-task To Do  
ANALYTICS-434 Review Sub-task To Do  
ANALYTICS-435 Pre-Integration QA Sub-task To Do  
ANALYTICS-436 QA Sub-task To Do  
Template:
Acceptance criteria:
Empty
Epic Link: Google Analytics 4
Story Points: 5
Team: AuthorX
Work Started:
Approved:
Yes

 Description   

Problem: The report should have multiple dimensions/metrics and dimensionsFilters/metricFilters:

+ Also apply pagination in report.

+ Investigate how to apply .addAllDimensions(...) and .addAllMetrics(....) 

RunReportRequest request =
RunReportRequest.newBuilder()
.setProperty("properties/" + propertyId)
.addDimensions(Dimension.newBuilder().setName(dimensionNames))
.addMetrics(Metric.newBuilder().setName(metricExpressions))
.addDateRanges(DateRange.newBuilder().setStartDate(startDate).setEndDate(endDate))
.addAllDimensions(...)

.addAllMetrics(....)

.build();

Document refer

https://developers.google.com/analytics/devguides/reporting/data/v1/basics 

https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSample.java



 Comments   
Comment by Thuy To [ 26/Apr/23 ]

Hi ldelnevo
Please help me take a look for approval:

+ Multiple dimensions and metrics

+ Handle the report response exception

+ Apply pagination with default limit = 500 and offset = 0. We can add limit and offset as optional parameters in yaml configuration.

 

Thank you.

Generated at Sun Feb 11 23:18:49 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.