본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)22k · #10184

data-manager-api-setup

하는 일

API를 활성화하고, 자격 증명을 만들고, 클라이언트 라이브러리를 설치해 다른 Data Manager 스킬이 실행될 수 있도록 하는 과정을 안내합니다. Data Manager API를 처음 시작하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Data Manager API를 처음 시작하며 환경을 설정해야 할 때.
  • ✓Data Manager API용 클라이언트 라이브러리를 설치해야 할 때.
  • ✓내 Google 계정이나 앱용 자격 증명이 필요할 때.

스킬 링크

https://github.com/google/skills/blob/main/skills/ads/data-manager-api-setup/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/google/skills/blob/main/skills/ads/data-manager-api-setup/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“노트북에서 Data Manager API를 쓸 수 있도록 설정해 주세요. API 활성화와 자격 증명 만들기도 포함해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 gcloud로 API를 활성화하고, 사용자의 상황에 맞게 Application Default Credentials를 설정한 뒤, 클라이언트 라이브러리를 설치합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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 speci

자주 묻는 질문

오디언스나 이벤트 코드도 쓰나요?

아닙니다. 그런 작업은 별도의 오디언스 또는 이벤트 수집 스킬을 사용하세요.

어떤 역할이 필요한가요?

API를 활성화할 수 있는 프로젝트 역할이 필요하며, 예를 들어 Owner, Editor, Service Usage Admin이 있습니다.

개인 계정에도 추가 설정이 필요한가요?

네. 로그인 전에 Google Auth Platform에 API 범위와 테스트 사용자를 설정해야 합니다.

상세 정보

작성자의 원본 설명

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

repo: google/skills

인기도

GitHub 스타
22k
순위
#10184
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬