@@ -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
6472Configure your [ Application Default Credentials
@@ -72,15 +80,19 @@ Credentials must include the Google Analytics read-only scope:
7280https://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+
7587Here 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