Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Figura 1. Diagramma di sequenza relativo al flusso di dati di alto livello del processo di collegamento degli abbonamenti.
Per implementare il collegamento degli abbonamenti, sul sito di un editore è necessario usare il codice JavaScript lato client per iniziare il collegamento per i lettori e un servizio lato server per gestire i diritti dei lettori. Entrambi questi sistemi utilizzano le informazioni della pagina web ospitata, la configurazione del Publisher Center della tua pubblicazione e i dati dell'account di servizio Google Cloud.
Procedura per collegare un abbonamento
Un lettore con un diritto di contributo o abbonamento a pagamento visita il tuo sito web.
Il codice lato client utilizza swg.js per offrire al lettore la possibilità di collegare il suo account al suo Account Google tramite un pulsante o un invito all'azione che progetti e inserisci nel tuo sito web, affinché possa usufruire dei vantaggi dell'associazione.
Dopo aver attivato l'invito all'azione (in modo esplicito tramite un clic o
in modo implicito come risultato di un'altra azione o stato), il lettore accede al
proprio Account Google (o ne seleziona uno attivo) e concede l'autorizzazione
all'editore di associare le informazioni del lettore al suo Account Google.
Nell'ambito della richiesta, l'editore crea per il lettore un identificatore fornito dal publisher (PPID) che viene salvato nell'Account Google del lettore e utilizzato per le successive interazioni con l'API.
Dopo aver concesso l'autorizzazione, il lettore viene reindirizzato al sito dell'editore.
Ora l'editore può comunicare a Google i diritti che ha il lettore.
(In modo asincrono) Gli editori inviano a Google informazioni relative a ogni lettore
che ha collegato il suo account tramite i relativi PPID al fine di aggiornare
il record di Google dei diritti del PPID. Il record di Google dei diritti di un PPID deve essere mantenuto aggiornato, perché questi record vengono eliminati se diventano inattivi. Un record diventa inattivo 30 giorni dopo la data di scadenza e viene poi eliminato definitivamente.
Vantaggi
Se un lettore visita il sito di un editore che ha integrato il collegamento degli abbonamenti e ha pagato un abbonamento o dato un contributo su questo sito, può collegare il proprio account editore al proprio Account Google. Questi
lettori sono quindi idonei ad avere una maggiore visibilità sui contenuti di
questa pubblicazione sui prodotti Google, ad esempio la Ricerca e Discover. In questo modo, i lettori possono massimizzare il consumo dei contenuti delle pubblicazioni che hanno pagato. I lettori possono scollegare il proprio account editore dal proprio Account Google
in qualsiasi momento o tramite un'azione fornita dall'editore.
Riepilogo dei vantaggi per i lettori
I lettori cercano contenuti, notizie o altri tipi di contenuti e vedono l'elenco
"Dai tuoi abbonamenti".
I lettori interagiscono con Discover (tramite la schermata Home di Android oppure su iOS nell'app Google, su Chrome o tramite un widget nella schermata Home) e possono vedere "Dai tuoi abbonamenti" come sezione di Discover.
Figura 2. Screenshot del modulo "Dai tuoi abbonamenti" in una pagina dei risultati di ricerca su computer e dispositivi mobili.
Vantaggi di un abbonamento collegato per un editore
Configurazione lato server resiliente più efficiente e più a lungo termine per la gestione degli account
Non è necessario creare un endpoint dei diritti e un IdP OAuth pubblico,
come era invece necessario nelle versioni precedenti di Account Linking.
Maggiore coinvolgimento e fidelizzazione degli utenti grazie alla visualizzazione più chiara dei contenuti della pubblicazione all'interno delle pagine dei risultati del motore di ricerca di Google.
[null,null,["Ultimo aggiornamento 2025-08-06 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'."]]