data-manager-api-setup
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 imp
- 01GitHub stars
- 22.8K
- 02Installs
- New
- 03Files scanned
- 7
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 ffa50d311c2a9736… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
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}"
Unverified app screen: This warning appears because the Data Manager API scopes are sensitive. During Testing, External test users still see it and can continue past it. Before other users can sign in, the app must complete OAuth app verification. Service accounts don't need verification.
-
-
Service account (API calls are made as an app identity instead of a person): For local development, use service account impersonation rather than a service account key, since keys are a security risk if not managed carefully.
-
Grant the Service Account the
Service Usage ConsumerIAM role (roles/serviceusage.serviceUsageConsumer) on the project. -
Grant the user executing
gcloudthe Token Creator role (roles/iam.serviceAccountTokenCreator) on that Service Account. -
Run:
gcloud auth application-default login \ --impersonate-service-account={service_account_email} \ --scopes="https://www.googleapis.com/auth/datamanager,https://www.googleapis.com/auth/cloud-platform"
-
-
Data partner creating partner links in advertiser accounts: Read Partner Links.
Multiple APIs: To use the same credentials for other APIs, append their
scopes to the --scopes list in the commands above (e.g.,
https://www.googleapis.com/auth/adwords for the Google Ads API or
https://www.googleapis.com/auth/display-video for the Display & Video 360
API).
Verify: gcloud auth application-default print-access-token prints an
access token when credentials are set up correctly.
Troubleshooting PERMISSION_DENIED with a valid token: Add the user or
service account to the destination account (for example, the Google Ads account
or its manager account). For service accounts, also confirm the
Service Usage Consumer role on the Cloud project.
Production: For production authentication (workloads in or outside Google Cloud, apps that act on behalf of other users, or partner links), see Deploy to production.
Install Client & Utility Libraries
Refer to Install a client library for more details.
The companion utility libraries provide pre-built helper classes and functions to correctly format, hash, and encrypt user identifiers (such as emails, phone numbers, and physical addresses) prior to API ingestion. Use of these libraries is highly recommended to ensure that user identifier formatting matches the API's specifications.
Select the language-specific installation guide below:
- Python Setup Reference (packages:
google-ads-datamanagerandgoogle-ads-datamanager-util) - Java Setup Reference (packages:
com.google.api-ads:data-managerandcom.google.api-ads:data-manager-util) - Node Setup Reference (packages:
@google-ads/datamanagerand@google-ads/datamanager-util) - PHP Setup Reference (packages:
googleads/data-managerandgoogleads/data-manager-util) - .NET Setup Reference (packages:
Google.Ads.DataManager.V1andGoogle.Ads.DataManager.Util)
Files
7- SKILL.md
0c5d3988285.8 KB - references/dotnet.md
0dd305e22b336 B - references/java.md
1bd4f0ca131.5 KB - references/node.md
a649030809301 B - references/partner-links.md
3f2d35157f2.0 KB - references/php.md
6fd7f8bcc0347 B - references/python.md
fbbbc1668f300 B
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from google/skills8
Audits AI agent data access, blast radius, and blocked policy operations in Google Cloud by querying Cloud Audit Logs via BigQuery. Use when investigating what resources or services an agent accessed, identifying top originating principals the agent is acting as, or triaging PERMISSION_DENIED errors
Manages Google Cloud Agent Registry (agentregistry.googleapis.com) resources using gcloud CLI and Kubernetes manifests, including agents, MCP servers, endpoints, services, bindings, AI applications, skills and skill revisions, resource-level IAM policies, Cloud Run and GKE automatic workload registr
Configures best-practice alerting policies for AI agents using OpenTelemetry (OTel) metrics, generating output as Terraform (.tf) configuration files. Use when analyzing, writing, or deploying alerting policies to monitor agent latency, error rates, token usage, and quality metrics. Don't use for st
Designs, engineers, and validates enterprise Gemini platform architectures. Use when designing multi-project hierarchies (Host, Central Governance Hub, Runtime Spoke, Tool/MCP Spoke), configuring Agent Gateway, authoring Agent Connectivity Templates (ALL_TRAFFIC vs PRIVATE_RANGES_ONLY), deploying Se
Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent
Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up resources by undeploying models and deleting endpoints. Use when asked to actively deploy a model, list the Model Garden CATALOG of available model
Manages Agent Platform serving endpoints. Use when you need to create, list, describe, update, or delete serving endpoints for model deployment on Agent Platform. Also use when troubleshooting endpoint permission, quota, or resource busy errors. Don't use for deploying models to endpoints or for run
Measures and improves the quality of AI models and agents on Google Cloud using the Eval Quality Flywheel methodology. Use when generating synthetic user scenarios, evaluating an agent or model, building an eval dataset, picking or writing evaluation metrics, analyzing failures, comparing results be
Related backend skillsscan passed
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Use this when generating RTK Query endpoints from OpenAPI schemas with @rtk-query/codegen-openapi. Covers the empty API pattern, filterEndpoints, endpointOverrides, generated tags, and reviewing generated output before it becomes part of the app.
Report browser/API/CLI/job/worker/webhook bugs. Use for: qa report only, just report bugs, test but dont fix. (gstack)
Python background job patterns including task queues, workers, and event-driven architecture. Use when implementing async task processing, job queues, long-running operations, or decoupling work from request/response cycles.
PostHog integration for server-rendered Astro applications with API routes
Implements API versioning using URL paths, headers, or query parameters with backward compatibility and deprecation strategies. Use when managing multiple API versions, planning breaking changes, or designing migration paths.