gpd-ppp-pricing

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

PPP Pricing (Per-Region Pricing)

PPP定价(按区域定价)

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.
  • 确保已设置凭证(
    GPD_SERVICE_ACCOUNT_KEY
    )。
  • 显式使用
    --package
    参数。
  • 了解目标区域代码和价格微单位(price micros)。

Subscription base plan pricing

订阅基础套餐定价

Migrate prices for a base plan

迁移基础套餐价格

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

Batch migrate prices

批量迁移价格

bash
gpd monetization baseplans batch-migrate-prices --package com.example.app sub123 --file migrate.json
Example
migrate.json
:
json
{
  "requests": [
    {
      "basePlanId": "plan456",
      "regionalPriceMigrations": [
        {
          "regionCode": "US",
          "priceMicros": 9990000
        }
      ]
    }
  ],
  "regionsVersion": {
    "version": "2024-01-01"
  }
}
bash
gpd monetization baseplans batch-migrate-prices --package com.example.app sub123 --file migrate.json
示例
migrate.json
:
json
{
  "requests": [
    {
      "basePlanId": "plan456",
      "regionalPriceMigrations": [
        {
          "regionCode": "US",
          "priceMicros": 9990000
        }
      ]
    }
  ],
  "regionsVersion": {
    "version": "2024-01-01"
  }
}

One-time products pricing

一次性产品定价

bash
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
bash
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

Offers and regional variants

优惠活动与区域变体

bash
gpd monetization offers list --package com.example.app sub123 plan456
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
bash
gpd monetization offers list --package com.example.app sub123 plan456
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

Verify current pricing

验证当前定价

bash
gpd monetization subscriptions get sub123 --package com.example.app
gpd monetization baseplans batch-update-states --package com.example.app sub123 --file states.json
bash
gpd monetization subscriptions get sub123 --package com.example.app
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.
  • 使用
    priceMicros
    值以避免四舍五入误差。
  • 保持区域代码一致(例如:
    US
    GB
    IN
    BR
    )。
  • 针对大量区域使用批量文件,避免部分更新。