To enable Auto translate for Inbox, you need to generate and connect your Google Translate API key to your account.
- Create a New project in your Google Cloud account.
- Activate Google Translation API service
- Generate your API Key
- Restrict the API usage (optional)
Go to Google Cloud Platform console and Login in with your Google account.
New Projectfrom the top menu bar. Give it a name and select
Create. You’ll reach your project dashboard.
Now click on the left hamburger button and go to
APIs & Services.
Enable APIS and SERVICESin the Dashboard.
Now search for
translateand click on the `Google Cloud Translation API1 result.
Enable. This activates your Google Translation API service. Here after you’ve enabled API, you might be asked to enter the billing details if you haven’t done it already. You need a paid account to use Google’s Translation services.
Now to generate your API key, select the
create credentialsbutton from the screen. If you can’t find the button, Go to the
credentialsoption from your side menu bar.
Now click on the
Create credentialsdrop-down button and select the
Your API key would be displayed in a pop-up window. You can copy and paste this into your Inbox account.
You can also restrict your API key to prevent unauthorized or overuse of your account. There are two types of restriction - you can either restrict the API on where it is being used or you can restrict its usage quota.