Before you begin

This page explains the steps you need to complete to create a Google Cloud project, enable the Transcoder API, and create a service account.

Create a project

  1. Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
  2. In the Google Cloud Console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Make sure that billing is enabled for your Cloud project. Learn how to confirm that billing is enabled for your project.

  4. Enable the Transcoder API.

    Enable the API

  5. Install and initialize the Cloud SDK.

Create a service account to issue API requests

  1. In the Cloud Console, go to the IAM Service Account page.
    Go to the IAM Service Account page
  3. Provide a unique Service account name and click CREATE.
  4. Under Role, select Transcoder > Transcoder Admin and click CONTINUE.
  5. Under the Create key section, click CREATE KEY.
  6. Under Key type, select JSON.
  7. Click CREATE to download the service account key file.

Set the environment variable

  1. Set the environment variable GOOGLE_APPLICATION_CREDENTIALS to the path of the JSON file that contains your service account key. This variable only applies to your current shell session, so if you open a new session, set the variable again.

  2. Use the gcloud tool to test your authentication environment. Check that the following command outputs a text string without errors:
    gcloud auth application-default print-access-token

More information

Receive Pub/Sub notifications for job updates from the Transcoder API.