[null,null,["最后更新时间 (UTC):2025-07-29。"],[[["\u003cp\u003eAccess to the Smart Device Management (SDM) API is provided through Google Cloud and requires a Google Cloud project for use.\u003c/p\u003e\n"],["\u003cp\u003eYou must enable the Smart Device Management API and generate an OAuth 2.0 Client ID in your Google Cloud project before using Device Access.\u003c/p\u003e\n"],["\u003cp\u003eDevice Access leverages Google OAuth for user authorization and may show an "unverified app" screen during authorization, which is safe to bypass for personal use.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Cloud provides usage and latency metrics for the SDM API for projects with the API enabled.\u003c/p\u003e\n"]]],["To utilize the Smart Device Management (SDM) API, you need a Google Cloud project. Enable the \"Smart Device Management API\" within your project's API library. Generate an OAuth 2.0 Client ID for authorization. Note that apps using the SDM API's restricted scope will initially be \"unverified,\" but OAuth verification isn't necessary for personal use. Google Cloud offers metrics to track SDM API usage and latency.\n"],null,["# Google Cloud Platform Setup\n\nAccess to the SDM API is provided through\nGoogle Cloud. To enable the API and authorize a Google account with\na supported Google Nest device, you'll need a Google Cloud\nproject.\n\nYou can use an existing Google Cloud project or create a new one. If\nyou don't have a project, or are not familiar with Google Cloud, we\nrecommend you go through the Quick Start Guide first. It guides you through all\nthe steps necessary to get started with Device Access.\n\n[Go to the Quick Start Guide](/nest/device-access/get-started)\n\nTo learn more about creating projects and Google Cloud in general,\nwe recommend the following resources:\n\n- [Google Cloud Overview](https://cloud.google.com/docs/overview)\n- [Getting Starting with Google Cloud\n Platform](https://cloud.google.com/gcp/getting-started)\n- [Google Cloud APIs](https://cloud.google.com/apis/docs/overview)\n\nEnable the API\n--------------\n\nThe API Library listed in Google Cloud for Device Access is\n**Smart Device Management API**. Before you can use Device Access you\nmust enable this API in your project.\n\nEnable **Smart Device Management API** on the\n[API Enablement](https://console.developers.google.com/apis/library/smartdevicemanagement.googleapis.com) page.\n\nOAuth 2.0 Client ID\n-------------------\n\nThe SDM API uses Google OAuth for user\nauthorization. In order to complete the authorization process, you need to\ngenerate OAuth credentials in the form of an OAuth 2.0 Client ID.\n\nGet an OAuth 2.0 Client ID on the\n[Credentials](https://console.developers.google.com/apis/credentials) page.\n\nUnverified apps\n---------------\n\nThe SDM API uses a restricted scope, which means that any\napps that use this scope during authorization will be \"unverified\" unless\n[OAuth API Verification](https://developers.googleblog.com/2019/09/get-smart-about-preparing-your-app-for-OAuth-verfication.html) is completed. **When using Device Access for\npersonal use, OAuth API Verification is not required.**\n\nYou may see a \"Google hasn't verified this app\" screen during the authorization\nprocess, which appears if the `sdm.service` scope is not configured on\nyour [OAuth consent screen](https://console.developers.google.com/apis/credentials/consent/edit) in Google Cloud. This screen can be\nbypassed by clicking the **Advanced** option and then clicking **Go to *Project\nName* (unsafe)**.\n\nSee [Unverified app\nscreen](https://support.google.com/cloud/answer/7454865#unverified-app-screen)\nfor more information.\n\nMetrics\n-------\n\nGoogle Cloud provides metrics, such as usage and latency, for the\nSDM API. They are released as part of the **Smart Device Management API**,\nalongside the other APIs and Services metrics provided on Google Cloud.\n\nIf your Google Cloud project has the **Smart Device Management API** enabled, view your metrics on the [Metrics](https://console.cloud.google.com/apis/api/smartdevicemanagement.googleapis.com/metrics) page for the API.\n\nSee [Monitoring API Usage](https://cloud.google.com/apis/docs/monitoring) for\nmore information."]]