Generated banner for Data Manager API Setup
Generated logo for Data Manager API Setup

Data Manager API Setup

GoogleOfficialPublished by Google

  • Skill
  • Tool integration
  • Software development
  • Apache-2.0
  • Low risk

From the author

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).
— the description by Google

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides a structured path for developers to begin working with the Data Manager API. It covers the essential prerequisites for local environment configuration, including enabling the API via Google Cloud, setting up Application Default Credentials (ADC) for both user accounts and service accounts, and installing the necessary language-specific client and utility libraries. It emphasizes best practices for secure authentication and proper identifier formatting using provided utility packages.

What it does

  • Enables the Data Manager API within a Google Cloud project.
  • Configures Application Default Credentials for local development.
  • Provides instructions for setting up OAuth client IDs for user-based authentication.
  • Explains service account impersonation for secure local development.
  • Lists installation commands for client and utility libraries across multiple programming languages.
  • Offers troubleshooting steps for common permission and access issues.

When to use it

  • When you are starting a new project that requires integration with the Data Manager API.
  • When you need to configure your local development environment for API access.
  • When you need to install the official client and utility libraries for your chosen language.
  • When you need to troubleshoot initial authentication or permission errors.

Advantages

  • Ensures secure authentication practices by recommending service account impersonation.
  • Provides standardized installation steps for multiple programming languages.
  • Includes utility libraries to ensure correct formatting and hashing of user identifiers.
  • Centralizes setup requirements to reduce configuration errors.

Usage examples

“How do I set up my local environment for the Data Manager API?”
The agent will guide you through enabling the API in Google Cloud, configuring your credentials, and installing the required client libraries for your specific programming language.
“I need to install the Python client library for Data Manager.”
The agent will provide the specific package names and installation instructions for the Python client and utility libraries.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/google/data-manager-api-setup/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip data-manager-api-setup.zip -d .agents/skills

Documentation by Google

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:

    1. Data Access page: Add the Data Manager API scopes.

    2. 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.

    3. Create (or reuse) a Desktop app OAuth client and download its JSON configuration file.

    4. 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 Consumer IAM role (roles/serviceusage.serviceUsageConsumer) on the project.

    • Grant the user executing gcloud the 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:

Files

references/node.md

Node Client and Utility Library Installation

Install Client Library

Install the Node.js client library:

npm install @google-ads/datamanager

Install Utility Library

Install the Node.js companion utility library from npm:

npm install @google-ads/datamanager-util

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs a command-line tool, Needs Python, Needs Node.js

Security

What our scanner noticed· Low risk

  • Instructions that use the network

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Google
Publisher
Google (Official)
Source
google/skills · skills/ads/data-manager-api-setup · commit 2194d3b
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Google or Google.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download data-manager-api-setup.zip