Google Cloud Storage

Send your Attribution App data to Google Cloud Storage for more detailed analysis

With this integration you can automatically export your raw Attribution data to Google Cloud Storage. You will be able to use this data to build your own database and analyze the data the way you want. Please continue below to learn how to set up raw data exports from Attribution to your Google cloud storage.

πŸ“˜

This article is for Cloud Admin or DevOps

Please make sure you understand the steps described below with full responsibility.

Create a Google Cloud storage space for Attribution

To get started you'll need to set up a Google Cloud Storage bucket and Service Account.

  1. Login into Google Cloud Console.
  2. Create new service account under your project with "Storage Insights Collector Service" role roles/storage.insightsCollectorService.
  3. Create a service account key.
  4. Create or locate an existing bucket under your project.
  5. Add service account to a bucket-level policy, use "Storage Object User" role roles/storage.objectUser (for more info IAM roles for Cloud Storage .

Once you've completed the steps above please make sure that the service account you created actually can access the bucket and can upload files into it. It's easy to verify in Cloud Shell:

$ gcloud auth activate-service-account --key-file=YOUR-SERVICE-ACCOUNT-KEY.json
Activated service account credentials for: [[email protected]]

$ gcloud projects list
PROJECT_ID: xxxx
NAME: xxxx
PROJECT_NUMBER: xxxx

$ echo "upload test" > test.txt
$ gcloud storage cp test.txt gs://YOUR-CLOUD-BUCKET/
Copying file://test.txt to gs://YOUR-CLOUD-BUCKET/test.txt
  Completed files 1/1 | 12.0B/12.0B

$ gcloud storage cat gs://YOUR-CLOUD-BUCKET/test.txt
upload test

If you see "upload test" as an output of the last command - then you setup service account permissions correctly.

Finally please contact [email protected] and include:

  1. Google Service Account Credentials Key file (JSON)
  2. Google Cloud Storage bucket name

One of our team members will get back to you shortly after.


What’s Next