Relative Content

Tag Archive for google-cloud-functions

How to upload an embedding in FieldValue

I get Error: Update() requires either a single JavaScript object or an alternating list of field/value pairs that can be followed by an optional precondition. Value for argument “dataOrField” is not a valid Firestore document. Couldn’t serialize object of type “VectorValue” (found in field “embedding”). Firestore doesn’t support JavaScript objects with custom prototypes (i.e. objects that were created via the “new” operator).

How to upload image file FROM Google Cloud Bucket TO Campaign Manager 360

I have a Cloud Function (CF) which is getting TRIGGERED after a file is copied into GCS. The aim is copy this media file in Campaign Manager 360.
I have my oAuth 2.0 Credential created which i want to use ( after the ‘flow’ statement. ) But my CF fails saying “Name: client is not defined”