Skip to content

Commit c1bff0a

Browse files
anweshansofislgcf-owl-bot[bot]
authored
docs(samples): add samples for multiple dimensions&metrics for runReport (#193)
* Adds runReport * Adds samples with multiple dim/mets * Adds tests for samples added * Modifies samples to be self contained rather than calling print function from runReport * Modifies strings to formatted strings for consistency * Removes README changes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: sofisl <[email protected]> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 82212bc commit c1bff0a

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

packages/google-analytics-data/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-analytics-d
121121
| Run Report With Date Ranges | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runReportWithDateRanges.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runReportWithDateRanges.js,samples/README.md) |
122122
| Run Report With Dimension Exclude Filter | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runReportWithDimensionExcludeFilter.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runReportWithDimensionExcludeFilter.js,samples/README.md) |
123123
| Run Report With Dimension In List Filter | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runReportWithDimensionInListFilter.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runReportWithDimensionInListFilter.js,samples/README.md) |
124+
| Run Report With Multiple Dimensions | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runReportWithMultipleDimensions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runReportWithMultipleDimensions.js,samples/README.md) |
125+
| Run Report With Multiple Metrics | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runReportWithMultipleMetrics.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runReportWithMultipleMetrics.js,samples/README.md) |
124126
| Run Report With Named Date Ranges | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runReportWithNamedDateRanges.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runReportWithNamedDateRanges.js,samples/README.md) |
125127

126128

packages/google-analytics-data/samples/README.md

+36
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* [Run Report With Date Ranges](#run-report-with-date-ranges)
2525
* [Run Report With Dimension Exclude Filter](#run-report-with-dimension-exclude-filter)
2626
* [Run Report With Dimension In List Filter](#run-report-with-dimension-in-list-filter)
27+
* [Run Report With Multiple Dimensions](#run-report-with-multiple-dimensions)
28+
* [Run Report With Multiple Metrics](#run-report-with-multiple-metrics)
2729
* [Run Report With Named Date Ranges](#run-report-with-named-date-ranges)
2830

2931
## Before you begin
@@ -245,6 +247,40 @@ __Usage:__
245247

246248

247249

250+
### Run Report With Multiple Dimensions
251+
252+
View the [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runReportWithMultipleDimensions.js).
253+
254+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runReportWithMultipleDimensions.js,samples/README.md)
255+
256+
__Usage:__
257+
258+
259+
`node samples/runReportWithMultipleDimensions.js`
260+
261+
262+
-----
263+
264+
265+
266+
267+
### Run Report With Multiple Metrics
268+
269+
View the [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runReportWithMultipleMetrics.js).
270+
271+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-analytics-data&page=editor&open_in_editor=samples/runReportWithMultipleMetrics.js,samples/README.md)
272+
273+
__Usage:__
274+
275+
276+
`node samples/runReportWithMultipleMetrics.js`
277+
278+
279+
-----
280+
281+
282+
283+
248284
### Run Report With Named Date Ranges
249285

250286
View the [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runReportWithNamedDateRanges.js).

0 commit comments

Comments
 (0)