Monetization
Use this skill when managing in-app products (one-time purchases), subscriptions, base plans, or subscription offers.
In-app products (one-time)
List products
gpc products list --package com.example.app
gpc products list --page-size 50 --package com.example.appGet product details
gpc products get --product-id premium_upgrade --package com.example.appCreate product
gpc products create --product-id premium_upgrade \
--title "Premium Upgrade" \
--description "Unlock all features" \
--package com.example.appCreate from JSON file
gpc products create --product-id premium_upgrade --file product.json --package com.example.appUpdate product
gpc products update --product-id premium_upgrade \
--title "Premium Upgrade v2" \
--package com.example.appDelete product
gpc products delete --product-id premium_upgrade --confirm --package com.example.appSubscriptions
List subscriptions
gpc subscriptions list --package com.example.app
gpc subscriptions list --max-results 100 --package com.example.appGet subscription
gpc subscriptions get --product-id monthly_pro --package com.example.appCreate subscription
gpc subscriptions create --product-id monthly_pro --file subscription.json --package com.example.appBase plans
List base plans for a subscription
gpc subscriptions base-plans list --product-id monthly_pro --package com.example.appCreate base plan
gpc subscriptions base-plans create --product-id monthly_pro --file baseplan.json --package com.example.appGet pricing
gpc subscriptions pricing get --product-id monthly_pro --base-plan p1m --package com.example.appSubscription offers
List offers
gpc offers list --product-id monthly_pro --base-plan p1m --package com.example.appGet offer details
gpc offers get --product-id monthly_pro --base-plan p1m --offer-id free_trial --package com.example.appCreate offer
gpc offers create --product-id monthly_pro --base-plan p1m --file offer.json --package com.example.appUpdate offer
gpc offers update --product-id monthly_pro --base-plan p1m --offer-id free_trial --file offer.json --package com.example.appActivate / deactivate offer
gpc offers activate --product-id monthly_pro --base-plan p1m --offer-id free_trial --package com.example.app
gpc offers deactivate --product-id monthly_pro --base-plan p1m --offer-id free_trial --package com.example.appDelete offer
gpc offers delete --product-id monthly_pro --base-plan p1m --offer-id free_trial --confirm --package com.example.appAgent behavior
- Always list existing products/subscriptions before creating to avoid duplicates.
- Confirm with user before deleting products (irreversible).
- Use
--confirmflag explicitly for destructive operations. - Show current state before and after updates.
Notes
- Products and subscriptions require active base plans to be purchasable.
- Use JSON files for complex product definitions with multiple fields.
- Subscription hierarchy: Subscription → Base Plan → Offer.