Es gibt vier Möglichkeiten, einem Veranstaltungsticket Links hinzuzufügen.
Mit EventClass.LinksModuleData kannst du allen Veranstaltungstickets, die mit EventClass verknüpft sind, Links hinzufügen.
Verwende EventObject.LinksModuleData, um einen Link zu einem bestimmten Veranstaltungsticket EventObject hinzuzufügen.
Verwende EventObject.appLinkData, um einen App-Link unten auf der Karte bzw. dem Ticket zu platzieren.
Verwenden Sie EventClass.appLinkData, um einen App-Link unten in allen Karten/Tickets dieser Kursklasse zu platzieren.
Ein Vorteil der App-Verknüpfung besteht darin, dass dein Call-to-Action-Kanal Nutzer über Google Wallet zu deinen Markeninhalten leiten kann. Links mit dieser Funktion werden unten auf der Karte bzw. dem Ticket angezeigt.
Beispiel für eine Funktion
Aussteller
App-Link in Google Wallet-Karte/-Ticket einrichten
Lege für ein bestimmtes Veranstaltungsticket das Feld EventObject.appLinkData auf den URI oder Paketnamen deiner App oder Website fest.
Im folgenden Quellcode findest du das Format und den Kontext des Felds appLinkData:
Das Feld displayText ist auf 30 Zeichen begrenzt.
[null,null,["Zuletzt aktualisiert: 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"]]