如需实现订阅关联,发布商的网站必须使用客户端 JavaScript 为读者发起关联,并使用服务器端服务来管理读者的使用权。这两种系统都会使用托管网页、出版物的 Publisher Center 配置和 Google Cloud 服务账号信息。
逐步完成订阅关联
拥有付费订阅或资助权利的读者访问您的网站。
您的客户端代码使用 swg.js 让读者有机会将其账号与 Google 账号相关联,以便他们使用您设计并放置在网站上的按钮或号召性用语,获享关联带来的福利。
触发号召性用语(通过点击明确触发,或作为其他操作或状态的结果隐式触发)后,读者会登录其 Google 账号(或从有效账号中进行选择),并向发布商授予将读者信息与其 Google 账号相关联的权限。发布商会在请求中为读者创建一个发布商提供的标识符 (PPID),该标识符会保存在读者的 Google 账号中,并用于后续的 API 互动。
读者授予权限后,系统会将其重定向到发布商的网站。发布商现在可以告知 Google 读者享有哪些权限。
(异步)发布商会为成功关联账号的每位读者发送 Google 信息,使用其 PPID 更新 Google 的 PPID 权限记录。Google 对 PPID 权限的记录必须保持最新状态,因为这些记录会在过时后被删除。记录会在到期日期后的 30 天后过时,随后被清除。
优势
当读者访问已集成订阅关联功能的发布商网站,并且在该网站上付费订阅或做出贡献后,读者可以将其发布商账号与 Google 账号相关联。然后,这些读者便有资格在 Google 产品(例如 Google 搜索和 Google 探索)中看到更多来自该出版物的相关内容。这样,读者就可以最大限度地阅读他们付费订阅的出版物中的内容。读者可以随时解除其出版商账号与 Google 账号之间的关联,也可以执行出版商提供的操作来解除关联。
读者福利摘要
读者搜索任何内容(新闻或非新闻内容),然后会看到“来自您的订阅”列表。
读者与“探索”互动(在 Android 设备的主屏幕上,或在 iOS 设备上通过 Google 应用、Chrome 或主屏幕微件),并可在“探索”中看到“来自您的订阅”版块。
[[["易于理解","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-03-19。"],[[["Subscription Linking enables readers with existing subscriptions to link their accounts with their Google accounts for enhanced content access across Google products."],["Publishers need to implement both client-side and server-side integrations to facilitate the linking process and manage reader entitlements."],["The process involves reader initiation, Google account authorization, and publisher updates to Google regarding reader entitlements using a unique publisher-provided identifier (PPID)."],["Readers benefit from increased content visibility on Google Search and Discover, while publishers gain streamlined account management and improved user engagement."]]],["Publishers implement Subscription Linking using client-side JavaScript and a server-side service. Readers link their publisher account to their Google Account via a call-to-action, granting permission and creating a publisher-provided identifier (PPID). Publishers then update Google with the reader's entitlements, tied to the PPID. This process enables readers to see content from their subscriptions in Google Search and Discover. Publishers benefit from a streamlined account management system and improved user engagement. Records become stale 30 days after the expiration date.\n"]]