Reminder: By Aug 31, 2025, all new apps and updates to existing apps must use Billing Library version 7 or newer. If you need more time to update your app, you can request an extension until Nov 1, 2025. Learn about
Play Billing Library version deprecation.
Interfejsy API ofert zewnętrznych
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
W niektórych krajach kwalifikujący się deweloperzy mogą kierować użytkowników poza aplikację, w tym promować oferty usług i funkcji cyfrowych w aplikacji. Ten przewodnik dotyczy interfejsów API, które umożliwiają włączenie ofert zewnętrznych. Zanim zaczniesz korzystać z tych interfejsów API, zapoznaj się z wymaganiami programu i zarejestruj się w programie ofert zewnętrznych.
Słowniczek terminów
Konwencje terminów stosowane w tym przewodniku:
- Interfejsy API ofert zewnętrznych: interfejsy API służące do kierowania użytkownika poza aplikację, w tym do wyświetlania wymaganych informacji na ekranie i raportowania odpowiednich transakcji.
- Transakcja zewnętrzna: kwalifikująca się transakcja mająca miejsce poza aplikacją zgodnie z definicją w wymaganiach programu.
- Zewnętrzny token transakcji: token przekazywany deweloperowi z Biblioteki płatności w Play, z którego może on korzystać, gdy użytkownik ukończy transakcję zewnętrzną. Służy on do powiadamiania Google Play o zakupie.
- Zewnętrzny identyfikator transakcji: unikalny identyfikator generowany przez dewelopera do identyfikowania transakcji zewnętrznych.
Obsługa ofert zewnętrznych
Z tej sekcji dowiesz się, jak obsługiwać oferty zewnętrzne.
Przed użyciem tych interfejsów API upewnij się, że:
Skonfiguruj w Konsoli Play
Aby skonfigurować oferty zewnętrzne w Konsoli Play, wykonaj czynności opisane w wymaganiach programu.
Ekran z informacjami pomaga użytkownikom zorientować się, że zamierzają odwiedzić witrynę zewnętrzną. Ekran z informacjami będzie wyświetlany użytkownikom za każdym razem, zanim zostaną oni skierowani poza aplikację za pomocą interfejsów API ofert zewnętrznych.
Ekran informacyjny
|
Przykład ma charakter wyłącznie ilustracyjny.
Dalsze kroki
Aby rozpocząć integrację interfejsów API ofert zewnętrznych, postępuj zgodnie ze szczegółowymi przewodnikami na temat integracji w aplikacji i integracji backendu.
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 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-07-27 UTC."],[],[],null,["# External offers APIs\n\nIn certain countries, eligible developers are able to lead users outside the\napp, including to promote offers for in-app digital features and services. This\nguide addresses the APIs to enable external offers. You should review the\n[program requirements](https://support.google.com/googleplay/android-developer/answer/14372887) and enroll in the external offers program before\nusing these APIs.\n\nGlossary of terms\n-----------------\n\nTerm conventions followed by this guide:\n\n- **External offers APIs**: APIs used to direct the user outside of the app, including surfacing required information screen and reporting applicable transactions.\n- **External transaction** : A qualifying transaction that occurs outside of the app as defined by the [program requirements](https://support.google.com/googleplay/android-developer/answer/14372887).\n- **External transaction token**: A token provided to the developer through the Play Billing Library for the developer to use when the user completes an external transaction. This token is used to notify Google Play of a successful purchase.\n- **External transaction ID**: A unique identifier generated by the developer to identify an external transaction.\n\nSupport external offers\n-----------------------\n\nThis section describes how to support external offers.\nBefore using these APIs, ensure the following:\n\n- Review the eligibility requirements for the relevant program and complete the onboarding steps outlined in the [program requirements](https://support.google.com/googleplay/android-developer/answer/14372887).\n- Integrate [Play Billing Library 6.2.1](/google/play/billing/release-notes) or higher.\n\n### Configure in Play Console\n\nTo configure external offers in Play Console, follow the steps outlined in\nthe [program requirements](https://support.google.com/googleplay/android-developer/answer/14372887).\n\n### Information screen for users\n\nThe information screen helps users understand that they are about to visit an\nexternal website. The information screen will be shown to users each time before\nthey are directed outside of the app using the external offers APIs. \n\n|--------------------|\n| Information screen |\n\nExample for illustrative purposes only.\n\n### Next steps\n\nTo begin integrating the external offers APIs, follow the in-depth guides\nfor both [in-app integration](/google/play/billing/external/integration) and [backend integration](/google/play/billing/outside-gpb-backend)."]]