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

google-ads-api-quickstart

하는 일

Google Ads API 자격 증명, 클라이언트 라이브러리 또는 직접 REST 요청 선택, 캠페인을 나열하는 짧은 스크립트 실행까지 안내합니다. Google Ads API를 처음 시작하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Google Ads API가 처음이라 첫 작동 요청을 만들고 싶을 때.
  • ✓Python, Java, .NET 같은 클라이언트 라이브러리를 골라야 할 때.
  • ✓권한 거부나 승인되지 않은 개발자 토큰 같은 설정 오류로 막혔을 때.

스킬 링크

https://github.com/google/skills/blob/main/skills/ads/google-ads-api-quickstart/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“Python으로 Google Ads API를 설정하고, 스크립트 하나로 제 캠페인을 가져오는 방법을 보여 주세요.”

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

작동 방식

에이전트는 먼저 현재 안정 버전의 API와 런타임 버전을 확인하고, 자격 증명을 안내하고, 환경을 설정한 뒤, 캠페인을 가져오는 스크립트를 실행합니다.

기술 내용 (원본 SKILL.md)

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

Google Ads API Quickstart

This skill guides you from absolute zero to running your first successful request to retrieve campaigns.

Supported Tracks

You can choose to use this skill with:

  1. Official Client Libraries: Python, Java, .NET, PHP, Ruby, or Perl.
  2. Direct REST: Raw HTTP REST requests.

Crucial Requirement: Dynamic Version Resolution & Runtime Resolution

[!IMPORTANT] To ensure the integration is secure, stable, and up-to-date, you must resolve all API and runtime versions dynamically. Do not rely on hardcoded defaults.

Strict Constraints:

  • DO NOT Hardcode: Never use hardcoded Google Ads API versions (e.g., v24) or language runtime versions (e.g., Python 3.8+, Java 11+) in generated code or environment setup instructions, unless the user explicitly requests a specific version.
  • MANDATORY Dynamic Resolution: You must dynamically resolve the latest stable versions at the start of execution before generating any code or configuration, using the procedures detailed below.

A. Dynamic API Version Resolution

To ensure the integration is secure, stable, and up-to-date, you MUST resolve the absolute newest stable major version of the Google Ads API dynamically.

Execution Steps:

  1. Pre-Flight Version Resolution: Use your web search or URL-reading tools to inspect the latest entry in the Google Ads API Release Notes or the highest versioned directory in the Googleapis Github Repository to resolve RESOLVED_API_VERSION (e.g., v24). If using Java, you MUST also resolve the latest stable release version of the Google Ads Java Client Library (referred to as RESOLVED_LIBRARY_VERSION, e.g., 34.0.0).

  2. Mandatory Response Anchor: You MUST output the following confirmation block as the very first line of your response to the user. Do not output any greeting, pleasantries, or introductory text before this block.

    [SYSTEM: Using Google Ads API version: RESOLVED_API_VERSION (Resolved from release notes)]
    
  3. Strict Placeholder Mapping Table: You MUST perform on-the-fly search-and-replace on all code templates and reference files using the mapping table below. Do not leave raw placeholders in the final output.

    Target Language / Tech Placeholder in Template Replacement Pattern Example (Assuming API v24)
    Java (Maven/Gradle) LATEST_LIBRARY_VERSION Search & substitute the latest Maven release version of the library. 34.0.0
    Java (Imports) vXX Replace with lower-case API version. com.google.ads.googleads.v24
    .NET / C# (Namespaces) VXX Replace with title-case API version. Google.Ads.GoogleAds.V24
    PHP (Namespaces) VXX Replace with title-case API version. Google\Ads\GoogleAds\V24
    REST (Endpoint URL) vXX Replace with lower-case API version. https://googleads.googleapis.com/v24/...

[!TIP] Offline Fallback: If the URLs are unreachable or the scrape fails, do not halt execution. Fall back to these last-known stable versions:

  • Google Ads API Major Version (RESOLVED_API_VERSION): v24
  • Java Client Library Version (RESOLVED_LIBRARY_VERSION): 34.0.0

B. Dynamic Language Runtime Version Resolution

To prevent the generated setup guides from becoming obsolete due to language deprecation cycles, you MUST resolve language requirements dynamically.

Execution Steps:

  1. Fetch Live Requirements: Use your URL-reading tools to inspect the official Google Ads Client Libraries - Supported Versions page.

  2. Extract Minimums: Identify the minimum supported runtime version for the user's chosen language by scanning the Overview page or compatibility tables (e.g., looking for explicit requirements like Python 3.8+, Java 11+, .NET 6.0+, PHP 8.1+, Ruby 3.0+).

  3. Apply On-The-Fly: Substitute all runtime placeholders (e.g., <PYTHON_MIN_VERSION>) in your generated setup guides with these resolved versions.

[!TIP] Offline Fallback: If the URL is unreachable or the scrape fails, do not halt execution. Fall back to these last-known safe minimum

자주 묻는 질문

Python 말고 다른 언어도 다루나요?

네. Java, .NET, PHP, Ruby, Perl과 직접 REST 요청을 다룹니다.

권한 오류도 도와주나요?

네. 권한 거부나 로그인 고객 ID 문제 같은 오류를 해결하도록 돕습니다.

고정된 버전 번호를 쓰나요?

아닙니다. 대신 현재 안정 버전을 확인하도록 설계되었습니다.

상세 정보

작성자의 원본 설명

Guides developers through Google Ads API quickstart: credential setup, choosing from 6 client libraries/REST, configuring environments, and running a "retrieve campaigns" script. Troubleshoots common setup errors: USER_PERMISSION_DENIED, login_customer_id issues, and DEVELOPER_TOKEN_NOT_APPROVED. Use this skill when: - The user asks how to get started with the Google Ads API. - The user needs to set up Google Ads credentials or developer tokens. - The user wants to write a quickstart/example script for Google Ads. - The user encounters errors like USER_PERMISSION_DENIED or DEVELOPER_TOKEN_NOT_

repo: google/skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬