KKIMS on-site docs
Google services

Google Cloud project, billing and APIs

Create or find the Google Cloud project KIMS v2 uses, link billing, enable the APIs the code calls, and give the right people access.

KIMS v2 talks to Google for three things. Only the first two need a Google Cloud project:

Feature Google product Needs a Cloud project Needs billing Credential the CMS stores
Machine translation (Kannada, Hindi) Cloud Translation API, Basic edition (v2) Yes Yes An API key (google/translation-api-key)
Google reviews wall Business Profile APIs (mybusiness, Account Management, Business Information) Yes No A Web application OAuth client, then a Google sign-in (google/reviews-oauth)
Analytics on the website Google Tag Manager No (Tag Manager has its own console) No Nothing: a container ID on the site build job (google/tag-manager)

One project can hold both the Translation API and the Business Profile APIs. Use one project per organisation (KIMS's), shared by UAT and production, unless KIMS wants them apart. What differs per environment is the API key (one per environment is better, so it can be revoked alone) and the OAuth client's redirect URI (one per CMS host, both can sit on one client).

Note

Nothing on this page is stored in the KIMS v2 code or Helm values. The key and the OAuth client are entered later through the CMS (translation) or a one-off pod (OAuth client), and kept encrypted in PostgreSQL with SECRETS_KEY (deploy/secrets).

#Who should own it

#Decide the owner before you create anything

The project, its billing account and the OAuth consent screen outlive the deployment. Make them KIMS's, not a personal account's.

Item Recommended owner Why
Google Cloud project A KIMS Google Workspace organisation, if KIMS has one; otherwise a shared KIMS Google account (not a person's own Gmail) Whoever owns it can delete the key and the OAuth client
Billing account KIMS finance Translation is billed per character
Project Owner role Two KIMS people (never only one) If the only Owner leaves, nobody can manage the project
Project Editor or narrower roles The on-site engineer, for the duration of the work Removed at handover (deploy/handover)

#Ask KIMS whether a project already exists

The old platform used Google translation and the reviews wall, so a project may exist already (the agency's, or KIMS's). Ask for:

  1. The project ID and project number.
  2. Whether its Business Profile API access was approved (quota 300 per minute, see Check the Business Profile quota).
  3. Whether you may add a new API key and new redirect URIs to it.

If the existing project is the agency's and has approved Business Profile access, reusing it saves the approval wait (it can take weeks). If KIMS wants everything in its own project, start the Business Profile access request first, because it is the slowest step of the whole deployment.

#Create the project

#Console: create a new project

  1. Open https://console.cloud.google.com/ and sign in with the account that will own the project.
  2. Click the project picker at the top of the page (it shows the current project's name, or Select a project).
  3. Click New project.
  4. Project name: KIMS Website (any name; it is only a label).
  5. Organization: KIMS's organisation if it is offered. Location: the organisation or a folder KIMS names.
  6. Note the Project ID shown under the name (for example kims-website-123456). It cannot be changed later.
  7. Click Create.
  8. When the notification says the project is ready, click Select project.

You should see the project's name in the project picker, and its Project info card on the dashboard (Cloud overview > Dashboard) showing the Project ID and Project number. Write both down: the Business Profile access form asks for the project number.

#CLI: create a new project (optional)

The Google Cloud CLI (gcloud) is optional; everything on this site can be done in the console. If you prefer it:

bash
# Install: https://cloud.google.com/sdk/docs/install (Debian/Ubuntu shown)
sudo apt-get install -y google-cloud-cli
gcloud auth login
gcloud projects create <GCP_PROJECT_ID> --name="KIMS Website"
gcloud config set project <GCP_PROJECT_ID>
gcloud projects describe <GCP_PROJECT_ID> --format="value(projectNumber)"
bash
brew install --cask google-cloud-sdk
gcloud auth login
gcloud projects create <GCP_PROJECT_ID> --name="KIMS Website"
gcloud config set project <GCP_PROJECT_ID>
gcloud projects describe <GCP_PROJECT_ID> --format="value(projectNumber)"
powershell
winget install -e --id Google.CloudSDK
# Open a new PowerShell window so gcloud is on PATH, then:
gcloud auth login
gcloud projects create <GCP_PROJECT_ID> --name="KIMS Website"
gcloud config set project <GCP_PROJECT_ID>
gcloud projects describe <GCP_PROJECT_ID> --format="value(projectNumber)"

The last command prints the project number, a 12-digit number such as 123456789012.

#Why billing is needed

Cloud Translation will not answer without billing, even inside the monthly free allowance. Without billing the CMS's key test fails, and the translation code classes the error (billingNotEnabled or BILLING_DISABLED) as quota: jobs stop until billing is fixed, then resume by themselves.

The Business Profile APIs do not need billing.

  1. In the console, open the navigation menu > Billing.
  2. If the page says This project has no billing account, click Link a billing account.
  3. Choose KIMS's billing account and click Set account.
  4. If no billing account exists, click Create billing account (or Manage billing accounts > Create account) and follow the steps. This needs a payment method: KIMS's finance team must enter it themselves. The engineer never types card or bank details.

You should see the billing account's name on the Billing > Overview page for the project.

#CLI: check billing

bash
gcloud billing projects describe <GCP_PROJECT_ID> --format="value(billingEnabled,billingAccountName)"
bash
gcloud billing projects describe <GCP_PROJECT_ID> --format="value(billingEnabled,billingAccountName)"
powershell
gcloud billing projects describe <GCP_PROJECT_ID> --format="value(billingEnabled,billingAccountName)"

Expected: True billingAccounts/XXXXXX-XXXXXX-XXXXXX. False means no billing is linked.

#Set a budget alert

Do this as soon as billing is linked, so a runaway translation job is noticed. The steps and the amount to choose are in google/translation-api-key.

#Enable the APIs

#Which APIs the code calls

These are read from the code, not from Google's generic lists:

API (name in the API Library) Service name Called by Endpoint in the code
Cloud Translation API translate.googleapis.com Worker and CMS (translation, key test) https://translation.googleapis.com/language/translate/v2 (packages/translate/src/google.ts)
Google My Business API mybusiness.googleapis.com Worker (reviews.sync), CMS (Connect Google, one test page of reviews) https://mybusiness.googleapis.com/v4/.../reviews (packages/reviews/src/google.ts)
My Business Account Management API mybusinessaccountmanagement.googleapis.com CMS (Connect Google lists accounts) https://mybusinessaccountmanagement.googleapis.com/v1/accounts
My Business Business Information API mybusinessbusinessinformation.googleapis.com CMS (Connect Google lists locations) https://mybusinessbusinessinformation.googleapis.com/v1/{account}/locations

The OAuth token endpoint (oauth2.googleapis.com) and the consent page (accounts.google.com) need no API to be enabled.

Google's Business Profile basic set-up guide lists seven Business Profile APIs. KIMS v2 needs only the three above. Enabling the other four (Lodging, Place Actions, Notifications, Verifications) does no harm but is not needed.

Warning

The three Business Profile APIs only appear usable after Google approves the project for Business Profile API access. Before that, they can be enabled but their quota is 0, and the CMS says Google "has not approved this project for the Business Profile API yet (its quota is 0)". See google/reviews-oauth.

#Console: enable each API

For each API in the table:

  1. Open the navigation menu > APIs & Services > Library.
  2. Search for the API's name, for example Cloud Translation API.
  3. Click the result, then click Enable.

You should land on the API's API/Service details page with a Disable API button. Back on APIs & Services > Enabled APIs & services, the API is in the list.

#CLI: enable all four at once

bash
gcloud services enable translate.googleapis.com mybusiness.googleapis.com mybusinessaccountmanagement.googleapis.com mybusinessbusinessinformation.googleapis.com --project <GCP_PROJECT_ID>
gcloud services list --enabled --project <GCP_PROJECT_ID> | grep -E "translate|mybusiness"
bash
gcloud services enable translate.googleapis.com mybusiness.googleapis.com mybusinessaccountmanagement.googleapis.com mybusinessbusinessinformation.googleapis.com --project <GCP_PROJECT_ID>
gcloud services list --enabled --project <GCP_PROJECT_ID> | grep -E "translate|mybusiness"
powershell
gcloud services enable translate.googleapis.com mybusiness.googleapis.com mybusinessaccountmanagement.googleapis.com mybusinessbusinessinformation.googleapis.com --project <GCP_PROJECT_ID>
gcloud services list --enabled --project <GCP_PROJECT_ID> | Select-String "translate|mybusiness"

Expected: four lines, one per service name above. If mybusiness.googleapis.com cannot be enabled, the project is not yet approved for Business Profile access: enable it after approval.

#Give people access (IAM)

#Roles to grant

Open the navigation menu > IAM & Admin > IAM > Grant access. Add each principal (a Google account email or a Google Group) and the role, then Save.

Who Role For
Two KIMS administrators Owner Keeping control of the project
KIMS finance Billing Account Administrator or Billing Account Viewer, on the billing account (not the project) Budgets, invoices
The on-site engineer, temporarily API Keys Admin, Service Usage Admin, and to configure OAuth: OAuth Config Editor (or Editor if KIMS prefers simplicity) Creating the key, enabling APIs, the consent screen and client

You should see each principal in the IAM list with the role. Remove the engineer's access at handover.

#Check the Business Profile quota

This tells you whether Google has approved the project for Business Profile access:

  1. Open APIs & Services > Enabled APIs & services.
  2. Click My Business Account Management API (or Google My Business API).
  3. Open the Quotas & System Limits tab.
Quota shown for requests per minute Meaning
0 Not approved yet. Connect Google will fail
300 Approved

#Check

Check Where You should see
The project exists and is selected Console project picker KIMS Website (or the name chosen)
Billing is linked Billing > Overview KIMS's billing account
Translation API enabled APIs & Services > Enabled APIs & services Cloud Translation API
Business Profile APIs enabled Same list Google My Business API, My Business Account Management API, My Business Business Information API
Business Profile approved Quotas tab of those APIs 300 requests per minute, not 0
Owners IAM & Admin > IAM At least two KIMS Owners

#UAT and production

Item UAT Production
Project Shared Shared (or a separate one if KIMS wants full separation)
Translation API key Its own key Its own key
OAuth client One Web application client can carry both redirect URIs Same client, or its own
Budget One budget covers both (budgets work per project or billing account, not per key) Same budget

If KIMS wants UAT and production billed apart, use two projects. Each project then needs its own Business Profile access approval.

#Sources

Built 2026-11-29. Commands are shown for the system picked at the top; every block has all three.