I am currently following the instructions on this page: https://cloud.google.com/translate/docs/advanced/glossary
I have also followed the instructions on this page: https://groups.google.com/g/google-translate-api/c/JLkWkxkIGWU
I have tried:
from google.cloud import translate_v3beta1 as translate
Whatever I do all I get is: "google.api_core.exceptions.PermissionDenied: 403 Cloud IAM permission 'cloudtranslate.glossaries.create' denied."
Yes I have Storage Object Admin and Cloud Translate API Admin assigned to my service agent. I can access translation services ok using the service agent, but not glossary creation.
I am currently thrashing around creating random service agents and granting them all the permissions that might work. This does not seem to be the best way to proceed, but I am otherwise at a complete loss as what to do. Anyone who has any idea of a systematic way I might go about troubleshooting this, please let me know!
Please also let me know if I am posting this in the wrong place. I am trying to get help with using glossaries with Google Cloud Translate.
Solved! Go to Solution.
Thanks for your reply. It turns out that I was using a project ID in the form
my-project-xxxx
when the system requires it in the form
my-project-xxxx-xxxxxxxxxxxxx
That was all it took. (Actually it was Gemini that pointed this out to me, after analysing the code I was running.)