Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Hình 1. Sơ đồ trình tự cho luồng dữ liệu cấp cao của quy trình Liên kết gói thuê bao.
Để triển khai tính năng Liên kết gói thuê bao, trang web của nhà xuất bản phải sử dụng JavaScript phía máy khách để bắt đầu liên kết cho người đọc và một dịch vụ phía máy chủ để quản lý quyền của người đọc. Cả hai hệ thống này đều sử dụng thông tin từ trang web được lưu trữ, cấu hình Publisher Center của ấn bản và thông tin tài khoản dịch vụ Google Cloud.
Hướng dẫn liên kết gói thuê bao
Một độc giả có gói thuê bao trả phí hoặc quyền đóng góp truy cập vào trang web của bạn.
Mã phía máy khách của bạn sử dụng swg.js để cho phép người đọc liên kết tài khoản của họ với Tài khoản Google, nhờ đó họ có thể nhận được các lợi ích của mối liên kết này bằng cách sử dụng một nút hoặc lời kêu gọi hành động mà bạn thiết kế và đặt trên trang web của mình.
Sau khi kích hoạt lời kêu gọi hành động (rõ ràng thông qua một lượt nhấp hoặc ngầm ẩn do một hành động hoặc trạng thái khác), người đọc sẽ đăng nhập vào Tài khoản Google của họ (hoặc chọn trong số các tài khoản đang hoạt động) và cấp quyền cho nhà xuất bản liên kết thông tin người đọc với Tài khoản Google của họ.
Nhà xuất bản tạo một giá trị nhận dạng do nhà xuất bản cung cấp (PPID) cho trình đọc trong yêu cầu. Giá trị này được lưu vào Tài khoản Google của trình đọc và được dùng cho các lượt tương tác API tiếp theo.
Sau khi cấp quyền, người đọc sẽ được chuyển về trang web của nhà xuất bản.
Giờ đây, nhà xuất bản có thể cho Google biết độc giả có quyền sử dụng những quyền nào.
(Không đồng bộ) Nhà xuất bản sẽ gửi cho Google thông tin về từng người đọc đã liên kết thành công tài khoản của họ, sử dụng PPID của họ để cập nhật bản ghi của Google về các quyền của PPID. Hồ sơ của Google về(các) quyền của PPID phải được cập nhật liên tục, vì các hồ sơ này sẽ bị xoá sau khi trở nên lỗi thời. Một bản ghi sẽ trở thành cũ sau 30 ngày kể từ ngày hết hạn của bản ghi và sau đó sẽ bị xoá.
Lợi ích
Khi độc giả truy cập vào trang web của một nhà xuất bản đã tích hợp tính năng Liên kết gói thuê bao và họ đã trả phí để đăng ký hoặc đóng góp trên trang web này, thì độc giả có thể liên kết tài khoản nhà xuất bản của họ với Tài khoản Google. Sau đó, những độc giả này sẽ đủ điều kiện để thấy nội dung của ấn bản này nhiều hơn trên các sản phẩm của Google, chẳng hạn như Tìm kiếm và Khám phá. Điều này cho phép người đọc tối đa hoá việc sử dụng nội dung của các ấn bản mà họ đã trả phí. Người đọc có thể huỷ liên kết tài khoản nhà xuất bản khỏi Tài khoản Google của họ bất cứ lúc nào hoặc bằng một hành động do nhà xuất bản cung cấp.
Tóm tắt về lợi ích dành cho người đọc
Người đọc tìm kiếm nội dung bất kỳ, tin tức hoặc không phải tin tức và thấy danh sách "Từ các gói thuê bao của bạn".
Người đọc tương tác với Khám phá (trên màn hình chính của Android hoặc trên iOS trong ứng dụng Google, Chrome hoặc thông qua tiện ích trên màn hình chính) và có thể thấy phần "Từ các kênh bạn đăng ký" trong Khám phá.
Hình 2. Ảnh chụp màn hình mô-đun "Từ danh sách Đăng ký của bạn" trên trang kết quả tìm kiếm trên máy tính và thiết bị di động.
Lợi ích của nhà xuất bản khi có Gói thuê bao được liên kết
Chế độ thiết lập phía máy chủ hiệu quả hơn, linh hoạt hơn về lâu dài để quản lý tài khoản
Không yêu cầu tạo điểm cuối về quyền và IDP OAuth công khai, như các phiên bản Liên kết tài khoản trước đây yêu cầu
Cải thiện mức độ tương tác và giữ chân người dùng bằng cách giới thiệu nội dung của ấn bản một cách rõ ràng hơn trên các trang kết quả của công cụ tìm kiếm của Google.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eSubscription Linking enables readers with existing subscriptions to link their accounts with their Google accounts for enhanced content access across Google products.\u003c/p\u003e\n"],["\u003cp\u003ePublishers need to implement both client-side and server-side integrations to facilitate the linking process and manage reader entitlements.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves reader initiation, Google account authorization, and publisher updates to Google regarding reader entitlements using a unique publisher-provided identifier (PPID).\u003c/p\u003e\n"],["\u003cp\u003eReaders benefit from increased content visibility on Google Search and Discover, while publishers gain streamlined account management and improved user engagement.\u003c/p\u003e\n"]]],["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"],null,["# The flow of information\n\n**Figure 1.** Sequence diagram for the high-level data flow of Subscription Linking process.\n\nTo implement Subscription Linking, a publisher's site must use client-side JavaScript to initiate the linking for readers, and a server-side service to manage the entitlements of readers. Both of these systems use information from the hosted webpage, your publication's Publisher Center configuration and Google Cloud service account information.\n| **Note:** For more information, see the appendix for [client-side](/news/subscribe/subscription-linking/implementation/client-side) and [server-side](/news/subscribe/subscription-linking/implementation/server-side) systems relationships,\n\nWalking through linking a subscription\n--------------------------------------\n\n1. A reader with a paying subscription or contribution entitlement comes to your website.\n2. Your client-side code uses `swg.js` to offer the reader the opportunity to link their account to their Google Account, so that they can receive the [benefits](#summary_of_reader_benefits) of the association, using a button or call-to-action that you design and place on your website.\n3. After triggering the call-to-action (either explicitly through a click, or implicitly as the result of another action or state), the reader logs in to their Google Account (or selects from those active), and grants permission to the publisher to associate reader information with their Google Account. The publisher creates a publisher-provided identifier (PPID) for the reader as part of the request, which is saved with the reader's Google Account and is used for subsequent api interactions.\n4. After granting permission, the reader is sent back to the publisher's site. The publisher can now let Google know which entitlements the reader is entitled to.\n5. (Asynchronously) Publishers will send Google information for each reader that has successfully linked their account, using their PPIDs to update Google's record of the PPID's entitlements. Google's record of a PPID's entitlement(s) must be kept fresh, as these records are deleted after becoming stale. A record becomes stale 30 days after the record's expiration date, and is subsequently purged.\n\nBenefits\n--------\n\nWhen a reader visits a publisher's site that has integrated Subscription\nLinking, and they have paid for a subscription or contribution on this site,\nthe reader can link their publisher account to their Google Account. These\nreaders are then eligible to have increased visibility on the content from\nthis publication on Google products, such as Search and Discover. This allows\nreaders to maximize their consumption of content from the publications they've\npaid for. Readers can unlink their publisher account from their Google Account\nat any time, or by a publisher-provided action.\n\n### Summary of reader benefits\n\n1. Readers search for any content, news or non-news, and see the 'From your subscriptions' list.\n2. Readers interact with Discover (either on their Android home screen, or on iOS in the Google app, Chrome, or through a home screen widget) and can see 'From your subscriptions' as a section within Discover.\n\n**Figure 2.** Screenshot of the 'From your Subscriptions' module on a search\nresults page on desktop and mobile.\n\n### Publisher benefits from a Linked Subscription\n\n- More efficient, longer-term resilient server-side setup for account management\n- Does not require creating a public OAuth IDP and entitlements endpoint, as previous versions of Account Linking required\n- Improved user engagement and retention by featuring the publication's content more distinctly within Google's search engine results pages.\n\n| **Note:** You can use Search Console to track Subscription Linking performance (clicks, impressions, and click-through rate). Follow the instructions under 'Find the full list of search appearance types supported by this report' in this [article](https://support.google.com/webmasters/answer/10268906#zippy=%2Csearch-results-performance%2Cdiscover-performance%2Cgoogle-news-performance), then filter by 'Subscribed content'."]]