Esistono quattro modi per aggiungere link a un'offerta.
Utilizza OfferClass.LinksModuleData
per aggiungere i link a tutte le offerte associate al
OfferClass.
Utilizza OfferObject.LinksModuleData
per aggiungere un link a un'offerta specifica OfferObject.
Utilizza OfferObject.appLinkData per inserire un link all'app nella parte inferiore del pass in questione.
Utilizza OfferClass.appLinkData per inserire un link all'app in fondo a tutti i passaggi del corso.
Uno dei vantaggi del collegamento delle app è che consente al tuo invito all'azione di indirizzare gli utenti alle tue esperienze correlate al brand da Google Wallet. I link con questa funzionalità vengono visualizzati nella parte inferiore
della tessera.
Esempio di funzionalità
Emittente
Impostare il link all'app sulla tessera Google Wallet
Per una determinata offerta, imposta il campo OfferObject.appLinkData
sull'URI o sul nome del pacchetto della tua app o del tuo sito web.
Visualizza il formato e il contesto del campo appLinkData nel seguente codice sorgente:
Il campo displayText ha un limite di 30 caratteri.
[null,null,["Ultimo aggiornamento 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"]]