跳到正文
Skillpedia
社交媒体22k · #10182

data-manager-api-audience-ingestion

它能做什么

它会说明如何通过 Data Manager API 上传、移除或清空受众中的成员,例如 Customer Match 名单。适合管理广告受众的开发者和营销人员。

适用场景

  • ✓当你想上传客户名单,以创建或扩大广告受众时。
  • ✓当你需要把特定的人从受众中移除时。
  • ✓当你想替换或清空整个受众,然后重新开始时。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/google/skills/blob/main/skills/ads/data-manager-api-audience-ingestion/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我使用 Data Manager API,把我的客户邮箱名单上传到 Google Ads 中的 Customer Match 受众。”

每周 5 个新技能,1 分钟读完。

工作原理

它会先确认数据用于哪个 Google 产品,阅读对应的指南,然后为该目标编写上传、移除或清空的代码。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Data Manager API Audience Ingestion

Implementation Workflow

Prerequisites

  • Authentication & Library Installation: If you need to set up access to the Data Manager API or install the client and utility libraries, refer to the data-manager-api-setup skill.
  • Audience Creation (if needed): If the user does not have an existing audience or needs to create a new one, use the Create an Audience reference. This step provides the product_destination_id needed for the ingestion or removal requests.

Step 1: Identify Use Case & Read Documentation

  • Determine Destination Account Type: [CRITICAL] If it's not clear where the data is being sent (e.g., Google Ads, Display & Video 360, etc.), STOP and CLARIFY with the user BEFORE generating any code. Do not assume Google Ads by default. This maps to the account_type field of the operating_account in the Destination.
  • Read the implementation guide: Read the relevant guide for your destination and use case. Do this before answering questions or writing code because each destination has unique payload structures, consent rules, and required fields.
Destination Audience Type Accepted Data Types Upload Guide Remove All/Replace All Guide
Google Ads Customer Match composite_data.user_data (contact info), mobile_data (device IDs), user_id_data (user IDs) Upload Data Remove All/Replace All
Display & Video 360 (DV360) Customer Match composite_data.user_data (contact info), mobile_data (device IDs) Upload Data Remove All/Replace All

Step 2: Retrieve Code Sample

[!IMPORTANT] If writing or updating an ingestion script, ALWAYS retrieve the relevant code sample to use as a reference:

Language Sample
Python ingest_audience_members.py
Java IngestAudienceMembers.java
PHP ingest_audience_members.php
Node ingest_audience_members.ts
.NET IngestAudienceMembers.cs

Step 3: Retrieve Migration Guides

[!IMPORTANT] If refactoring code to upgrade from another Google API, ALWAYS extract the full contents of the relevant field mapping guide.

Google Ads

Display & Video 360

Step 4: Implementation

Implement the ingestion logic using the following checkpoints:

  • Initialize Client: Instantiate the Data Manager client (IngestionServiceClient).
  • Define Destinations: Build the Destination object using the product_destination_id and the appropriate account configurations: operating_account (target account receiving data), login_account (if authenticating using a manager account or a data partner account), and linked_account (if you're a data partner accessing the account via a partner link to a manager account). **STR
常见问题

它会假设我使用哪种广告产品吗?

不会。在编写任何代码之前,它会请你说明目标对象。

我需要先设置 API 吗?

本技能可以指引你使用单独的设置技能,完成访问权限和客户端库的配置。

它能帮我创建新的受众吗?

可以。如果你还没有受众,它可以先帮你创建一个。

详情

作者的原始描述

Guides developers through managing (adding, removing, and clearing) audience members for Google products using the Data Manager API and its associated client libraries. Use this skill when the user wants to upload audience members, remove specific users, or clear/replace an entire audience for Customer Match, mobile device ID audiences, or any other audience use case supported by the Data Manager API. Don't use for uploading events or conversions (use the data-manager-api-event-ingestion skill).

repo: google/skills

热度

GitHub 星标
22k
排名
#10182
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能