Skip to content

Commit 587884a

Browse files
anweshangcf-owl-bot[bot]ikuleshovsofisl
authored
docs(samples): add batch and pivot report samples (#202)
* Adds runReport * Adds batch and pivot report samples * Updates comments * Updates comments * Removes runReport to avoid merge conflicts * Modifies formatting of tests * Modifies strings to formatted strings for consistency * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Fixes print statement in batch report * Removes readme changes * fix lint issue * 🦉 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> Co-authored-by: ikuleshov <[email protected]> Co-authored-by: sofisl <[email protected]>
1 parent a515cfb commit 587884a

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
@@ -114,6 +114,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-analytics-d
114114
| Quickstart | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/quickstart.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/quickstart.js,samples/README.md) |
115115
| Quickstart_json_credentials | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/quickstart_json_credentials.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/quickstart_json_credentials.js,samples/README.md) |
116116
| Quickstart_oauth2 | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/quickstart_oauth2.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/quickstart_oauth2.js,samples/README.md) |
117+
| Run Batch Report | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runBatchReport.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/runBatchReport.js,samples/README.md) |
118+
| Run Pivot Report | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runPivotReport.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/runPivotReport.js,samples/README.md) |
117119
| Run Realtime Report | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runRealtimeReport.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/runRealtimeReport.js,samples/README.md) |
118120
| Run Realtime Report With Multiple Dimensions | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runRealtimeReportWithMultipleDimensions.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/runRealtimeReportWithMultipleDimensions.js,samples/README.md) |
119121
| Run Realtime Report With Multiple Metrics | [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runRealtimeReportWithMultipleMetrics.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/runRealtimeReportWithMultipleMetrics.js,samples/README.md) |

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

+36
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* [Quickstart](#quickstart)
1818
* [Quickstart_json_credentials](#quickstart_json_credentials)
1919
* [Quickstart_oauth2](#quickstart_oauth2)
20+
* [Run Batch Report](#run-batch-report)
21+
* [Run Pivot Report](#run-pivot-report)
2022
* [Run Realtime Report](#run-realtime-report)
2123
* [Run Realtime Report With Multiple Dimensions](#run-realtime-report-with-multiple-dimensions)
2224
* [Run Realtime Report With Multiple Metrics](#run-realtime-report-with-multiple-metrics)
@@ -130,6 +132,40 @@ __Usage:__
130132

131133

132134

135+
### Run Batch Report
136+
137+
View the [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runBatchReport.js).
138+
139+
[![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/runBatchReport.js,samples/README.md)
140+
141+
__Usage:__
142+
143+
144+
`node samples/runBatchReport.js`
145+
146+
147+
-----
148+
149+
150+
151+
152+
### Run Pivot Report
153+
154+
View the [source code](https://github.com/googleapis/nodejs-analytics-data/blob/main/samples/runPivotReport.js).
155+
156+
[![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/runPivotReport.js,samples/README.md)
157+
158+
__Usage:__
159+
160+
161+
`node samples/runPivotReport.js`
162+
163+
164+
-----
165+
166+
167+
168+
133169
### Run Realtime Report
134170

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

0 commit comments

Comments
 (0)