gpd-ppp-pricing
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePPP 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 explicitly.
--package - 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 9990000bash
gpd monetization baseplans migrate-prices --package com.example.app sub123 plan456 --region-code US --price-micros 9990000Batch migrate prices
批量迁移价格
bash
gpd monetization baseplans batch-migrate-prices --package com.example.app sub123 --file migrate.jsonExample :
migrate.jsonjson
{
"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.jsonjson
{
"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 1990000bash
gpd monetization onetimeproducts create --package com.example.app --product-id sku123 --type consumable
gpd monetization onetimeproducts update --package com.example.app sku123 --default-price 1990000Offers 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.jsonbash
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.jsonVerify 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.jsonbash
gpd monetization subscriptions get sub123 --package com.example.app
gpd monetization baseplans batch-update-states --package com.example.app sub123 --file states.jsonNotes
注意事项
- Use values to avoid rounding errors.
priceMicros - 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 - 针对大量区域使用批量文件,避免部分更新。