Method: inappproducts.patch
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Melakukan patch pada produk dalam aplikasi (produk terkelola atau langganan).
Metode ini seharusnya tidak digunakan lagi untuk memperbarui langganan. Lihat artikel ini untuk informasi selengkapnya.
Permintaan HTTP
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
packageName |
string
Nama paket aplikasi.
|
sku |
string
ID unik untuk produk dalam aplikasi.
|
Parameter kueri
Parameter |
autoConvertMissingPrices |
boolean
Jika true (benar), harga untuk semua wilayah yang ditargetkan oleh aplikasi induk yang tidak memiliki harga yang ditentukan untuk produk dalam aplikasi ini akan otomatis dikonversi ke mata uang target berdasarkan harga default. Nilai defaultnya adalah false (salah).
|
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
Opsional. Toleransi latensi untuk penerapan update produk ini. Setelan defaultnya adalah sensitif terhadap latensi.
|
Isi permintaan
Isi permintaan memuat instance InAppProduct
.
Isi respons
Jika berhasil, isi respons akan berisi instance InAppProduct
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut ini:
https://www.googleapis.com/auth/androidpublisher
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-05-21 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-05-21 UTC."],[[["This operation patches an in-app product, either a managed product or a subscription, within a specified app."],["It involves providing the package name and product's unique identifier (SKU) as path parameters."],["Developers can optionally control auto-conversion of missing prices and update propagation latency using query parameters."],["The request and successful response both utilize the `InAppProduct` object for data transfer."],["Authorization requires the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This API patches in-app products, including managed products and subscriptions, via a `PATCH` HTTP request to a specified URL. The URL requires the app's `packageName` and the product's `sku` as path parameters. Optional query parameters, `autoConvertMissingPrices` and `latencyTolerance`, are available. The request and response body use the `InAppProduct` instance. This process needs `https://www.googleapis.com/auth/androidpublisher` OAuth scope. Note that updating subscriptions through this method is deprecated.\n"]]