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.app
Get product details
gpc products get --product-id premium_upgrade --package com.example.app
Create product
gpc products create --product-id premium_upgrade \
--title "Premium Upgrade" \
--description "Unlock all features" \
--package com.example.app
Create from JSON file
gpc products create --product-id premium_upgrade --file product.json --package com.example.app
Update product
gpc products update --product-id premium_upgrade \
--title "Premium Upgrade v2" \
--package com.example.app
Delete product
gpc products delete --product-id premium_upgrade --confirm --package com.example.app
Subscriptions
List subscriptions
gpc subscriptions list --package com.example.app
gpc subscriptions list --max-results 100 --package com.example.app
Get subscription
gpc subscriptions get --product-id monthly_pro --package com.example.app
Create subscription
gpc subscriptions create --product-id monthly_pro --file subscription.json --package com.example.app
Base plans
List base plans for a subscription
gpc subscriptions base-plans list --product-id monthly_pro --package com.example.app
Create base plan
gpc subscriptions base-plans create --product-id monthly_pro --file baseplan.json --package com.example.app
Get pricing
gpc subscriptions pricing get --product-id monthly_pro --base-plan p1m --package com.example.app
Subscription offers
List offers
gpc offers list --product-id monthly_pro --base-plan p1m --package com.example.app
Get offer details
gpc offers get --product-id monthly_pro --base-plan p1m --offer-id free_trial --package com.example.app
Create offer
gpc offers create --product-id monthly_pro --base-plan p1m --file offer.json --package com.example.app
Update offer
gpc offers update --product-id monthly_pro --base-plan p1m --offer-id free_trial --file offer.json --package com.example.app
Activate / 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.app
Delete offer
gpc offers delete --product-id monthly_pro --base-plan p1m --offer-id free_trial --confirm --package com.example.app
Agent 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.