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 .
Параметры пути
Параметры |
---|
package Name | string Необходимый. Имя пакета родительского приложения. Должно быть равно полю packageName ресурса подписки. |
product Id | string Необходимый. Идентификатор обновляемой подписки. Должно быть равно полю ProductId ресурса Subscription. |
base Plan Id | string Необходимый. Уникальный идентификатор базового плана, цены на который обновляются. |
Тело запроса
Тело запроса содержит данные следующей структуры:
Поля |
---|
regional Price Migrations[] | object ( RegionalPriceMigrationConfig ) Необходимый. Региональные цены обновить. |
regions Version | object ( RegionsVersion ) Необходимый. Версия доступных регионов, используемая для RegionalPriceMigrations. |
latency Tolerance | enum ( ProductUpdateLatencyTolerance ) Необязательный. Допуск на задержку распространения этого обновления продукта. По умолчанию чувствителен к задержке. |
Тело ответа
В случае успеха тело ответа пустое.
Области авторизации
Требуется следующая область действия OAuth:
-
https://www.googleapis.com/auth/androidpublisher
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-12-18 UTC.
[null,null,["Последнее обновление: 2024-12-18 UTC."],[[["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"]]