Pyytämäsi sivu ei ole tällä hetkellä saatavilla kielelläsi. Voit valita toisen kielen sivun alaosasta tai pikakääntää minkä tahansa verkkosivun haluamallesi kielelle Google Chromen sisäänrakennetun käännösominaisuuden avulla.

Integrate Sign in with Google for Reader Revenue Manager Enterprise

Your readers can sign in to third-party websites and apps quickly and securely with Google Identity Services (GIS), also known as Sign in with Google. They can enjoy a fast, low-friction sign-in and registration experience through Google One Tap, which is the key feature of GIS. This integration with Reader Revenue Manager Enterprise (RRM:E) provides 2 key benefits:

  • Unified sign-in: To reduce friction and prevent high onboarding drop-off rates, Google One Tap powers the RRM registration wall. It replaces the multi-step sign-in process with a single-click experience.
  • Automatic entitlements: Readers who sign in through Google One Tap are automatically recognized by Reader Revenue Manager Enterprise. This provides them instant access to their subscriptions and metered content. Publishers can use GIS to sign-in without RRM prompts.

Set up Sign in with Google

If you’re new to Sign in with Google and Google One Tap, you can use these resources to learn the implementation basics:

To set up Google One Tap:

  1. Configure your OAuth Consent screen.
  2. To add a code snippet on pages where you want to use Google One Tap, select HTML or JavaScript.
  3. To configure a callback to handle a credential response, use HTML or JavaScript.

Set up registration wall in Publisher Center

You can get credentials and install scripts quickly when you use Publisher Center to set up Sign in with Google.

  1. To set up, click Reader Revenue Manager Enterprise and then Content Access.
  2. Click Overview and then Reader registration.
  3. Turn on Sign in with Google.
  4. Set up Sign in with Google.
  5. Enter the URL of a page where Google One Tap is installed.
  6. Click Verify.
  7. Confirm that the message has changed to “Reader registration is set up to use Sign in with Google for account creation.”

Integrate client-side code

To integrate the Google One Tap API with the RRM Reader Registration feature:

  1. Initialize RRM client-side integration.
  2. Add the rrm_interop and callback parameters to your GIS snippet.
    • To enable prompt deconfliction, add the data-rrm_interop='true' parameter to your Google One Tap HTML snippet or include rrm_interop: true for the JavaScript API.
    • Configure GIS to use a callback function. For example, to receive the credential token, use handleCredentialResponse. Detailed implementation instructions for handleCredentialResponse are provided below.

    HTML API example:

    HTML
    <div id="g_id_onload"
       data-client_id="YOUR_GOOGLE_CLIENT_ID"
       data-login_uri="https://your.domain/your_login_endpoint"
       data-your_own_param_1_to_login="any_value"
       data-your_own_param_2_to_login="any_value"
       data-callback="handleCredentialResponse"
       data-rrm_interop='true'>
    </div>
    

    JavaScript API example:

    JavaScript
    google.accounts.id.initialize({
       client_id: 'YOUR_GOOGLE_CLIENT_ID',
       callback: handleCredentialResponse,
       rrm_interop: true,
    });
    
  3. Process the credential in the callback.
    1. To complete the integration, process the GIS credential with processGisCredential.
    2. Add this to the SWG queue.

    For Reader Revenue Manager Enterprise with SWG:

    JavaScript
    function handleCredentialResponse(response) {
      if (response.credential) {
        (self.SWG = self.SWG || []).push((subscriptions) => {
          subscriptions
            .processGisCredential(response, {
              gisClientId: 'YOUR_GOOGLE_CLIENT_ID',
            });
        });
      }
    }
    

    This ensures that the credential returned by GIS is properly passed to and processed by Reader Revenue Manager Enterprise. This process synchronizes the sign-in state and entitlements.

Related resources

Search
Clear search
Close search
Main menu
8893454749836271725
true
Ohjekeskushaku
false
true
true
true
true
true
100499
false
false
false
false
false