How to get an Google Translation API key to connect to Trados Studio? - google-translation-api

How can I get an Google Translation API key to connect Trados Studio to Google Translation API?
In this instruction of SDL below, the key seems to have been available in the list in "APIs & services > Credentials" of Google Cloud console.
https://urldefense.proofpoint.com/v2/url?u=https-3A__gateway.sdl.com_apex_communityknowledge-3FarticleName-3D000005906&d=DwICaQ&c=Fge86U5Za1d7PUAcaTHoag0MToOH_fWpqWSEoP8Euxo&r=xdz4rRCzUCiMTlPzdnPEy9-9jLzZpm5SDgO1bwvO1T0&m=qS3KpcI4kSqBPB9p5G3IWLP2u9lzbF5ZeA6cdFqdAJY&s=lEyhu-1AVxnMDNj247L28iKqLLfpSCLyAzAOLhjf8lM&e=
But now, the "Key" column does not exist in the list. Instead, I got a Jason file following the steps in the console. But any values in the fields in the file like "project_id", "private_key_id", "private_key", and "client_id" all didn't work. I get an error "The API Key you have entered cannot be validated with Google".

I could make the key following the steps described in this page.
https://cloud.google.com/docs/authentication/api-keys#creating_an_api_key
The steps looked almost the same as those in SLD's instruction page.
But somehow, this link below in SDL's instruction page didn't work correctly for me.
https://console.developers.google.com/cloud-resource-manager
I got this error when I tried from the link.

Related

Cant figure out, why i get a 403

i try to setup the youtube api but i get a 403.
I tried to setup several times- without success.
https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails&id=-DIJvggBrg8&key=xyz
Maybe someone is able to help me or even login to the console for a setup?
The 403 error by itself is not of immediate use. Its attached error code (as I already pointed out above) sheds light on the things that happened.
The API responds to any query you make with a text (that is structured in JSON format). That response text contains the needed error code.
I suggest you to proceed with the following steps:
delete the old API key (right now it is still accessible!);
create a new API key and
run your API query using the new key and then post here the API response text.
Note that I checked the video -DIJvggBrg8 to which your query refers to with my own API key and got no error but a JSON text describing the video.

Google Drive API Console: Error saving Drive UI integration page

I have a webapp in production that interacts with Google Drive through Google Drive API.
I need to change some settings in Drive interaction but I can't save.
When I save the Drive UI integration page, I receive this error:
There's a problem at our end.
Please try again. If the problem persists, please let us know using
the "Send feedback" link below. Thanks!
(spying Network console: there is an Internal Server Error in a POST call)
I tried to send feedback for months: nobody answers and the bug is still there.
I tried also to create another project: I can save the first time but then the bug returns.
How can I do? Has someone the same problem?
Is there a way to receive a reply from Google? Is there some workaround?
Thank you.
i think that problem must be Client ID
before adding Client ID, go to the Credentials -> OAuth 2.0 Client IDs
then select edit your Client ID. after that your production site url add to Authorized JavaScript origins and Authorized redirect URIs.
then enter your Client ID in Drive UI integration page
For myself trying to get the Drive UI configured I noticed a couple of errors (that don't have any specific error messages)
When adding in an Open URL it has to be a valid domain, so for instance I tried to test it out with local host, to no avail. However something like https://devbox.app.com worked, but something like https://localhost:8888 does not. Even though https://localhost is a valid javascript origin in the client_id configuration (at least for the app I am working on, not sure about other apps), localhost doesn't work as an open URL.
When adding in the mimeTypes it needs to be in the format */* and can include custom mimeTypes like application/custom+xml and application/custom-name+json not sure for other custom types that are not in a particular format like xml or json. Also not sure about wildcards.
When adding in file extensions do not add in the '.' just the name of the file extension.
The app icon I found only failed to upload the image when the image wasn't the exact dimensions, I actually ended up editing some icons in photoshop to change the pixel x pixel values as a quick work around during dev.
That worked for me to get it to save and I tested it with a file that had a custom mimeType (application/custom-name+xml specifically) and custom file extension!

Google picker does not work without filter being applied for some users

we have an integrated with google picker(read-only scope,Docs view) it use to work fine but recently some users are getting blank screens as soon as the pop up shows but when they select some filter everything starts working fine after that no problems.
using developer tools i see all apis returning 200 for that first request
but there were no docs in response(i believe this is the api responsible for bringing docs in picker 'https://docs.google.com/picker/pvr')
when there are no docs returned in above api google is calling another api i assume it is to log error's probably(//docs.google.com/picker/ohnoes)
this api has following error params in it
&error=Cached and requested query mismatch
&line=Not available
&viewToken=["all",null,{"query":null}]
&ms=97
&transferDocs=false
&numErrors=1
has anybody else faced the similar problem
what do error "Cached and requested query mismatch" means in context of drive docs
Fyi - most accounts facing this problem seems like are of company domain for ex "jondoe#company.org"(this is a google account with company domain)
Filters Image
Thanks for your help.
not sure but looks like issue was may be related to google bug
https://issuetracker.google.com/issues/64825685
for me the code that was not working was:
addView(google.picker.ViewId.DOCS)
replaced this code with below code which works as expected
var view = new google.picker.DocsView();
view.setIncludeFolders(true).setOwnedByMe(true).setParent('root');
addView(view).

jxmaps giving error while showing map

I am getting error while showing Google maps on my Java swing application with Jxmaps.
It shows me
"Oops! Something went wrong. This page didn't load Google Maps correctly. See the JavaScript console for technical details."
message on my map component.
Is there anyone to help me?
This error can be caused by missing or incorrect API KEY. Google Maps allows limited number of requests per day without API KEY.
Have you set it in JxMaps? You can do it with followed code:
MapViewOptions options = new MapViewOptions();
options.setApiKey("<YOUR_API_KEY>");
MapView view = new MapView(options);
More detailed information about Google Maps API keys you can find here: https://developers.google.com/maps/pricing-and-plans/

Credentials are Either Invalid or Unspecified

I am using bing Maps in my app. When i am using the Get Directions it's showing this error. How to solve it. I googled for hours but hasn't got any help. Pleas help.
These are the two services which i am hitting.
http://dev.virtualearth.net/webservices/v1/routeservice/routeservice.svc/mex
http://dev.virtualearth.net/webservices/v1/geocodeservice/geocodeservice.svc/mex
Or Please give me Step by Step Procedure to work with the bing maps.
Check the Bing Map Sample application given in MSDN .It has code which shows how to implement Bing Map.Hope this helps
The error you are getting is often due to missing or incorrect credentials. You need to have an API key to access the Bing Maps services. This blog post includes a description of how to get a key and set it in your project.

Resources