Google Cloud Storage
Google Cloud Storage is massively scalable object storage for unstructured data offered by Google as part of the Cloud Computing product suite.
클라우드 스토리지 제공업체 간에 전환하는 경우, 새로운 통합을 설정하고 검증하는 데 대한 추가 지원을 받으려면 Braze 고객 성공 매니저에게 문의하세요.
The Braze and Google Cloud Storage integration allows you to stream Currents data to Google Cloud Storage. You can later use an ETL process (Extract, Transform, Load) to transfer your data to other locations, such as Google BigQuery.
Prerequisites
| Requirement | 설명 |
|---|---|
| Google Cloud Storage account | A Google Cloud Storage account is required to take advantage of this partnership. |
| Currents | 데이터를 Google Cloud Storage로 다시 내보내려면 계정에 Braze 커런츠가 설정되어 있어야 합니다. 메시지 보관만 설정하는 경우에는 커런츠가 필요하지 않습니다. |
통합
To integrate with Google Cloud Storage, you must set up the appropriate credentials that allow Braze to get information about the storage buckets being written to (storage.buckets.get) and create objects within that bucket (storage.objects.create).
커런츠의 인증 방법으로 WIF(워크로드 ID 페더레이션)는 지원되지 않습니다. JSON 비공개 키가 있는 서비스 계정을 사용해야 합니다.
This can be done using the following instructions, which will walk you through creating a role and service account that will generate a private key to use in your Currents integration.
1단계: Create role
IAM & 관리자 > 역할 > + 역할 만들기로 이동하여 Google Cloud Platform 콘솔에서 새 역할을 만듭니다.

Give the role a name, then select +Add Permissions and choose the following:
storage.objects.createstorage.objects.deletestorage.objects.liststorage.objects.getstorage.buckets.get
The storage.objects.delete permission is optional. It allows Braze to clean up incomplete files.
In rare circumstances, Google Cloud may terminate connections early, resulting in Braze writing incomplete files to Google Cloud Storage. In most cases, Braze will retry and create a new file with the correct data, leaving the old file in Google Cloud Storage.
When you’re finished, select Create.

2단계: Create a new service account
2.1 단계: Create the service account
IAM & 관리자 > 서비스 계정으로 이동하여 서비스 계정 만들기를 선택하여 Google Cloud Platform 콘솔에서 새 서비스 계정을 만듭니다.

Next, give the service account a name and grant it access to your newly created custom role.

2.2 단계: Create a key
At the bottom of the page, use the Create Key button to create a JSON private key to use in Braze. After the key is created, it will download onto your machine.

3단계: Set up Currents in Braze
In Braze, navigate to Currents > + Create Current > Google Cloud Storage Data Export and provide your integration name and contact email.
그런 다음 GCS JSON 자격 증명 아래에 JSON 비공개 키를 업로드하고 GCS 버킷 이름과 GCS 접두사(선택 사항)를 입력합니다. 이전 단계에서 설명한 대로 Google Cloud Platform을 통해 이러한 자격 증명을 생성해야 한다는 점에 유의하세요.
It’s important to keep your credentials file up to date; if your connector’s credentials expire, the connector will stop sending events. 이 상태가 5일 이상 지속되면 커넥터의 이벤트가 삭제되고 데이터가 영구적으로 손실됩니다.

마지막으로 페이지 하단으로 스크롤하여 내보내려는 메시지 참여 이벤트 또는 고객 행동 이벤트를 선택합니다. When completed, launch your Current.
4단계: Set up Google Cloud Storage exports
To set up Google Cloud Storage (GCS) exports, go to Technology Partners > Google Cloud Storage, enter your GCS credentials, and select Make this the default data export destination.
Keep in mind that the organization and contents of any exported files will be identical across AWS S3, Microsoft Azure, and Google Cloud Storage integrations.
Be sure to input the full JSON value that’s generated by Google Cloud.

5단계: Test your service account credentials (optional)
Your Google Cloud IAM service account must have the following permissions:
storage.objects.createstorage.objects.deletestorage.objects.liststorage.objects.getstorage.buckets.get
To verify these permissions in the Braze dashboard, go to the Google Cloud Storage page, then select Test Credentials.

Export behavior
클라우드 데이터 스토리지 솔루션을 통합하고 API, 대시보드 보고서 또는 CSV 보고서를 내보내려고 하는 사용자는 다음과 같은 경험을 하게 됩니다:
- All API exports will not return a download URL in the response body and must be retrieved through data storage.
- 모든 대시보드 보고서와 CSV 보고서는 다운로드할 수 있도록 사용자의 이메일로 전송되며(저장 권한 필요 없음) 데이터 스토리지에 백업됩니다.
JSON 형식 요구 사항: JSON 내보내기의 경우 Braze는 각 줄에 별도의 JSON 개체가 포함되는 JSONL(줄 바꿈으로 구분된 JSON) 형식을 사용합니다. 이 형식은 단일 JSON 배열 또는 오브젝트인 표준 JSON과는 다릅니다. 내보낸 파일의 각 줄은 유효한 JSON 객체이지만 파일 전체가 하나의 유효한 JSON 설명서가 아닙니다. 이러한 파일을 처리할 때는 전체 파일을 하나의 JSON 설명서로 구문 분석하지 말고 각 줄을 별도의 JSON 객체로 개별적으로 구문 분석하세요.
커런츠 내보내기는 JSON이 아닌 Apache Avro 형식(.avro 파일)을 사용합니다. 이 JSON 형식 요구 사항은 JSON 형식을 사용하는 대시보드 데이터 내보내기 및 API 내보내기에 적용됩니다.
문제 해결
Google Cloud Storage Credentials are invalid
If you receive the following error when attempting enter your credentials:
1
Google Cloud Storage Credentials are invalid. Please ensure that your credentials string, bucket name, and prefix are valid. You do not have read permission.
Ensure that your Google Cloud IAM service account has the following permissions:
storage.objects.createstorage.objects.deletestorage.objects.liststorage.objects.getstorage.buckets.get
After verifying, you can test your credentials in the Braze dashboard.
GitHub 에서 이 페이지를 편집합니다.