Create Reports from Google Cloud Storage Data in Google Data Studio

Ready to get started?

Learn more or sign up for a free trial:

CData Connect



Use CData Connect Cloud to create a virtual MySQL Database for Google Cloud Storage data and create custom reports in Google Data Studio.

Google Data Studio allows you to create branded reports with data visualizations to share with your clients. When paired with CData Connect Cloud, you get instant, cloud-to-cloud access to Google Cloud Storage data for visualizations, dashboards, and more. This article shows how to create a virtual database for Google Cloud Storage and build reports from Google Cloud Storage data in Google Data Studio.

CData Connect Cloud provides a pure cloud-to-cloud interface for Google Cloud Storage, allowing you to easily build reports from live Google Cloud Storage data in Google Data Studio — without replicating the data. As you build visualizations, Google Data Studio generates queries to gather data. Using optimized data processing out of the box, CData Connect Cloud pushes all supported query operations (filters, JOINs, etc) directly to Google Cloud Storage, leveraging server-side processing to quickly return Google Cloud Storage data.

This article requires a CData Connect Cloud instance and the CData Connect Cloud Connector for Google Data Studio. Get more information on the CData Connect Cloud and sign up for a free trial at https://www.cdata.com/connect.


Connect to Google Cloud Storage from Connect Cloud

CData Connect Cloud uses a straightforward, point-and-click interface to connect to data sources and generate APIs.

  1. Log into Connect Cloud and click Databases.
  2. Select "Google Cloud Storage" from Available Data Sources.
  3. Enter the necessary authentication properties to connect to Google Cloud Storage.

    Authenticate with a User Account

    You can connect without setting any connection properties for your user credentials. After setting InitiateOAuth to GETANDREFRESH, you are ready to connect.

    When you connect, the Google Cloud Storage OAuth endpoint opens in your default browser. Log in and grant permissions, then the OAuth process completes

    Authenticate with a Service Account

    Service accounts have silent authentication, without user authentication in the browser. You can also use a service account to delegate enterprise-wide access scopes.

    You need to create an OAuth application in this flow. See the Help documentation for more information. After setting the following connection properties, you are ready to connect:

    • InitiateOAuth: Set this to GETANDREFRESH.
    • OAuthJWTCertType: Set this to "PFXFILE".
    • OAuthJWTCert: Set this to the path to the .p12 file you generated.
    • OAuthJWTCertPassword: Set this to the password of the .p12 file.
    • OAuthJWTCertSubject: Set this to "*" to pick the first certificate in the certificate store.
    • OAuthJWTIssuer: In the service accounts section, click Manage Service Accounts and set this field to the email address displayed in the service account Id field.
    • OAuthJWTSubject: Set this to your enterprise Id if your subject type is set to "enterprise" or your app user Id if your subject type is set to "user".
    • ProjectId: Set this to the Id of the project you want to connect to.

    The OAuth flow for a service account then completes.

  4. Click Test Database.
  5. Click Privileges -> Add and add the new user (or an existing user) with the appropriate permissions.

With the virtual database created, you are ready to connect to Google Cloud Storage data from Google Data Studio.

Visualize Live Google Cloud Storage Data in Google Data Studio

The steps below outline connecting to CData Connect Cloud from Google Data Studio to create a new Google Cloud Storage data source and build a simple visualization from the data.

  1. Log into Google Data Studio, click data sources, create a new data source, and choose CData Connect Cloud Connector.
  2. Authorize the Connector to connect to an external service (your Connect Cloud instance).
  3. Use your instance name (myinstance in myinstance.cdatacloud.net), username, and password to connect to your Connect Cloud instance.
    • Username: myinstance/username
    • Password: your Connect Cloud password
  4. Select a Database (e.g. GoogleCloudStorage1) and click Next.
  5. Select a Table (e.g. Buckets) and click Next.
  6. Click Connect.
  7. If needed, modify columns, click Create Report, and add the data source to the report.
  8. Select a visualization style and add it to the report.
  9. Select Dimensions and Measures to customize your visualization.

Optional: Connect with the MySQL Connector

If you need to work with data from a custom SQL query, you can use the MySQL Connector. Connect using the server information for your Connect Cloud instance (server address, port, username, and password).

SQL Access to Google Cloud Storage Data from Cloud Applications

Now you have a direct, cloud-to-cloud connection to live Google Cloud Storage data from your Google Data Studio workbook. You can create more data sources and new visualizations, build reports, and more — all without replicating Google Cloud Storage data.

Try CData Connect Cloud and get SQL data access to 200+ SaaS, Big Data, and NoSQL sources directly from your cloud applications.