Google Play Store
Last updated
Last updated
© Purchasely 2020-2023
Connect to the Purchasely Console
Access the settings of the application you want to connect
Get the value of the parameter Google S 2 S Notifications Endpoint
Purchasely > Mobile Applications > [YOUR APPLICATION] > Application settings
Connect to the Google Cloud Platform Console
Create new Pub/Sub topic
Google Cloud Platform > PubSub > Topics > + Create new topic
Suggested name for the topic Playstore-S2S-notifications
Leave the encryption set on Key managed by Google
If you have multiple applications under the same Google Project, create one topic and one subscription per application.
Access the topic you just created
Click on + Create a subscription
Set the Type of distribution
to Push
In the URL field, enter the value of the field Google Play S2S Notifications Endpoint retrieved from the Purchasely Console
Set no expiration date
Set the confirmation delay
to 60 seconds
Set Messages conservation
to 7 days
To receive S2S notifications on mutiple endpoints, you can create another subscription linked to the same topic.
Add a new Pub/Sub Editor to the topic in the Google Cloud Platform Console
Google Cloud Platform > PubSub > Topics > [Playstore-S2S-Notifications] > + Add principal
Copy & paste the following value google-play-developer-notifications@system.gserviceaccount.com
in the member
field
Set the role
to Pub/Sub Publisher
Connect to the Google Play Console and go to the following section Google Play Console > [YOUR APPLICATION] > Monetization > Setup
Type the full name of the topic. It shall have the shape projects/[YOUR PROJECTS]/topics/Playstore-S2S-Notifications
Click on the button Send test notification. You can send several notifications at the same time
Click on Save changes
Check the good reception of the test notification at the topic
level
in the Google Cloud Platform Console Google Cloud Platform > Topics > Googleplay-S2S-Notifications
Check the good reception of the test notification at the subscription
level
in the Google Cloud Platform Console Google Cloud Platform > Subscriptions > Purchasely-Subscriptions