1. Log in https://console.cloud.google.com/home/dashboard

  2. Go to Settings:

  3. Go to Service Accounts:

  4. Create an account or use an existing one:

  5. Provide Service account details:

  6. Choose Service account permissions:

    Roles needed:
    - AutoML Predictor
    - AutoML Viewer
    - Cloud Translation API User

  7. Create key:

  8. On the right side should appear a dialog:


  1. Download JSON file:

    {

"type": "service_account",

 "project_id": "auto-ml-project-2",

  "private_key_id": "private_key_id",

  "private_key": "KEY_STRING",

  "client_email": "piter-213@auto-ml-project-2.iam.gserviceaccount.com",

  "client_id": "1234567890",

  "auth_uri": "https://accounts.google.com/o/oauth2/auth",

  "token_uri": "https://oauth2.googleapis.com/token",

  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",

  "client_x509_cert_url":      "https://www.googleapis.com/robot/v1/metadata/x509/piter-213%40auto-ml-project-2.iam.gserviceaccount.com"

}

  1. The private_key value contains often unnecessary \n. To use a proper key \n should be removed:
    Example:

"private_key": "-----BEGIN PRIVATE KEY-----\nMYKEYEXAMPLEgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDijWmME7LKHXmY\nKFbu8o0BtObaZ7nlx7fxyuBepQjNEEOHCN4Wv4G36Z9ZZ3cPtwOe8X2gxkAmOX/E\nNLIPkbOukshZkeiByRE+eGfuiDKr/pt9PmuDGN+rx7q0mGAfmbaB/BnDVHsVVjYw\nQKmulyZs8K4t3YgK9dLZ0aCzC231fkZINCGzisJRA/1xD5a871mlQgKWkZg1soez\n0Cilg4zs4kKDIrA6+YgGMdcYBuTByCZJ99BtODdmiVRgJgS9lT1p6ZQUmXJqORKP\nZlhIh16QAzo4XS2GvVW1s2gG6TDEWziJPpM/7nHyqd9UBxY3L0wuQvaYvuzkS4UA\nXcIJWI6lAgMBAAECggEAB7MzdG/mOzOk5XBMdwRvDV+dj5T2k0IDZqspSRQJERZ2\nbF3I+Mpp3yy22IKDjrYWPTyLPuiPhfdAJs7aPbn0Bl4HJqt4Jky/u0qMuWV4BlX0\nF69KKIk+ng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ZwgJEZwefkuixtfR4tK9U9zuvxDyXnCqk49HATokyfviTr6K1TZar5Z1t/M6GDEWGepcxleWwKhcS5V5DExF2PWB02xC7C7ZruA2thndZblrhvAXwKBgQCiB9+k/tQAe8LLOTIx03vHV7bpu201SYFjvusKTrEGMcgVxZNZzvAMsFlgBWCWS616vRRVXq/O3hN1n505nR5kV6pFz05QRt+Tjy/QY+xq+iXrYig/eqPabKWQjQPe+gnYmGKwhDyttosx6Mcur1cEbHWHIzwBojNlaWhHxeFR4QKBgQDPdV2AQLVhJlTkp48IEcVbnlweMum2k6ItFdL3cdlEPq4Qj/NU8Cz/icseWoKyxA8x/+732NMcIE9MyGeYIaRwkh6UbipzzIVKibJGuR/EDCli2BbqexPtu6uT8AsvmA0j8d3FmEIHS82nkWtHZOFxHoa6qVpIaJiH2BjL5HJ1gwKBgQDRSXUc4VkiyyF/3KUienl5WZC2gT4pnTlx09UkP5ydC21guGRNyJlfXtZlcq/tPTXc6ZBG0k7p6WUfAK6egBXo5woRrwT4otgblwVv/ZsyQnuRNQ8InUggv7MkSIcpYBhq6uwzB8Cl3xuxtnyHjutJa1zXWdJER3L5lPkXLvXzhw==-----END PRIVATE KEY-----

  1. The new service account should be available on accounts lists:



  2. AutoML configuration in XTM:


Issues with synchronization

There is a known issue with synchronization where even a correct key is being marked as invalid. In such case, please follow the below guidance:

  1. Make sure your credentials are correct
  2. Insert your key
  3. Click on save button
  4. Wait for an hour (it has to be 60 minutes) and click synchronize

This issue with synchronization will be addressed in XTM 12.3