Method: monetization.subscriptions.basePlans.migratePrices
مشترکین را از یک یا چند گروه قیمت قدیمی به قیمت فعلی منتقل می کند. نتیجه درخواستها در Google Play به اطلاع مشترکین آسیبدیده میرسد. فقط تا 250 گروه قیمت قدیمی به طور همزمان پشتیبانی می شود.
درخواست HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
package Name | string مورد نیاز. نام بسته برنامه والد. باید برابر با قسمت packageName در منبع اشتراک باشد. |
product Id | string مورد نیاز. شناسه اشتراک برای به روز رسانی. باید برابر با قسمت productId در منبع اشتراک باشد. |
base Plan Id | string مورد نیاز. شناسه طرح پایه منحصربهفرد طرح پایه برای بهروزرسانی قیمتها. |
درخواست بدن
بدنه درخواست حاوی داده هایی با ساختار زیر است:
فیلدها |
---|
regional Price Migrations[] | object ( RegionalPriceMigrationConfig ) مورد نیاز. قیمت های منطقه ای برای به روز رسانی |
regions Version | object ( RegionsVersion ) مورد نیاز. نسخه مناطق موجود که برای منطقه قیمت مهاجرت استفاده می شود. |
latency Tolerance | enum ( ProductUpdateLatencyTolerance ) اختیاری. تحمل تأخیر برای انتشار این بهروزرسانی محصول. به طور پیش فرض حساس به تأخیر است. |
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ خالی است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/androidpublisher
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-12-18 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-12-18 بهوقت ساعت هماهنگ جهانی."],[[["Migrates subscribers of one or more legacy price cohorts to the current subscription price, notifying affected subscribers via Google Play."],["Supports a maximum of 250 simultaneous legacy price cohorts for migration."],["Requires providing the package name, subscription ID, and base plan ID for the price migration."],["The request body specifies regional price updates, the regions version, and an optional latency tolerance for the update."],["Utilizes the `https://www.googleapis.com/auth/androidpublisher` authorization scope for access."]]],["This content describes the process of migrating subscribers from legacy price cohorts to the current price using the Google Play API. This involves sending a `POST` request to a specific endpoint with parameters like `packageName`, `productId`, and `basePlanId`. The request body requires `regionalPriceMigrations` and `regionsVersion`, with an optional `latencyTolerance` parameter. Successful requests result in an empty response, and require `androidpublisher` authorization scope. Google Play notifies the affected subscribers of changes, with a limit of 250 simultaneous legacy cohorts.\n"]]