Skip to content

Commit 044e5db

Browse files
authored
fix(docs): provide relevant project and auth links (#12)
1 parent ae0a80b commit 044e5db

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ Setup involves the following steps:
5959

6060
[Install pipx](https://pipx.pypa.io/stable/#install-pipx).
6161

62+
### Enable APIs in your project :white_check_mark:
63+
64+
[Follow the instructions](https://support.google.com/googleapi/answer/6158841)
65+
to enable the following APIs in your Google Cloud project:
66+
67+
* [Google Analytics Admin API](https://console.cloud.google.com/apis/library/analyticsadmin.googleapis.com)
68+
* [Google Analytics Data API](https://console.cloud.google.com/apis/library/analyticsdata.googleapis.com)
69+
6270
### Configure credentials :key:
6371

6472
Configure your [Application Default Credentials
@@ -72,15 +80,19 @@ Credentials must include the Google Analytics read-only scope:
7280
https://www.googleapis.com/auth/analytics.readonly
7381
```
7482

83+
Check out
84+
[Manage OAuth Clients](https://support.google.com/cloud/answer/15549257)
85+
for how to create an OAuth client.
86+
7587
Here are some sample `gcloud` commands you might find useful:
7688

77-
- Set up ADC using user credentials and an OAuth web client after
78-
downloading the client JSON to `YOUR_WEB_CLIENT_JSON_FILE`.
89+
- Set up ADC using user credentials and an OAuth desktop or web client after
90+
downloading the client JSON to `YOUR_CLIENT_JSON_FILE`.
7991

8092
```shell
8193
gcloud auth application-default login \
8294
--scopes https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/cloud-platform \
83-
--client-id-file=YOUR_WEB_CLIENT_JSON_FILE
95+
--client-id-file=YOUR_CLIENT_JSON_FILE
8496
```
8597

8698
- Set up ADC using service account impersonation.

0 commit comments

Comments
 (0)