Data Manager Api Setup

作者 google55b4e13eba6d无许可证21K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

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

精选仅含说明Software Development
AI 生成的概览

指导开发者安装客户端库并配置 Data Manager API 的身份验证。

功能
该技能引导开发者完成 Data Manager API 的初始设置:在 Google Cloud 项目中启用 API、使用所需范围生成应用默认凭据,以及配置服务账号模拟。随后它会指向各语言的参考文件,用于安装 Python、Java、Node、PHP 或 .NET 的客户端库和配套实用工具库。这些实用工具库可在数据导入前帮助格式化、哈希和加密用户标识符。
适用场景
当开发者刚开始使用 Data Manager API,需要准备本地环境、安装客户端库或设置 API 访问权限时使用。它不适用于实现受众或事件导入逻辑。
运行要求
需要一个已启用 Data Manager API 的 Google Cloud 项目、用于应用默认凭据的 gcloud CLI,以及相应的 OAuth 范围。使用服务账号时需要 Service Usage Consumer IAM 角色,以及用于模拟的 Token Creator 角色。安装软件包和访问 Google 文档需要网络连接。该技能不附带脚本,仅包含说明和参考文件。

Data Manager API Setup

Setup Authentication

Refer to Set up API access for more details.

  1. Enable API (Prerequisite): Check that the user has enabled the Data Manager API in their Google Cloud project.
  2. Generate ADC: Authenticate the local workspace using Application Default Credentials (ADC) via gcloud auth application-default login.
    • Required Scopes: Include scopes https://www.googleapis.com/auth/datamanager and https://www.googleapis.com/auth/cloud-platform.
    • Multi-API Scopes: If using the same credentials for other APIs, append their scopes (e.g., https://www.googleapis.com/auth/adwords).
    • Service Accounts: Ensure the Service Account has the Service Usage Consumer IAM role, and the user executing gcloud has the Token Creator role (roles/iam.serviceAccountTokenCreator) on that Service Account for impersonation.

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 [blocked] (packages: google-ads-datamanager and google-ads-datamanager-util)
  • Java Setup Reference [blocked] (packages: com.google.api-ads:data-manager and com.google.api-ads:data-manager-util)
  • Node Setup Reference [blocked] (packages: @google-ads/datamanager and @google-ads/datamanager-util)
  • PHP Setup Reference [blocked] (packages: googleads/data-manager and googleads/data-manager-util)
  • .NET Setup Reference [blocked] (packages: Google.Ads.DataManager.V1 and Google.Ads.DataManager.Util)

来源与署名

来源:google/skills位于skills/ads/data-manager-api-setup提交55b4e13

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架

更多来自 google/skills 的技能