Skip to content

Commit 9709c9e

Browse files
docs(samples): add region tag for auth snippet (#760)
1 parent 0601674 commit 9709c9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/snippets/src/main/java/com/example/bigquery/QueryExternalSheetsTemp.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public static void queryExternalSheetsTemp(
5454

5555
// Create credentials with Drive & BigQuery API scopes.
5656
// Both APIs must be enabled for your project before running this code.
57+
// [START bigquery_auth_drive_scope]
5758
GoogleCredentials credentials =
5859
ServiceAccountCredentials.getApplicationDefault()
5960
.createScoped(
@@ -65,6 +66,7 @@ public static void queryExternalSheetsTemp(
6566
// once, and can be reused for multiple requests.
6667
BigQuery bigquery =
6768
BigQueryOptions.newBuilder().setCredentials(credentials).build().getService();
69+
// [END bigquery_auth_drive_scope]
6870

6971
// Skip header row in the file.
7072
GoogleSheetsOptions sheetsOptions =

0 commit comments

Comments
 (0)