啟用 API

本頁說明如何啟用 Recommender API。如要使用 gcloudREST 介面查看及管理建議和洞察資料,必須先啟用 API。

如要啟用 Recommender API,請按照下列步驟操作:

gcloud

  1. 如果您沒有 Google Cloud 專案,請立即建立一個

  2. 設定預設專案,其中 PROJECT_ID 是專案的 ID:

    gcloud config set project PROJECT_ID
    
  3. 啟用必要的 API:

    gcloud services enable recommender.googleapis.com
    

主控台

  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. Enable the Recommender API.

    Enable the API

  4. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  5. Enable the Recommender API.

    Enable the API