You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardExpand all lines: packages/google-analytics-data/README.md
+2
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-analytics-d
121
121
| 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)|
122
122
| 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)|
123
123
| 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)|
124
126
| 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)|
Copy file name to clipboardExpand all lines: packages/google-analytics-data/samples/README.md
+36
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,8 @@
24
24
*[Run Report With Date Ranges](#run-report-with-date-ranges)
25
25
*[Run Report With Dimension Exclude Filter](#run-report-with-dimension-exclude-filter)
26
26
*[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)
27
29
*[Run Report With Named Date Ranges](#run-report-with-named-date-ranges)
28
30
29
31
## Before you begin
@@ -245,6 +247,40 @@ __Usage:__
245
247
246
248
247
249
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
+
248
284
### Run Report With Named Date Ranges
249
285
250
286
View the [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runReportWithNamedDateRanges.js).
0 commit comments