Subscribe with Google


Newsletter


Survey


Rewarded Ads


Custom CTA


Using Extended Access


Syncing Publisher Entitlements to Google


Receiving Entitlements from Google


Cancelling Entitlements Plans or Making Refunds


Content examples

Subscription Linking

Client-side Javascript Demo

This form has a randomly created ppid, but can be set by the reader.


<script>
subscriptions.linkSubscriptions({publisherProvidedId: `ppid` });
</script>

<script>
subscriptions.linkSubscriptions({linkTo: [
  { publicationId: 'pubId1', publisherProvidedId: 'ppid1' },
  { publicationId: 'pubId2', publisherProvidedId: 'ppid2' },
   …
]});
</script>

Server-side API call demo

Query Entitlements with specified ppid

Update Entitlements with specified ppid to basic

{
  product_id: '{publicationId}:basic',
  subscription_token: 'abc1234',
  detail: 'This is our basic plan',
  expire_time: '2025-07-22T19:25:04.837Z'
}
Fork me on GitHub