开始使用
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
准备工作
实现 Google 公共提醒需要合作伙伴项目经理和首席开发者与 Google 公共提醒团队通力协作。定期沟通和分享示例数据对于启动和推进项目至关重要。我们可能会不时要求您向我们提供数据样本。在开发的早期阶段,这些示例不需要采用 CAP 格式。请将您的数据原封不动地提供给我们,我们会从中入手。
在整个实施过程中以及我们向公众发布您的数据后,如果您有任何问题或反馈,欢迎随时与 Google 团队联系。欢迎随时发送电子邮件至 google-public-alerts@google.com 与我们联系。
资源
CAP 文档
Google 公共提醒使用 Common Alerting Protocol (CAP) 格式的数据。以下文档提供了有关实现标准 CAP 提醒的全面指南:
观看此精彩演讲,详细了解如何优化 CAP Feed,以扩大 Google 搜索上的紧急警报覆盖面。
Google CAP 要求
我们的目标是根据位置和意图提供相关提醒,而不是要求用户订阅特定 Feed。为此,我们制定了额外的 CAP 要求。
请参阅参考指南中的以下部分:
- Google 公开提醒 CAP v1.0 列出了 CAP 标准与 Google CAP 之间的差异。请注意,Google 不会以任何方式更改该标准,但确实需要一些标准中可选的元素。
- Google CAP 要求针对通过 Google 创建有效提醒提供了其他要求。这些变体不会以任何方式更改标准。其目的是确保在所有产品和地区快速准确地提取和分发数据。
实现步骤
具体实现时间不尽相同,具体取决于现有数据格式和提醒类型的数量。Google 会在每个阶段与您合作。
请按照以下步骤实现和维护 CAP 数据提醒:
第 3 步:测试
在您以不公开方式发布 CAP 数据时,Google 会进行测试。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-25。"],[[["Implementing Google Public Alerts involves collaboration with the Google team, including sharing data samples."],["Google Public Alerts uses the Common Alerting Protocol (CAP) format, with additional requirements for optimal ingestion and distribution."],["Implementation includes four steps: generating CAP alerts, sending alerts to Google, testing, and launching to the public."],["Refer to provided resources for CAP documentation and Google's specific requirements and guidelines."],["Google aims to provide relevant alerts based on location and intent, enhancing user experience."]]],["Collaborate with Google Public Alerts team, sharing data samples in any format initially. Utilize Common Alerting Protocol (CAP) for data, referencing provided CAP documentation. Adhere to Google's specific CAP requirements for effective alert distribution, found in the reference guide. The implementation process involves four steps: generating CAP alerts, sending the alerts feed, private testing by Google, and public launch. Implementation timeline varies depending on the existing data and types of alerts.\n"]]