support Contact Support | system status System Status
Page Contents

    Adding Subscriptions to Android

    In this topic, you will learn how to create subscriptions and Google Play service accounts used for testing those subscriptions.

    Introduction

    This document focuses on two topics:

    • Creating a subscription
    • Creating a service account

    Subscriptions need to be created in Brightcove Beacon, then referenced in the Google Play Console. Instructions for creating a subscription in Brightcove Beacon are detailed in the Creating a Subscription Package document. This document details how to create the corresponding subscription for Android.

    A service account allows you to update your Brightcove Beacon app on the Google Play Store, which is especially helpful when testing subscriptions. Later in this document you will find steps to create a service account and generate the file needed for Google Play server to server subscriptions.

    Adding a subscription

    Creating a subscription in Android requires you to have the information about the subscriptions you created in Brightcove Beacon . Follow these steps to create a subscription.

    1. Sign in to the Google Play Console and click on your app.
    2. You need to move into the Subscriptions section in the Google Play Console. This process is slightly different depending on if you have created subscriptions previously. Choose ONE of the subsections of this step, depending upon previous subscription creation.

      No previous subscriptions

      1. From the left navigation select In-app products > Subscriptions and you see the following page:
        subscriptions index no previous
      2. Click the Set up a merchant account button.
      3. Click the Set up a merchant account link.
        setup link
      4. After completing the form and clicking SUBMIT you will be placed in the subscriptions page where you can add a new subscription.

      Subscriptions exist

      1. From the left navigation select In-app products > Subscriptions and you see the following page:
        subscriptions landing page
      2. Note that your previously created subscriptions will be displayed.
    3. Click the Create subscription button.
      click create
    4. In the form, start by entering the Product ID. This value MUST match the Name provided when creating a subscription in Brightcove Beacon.
      enter subscriptions id
    5. Enter the default language.
    6. Enter the subscription details. Although not required, it is a best practice to match the Name and Description to the subscription definition in Brightcove Beacon.
      enter subscriptions details
    7. Enter the Billing period and Default price. These values MUST match the subscription created in Brightcove Beacon. If the values don't match, the subscriber will see one price in the Brightcove Beacon app, but be charged a different price in the Google Play Store.
      enter subscriptions price
    8. Enter the values for the subscription options. Although not required, it is a best practice to match the corresponding values to the subscription definition in Brightcove Beacon.
      enter subscriptions options
    9. Click the Save button to create the subscription.

    Creating a service account

    To create a Google Play server account, follow these steps:

    1. Sign in to the Google Play Console.

      Google Play Console
      Google Play Console
    2. In the left navigation, select Settings.

    3. In the left navigation, under Developer account, select API access.

      Create a service account
      Create a service account
    4. Select the +CREATE SERVICE ACCOUNT button.
    5. In the Create Service Account dialog, select the Google API Console link in step 1.

      Account dialog
      Account dialog
    6. You will be directed to the Google API Console.
    7. In the left navigation, Service Accounts will already be selected. Below the blue header bar, select the Create Service Account button.

      Google API Console
      Google API Console
    8. Enter a name for the service account. The Service account ID will be automatically populated. Add a description. Select the Create button.
    9. In the Service account permissions screen, expand the Select a role dropdown menu and select Owner.

      Owner role
      Owner role
    10. Select Continue.
    11. Next, you will create a key that can be used by Brightcove. Select the +CREATE KEY button.

      Create key
      Create key
    12. In the side panel, leave the default Key type as JSON. Select the CREATE button.

      Key format
      Key format
    13. Download the private key file to your computer and select the CLOSE button.

      Download key
      Download key
    14. Send the downloaded private key file to Brightcove.
    15. Select DONE.
    16. You should see the following screen with your own values. Close this browser tab and return to the Google Play Console.

      Service account created
      Service account created
    17. In the Google Play Console, select the GRANT ACCESS button.

      Grant access
      Grant access
    18. In the Add a new user dialog, make sure the FINANCIAL DATA buttons are checked. Select the ADD USER button.

      Add new user
      Add new user

    You have successfully created a Google Play service account.


    Page last updated on 12 Jun 2020