There are four ways to add links to a event ticket.

- Use `EventClass.LinksModuleData` to add links to all event tickets that are associated with the `EventClass`.
- Use `EventObject.LinksModuleData` to add a link to a specific event ticket `EventObject`.
- Use `EventObject.appLinkData` to place an app link as the first item of the bottom section of that particular Pass.
- Use `EventClass.appLinkData` to place an app link as the first item of the bottom section of all the passes of that class.


One benefit of *app linking* is that it empowers your call-to-action to navigate
users to your branded experiences from Google Wallet. Links with this feature appear as the first item of the bottom
section of the Pass.

### Feature example

|---|
| ![Issuer Name Applink Data Example](https://developers.google.com/static/wallet/images/applink_issuer_name_android_expressive_passes.png) |
| Issuer |

### Set the app link on your Google Wallet pass

For a given event ticket, set the field `EventObject.appLinkData`
to the URI or Package name of your app or website.


See the format and context of the `appLinkData` field in the following source code:
The `displayText` field is limited to 30 characters.

> [!NOTE]
> **Note:** To deep link to a specific view within an app you must use webAppLinkInfo.

```
  {
    "id": string,
    "classId": string,
    …
    …
    …
    "appLinkData": {
      "androidAppLinkInfo": {
        "appTarget": {
          "packageName": "com.google.android.gm",
        }
      },
      "webAppLinkInfo": {
        "appTarget": {
           "targetUri": {
              "uri": "https://mail.google.com/mail/",
              "description": "Web link for Gmail"
           }
        }
      },
      "displayText": {
        "defaultValue": {
           "value": "Our awesome app!"
        }
      }
    }
  }
```
For posterity the following implementation will also work.

```
{
  "id": string,
  "classId": string,
  …
  …
  …
  "appLinkData": {
    "androidAppLinkInfo": {
      "appTarget": {
        "targetUri": {
          "uri": "https://play.google.com/store/apps/details?id=com.google.android.gm",
            "description": "Play store link for Gmail app"
        }
      }
    }
  }
}
```