Data Manager API Setup
Guides developers through client library installation and authentication setup steps...
Install
npx skills add google/skills --skill data-manager-api-setup -g -a claude-code -y- Repository
- google/skills21.8k
- Category
- Engineering
- Updated
- 3d ago
- License
- Apache-2.0
- Context cost
- Lightabout 1,296 tokens
- Runs scripts
- No, instructions only
What it does
Guides developers through client library installation and authentication setup steps for the Data Manager API. Use this skill when a user is getting started with the Data Manager API and needs to setup their local environment, install the client library, or setup access to the API. Don't use for implementing audience or event ingestion logic (use the data-manager-api-audience-ingestion or data-manager-api-event-ingestion skills instead).
Data Manager API Setup
Setup Authentication
Refer to Set up API access for more details.
1. Enable the API
Prerequisites: A Google Cloud project, the Google Cloud CLI (gcloud), and
a Google Account with a project role that can enable APIs, such as Owner,
Editor, or Service Usage Admin. Always tell the user about the required
role. If gcloud isn't installed, prompt the user to install it first.
gcloud services enable datamanager.googleapis.com --project={project_id}
gcloud services list --enabled --project=PROJECT_ID --filter="datamanager.googleapis.com"
2. Generate Application Default Credentials (ADC)
Choose the method that matches the user's scenario:
- User account (API calls are made as the user's own Google Account): The
Data Manager API scopes are sensitive, so the user must first configure
their project's Google Auth Platform:
-
Data Access page: Add the Data Manager API scopes.
-
Audience page: Set Publishing status to Testing. Use the Internal user type for a Google Workspace organization, or External with the user's account added as a Test user.
-
Create (or reuse) a Desktop app OAuth client and download its JSON configuration file.
-
The user runs the following command, which opens a browser login:
gcloud auth application-default login \ --scopes="https://www.googleapis.com/auth/datamanager,https://www.googleapis.com/auth/cloud-platform" \ --client-id-file="{client_id_file_path}"
-
