Użyj OfferClass.appLinkData, aby umieścić link do aplikacji u dołu wszystkich kart tej klasy.
Jedną z zalet linkowania aplikacji jest to, że umożliwia ona wykorzystanie wezwania do działania do przekierowania użytkowników do Twoich treści z elementami marki w Portfelu Google. Linki do tej funkcji znajdują się u dołu karty.
Przykład funkcji
Wystawca
Ustawianie linku do aplikacji na karcie Portfela Google
W przypadku danej oferty ustaw w polu OfferObject.appLinkData identyfikator URI lub nazwę pakietu swojej aplikacji lub witryny.
Format i kontekst pola appLinkData możesz sprawdzić w tym kodzie źródłowym:
Pole displayText ma ograniczenie do 30 znaków.
[null,null,["Ostatnia aktualizacja: 2025-02-28 UTC."],[[["There are four ways to add links to an offer, including using `OfferClass.LinksModuleData`, `OfferObject.LinksModuleData`, `OfferObject.appLinkData`, and `OfferClass.appLinkData`."],["App linking enhances call-to-action by directing users to branded experiences from Google Wallet, with links displayed at the bottom of the Pass."],["You can set the `OfferObject.appLinkData` field to the URI or Package name to enable app linking for a specific offer."],["The `appLinkData` field allows you to specify `androidAppLinkInfo` and `webAppLinkInfo` for deep linking into your app or website, with a customizable `displayText` limited to 30 characters."],["While linking to the Play Store is possible using `targetUri` within `androidAppLinkInfo`, it's recommended to utilize `packageName` for a direct in-app experience."]]],["Links can be added to offers in four ways: using `OfferClass.LinksModuleData` for all offers, `OfferObject.LinksModuleData` for a specific offer, `OfferObject.appLinkData` for a particular pass's app link, or `OfferClass.appLinkData` for all passes of that class' app links. App links, which appear at the bottom of the pass, let the user navigate to branded experiences. `OfferObject.appLinkData` accepts app URIs or package names, with `displayText` limited to 30 characters. `webAppLinkInfo` supports deep linking.\n"]]