Logo Catalog Management

Catalog Management

Tổ chức
RevenueCat
catalog-management

Dùng kỹ năng này khi quản lý danh mục sản phẩm và gói đăng ký Google Play bằng Google Play Developer API. Bao gồm tạo, cập nhật, kích hoạt, ngừng kích hoạt và xóa sản phẩm trong các endpoint monetization.onetimeproducts, monetization.subscriptions và inappproducts cũ, cùng tự động hóa định giá theo khu vực.

Add to TypingMind

Tổng quan

Nhà phát hànhRevenueCat
Kho mãplay-billing-skills
Tên kỹ năngcatalog-management
Sao
58
Bản fork
0
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được RevenueCat công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Catalog Management trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/RevenueCat/play-billing-skills/tree/main/google-play/catalog-management
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/RevenueCat/play-billing-skills.git /tmp/play-billing-skills
mkdir -p .claude/skills
cp -r /tmp/play-billing-skills/google-play/catalog-management .claude/skills/catalog-management
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Catalog Management trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Catalog Management ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Catalog Management với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Catalog Management

Manage Google Play product catalogs at scale through the Android Publisher API. This skill helps you choose between Play Console and API based workflows, wire up the right endpoints for one time products and subscriptions, and keep regional pricing in sync with your source of truth.

Phase 1: Discovery

Confirm the basics before writing catalog code.

  1. Service account permission. The service account must hold Manage store presence ("Edit pricing, in-app products, and pricing templates") on every app you manage. Without it, write calls to inappproducts, monetization.onetimeproducts, and monetization.subscriptions return 403. Verify in Play Console under Users and permissions, then grant app level access to every package you intend to manage.
  2. API product surface. Identify which endpoint family each SKU currently lives under. Catalogs only ever managed in Play Console were migrated automatically and live under monetization.onetimeproducts, as do products created through that service. Products created or managed through the inappproducts service stay there until you migrate them (an update through monetization.onetimeproducts migrates them). Once migrated, the legacy surface stops serving that product.
  3. Existing catalog shape. List the current catalog with monetization.onetimeproducts.list and monetization.subscriptions.list. Record product IDs, base plan IDs, offer IDs, and activation state so you know what you are mutating.
  4. Quota posture. Review quota usage in the Google Cloud Console under APIs and Services > Quotas for the Google Play Android Developer API. The three tiers you depend on are the per minute query limit, the hourly modification limit, and the hourly latency sensitive modification limit.

Phase 2: Plan

Choose the management model that matches your scale.

Catalog sizeRecommended surfaceNotes
Under 100 products, rare changesPlay Console UINo automation overhead. Manual review before every change.
100 to 10,000 productsbatchUpdate with allowMissing=true, latency tolerantChunks of 100 clear the full catalog in minutes.
Over 10,000 productsbatchUpdate with pacing, latency tolerantAdd inter batch delay, schedule off peak, run dry runs locally.

Pick the right update mechanism per operation:

  • Use patch with an updateMask for targeted field changes on a single product.
  • Use monetization.subscriptions.batchUpdate for subscriptions and their nested base plans. Offers are a separate resource: write them with monetization.subscriptions.basePlans.offers.batchUpdate (or create) and activate them with offers.activate or offers.batchUpdateStates; new offers stay DRAFT until activated.
  • Use inappproducts.update only when you want to replace an entire legacy product resource and you send every field.

Plan the activation state explicitly. Base plans created through the API start in DRAFT. Users cannot purchase until you call monetization.subscriptions.basePlans.activate. One time products work the same way for new purchase options: a purchase option that has never been activated stays in Draft, invisible to the Play Billing Library, until you activate it with purchaseOptions.batchUpdateStates (and its offers with purchaseOptions.offers.activate). Updating a product never changes the state of its existing purchase options. Write the activation step into your runbook so you do not ship dark products.

Plan reconciliation before you plan writes. Define a policy for each diff class:

  • Missing remotely: create via batch with allowMissing=true.
  • Divergent: update via batch with the narrowest updateMask your system manages.
  • Missing locally: deactivate or delete based on whether any base plan has ever been activated.

Add a safety rail: if a reconciliation run proposes changes to more than a threshold percentage of the catalog, fail closed and require manual review.

Phase 3: Execute

Endpoint reference

CapabilityOne time productSubscription
Createmonetization.onetimeproducts.patch or batchUpdate with allowMissing=true (there is no create)monetization.subscriptions.create
Targeted updatemonetization.onetimeproducts.patchmonetization.subscriptions.patch
Bulk create/updatemonetization.onetimeproducts.batchUpdatemonetization.subscriptions.batchUpdate
Listmonetization.onetimeproducts.listmonetization.subscriptions.list
Deletemonetization.onetimeproducts.delete / batchDeletemonetization.subscriptions.delete (only if never activated)
Activatemonetization.onetimeproducts.purchaseOptions.batchUpdateStates (activatePurchaseOptionRequest); offers: purchaseOptions.offers.activatemonetization.subscriptions.basePlans.activate
DeactivatepurchaseOptions.batchUpdateStates (deactivatePurchaseOptionRequest); offers: purchaseOptions.offers.deactivatemonetization.subscriptions.basePlans.deactivate
Activate offerpurchaseOptions.offers.activate (see Activate row)monetization.subscriptions.basePlans.offers.activate
Price migrationn/amonetization.subscriptions.basePlans.migratePrices

Create or update a one time product in bulk

kotlin
val request = BatchUpdateOneTimeProductsRequest().apply {
    requests = chunk.map { product ->
        UpdateOneTimeProductRequest().apply {
            oneTimeProduct = product
            allowMissing = true
            updateMask = "listings,purchaseOptions,taxAndComplianceSettings"
            // Required. Use the regionVersion.version returned by monetization.convertRegionPrices.
            regionsVersion = RegionsVersion().setVersion(currentRegionsVersion)
            latencyTolerance =
                "PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT"
        }
    }
}
androidPublisher.monetization()
    .onetimeproducts()
    .batchUpdate(packageName, request)
    .execute()

Send chunks of 100. Each batch counts as one query against the per minute and hourly modification tiers.

Patch a subscription listing

kotlin
val subscription = Subscription().apply {
    listings = listOf(
        SubscriptionListing().apply {
            languageCode = "en-US"
            title = "Premium Plan"
            description = "Access all premium features"
        }
    )
}
androidPublisher.monetization().subscriptions()
    .patch(packageName, productId, subscription)
    .setUpdateMask("listings")
    .setRegionsVersionVersion(currentRegionsVersion)
    .execute()

Every patch needs the regionsVersion.version query parameter (Java client: setRegionsVersionVersion(...)); in batchUpdate it goes in each request's regionsVersion field. Use the regionVersion.version returned by monetization.convertRegionPrices.

Activate a base plan

kotlin
androidPublisher.monetization().subscriptions()
    .basePlans()
    .activate(
        packageName, productId, basePlanId,
        ActivateBasePlanRequest()
    )
    .execute()

A subscription is not purchasable until at least one base plan is activated.

Archive rather than delete

For one time products, prefer removing them from your storefront while leaving the catalog entry intact, so restore flows still resolve product IDs. Only call monetization.onetimeproducts.delete when you are sure no restore path references the product.

For subscriptions, deactivate all base plans to stop new signups while existing subscribers continue renewing:

kotlin
androidPublisher.monetization().subscriptions()
    .basePlans()
    .deactivate(
        packageName, productId, basePlanId,
        DeactivateBasePlanRequest()
    )
    .execute()

Delete the subscription itself only when no base plan has ever been activated. After activation, deactivation is the terminal state.

Regional pricing automation

Regional price updates are high volume operations, so route them through batch methods with latency tolerant mode. Build the region map with monetization.convertRegionPrices (POST applications/{packageName}/pricing:convertRegionPrices), which applies Play's country pricing patterns and returns the regionVersion to send as regionsVersion, then submit batchUpdate calls of up to 100 products per request.

New prices apply to new subscribers only. Moving existing subscribers with monetization.subscriptions.basePlans.migratePrices is a price change that Google announces to them; for increases, choose priceIncreaseType deliberately (opt in increases cancel subscribers who do not accept). Do not run it automatically after a price sync. See the price-changes skill.

Handle quota errors

On HTTP 429 with reason: rateLimitExceeded, back off exponentially and resume. Keep batches at latency tolerant mode whenever visibility within 24 hours is acceptable, which keeps the hourly latency sensitive tier free for real time fixes like pricing corrections.

References

Câu hỏi thường gặp

Kỹ năng AI Catalog Management làm được gì?

Dùng kỹ năng này khi quản lý danh mục sản phẩm và gói đăng ký Google Play bằng Google Play Developer API. Bao gồm tạo, cập nhật, kích hoạt, ngừng kích hoạt và xóa sản phẩm trong các endpoint monetization.onetimeproducts, monetization.subscriptions và inappproducts cũ, cùng tự động hóa định giá theo khu vực.

Vì sao nên dùng Catalog Management trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Catalog Management là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Catalog Management trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/RevenueCat/play-billing-skills/tree/main/google-play/catalog-management. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Catalog Management?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Catalog Management với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Catalog Management với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Catalog Management có miễn phí không?

Có. Kỹ năng này được RevenueCat phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇