SuperAPI AI Directory

gpd-ppp-pricing

General & other

View repository

Updated 10-16 03:03

About this skill

PPP Pricing (Per-Region Pricing)

Use this skill to set different prices per region for subscriptions and one-time products.

Preconditions

  • Ensure credentials are set (GPD_SERVICE_ACCOUNT_KEY).
  • Use --package explicitly.
  • Know target region codes and price micros.
  • For verification-only requests, run only read-only list/get commands. Do not run create, update, batchUpdate, migrate-prices, batch-migrate-prices, or batch-update-states.

Verify current pricing (read-only)

Use this section when asked to inspect, audit, or verify pricing. These commands must not mutate Play Console state.

gpd monetization subscriptions get sub123 --package com.example.app
gpd monetization onetimeproducts get sku123 --package com.example.app
gpd monetization offers list --package com.example.app sub123 plan456

Apply subscription base plan pricing

Only use this section after the user explicitly asks to change pricing and confirms the package name, subscription ID, base plan ID, regions, and price micros.

Migrate prices for a base plan

gpd monetization baseplans migrate-prices --package com.example.app sub123 plan456 --region-code US --price-micros 9990000

Batch migrate prices

gpd monetization baseplans batch-migrate-prices --package com.example.app sub123 --file migrate.json

Example migrate.json:

{
  "requests": [
    {
      "basePlanId": "plan456",
      "regionalPriceMigrations": [
        {
          "regionCode": "US",
          "priceMicros": 9990000
        }
      ]
    }
  ],
  "regionsVersion": {
    "version": "2024-01-01"
  }
}

Apply one-time product pricing

Only use this section after the user explicitly asks to create or update a one-time product and confirms the package name, product ID, product type, and price micros.

gpd monetization onetimeproducts create --package com.example.app --product-id sku123 --type consumable
gpd monetization onetimeproducts update --package com.example.app sku123 --default-price 1990000

Apply offers and regional variants

Only use this section after the user explicitly asks to create or update offers and confirms the package name, subscription ID, base plan ID, offer ID, and input file contents.

gpd monetization offers create --package com.example.app sub123 plan456 --offer-id offer789 --file offer.json
gpd monetization offers batchUpdate --package com.example.app sub123 plan456 --file offers.json

Execute base plan state changes

Only use this section after the user explicitly asks to change base plan states and confirms the package name, subscription ID, and states.json contents. Do not use this section to verify pricing.

gpd monetization baseplans batch-update-states --package com.example.app sub123 --file states.json

Notes

  • Use priceMicros values to avoid rounding errors.
  • Keep region codes consistent (for example: US, GB, IN, BR).
  • Use batch files for large region sets to avoid partial updates.