Esistono quattro modi per aggiungere link a un biglietto per un evento.
Utilizza EventClass.LinksModuleData
per aggiungere i link a tutti i biglietti per eventi associati al
EventClass.
Utilizza EventObject.LinksModuleData
per aggiungere un link a un biglietto per un evento specifico EventObject.
Utilizza EventObject.appLinkData per inserire un link all'app nella parte inferiore del pass in questione.
Utilizza EventClass.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 un determinato biglietto per un evento, imposta il campo EventObject.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 event tickets, including using `EventClass` or `EventObject` properties for general links and `appLinkData` for app-specific links at the bottom of the pass."],["App linking allows you to direct users to your app or website directly from the Google Wallet pass, enhancing user engagement."],["To enable app linking, set the `EventObject.appLinkData` or `EventClass.appLinkData` field to the URI or package name of your app or website."],["The `appLinkData` field supports linking to both Android and web apps, providing flexibility in your call-to-action."],["When setting app links, ensure the `displayText` is limited to 30 characters for optimal display on the pass."]]],["Links can be added to event tickets in four ways: using `EventClass.LinksModuleData` for all tickets in a class, `EventObject.LinksModuleData` for a specific ticket, `EventObject.appLinkData` for an app link on a specific pass, or `EventClass.appLinkData` for an app link on all passes of a class. App links, which appear at the bottom of the pass, navigate users to branded experiences. `EventObject.appLinkData` can be set to an app's URI or package name, using either `androidAppLinkInfo` or `webAppLinkInfo`. The display text for the link is limited to 30 characters.\n"]]