Method: monetization.subscriptions.basePlans.migratePrices
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Przenosi subskrybentów z co najmniej 1 grupy starszych cen na bieżącą cenę. W efekcie Google Play wysyła powiadomienia do odpowiednich subskrybentów. Obsługiwanych jest tylko maksymalnie 250 starszych kohort cenowych jednoczesnych.
Żądanie HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
packageName |
string
Wymagane. Nazwa pakietu aplikacji nadrzędnej. Wartość musi być równa wartości pola packageName w zasobie subskrypcji.
|
productId |
string
Wymagane. Identyfikator subskrypcji, którą chcesz zmienić. Musi być równy polu productId zasobu Subscription.
|
basePlanId |
string
Wymagane. Unikalny identyfikator abonamentu podstawowego, którego ceny chcesz zaktualizować.
|
Treść żądania
Treść żądania zawiera dane o następującej strukturze:
Pola |
regionalPriceMigrations[] |
object (RegionalPriceMigrationConfig )
Wymagane. Ceny regionalne, które chcesz zaktualizować.
|
regionsVersion |
object (RegionsVersion )
Wymagane. Wersja dostępnych regionów używanych na potrzeby klasy regionalPriceMigrations.
|
latencyTolerance |
enum (ProductUpdateLatencyTolerance )
Opcjonalnie: Tolerancja opóźnienia w propagacji tej aktualizacji produktu. Domyślnie jest to wartość „wrażliwy na opóźnienia”.
|
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi jest pusta.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/androidpublisher
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-05-21 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-05-21 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"]]