简体   繁体   中英

Add Data Programatically into custom column created on BigQuery Table

I have created a column in the events table on BigQuery to log some event information.

How can I add data into that specific column programmatically from a mobile application?

This is my BigQuery Table

在此处输入图片说明

This is my Firebase schema在此处输入图片说明

This is the code I tried so far

Bundle params = new Bundle(); 
params.putString("image_name", name); 
params.putString("full_text", text); 
mFirebaseAnalytics.logEvent("share_image", params); 

All client libraries for BigQuery are designed to be used in a trusted environment, such as your development machine, a server that you control, or Cloud Functions. There are no official SDKs for Android or iOS that I know of.

The simplest I can think of is to host code using one of these libraries in Cloud Functions (either through Firebase, or directly through the gcloud tooling) to insert data into BigQuery, and then call that Cloud Function from your mobile app. Be sure to secure access to that Cloud Function, so that only authorized users can insert data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM