Launch offer for the first 500 accounts: $10K MTR free for 24 months + $100 credit →
    .io

    Google Play Store Setup

    Complete guide to connect your Google Play Console with BillDog

    Step 1: Enable Google Play Developer API

    1. Go to Google Cloud Console
    2. Select your project or create a new one
    3. Navigate to "APIs & Services" → "Library"
    4. Search for "Google Play Developer API" and enable it

    Before you can create subscriptions or in-app products in Play Console, you must upload a build of your app that uses the Google Play Billing Library to a testing track (internal testing is enough).

    Step 2: Create Service Account

    1. In Google Cloud Console, go to "IAM & Admin" → "Service Accounts"
    2. Click "Create Service Account"
    3. Name: billdog-play-api
    4. Click "Create and Continue"
    5. Grant role: Service Account User
    6. Click "Done"

    Generate JSON Key

    1. Click on the service account you just created
    2. Go to "Keys" tab
    3. Click "Add Key" → "Create new key"
    4. Choose "JSON" format
    5. Download and save the JSON file securely

    Step 3: Link Service Account to Play Console

    1. Go to Google Play Console
    2. Select your app
    3. Navigate to "Users and permissions"
    4. Click "Invite new users"
    5. Enter the service account email (found in the JSON file as client_email)
    6. Grant permissions:
      • View app information and download bulk reports
      • View financial data, orders, and cancellation survey responses
      • Manage orders and subscriptions
    7. Click "Invite user"

    Step 4: Enter Credentials in BillDog

    1. Navigate to Project Settings → Settings → Store Setup in BillDog
    2. In the Google Play card:
      • Package Name: Your app's package name (e.g., com.example.app)
      • Service Account JSON: Choose the JSON key file from Step 2, or paste its entire contents
      • Pub/Sub Topic (optional): Your full topic name (e.g., projects/your-project/topics/play-subscriptions), if you have already created it in Step 5.1
    3. Click "Save & Verify"
    4. When Google Play confirms the app is yours, the card shows the app as proven, and shows RTDN push endpoint and audience: your project's own notification URL, used in Step 5
    5. Click "Sync products" to copy your subscriptions and in-app products into Synced Products, where you import them into your catalog

    Step 5: Configure Real-Time Notifications (Pub/Sub)

    Real-time notifications allow BillDog to receive instant updates about subscription events.

    5.1: Create Pub/Sub Topic

    1. In Google Cloud Console, go to "Pub/Sub" → "Topics"
    2. Click "Create Topic"
    3. Topic ID: play-subscriptions
    4. Click "Create"
    5. Copy the full topic name (e.g., projects/YOUR_PROJECT/topics/play-subscriptions)

    5.2: Grant Permissions to Play Console

    1. In the topic you created, click "Permissions"
    2. Click "Add Principal"
    3. New principal: google-play-developer-notifications@system.gserviceaccount.com
    4. Role: Pub/Sub Publisher
    5. Click "Save"

    5.3: Create Push Subscription

    1. In your Pub/Sub topic, click "Create Subscription"
    2. Subscription ID: billdog-webhook
    3. Delivery type: Push
    4. Endpoint URL: your project's own notification URL, shown in Project Settings → Settings → Store Setup under RTDN push endpoint and audience. It ends in ?r= plus your route key and appears once Step 4 has verified your credentials. https://api.billdog.io/v1/webhooks-google on its own refuses every notification
    5. Tick "Enable authentication". This step is required — without it Pub/Sub sends no identity token and BillDog rejects the notification.
    6. Service account: select the same service account you created in Step 2. You (the account creating the subscription) need the Service Account User role on that service account, or Google Cloud refuses to save the subscription.
    7. Leave Audience blank. Pub/Sub then uses the endpoint URL above as the audience, which is what BillDog expects. If you set one explicitly it must match that URL exactly.
    8. Click "Create"

    5.4: Connect in Play Console

    1. In Google Play Console, go to "Monetization setup"
    2. Find "Real-time developer notifications"
    3. Tick "Enable real-time notifications"
    4. Paste your full Pub/Sub topic name
    5. Click "Save changes"

    5.5: Set the Push Service Account in BillDog

    1. In Project Settings → Settings → Store Setup, under the RTDN push endpoint on the Google Play card, enter the email of the service account the push subscription authenticates as (5.3), i.e. the client_email from Step 2's JSON
    2. Click "Set push service account"
    3. Required: until it is set, BillDog refuses every Play notification, and it refuses a push signed by any other identity
    4. Back in Play Console → Real-time developer notifications, click "Send Test Message". "Last notification" on the Google Play card updates when it arrives

    Subscriptions with Several Base Plans

    A Play subscription can have several base plans (say premium with monthly and yearly). Create one BillDog product per base plan and set its Play Store Product ID to subscriptionId:basePlanId:

    • premium:monthly and premium:yearly: the paywall shows and buys exactly that base plan, with its price, period, free trial and intro price.
    • premium:yearly:intro-50: also pins that offer. A user Play does not list it for (not eligible) buys the base plan, never another discount.
    • premium (bare): the SDK chooses: the first base plan Play lists, and among its offers the longest free trial, else the cheapest intro price, skipping offers tagged -ignore-offer.

    This is the convention RevenueCat (productId:basePlanId) and Superwall (productId:basePlanId:offerId) use, so ids carry over. Base plan and offer ids use Play's rule: lowercase letters, digits and hyphens. Only subscriptions have base plans. BillDog matches each purchase to the product by the base plan Google Play reports for it, falling back to the bare subscription id. An Android app needs an SDK release with base-plan ids: an older one cannot find a subscriptionId:basePlanId product in Play, so keep a bare id while such builds are still in use.

    Verification & Testing

    Test Product Sync

    Click "Sync products" on the Google Play card. Your subscriptions and in-app products appear under Monetization → Synced Products, ready to import.

    Test Real-Time Notifications

    In Google Play Console → Monetization setup → Real-time developer notifications, click "Send Test Message". "Last notification" on the Google Play card in Project Settings → Settings → Store Setup shows when it arrived. If it never does, check that the push service account is set (Step 5.5).

    Make a Test Purchase

    Use a test account to make a subscription purchase in your app. The transaction should appear in BillDog within seconds.

    Was this page helpful?

    Or rate this page:

    We use cookies and process your data to provide our services. By continuing, you agree to our Terms and Privacy Policy.