Dodawanie linku do biletu

Dodanie linku do karty w Portfelu Google pozwoli mu skierować użytkownika do Twojej aplikacji lub witryny. Link jest dodawany do karty pod nagłówkiem i jest dostępna w przypadku wszystkich typów kart w Portfelu Google.

Etapy integracji

W przypadku danej karty w Portfelu Google określ appLinkData, by ustawić identyfikator URI aplikacji lub witryny. Identyfikator URI może mieć dowolny format, ale zalecamy użycie linku dynamicznego.

Format i kontekst pola appLinkData można sprawdzić w tym kodzie źródłowym:

{
  "id": string,
  "classId": string,
  …
  …
  …
  "appLinkData": {
    "androidAppLinkInfo": {
      "appLogoImage": {
        "sourceUri": {
          "uri": string
        }
      },
        "title": {
          "defaultValue": {
            "language": string,
              "value": string
          }
        },
          "description": {
            "defaultValue": {
              "language": string,
                "value": string
            }
          },
            "appTarget": {
              "targetUri": {
                "uri": string,
                  "description": string
              }
            }
    }
  }
  …
  …
  …
}