To configure a connection to BigQuery, complete the following:
- Click Data > Connections.
- Click +New Connection. A window displays the data source types that your Analytics application can ingest.
- Click BigQuery.
- Configure the following fields:
- Project ID – ID of the project that you want to connect. Use the same project in which the Service Account and the Role were created. You can also find this information in the JSON file downloaded in the previous step. Open the file and copy the value in the project_id field.
- Service Account Email – The service account's email address. You can also find this information in the JSON file downloaded in the previous step. Open the file and copy the value in the client_email field.
- Service Account Key JSON – Copy the entire content of the downloaded JSON file and paste it into the field provided.
- Click refresh to test the connection's configuration. If your configuration is successful, the icon turns green.
- Click Save.
Sample credentials
The following examples show the fields required when creating a BigQuery connection in Analytics:
-
Project ID – Paste the value corresponding to the
Project ID
field in your JSON file.-
Example –
stately-lodge-3613456
-
-
Service Account Email – Paste the email address from the
Service Account Email
field in your JSON file.-
Example –
netspring-byow@stately-lodge-3613456.iam.gserviceaccount.com
-
-
Service Account Key JSON – Paste the entire content from the
Private Key
field in your JSON file.-
Example –
{
"type": "service_account",
"project_id": "stately-lodge-3613456",
"private_key_id": "6ae1360e16775af76163aa3891ccaffc08706d02",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCo9zZ+kDmFbnS+\n0qHf6nb3M6JryOlrag7QKhkSYTuC0AkuqSGRiUcWDEMW33WhVtJshK3T9PacU6fB\np5cH75aKydBblOJgNT0t8DDDOviVGFhJs0o8ITZAjI4odVr0UWbYmehPb7tjMNV5\nlfz3RYFiCITLyTAS/Pt1FFvXkcwreQtARwqpixVNEqviHPFiUk5XuQPVNnZZsQzX\n4TJQxz1QycMoeMxm2D0OsfugF8DsdKc2ms0JUZ9lbMhmZKaCY1cVLi38JRkE+vfl\n4ZpxyUR31h9hNO2tSLRPJKdS1WcdI5XfekrfgU7WgPmaXVqcvll\nDYUyqOiFAgMBAAECggEAAIHWy8JZoBL3FU2Nx2TJ1do8qL3Vl8Idr5m4v+DDZT7Z\nZYpK+8fMNcXJwuCmD7Aya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DASN5NbSSzBu4iRBc9rBB1j6Rng32IK\nPVZC6tJgWDJ5ly1SHd0rGsUAGjvqHN9x59MRR28o0ahaOzroV6wT68+bxdtDlcT9\nd2u6XTSBHCkVtK/tgsEJNEk=\n-----END PRIVATE KEY-----\n",
"client_email": "netspring-byow@stately-lodge-363318.iam.gserviceaccount.com",
"client_id": "110408766655969317177",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/netspring-byow%40stately-lodge-363318.iam.gserviceaccount.com"
}
-
Please sign in to leave a comment.