[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M698XCNR4VNXQ9PCBYCGQRM1":3,"skill-same:01M698XCNR4VNXQ9PCBYCGQRM1":114},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":50,"linkOnly":51,"markdownContent":52,"markdownBody":53,"frontMatter":54,"refName":61,"commitSha":62,"skillDirectory":63,"forksCount":64,"repositoryHtmlUrl":65,"repositoryHomepageUrl":17,"ownerHtmlUrl":66,"ownerBlogUrl":67,"ownerDescription":68,"updatedAt":69,"install":70,"resources":83},"01M698XCNR4VNXQ9PCBYCGQRM1","google-ads-api-quickstart","Google Ads API 快速入门","Guides developers through Google Ads API quickstart: credential setup, choosing from 6 client libraries\u002FREST, configuring environments, and running a \"retrieve campaigns\" script. Troubleshoots common setup errors: USER_PERMISSION_DENIED, login_customer_id issues, and CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION (a Google Cloud project with Test access calling a production account).\n\nUse this skill when:\n- The user asks how to get started with the Google Ads API.\n- The user needs to set up Google Ads API access in a Google Cloud project or OAuth credentials.\n- The user wants to write a quickstart\u002Fexample script for Google Ads.\n- The user encounters errors like USER_PERMISSION_DENIED, CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION, or the legacy DEVELOPER_TOKEN_NOT_APPROVED.","指导开发者完成 Google Ads API 快速入门：设置凭证、从 6 种客户端库\u002FREST 中选择、配置环境，并运行“检索广告系列”脚本。排查常见设置错误：USER_PERMISSION_DENIED、login_customer_id 相关问题，以及 CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION（拥有 Test 访问权限的 Google Cloud 项目调用了生产账户）。\n\n在以下情况下使用此技能：\n- 用户询问如何开始使用 Google Ads API。\n- 用户需要在 Google Cloud 项目中配置 Google Ads API 访问权限或 OAuth 凭证。\n- 用户希望编写一个 Google Ads 快速入门\u002F示例脚本。\n- 用户遇到 USER_PERMISSION_DENIED、CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION 或旧版 DEVELOPER_TOKEN_NOT_APPROVED 等错误。","google\u002Fskills","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698WR0H76ENHE587T9EJT89",24235,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fads\u002Fgoogle-ads-api-quickstart\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",[31,32,33,34,35,10,36,37,38,39,40,41,42,43,44,45,46,47,48,49],"google ads api quickstart","ads","quickstart","google ads","api","get started","client","connectivity","id","use","tokens","for","developer","write","login","how","guides","team","resources","2026-11-10 10:12:30",false,"---\nname: google-ads-api-quickstart\ndescription: |\n  Guides developers through Google Ads API quickstart: credential setup, choosing from 6 client libraries\u002FREST, configuring environments, and running a \"retrieve campaigns\" script. Troubleshoots common setup errors: USER_PERMISSION_DENIED, login_customer_id issues, and CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION (a Google Cloud project with Test access calling a production account).\n\n  Use this skill when:\n  - The user asks how to get started with the Google Ads API.\n  - The user needs to set up Google Ads API access in a Google Cloud project or OAuth credentials.\n  - The user wants to write a quickstart\u002Fexample script for Google Ads.\n  - The user encounters errors like USER_PERMISSION_DENIED, CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION, or the legacy DEVELOPER_TOKEN_NOT_APPROVED.\ncompatibility: \"Outbound HTTPS connectivity required to access the Google Ads API and documentation. Note: If network access is restricted, the agent will fall back to using the last-known stable versions cached within the skill resources.\"\nmetadata:\n  author: google-ads-api-team\n  version: \"1.1.0\"\n  category: GoogleAds\n---\n# Google Ads API Quickstart\nThis skill guides you from absolute zero to running your first successful request to retrieve campaigns.\n\n## Supported Tracks\nYou can choose to use this skill with:\n\n1. **Official Client Libraries:** Python, Java, .NET, PHP, Ruby, or Perl.\n2. **Direct REST:** Raw HTTP REST requests.\n\n---\n\n## Crucial Requirement: Dynamic Version Resolution & Runtime Resolution\n\n> [!IMPORTANT]\n> 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.\n\n### Strict Constraints:\n\n*   **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.\n*   **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.\n\n### A. Dynamic API Version Resolution\nTo 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.\n\n#### Execution Steps:\n\n1.  **Pre-Flight Version Resolution:** Use your web search or URL-reading tools to inspect the latest entry in the [Google Ads API Release Notes](https:\u002F\u002Fdevelopers.google.com\u002Fgoogle-ads\u002Fapi\u002Fdocs\u002Frelease-notes.md.txt) or the highest versioned directory in the [Googleapis Github Repository](https:\u002F\u002Fgithub.com\u002Fgoogleapis\u002Fgoogleapis\u002Ftree\u002Fmaster\u002Fgoogle\u002Fads\u002Fgoogleads) 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`).\n\n2.  **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.\n    \n    ```text\n    [SYSTEM: Using Google Ads API version: RESOLVED_API_VERSION (Resolved from release notes)]\n    ```\n\n3.  **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.\n\n    | Target Language \u002F Tech | Placeholder in Template | Replacement Pattern | Example (Assuming API `v24`) |\n    | :--- | :--- | :--- | :--- |\n    | **Java** (Maven\u002FGradle) | `LATEST_LIBRARY_VERSION` | Search & substitute the latest Maven release version of the library. | `34.0.0` |\n    | **Java** (Imports) | `vXX` | Replace with **lower-case** API version. | `com.google.ads.googleads.v24` |\n    | **.NET \u002F C#** (Namespaces) | `VXX` | Replace with **title-case** API version. | `Google.Ads.GoogleAds.V24` |\n    | **PHP** (Namespaces) | `VXX` | Replace with **title-case** API version. | `Google\\Ads\\GoogleAds\\V24` |\n    | **REST** (Endpoint URL) | `vXX` | Replace with **lower-case** API version. | `https:\u002F\u002Fgoogleads.googleapis.com\u002Fv24\u002F...` |\n\n> [!TIP]\n> **Offline Fallback:** If the URLs are unreachable or the scrape fails, do not halt execution. Fall back to these last-known stable versions:\n> *   **Google Ads API Major Version (`RESOLVED_API_VERSION`):** `v24`\n> *   **Java Client Library Version (`RESOLVED_LIBRARY_VERSION`):** `34.0.0`\n\n### B. Dynamic Language Runtime Version Resolution\nTo prevent the generated setup guides from becoming obsolete due to language deprecation cycles, you **MUST** resolve language requirements dynamically.\n\n#### Execution Steps:\n\n1.  **Fetch Live Requirements:** Use your URL-reading tools to inspect the official [Google Ads Client Libraries - Supported Versions](https:\u002F\u002Fdevelopers.google.com\u002Fgoogle-ads\u002Fapi\u002Fdocs\u002Fclient-libs.md.txt#supported_api_versions) page.\n\n2.  **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+).\n\n3.  **Apply On-The-Fly:** Substitute all runtime placeholders (e.g., `\u003CPYTHON_MIN_VERSION>`) in your generated setup guides with these resolved versions.\n\n> [!TIP]\n> **Offline Fallback:** If the URL is unreachable or the scrape fails, do not halt execution. Fall back to these last-known safe minimum versions:\n> *   **Python:** `3.9+`\n> *   **Java:** `11+`\n> *   **.NET:** `6.0+`\n> *   **PHP:** `8.1+`\n> *   **Ruby:** `3.0+`\n> *   **Perl:** `5.28.1+`\n\n---\n\n## Step 1: Obtain Google Ads API Credentials\n\nBefore installing libraries or making API calls, you need a Google Cloud\nproject with Google Ads API access and four authentication parameters.\n\n> [!NOTE]\n> **Developer tokens were sunset on September 9, 2026.** API access levels now\n> belong to the Google Cloud project that owns your OAuth client (or service\n> account). Do not send the user to the API Center in a Google Ads manager\n> account to request a developer token; those requests are no longer processed.\n> Existing `developer_token` values in configuration files are ignored by the\n> API and can be removed.\n\n### 1. Google Cloud Project with Google Ads API Access\n\n*   **Purpose:** Holds your API access level and quota. The project that owns your OAuth client ID (or service account) determines which accounts you can call and how many operations per day you get.\n*   **How to Obtain:**\n    1. Open the [Google Ads API Overview page](https:\u002F\u002Fconsole.cloud.google.com\u002Fgoogle\u002Fads-apis\u002Foverview) in the Google Cloud Console and select (or create) a project.\n    2. Click **Enable**. Enabling the API grants **Test access**: up to 15,000 operations per day against Google Ads **test accounts** only.\n    3. To call **production** accounts, apply for **Explorer access** from the\n       same Overview page (review is automated in most cases; up to 2,880\n       operations per day). **Basic** and **Standard** access are applied for\n       from the same page and require brand verification for the project.\n    4. If your team already had a developer token, its access level was transferred to the Cloud projects that used it in the 90 days before the sunset. Check the Overview page, not the API Center.\n\n> [!WARNING]\n> **Test Access Restriction:** If your Cloud project only has Test access, you\n> **MUST ONLY** target **Google Ads Test Accounts**. Calling a production\n> account fails with `CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION` (API v25 and\n> later) or `ACTION_NOT_PERMITTED` (v24 and earlier).\n\n### 2. OAuth2 Client ID & Client Secret\n\n*   **Purpose:** Identifies your application to Google's OAuth 2.0 server and allows you to request user authorization.\n*   **How to Obtain:**\n    1. Open the [Google Cloud Console](https:\u002F\u002Fconsole.cloud.google.com\u002F).\n    2. Create a new project (or select an existing one).\n    3. Search for the **Google Ads API** in the API Library and click\n       **Enable** (skip if you already enabled it in Section 1). Use the\n       **same project** as in Section 1: the project that owns the OAuth client\n       determines your API access level.\n    4. Configure the **OAuth Consent Screen**:\n       *   Select **External** user type.\n       *   Set the Publishing Status to **Testing**.\n       *   > [!IMPORTANT]\n       *   > **Add Test Users:** You **MUST** add the email address of the Google account you use to log into Google Ads as a **Test User** in this step. Otherwise, you will be blocked during authorization.\n    5. Create the OAuth Client:\n       *   Go to **APIs & Services 🡒 Credentials**.\n       *   Click **Create Credentials 🡒 OAuth client ID**.\n       *   Select **Desktop App** as the Application Type.\n       *   Name the client and click **Create**.\n    6. **Download Secrets:** Click the download icon (JSON) next to your newly created Client ID. Save this file locally as `client_secrets.json`.\n\n### 3. OAuth2 Refresh Token\n\n*   **Purpose:** Allows your application to obtain new access tokens automatically without requiring manual user login every hour.\n*   **How to Obtain:**\n    You must run the Google Cloud (`gcloud`) CLI to generate your refresh token.\n\n    #### 1. Install and Verify gcloud CLI:\n    Ensure the [gcloud CLI](https:\u002F\u002Fcloud.google.com\u002Fsdk\u002Fdocs\u002Finstall) is installed and available in your terminal.\n\n    #### 2. Execute the Login Flow:\n    Run the following command in your terminal, passing the path to the `client_secrets.json` file downloaded in the previous step:\n    \n    ```bash\n    gcloud auth application-default login \\\n      --scopes=https:\u002F\u002Fwww.googleapis.com\u002Fauth\u002Fadwords,https:\u002F\u002Fwww.googleapis.com\u002Fauth\u002Fcloud-platform \\\n      --client-id-file=client_secrets.json\n    ```\n\n    #### 3. Authorize in Browser:\n    1. The command will open a Google Account login window in your browser.\n    2. Sign in using the **Test User** email registered in your OAuth Consent Screen setup.\n    3. If your app is unverified, click **Advanced** and continue to the project. Click **Continue** to grant permissions.\n\n    #### 4. Retrieve Your Refresh Token:\n    Once successful, `gcloud` will output a message indicating where the credentials were saved (typically `~\u002F.config\u002Fgcloud\u002Fapplication_default_credentials.json`). Open that file to copy your `refresh_token`.\n\n### 4. Client Customer ID\n\n*   **Purpose:** The 10-digit ID of the specific Google Ads account you want to query or make changes to.\n*   **Format:** Must be 10 digits with **no hyphens** (e.g., `1234567890`, NOT `123-456-7890`).\n*   **How to Find It:** Log in to the Google Ads UI; the ID is displayed in the top-right corner next to your user icon.\n\n> [!IMPORTANT]\n> **Test Account Requirement:** If your Google Cloud project only has Test\n> access, this **MUST** be the Customer ID of a **Test Account**. Test accounts\n> have a red \"Test account\" banner in the top right of the UI.\n\n---\n\n### 5. Login Customer ID\n\n*   **What it is:** The 10-digit Customer ID of the Google Ads Manager Account that owns or manages the target client account.\n*   **Format:** Must be 10 digits with **no hyphens** (e.g., `9876543210`).\n*   **When to Use:** This is **mandatory** if the OAuth user belongs to a Manager Account, but you are querying a child\u002Fclient account (Client Customer ID).\n\n> [!CAUTION]\n> **Preventing `USER_PERMISSION_DENIED`:**\n> If you are accessing a client account through a Manager Account hierarchy, you **MUST** set this parameter.\n> *   `login_customer_id` = The **Manager** Account ID.\n> *   `client_customer_id` = The **Child\u002FClient** Account ID.\n> Leaving `login_customer_id` blank in a manager-client hierarchy is the #1 cause of permission errors.\n\n---\n\n## Step 2: Choose Your Integration Strategy\n\nDevelopers can connect to the Google Ads API using either the official high-level client libraries or direct HTTPS REST requests.\n\n### Path A: Official Client Libraries (Recommended)\n\n> [!IMPORTANT]\n> **Mandatory Agent Directive:** Once the user selects their language, you **MUST**:\n> 1. Use the `view_file` tool to lazy-load the corresponding reference file listed below.\n> 2. Apply the **Dynamic Version Resolution** (Section B) to dynamically replace all `vXX`\u002F`VXX` placeholders and library versions *before* generating code.\n\n#### Python\nIf you need to set up the Google Ads API environment for Python, do not guess the configuration.\nInstead, read the detailed setup guide:\n\n*   [Google Ads API Python Setup Reference](references\u002Fpython.md)\n*(Package: `google-ads`)*\n\n#### Java\nIf you need to set up the Google Ads API environment for Java, do not guess the configuration.\nInstead, read the detailed setup guide:\n\n*   [Google Ads API Java Setup Reference](references\u002Fjava.md)\n*(Artifact: `com.google.api-ads:google-ads`)*\n\n#### .NET \u002F C#\nIf you need to set up the Google Ads API environment for .NET\u002FC#, do not guess the configuration.\nInstead, read the detailed setup guide:\n\n*   [Google Ads API .NET Setup Reference](references\u002Fdotnet.md)\n*(Package: `Google.Ads.GoogleAds`)*\n\n#### PHP\nIf you need to set up the Google Ads API environment for PHP, do not guess the configuration.\nInstead, read the detailed setup guide:\n\n*   [Google Ads API PHP Setup Reference](references\u002Fphp.md)\n*(Package: `googleads\u002Fgoogle-ads-php`)*\n\n#### Ruby\nIf you need to set up the Google Ads API environment for Ruby, do not guess the configuration.\nInstead, read the detailed setup guide:\n\n*   [Google Ads API Ruby Setup Reference](references\u002Fruby.md)\n*(Gem: `google-ads-ruby`)*\n\n#### Perl\nIf you need to set up the Google Ads API environment for Perl, do not guess the configuration.\nInstead, read the detailed setup guide:\n\n*   [Google Ads API Perl Setup Reference](references\u002Fperl.md)\n*(Package: `Google::Ads::GoogleAds::Client`)*\n\n### Path B: Direct HTTP REST (No Library Overhead)\n\nUse this path if the user's environment does not support the official client libraries (e.g., lightweight serverless functions, custom language stacks, or restricted runtimes).\n\n> [!IMPORTANT]\n> **Mandatory Agent Directive:** If the user chooses the REST path, you **MUST**:\n> 1. Use the `view_file` tool to lazy-load the REST reference file below.\n> 2. Apply **Dynamic Version Resolution** (Section B) to replace all `vXX` placeholders in the endpoint URLs (e.g., resolving `vXX` to `v24` in `https:\u002F\u002Fgoogleads.googleapis.com\u002Fv24\u002F...`).\n\n#### REST (HTTP)\nIf you need to set up the Google Ads API environment for REST (HTTP), do not guess the configuration.\nInstead, read the detailed setup guide:\n\n*   [Google Ads API REST Setup Reference](references\u002Frest.md)\n*(Protocol: Raw HTTP POST JSON)*\n\n---\n\n## Cross-Referencing: AI-Assistant & MCP Connection\n\n> [!TIP]\n> **AI Assistant \u002F MCP Integration Handoff:**\n> If the goal is to connect an **AI Assistant** (such as Gemini, Cursor, or Claude Code) to query Google Ads via natural language:\n> 1. **DO NOT** write custom scripts or client library code.\n> 2. **STOP** executing this skill.\n> 3. **Transition Immediately** to the **`google-ads-api-mcp-setup`** skill to install and configure the official Google Ads Model Context Protocol (MCP) Server.\n\n---\n\n## Step 4: Troubleshooting Common Errors\n\n> [!IMPORTANT]\n> **Static Diagnostics Constraint:** When troubleshooting, you **MUST NOT** execute bash commands, run local test scripts, or attempt to reproduce the error in the workspace. Rely entirely on static code analysis, configuration review, and the diagnostic guides below to prevent endless, failing execution loops.\n\n### 1. Error: `USER_PERMISSION_DENIED`\n\n*   **Symptom:** You receive a `USER_PERMISSION_DENIED` error when executing API requests (e.g., retrieving campaigns).\n*   **Likely Cause:** The authenticating OAuth2 user has access to the target client account *indirectly* through a **Manager Account**, but the request header is missing the Manager Account's ID.\n\n#### Required Agent Response Checklist:\nWhen helping a user with this error, your response **MUST** include:\n\n1.  [ ] **Explain the Hierarchy:** Explain that the authenticating user likely belongs to a Manager Account that sits above the target client account.\n2.  [ ] **Provide the Fix:** Instruct the user to add their 10-digit Manager Account ID as the `login_customer_id` in their configuration file.\n3.  [ ] **Explain the Routing Logic:** Explain that `login_customer_id` tells the API to route the OAuth credentials through the manager account to validate access to the child account.\n4.  [ ] **Provide the Configuration Template:** Show the exact YAML configuration block below.\n\n> [!CAUTION]\n> **Security Guardrail:** Under no circumstances should you suggest exposing\n> raw passwords, creating additional Google Cloud projects to avoid\n> access-level review, or widening OAuth scopes beyond the standard `adwords`\n> scope to bypass this error.\n\n#### Configuration Fix Example (`google-ads.yaml`):\n\n```yaml\nclient_id: INSERT_OAUTH2_CLIENT_ID_HERE\nclient_secret: INSERT_OAUTH2_CLIENT_SECRET_HERE\nrefresh_token: INSERT_OAUTH2_REFRESH_TOKEN_HERE\n\n# Add your 10-digit Manager Account ID here to resolve USER_PERMISSION_DENIED:\nlogin_customer_id: INSERT_LOGIN_CUSTOMER_ID_HERE\n```\n\n### 2. Error: `CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION`\n\n*   **Symptom:** The script fails with `AuthorizationError.CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION` (API v25 and later) or `AuthorizationError.ACTION_NOT_PERMITTED` (v24 and earlier).\n*   **Likely Cause:** The Google Cloud project that owns your OAuth client has only **Test access**, and you are targeting a live production Google Ads account.\n*   **Legacy Variant:** Code that still sends a developer token may report\n    `DEVELOPER_TOKEN_NOT_APPROVED`. Developer tokens were sunset on\n    September 9, 2026. The fix is the same (the access level of the Cloud\n    project), plus upgrading the client library to a version that no longer\n    requires the token.\n\n#### Required Agent Response Checklist:\nWhen helping a user with this error, your response **MUST** include:\n\n1.  [ ] **Explain the Test Access Restriction:** Explain that a Cloud project with Test access is fully functional but **restricted to Google Ads Test Accounts only**.\n2.  [ ] **Define Production Access Levels:** You **MUST** explicitly list all\n    three access levels by name: state that targeting live production accounts\n    requires the Cloud project to hold **Explorer Access**, **Basic Access**,\n    or **Standard Access**, applied for on the\n    [Google Ads API Overview page](https:\u002F\u002Fconsole.cloud.google.com\u002Fgoogle\u002Fads-apis\u002Foverview)\n    in the Google Cloud Console. Do not condense or paraphrase this to \"at\n    least Basic Access\".\n3.  [ ] **Check the Right Project:** Remind the user that the access level is\n    read from the project that owns the OAuth client ID (user authentication)\n    or the service account (service account authentication), not from the\n    project currently selected in `gcloud`.\n4.  [ ] **Provide Sandbox Setup Steps:** Guide the user on how to set up a sandbox environment:\n    *   Create a **Test Manager Account** (available with Test access).\n    *   Create **Test Client Accounts** under that Test Manager.\n    *   Use the Test Client Customer ID in their configuration.\n5.  [ ] **Provide Links to the Guides:** Point the user to the official [Google Ads API Test Accounts Guide](https:\u002F\u002Fdevelopers.google.com\u002Fgoogle-ads\u002Fapi\u002Fdocs\u002Fbest-practices\u002Ftest-accounts.md.txt) and the [API access levels guide](https:\u002F\u002Fdevelopers.google.com\u002Fgoogle-ads\u002Fapi\u002Fdocs\u002Fapi-policy\u002Faccess-levels.md.txt).\n\n> [!CAUTION]\n> **Security & Integrity Guardrail:** You **MUST NOT** advise the developer to\n> modify the client library source code, bypass access-level checks, or use\n> third-party \"cracked\" wrappers to bypass this error. The restriction is\n> enforced server-side by Google, and client-side modifications will not work.\n\n","# Google Ads API Quickstart\nThis skill guides you from absolute zero to running your first successful request to retrieve campaigns.\n\n## Supported Tracks\nYou can choose to use this skill with:\n\n1. **Official Client Libraries:** Python, Java, .NET, PHP, Ruby, or Perl.\n2. **Direct REST:** Raw HTTP REST requests.\n\n---\n\n## Crucial Requirement: Dynamic Version Resolution & Runtime Resolution\n\n> [!IMPORTANT]\n> 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.\n\n### Strict Constraints:\n\n*   **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.\n*   **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.\n\n### A. Dynamic API Version Resolution\nTo 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.\n\n#### Execution Steps:\n\n1.  **Pre-Flight Version Resolution:** Use your web search or URL-reading tools to inspect the latest entry in the [Google Ads API Release Notes](https:\u002F\u002Fdevelopers.google.com\u002Fgoogle-ads\u002Fapi\u002Fdocs\u002Frelease-notes.md.txt) or the highest versioned directory in the [Googleapis Github Repository](https:\u002F\u002Fgithub.com\u002Fgoogleapis\u002Fgoogleapis\u002Ftree\u002Fmaster\u002Fgoogle\u002Fads\u002Fgoogleads) 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`).\n\n2.  **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.\n    \n    ```text\n    [SYSTEM: Using Google Ads API version: RESOLVED_API_VERSION (Resolved from release notes)]\n    ```\n\n3.  **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.\n\n    | Target Language \u002F Tech | Placeholder in Template | Replacement Pattern | Example (Assuming API `v24`) |\n    | :--- | :--- | :--- | :--- |\n    | **Java** (Maven\u002FGradle) | `LATEST_LIBRARY_VERSION` | Search & substitute the latest Maven release version of the library. | `34.0.0` |\n    | **Java** (Imports) | `vXX` | Replace with **lower-case** API version. | `com.google.ads.googleads.v24` |\n    | **.NET \u002F C#** (Namespaces) | `VXX` | Replace with **title-case** API version. | `Google.Ads.GoogleAds.V24` |\n    | **PHP** (Namespaces) | `VXX` | Replace with **title-case** API version. | `Google\\Ads\\GoogleAds\\V24` |\n    | **REST** (Endpoint URL) | `vXX` | Replace with **lower-case** API version. | `https:\u002F\u002Fgoogleads.googleapis.com\u002Fv24\u002F...` |\n\n> [!TIP]\n> **Offline Fallback:** If the URLs are unreachable or the scrape fails, do not halt execution. Fall back to these last-known stable versions:\n> *   **Google Ads API Major Version (`RESOLVED_API_VERSION`):** `v24`\n> *   **Java Client Library Version (`RESOLVED_LIBRARY_VERSION`):** `34.0.0`\n\n### B. Dynamic Language Runtime Version Resolution\nTo prevent the generated setup guides from becoming obsolete due to language deprecation cycles, you **MUST** resolve language requirements dynamically.\n\n#### Execution Steps:\n\n1.  **Fetch Live Requirements:** Use your URL-reading tools to inspect the official [Google Ads Client Libraries - Supported Versions](https:\u002F\u002Fdevelopers.google.com\u002Fgoogle-ads\u002Fapi\u002Fdocs\u002Fclient-libs.md.txt#supported_api_versions) page.\n\n2.  **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+).\n\n3.  **Apply On-The-Fly:** Substitute all runtime placeholders (e.g., `\u003CPYTHON_MIN_VERSION>`) in your generated setup guides with these resolved versions.\n\n> [!TIP]\n> **Offline Fallback:** If the URL is unreachable or the scrape fails, do not halt execution. Fall back to these last-known safe minimum versions:\n> *   **Python:** `3.9+`\n> *   **Java:** `11+`\n> *   **.NET:** `6.0+`\n> *   **PHP:** `8.1+`\n> *   **Ruby:** `3.0+`\n> *   **Perl:** `5.28.1+`\n\n---\n\n## Step 1: Obtain Google Ads API Credentials\n\nBefore installing libraries or making API calls, you need a Google Cloud\nproject with Google Ads API access and four authentication parameters.\n\n> [!NOTE]\n> **Developer tokens were sunset on September 9, 2026.** API access levels now\n> belong to the Google Cloud project that owns your OAuth client (or service\n> account). Do not send the user to the API Center in a Google Ads manager\n> account to request a developer token; those requests are no longer processed.\n> Existing `developer_token` values in configuration files are ignored by the\n> API and can be removed.\n\n### 1. Google Cloud Project with Google Ads API Access\n\n*   **Purpose:** Holds your API access level and quota. The project that owns your OAuth client ID (or service account) determines which accounts you can call and how many operations per day you get.\n*   **How to Obtain:**\n    1. Open the [Google Ads API Overview page](https:\u002F\u002Fconsole.cloud.google.com\u002Fgoogle\u002Fads-apis\u002Foverview) in the Google Cloud Console and select (or create) a project.\n    2. Click **Enable**. Enabling the API grants **Test access**: up to 15,000 operations per day against Google Ads **test accounts** only.\n    3. To call **production** accounts, apply for **Explorer access** from the\n       same Overview page (review is automated in most cases; up to 2,880\n       operations per day). **Basic** and **Standard** access are applied for\n       from the same page and require brand verification for the project.\n    4. If your team already had a developer token, its access level was transferred to the Cloud projects that used it in the 90 days before the sunset. Check the Overview page, not the API Center.\n\n> [!WARNING]\n> **Test Access Restriction:** If your Cloud project only has Test access, you\n> **MUST ONLY** target **Google Ads Test Accounts**. Calling a production\n> account fails with `CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION` (API v25 and\n> later) or `ACTION_NOT_PERMITTED` (v24 and earlier).\n\n### 2. OAuth2 Client ID & Client Secret\n\n*   **Purpose:** Identifies your application to Google's OAuth 2.0 server and allows you to request user authorization.\n*   **How to Obtain:**\n    1. Open the [Google Cloud Console](https:\u002F\u002Fconsole.cloud.google.com\u002F).\n    2. Create a new project (or select an existing one).\n    3. Search for the **Google Ads API** in the API Library and click\n       **Enable** (skip if you already enabled it in Section 1). Use the\n       **same project** as in Section 1: the project that owns the OAuth client\n       determines your API access level.\n    4. Configure the **OAuth Consent Screen**:\n       *   Select **External** user type.\n       *   Set the Publishing Status to **Testing**.\n       *   > [!IMPORTANT]\n       *   > **Add Test Users:** You **MUST** add the email address of the Google account you use to log into Google Ads as a **Test User** in this step. Otherwise, you will be blocked during authorization.\n    5. Create the OAuth Client:\n       *   Go to **APIs & Services 🡒 Credentials**.\n       *   Click **Create Credentials 🡒 OAuth client ID**.\n       *   Select **Desktop App** as the Application Type.\n       *   Name the client and click **Create**.\n    6. **Download Secrets:** Click the download icon (JSON) next to your newly created Client ID. Save this file locally as `client_secrets.json`.\n\n### 3. OAuth2 Refresh Token\n\n*   **Purpose:** Allows your application to obtain new access tokens automatically without requiring manual user login every hour.\n*   **How to Obtain:**\n    You must run the Google Cloud (`gcloud`) CLI to generate your refresh token.\n\n    #### 1. Install and Verify gcloud CLI:\n    Ensure the [gcloud CLI](https:\u002F\u002Fcloud.google.com\u002Fsdk\u002Fdocs\u002Finstall) is installed and available in your terminal.\n\n    #### 2. Execute the Login Flow:\n    Run the following command in your terminal, passing the path to the `client_secrets.json` file downloaded in the previous step:\n    \n    ```bash\n    gcloud auth application-default login \\\n      --scopes=https:\u002F\u002Fwww.googleapis.com\u002Fauth\u002Fadwords,https:\u002F\u002Fwww.googleapis.com\u002Fauth\u002Fcloud-platform \\\n      --client-id-file=client_secrets.json\n    ```\n\n    #### 3. Authorize in Browser:\n    1. The command will open a Google Account login window in your browser.\n    2. Sign in using the **Test User** email registered in your OAuth Consent Screen setup.\n    3. If your app is unverified, click **Advanced** and continue to the project. Click **Continue** to grant permissions.\n\n    #### 4. Retrieve Your Refresh Token:\n    Once successful, `gcloud` will output a message indicating where the credentials were saved (typically `~\u002F.config\u002Fgcloud\u002Fapplication_default_credentials.json`). Open that file to copy your `refresh_token`.\n\n### 4. Client Customer ID\n\n*   **Purpose:** The 10-digit ID of the specific Google Ads account you want to query or make changes to.\n*   **Format:** Must be 10 digits with **no hyphens** (e.g., `1234567890`, NOT `123-456-7890`).\n*   **How to Find It:** Log in to the Google Ads UI; the ID is displayed in the top-right corner next to your user icon.\n\n> [!IMPORTANT]\n> **Test Account Requirement:** If your Google Cloud project only has Test\n> access, this **MUST** be the Customer ID of a **Test Account**. Test accounts\n> have a red \"Test account\" banner in the top right of the UI.\n\n---\n\n### 5. Login Customer ID\n\n*   **What it is:** The 10-digit Customer ID of the Google Ads Manager Account that owns or manages the target client account.\n*   **Format:** Must be 10 digits with **no hyphens** (e.g., `9876543210`).\n*   **When to Use:** This is **mandatory** if the OAuth user belongs to a Manager Account, but you are querying a child\u002Fclient account (Client Customer ID).\n\n> [!CAUTION]\n> **Preventing `USER_PERMISSION_DENIED`:**\n> If you are accessing a client account through a Manager Account hierarchy, you **MUST** set this parameter.\n> *   `login_customer_id` = The **Manager** Account ID.\n> *   `client_customer_id` = The **Child\u002FClient** Account ID.\n> Leaving `login_customer_id` blank in a manager-client hierarchy is the #1 cause of permission errors.\n\n---\n\n## Step 2: Choose Your Integration Strategy\n\nDevelopers can connect to the Google Ads API using either the official high-level client libraries or direct HTTPS REST requests.\n\n### Path A: Official Client Libraries (Recommended)\n\n> [!IMPORTANT]\n> **Mandatory Agent Directive:** Once the user selects their language, you **MUST**:\n> 1. Use the `view_file` tool to lazy-load the corresponding reference file listed below.\n> 2. Apply the **Dynamic Version Resolution** (Section B) to dynamically replace all `vXX`\u002F`VXX` placeholders and library versions *before* generating code.\n\n#### Python\nIf you need to set up the Google Ads API environment for Python, do not guess the configuration.\nInstead, read the detailed setup guide:\n\n*   [Google Ads API Python Setup Reference](references\u002Fpython.md)\n*(Package: `google-ads`)*\n\n#### Java\nIf you need to set up the Google Ads API environment for Java, do not guess the configuration.\nInstead, read the detailed setup guide:\n\n*   [Google Ads API Java Setup Reference](references\u002Fjava.md)\n*(Artifact: `com.google.api-ads:google-ads`)*\n\n#### .NET \u002F C#\nIf you need to set up the Google Ads API environment for .NET\u002FC#, do not guess the configuration.\nInstead, read the detailed setup guide:\n\n*   [Google Ads API .NET Setup Reference](references\u002Fdotnet.md)\n*(Package: `Google.Ads.GoogleAds`)*\n\n#### PHP\nIf you need to set up the Google Ads API environment for PHP, do not guess the configuration.\nInstead, read the detailed setup guide:\n\n*   [Google Ads API PHP Setup Reference](references\u002Fphp.md)\n*(Package: `googleads\u002Fgoogle-ads-php`)*\n\n#### Ruby\nIf you need to set up the Google Ads API environment for Ruby, do not guess the configuration.\nInstead, read the detailed setup guide:\n\n*   [Google Ads API Ruby Setup Reference](references\u002Fruby.md)\n*(Gem: `google-ads-ruby`)*\n\n#### Perl\nIf you need to set up the Google Ads API environment for Perl, do not guess the configuration.\nInstead, read the detailed setup guide:\n\n*   [Google Ads API Perl Setup Reference](references\u002Fperl.md)\n*(Package: `Google::Ads::GoogleAds::Client`)*\n\n### Path B: Direct HTTP REST (No Library Overhead)\n\nUse this path if the user's environment does not support the official client libraries (e.g., lightweight serverless functions, custom language stacks, or restricted runtimes).\n\n> [!IMPORTANT]\n> **Mandatory Agent Directive:** If the user chooses the REST path, you **MUST**:\n> 1. Use the `view_file` tool to lazy-load the REST reference file below.\n> 2. Apply **Dynamic Version Resolution** (Section B) to replace all `vXX` placeholders in the endpoint URLs (e.g., resolving `vXX` to `v24` in `https:\u002F\u002Fgoogleads.googleapis.com\u002Fv24\u002F...`).\n\n#### REST (HTTP)\nIf you need to set up the Google Ads API environment for REST (HTTP), do not guess the configuration.\nInstead, read the detailed setup guide:\n\n*   [Google Ads API REST Setup Reference](references\u002Frest.md)\n*(Protocol: Raw HTTP POST JSON)*\n\n---\n\n## Cross-Referencing: AI-Assistant & MCP Connection\n\n> [!TIP]\n> **AI Assistant \u002F MCP Integration Handoff:**\n> If the goal is to connect an **AI Assistant** (such as Gemini, Cursor, or Claude Code) to query Google Ads via natural language:\n> 1. **DO NOT** write custom scripts or client library code.\n> 2. **STOP** executing this skill.\n> 3. **Transition Immediately** to the **`google-ads-api-mcp-setup`** skill to install and configure the official Google Ads Model Context Protocol (MCP) Server.\n\n---\n\n## Step 4: Troubleshooting Common Errors\n\n> [!IMPORTANT]\n> **Static Diagnostics Constraint:** When troubleshooting, you **MUST NOT** execute bash commands, run local test scripts, or attempt to reproduce the error in the workspace. Rely entirely on static code analysis, configuration review, and the diagnostic guides below to prevent endless, failing execution loops.\n\n### 1. Error: `USER_PERMISSION_DENIED`\n\n*   **Symptom:** You receive a `USER_PERMISSION_DENIED` error when executing API requests (e.g., retrieving campaigns).\n*   **Likely Cause:** The authenticating OAuth2 user has access to the target client account *indirectly* through a **Manager Account**, but the request header is missing the Manager Account's ID.\n\n#### Required Agent Response Checklist:\nWhen helping a user with this error, your response **MUST** include:\n\n1.  [ ] **Explain the Hierarchy:** Explain that the authenticating user likely belongs to a Manager Account that sits above the target client account.\n2.  [ ] **Provide the Fix:** Instruct the user to add their 10-digit Manager Account ID as the `login_customer_id` in their configuration file.\n3.  [ ] **Explain the Routing Logic:** Explain that `login_customer_id` tells the API to route the OAuth credentials through the manager account to validate access to the child account.\n4.  [ ] **Provide the Configuration Template:** Show the exact YAML configuration block below.\n\n> [!CAUTION]\n> **Security Guardrail:** Under no circumstances should you suggest exposing\n> raw passwords, creating additional Google Cloud projects to avoid\n> access-level review, or widening OAuth scopes beyond the standard `adwords`\n> scope to bypass this error.\n\n#### Configuration Fix Example (`google-ads.yaml`):\n\n```yaml\nclient_id: INSERT_OAUTH2_CLIENT_ID_HERE\nclient_secret: INSERT_OAUTH2_CLIENT_SECRET_HERE\nrefresh_token: INSERT_OAUTH2_REFRESH_TOKEN_HERE\n\n# Add your 10-digit Manager Account ID here to resolve USER_PERMISSION_DENIED:\nlogin_customer_id: INSERT_LOGIN_CUSTOMER_ID_HERE\n```\n\n### 2. Error: `CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION`\n\n*   **Symptom:** The script fails with `AuthorizationError.CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION` (API v25 and later) or `AuthorizationError.ACTION_NOT_PERMITTED` (v24 and earlier).\n*   **Likely Cause:** The Google Cloud project that owns your OAuth client has only **Test access**, and you are targeting a live production Google Ads account.\n*   **Legacy Variant:** Code that still sends a developer token may report\n    `DEVELOPER_TOKEN_NOT_APPROVED`. Developer tokens were sunset on\n    September 9, 2026. The fix is the same (the access level of the Cloud\n    project), plus upgrading the client library to a version that no longer\n    requires the token.\n\n#### Required Agent Response Checklist:\nWhen helping a user with this error, your response **MUST** include:\n\n1.  [ ] **Explain the Test Access Restriction:** Explain that a Cloud project with Test access is fully functional but **restricted to Google Ads Test Accounts only**.\n2.  [ ] **Define Production Access Levels:** You **MUST** explicitly list all\n    three access levels by name: state that targeting live production accounts\n    requires the Cloud project to hold **Explorer Access**, **Basic Access**,\n    or **Standard Access**, applied for on the\n    [Google Ads API Overview page](https:\u002F\u002Fconsole.cloud.google.com\u002Fgoogle\u002Fads-apis\u002Foverview)\n    in the Google Cloud Console. Do not condense or paraphrase this to \"at\n    least Basic Access\".\n3.  [ ] **Check the Right Project:** Remind the user that the access level is\n    read from the project that owns the OAuth client ID (user authentication)\n    or the service account (service account authentication), not from the\n    project currently selected in `gcloud`.\n4.  [ ] **Provide Sandbox Setup Steps:** Guide the user on how to set up a sandbox environment:\n    *   Create a **Test Manager Account** (available with Test access).\n    *   Create **Test Client Accounts** under that Test Manager.\n    *   Use the Test Client Customer ID in their configuration.\n5.  [ ] **Provide Links to the Guides:** Point the user to the official [Google Ads API Test Accounts Guide](https:\u002F\u002Fdevelopers.google.com\u002Fgoogle-ads\u002Fapi\u002Fdocs\u002Fbest-practices\u002Ftest-accounts.md.txt) and the [API access levels guide](https:\u002F\u002Fdevelopers.google.com\u002Fgoogle-ads\u002Fapi\u002Fdocs\u002Fapi-policy\u002Faccess-levels.md.txt).\n\n> [!CAUTION]\n> **Security & Integrity Guardrail:** You **MUST NOT** advise the developer to\n> modify the client library source code, bypass access-level checks, or use\n> third-party \"cracked\" wrappers to bypass this error. The restriction is\n> enforced server-side by Google, and client-side modifications will not work.\n\n",{"name":5,"metadata":55,"description":59,"compatibility":60},{"author":56,"version":57,"category":58},"google-ads-api-team","1.1.0","GoogleAds","Guides developers through Google Ads API quickstart: credential setup, choosing from 6 client libraries\u002FREST, configuring environments, and running a \"retrieve campaigns\" script. Troubleshoots common setup errors: USER_PERMISSION_DENIED, login_customer_id issues, and CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION (a Google Cloud project with Test access calling a production account).\n\nUse this skill when:\n- The user asks how to get started with the Google Ads API.\n- The user needs to set up Google Ads API access in a Google Cloud project or OAuth credentials.\n- The user wants to write a quickstart\u002Fexample script for Google Ads.\n- The user encounters errors like USER_PERMISSION_DENIED, CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION, or the legacy DEVELOPER_TOKEN_NOT_APPROVED.\n","Outbound HTTPS connectivity required to access the Google Ads API and documentation. Note: If network access is restricted, the agent will fall back to using the last-known stable versions cached within the skill resources.","main","4c6800d20130b5a3233e414609f1241013cec8cc","skills\u002Fads\u002Fgoogle-ads-api-quickstart",2014,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 23:31:00",{"source":9,"skillName":5,"commands":71,"prompt":81,"zipAvailable":82},[72,75,78],{"tool":73,"command":74},"npx","npx skills add google\u002Fskills --skill google-ads-api-quickstart",{"tool":76,"command":77},"bunx","bunx skills add google\u002Fskills --skill google-ads-api-quickstart",{"tool":79,"command":80},"pnpm","pnpm dlx skills add google\u002Fskills --skill google-ads-api-quickstart","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fads\u002Fgoogle-ads-api-quickstart\u002FSKILL.md",true,[84,90,94,98,102,106,110],{"path":85,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fdotnet.md","REFERENCE","参考文档",4048,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fads\u002Fgoogle-ads-api-quickstart\u002Freferences\u002Fdotnet.md",{"path":91,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fjava.md",8619,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fads\u002Fgoogle-ads-api-quickstart\u002Freferences\u002Fjava.md",{"path":95,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fperl.md",2915,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fads\u002Fgoogle-ads-api-quickstart\u002Freferences\u002Fperl.md",{"path":99,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fphp.md",4147,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fads\u002Fgoogle-ads-api-quickstart\u002Freferences\u002Fphp.md",{"path":103,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fpython.md",7762,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fads\u002Fgoogle-ads-api-quickstart\u002Freferences\u002Fpython.md",{"path":107,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002Frest.md",5331,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fads\u002Fgoogle-ads-api-quickstart\u002Freferences\u002Frest.md",{"path":111,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":112,"sourceHtmlUrl":113},"references\u002Fruby.md",3626,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fads\u002Fgoogle-ads-api-quickstart\u002Freferences\u002Fruby.md",[115,123,130,137,144,151],{"skillNo":116,"name":117,"nameZh":17,"description":118,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":122},"01M7DQ9K7JF4T7NJZ2K1MQZ44Q","cloud-operator-share-context","Shares Google Cloud operating context the user or their team already have — environments, projects, services and regions, product preferences, best practices, architecture guidance, runbooks — found in agent instruction files, local memory, skills and workflows, and the repository's GCP docs, with the operator agent's memory after the user reviews the list. Use when the user runs this skill, accepts the cloud-operator or cloud-operator-setup skill's offer to share their existing Google Cloud context, or asks to share, import or save that context or a GCP fact for the operator agent. Don't use for ordinary GCP requests, which go to the cloud-operator skill.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-share-context\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":124,"name":125,"nameZh":17,"description":126,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":122},"01M7DQ9ERFGGQCFAWQW0KRKYBY","cloud-operator-setup","Sets up the operator agent in a Google Cloud project via the autocloud MCP server: picks the operator project, creates or checks the user's operator agent, saves the project, and offers to share the user's existing Google Cloud operating context with the operator agent's memory. Use when the user runs this skill, asks to set up the operator or create their operator agent, or chooses setup when the cloud-operator skill asks. Don't use for ordinary GCP requests or installing gcloud.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-setup\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":17,"description":133,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":122},"01M7B4RHQCM0DK2XQ7S7ZXVN8D","developer-device-platform-device-run","Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native Android executables or shell scripts (for example CLI tools, custom runners, test harnesses or benchmarks) and Android instrumentation tests, on one or many devices, then waits for completion and collects per-device outputs and logs. Use when running a binary or test suite on remote devices without an interactive connection. Don't use it for interactive device reservations, adb tunnels or screen streaming (use developer-device-platform-basics), or for local devices.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fdeveloper-device-platform-device-run\u002FSKILL.md",[],[],{"skillNo":138,"name":139,"nameZh":17,"description":140,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":122},"01M7B4R9YXMRW7RZP9Q9FMZJ2P","compute-vm-creation","Guides the planning, configuration, and provisioning of standalone Google Compute Engine virtual machines (VMs) and bare metal (-metal) instances using gcloud CLI commands or direct MCP tool execution. Use ONLY when the user wants to create, configure, or provision a new standalone Compute Engine VM or bare metal instance from conversational intents (hardware sizing, region selection, OS image, networking, security defaults). DO NOT read or use for Google Kubernetes Engine (GKE) Autopilot or Standard clusters, Kubernetes node pools or Pods, container orchestration, managing existing VMs, Managed Instance Groups (MIGs), or Instance Templates.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcompute-vm-creation\u002FSKILL.md",[],[],{"skillNo":145,"name":146,"nameZh":17,"description":147,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":122},"01M7B4QD02N0YBVT0838Z5K5VC","agent-platform-autorater-customization","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 wrong, or wants an autorater to agree with human labels (autorater hillclimbing, judge calibration). Don't use for quick evals with built-in metrics or for improving the agent itself (use agent-platform-eval-flywheel).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fagent-platform-autorater-customization\u002FSKILL.md",[],[],{"skillNo":152,"name":153,"nameZh":17,"description":154,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":122},"01M78JP22K73KK96JH0JNDT5C4","iap-agent-platform-troubleshooting","Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests from Gemini Enterprise Agent Platform agents that run on Agent Runtime and send traffic through Agent Gateway. Use when an agent request fails with \"Egress request is not authorized\", when Cloud Audit Logs show an IAP egressViaIAP decision with granted false, when IAP audit entries are missing while debugging agent egress, or when Access policies, IAP allow policies, policy bindings, or Agent Registry entries might block agent egress. Don't use for Gemini model IAM permission errors (such as aiplatform.endpoints.predict), Agent Platform API errors, or Agent Runtime deployment or 500 errors (use agent-platform-troubleshooting instead). Don't use for setting up, creating, or connecting an Agent Gateway, or for IAP web apps, IAP TCP forwarding, or SSH.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002FSKILL.md",[],[]]