Initial Setup
Stay organized with collections
Save and categorize content based on your preferences.
Setup for a developer
Enable API suite for cloud project
- Navigate to Cloud Console: https://console.cloud.google.com/.
- Select existing cloud project or create a new one.
- Go to
APIs & Services > Enable APIs and Services
.
- Search for “Chrome”.
- Select “Chrome Device Token API”.
- Familiarize yourself with Terms of Service.
- Click
Enable
.
Create Credentials
Create Service Account
- Go to
APIs & Services > Credentials > Create Credentials > Service account
.
- Enter service account name and click
Create
.
- Create a key for your service account. Click
Add Key
and create “json” key. Keep track of the file in a secure location.
- Use your service account with proper admin privileges for customer:
- Customer may set up Domain-Wide Delegation and then the service account can impersonate a user/admin who has proper privileges (see how)
Setup for a customer
Enable domain-wide delegation
- As customer admin, go to Admin Console (https://admin.google.com/).
- Navigate to
Security > Access and data control > API Controls > Domain-wide delegation
.
- Click
Add new
.
- Enter client ID ("service account unique id").
- Enter all necessary OAuth scopes.
https://www.googleapis.com/auth/chromeosdevicetoken
.
- Click
Authorize
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-16 UTC."],[[["Developers need to enable the Chrome Device Token API and create a service account with a JSON key for authentication."],["Customers, as admin, need to enable domain-wide delegation in their Google Admin console, authorizing the developer's service account with the necessary OAuth scope."],["Developers should familiarize themselves with the API's Terms of Service and customers should ensure the service account has proper admin privileges, potentially through Domain-Wide Delegation for user/admin impersonation."]]],[]]