Base folder name for uploaded files. Defaults to videos if not specified. Set to a custom value to change the top-level folder where files are stored (e.g., downloads, media).
The service account needs the Storage Object Admin role, which includes:
storage.objects.create
storage.objects.delete
storage.objects.get
storage.objects.list
For the service_account_json field, you can either:
Pass the JSON as an escaped string
Base64 encode the JSON file: base64 -w0 service-account.json
Python users: Do not manually construct the service_account_json as a raw string with escaped quotes.
The \n characters in the private key will be interpreted as literal newlines by Python, which produces
invalid JSON and causes a "Invalid JSON in service account credentials" error.Always use json.dumps() on a dict or a loaded JSON file to ensure proper escaping: