跳到正文
Skillpedia
分析与电子表格22k · #10183

data-manager-api-event-ingestion

它能做什么

它会说明如何把转化和事件数据发送到 Google 产品,使广告和分析结果更加完整。适合追踪销售或潜在客户的开发者和分析人员。

适用场景

  • ✓当你想把线下销售或潜在客户转化发送到 Google Ads 时。
  • ✓当你需要把网站或应用事件发送到 Google Analytics 时。
  • ✓当你要从其他 Google 转化 API 迁移,并需要字段映射时。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请使用 Data Manager API 把我的线下销售转化发送到 Google Ads,并把代码给我看。”

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

工作原理

它会先确认目标和事件类型,阅读相应的实现指南,然后编写带有必需字段的数据导入代码,或协助检查错误。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Data Manager API Event 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.

Step 1: Identify Use Case & Read Documentation

  • Determine Destination Account Type: [CRITICAL] If it can't be determined from the user's context, consider clarifying which destination events are being ingested to before generating any code. This maps to the account_type field of the operating_account in the Destination, and also determines valid event identifiers and requirements.
  • Identify User Intent:
    • Implementing ingestion code: Follow the relevant implementation guide for the destination and use case in the Implementation guide column below. This is critical to ensure field requirements are met and destinations are correctly configured.
    • Checking request status or inspecting errors: Refer to the Error Handling & Troubleshooting section below.
    • Migrating from another Google API: Refer to Step 3: Retrieve Migration Guides below to extract the full contents of the relevant field mapping guide.
Destination (operating_account.account_type) Use case Implementation guide
Google Ads (GOOGLE_ADS) Offline conversions, enhanced conversions for leads Send events
Google Ads (GOOGLE_ADS) Multi-source conversions supplementing the Google tag Send events
Google Ads (GOOGLE_ADS) Store sales conversions Send events
Google Analytics (GOOGLE_ANALYTICS_PROPERTY) Recommended and custom GA4 events Send events
Google Analytics (GOOGLE_ANALYTICS_PROPERTY) Multi-source events with a transaction ID Send events
Floodlight (FLOODLIGHT_CONFIG) Floodlight offline conversions Send events
Floodlight (FLOODLIGHT_CONFIG) Multi-source conversions supplementing the Google or Floodlight tag Send events

If the request doesn't match any row, fetch the Events overview to find the right guide rather than guessing.

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_events.py
Java IngestEvents.java
PHP ingest_events.php
Node ingest_events.ts
.NET IngestEvents.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

常见问题

目标必须明确吗?

是的。如果目标不明确,本技能会先询问事件属于哪个目标,然后再编写代码。

它能帮我处理失败的请求吗?

可以。它有一个部分用于检查请求状态和排查错误。

它能帮我从其他 API 迁移吗?

可以。其中包含一个步骤,用于获取迁移所需的字段映射指南。

详情

作者的原始描述

Guides developers through implementing event and conversion ingestion to Google products using the Data Manager API /v1/events/ingest endpoint and its associated client libraries. Use this skill when the user wants to upload offline conversions, enhanced conversions for leads, click conversions, Google Analytics web or app events, or any other event ingestion use case supported by the Data Manager API. Don't use for uploading audience members (use the data-manager-api-audience-ingestion skill).

repo: google/skills

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能