AppLinkData
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
欄位 |
androidAppLinkInfo |
object (AppLinkInfo )
合作夥伴應用程式連結的相關資訊 (選擇性)。
|
iosAppLinkInfo (deprecated) |
object (AppLinkInfo )
已淘汰,不支援開啟 iOS 應用程式的連結。
|
webAppLinkInfo |
object (AppLinkInfo )
合作夥伴網頁連結的相關資訊 (選填)。
|
displayText |
object (LocalizedString )
應用程式連結按鈕的選用顯示文字。字元限制為 30 個半形字元。
|
AppLinkInfo
欄位 |
appLogoImage (deprecated) |
object (Image )
已淘汰,應用程式連結模組不支援圖片。
|
title (deprecated) |
object (LocalizedString )
已淘汰,應用程式連結模組不支援標題。
|
description (deprecated) |
object (LocalizedString )
已淘汰,應用程式連結模組不支援說明。
|
appTarget |
object (AppTarget )
在用戶端開啟應用程式連結時要遵循的目標。合作夥伴會使用這個網址開啟自有應用程式或網頁。
|
AppTarget
JSON 表示法 |
{
// Union field target can be only one of the following:
"targetUri": {
object (Uri )
},
"packageName": string
// End of list of possible types for union field target .
} |
欄位 |
聯集欄位 target 。 target 只能是下列其中一項:
|
targetUri |
object (Uri )
AppTarget 的 URI。必須設定 URI 說明。如果應用程式已定義這個目標,請改為設定套件欄位。
|
packageName |
string
AppTarget 的套件名稱。例如:com.google.android.gm
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eAppLinkData objects contain information about app links for Android, iOS, and web apps, along with display text.\u003c/p\u003e\n"],["\u003cp\u003eAppLinkInfo objects, while largely deprecated, can define targets for opening app links.\u003c/p\u003e\n"],["\u003cp\u003eAppTarget objects specify either a URI or package name as the target for the app link.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edisplayText\u003c/code\u003e field within AppLinkData allows for customization of the app link button's text, with a 30-character limit.\u003c/p\u003e\n"],["\u003cp\u003eApp link functionality enables integration with external apps or web pages directly from Google Wallet passes.\u003c/p\u003e\n"]]],["The core content describes data structures for app links, including `JSON representation`, `AppLinkInfo`, and `AppTarget`. `AppLinkInfo` contains information for Android and web app links, with `displayText`. `AppLinkInfo` further specifies `appTarget`, which defines how to open the link, via either a `targetUri` or `packageName`. Several fields, such as `iosAppLinkInfo`, `appLogoImage`, `title`, and `description`, are deprecated. `target` is a union field with either `targetUri` or `packageName`.\n"],null,["# AppLinkData\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [AppLinkInfo](#AppLinkInfo)\n - [JSON representation](#AppLinkInfo.SCHEMA_REPRESENTATION)\n- [AppTarget](#AppTarget)\n - [JSON representation](#AppTarget.SCHEMA_REPRESENTATION)\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"androidAppLinkInfo\": { object (/wallet/reference/rest/v1/AppLinkData#AppLinkInfo) }, \"iosAppLinkInfo\": { object (/wallet/reference/rest/v1/AppLinkData#AppLinkInfo) }, \"webAppLinkInfo\": { object (/wallet/reference/rest/v1/AppLinkData#AppLinkInfo) }, \"displayText\": { object (/wallet/reference/rest/v1/LocalizedString) } } ``` |\n\n| Fields ||\n|-----------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `androidAppLinkInfo` | `object (`[AppLinkInfo](/wallet/reference/rest/v1/AppLinkData#AppLinkInfo)`)` Optional information about the partner app link. |\n| `iosAppLinkInfo` **(deprecated)** | `object (`[AppLinkInfo](/wallet/reference/rest/v1/AppLinkData#AppLinkInfo)`)` | This item is deprecated! Deprecated. Links to open iOS apps are not supported. |\n| `webAppLinkInfo` | `object (`[AppLinkInfo](/wallet/reference/rest/v1/AppLinkData#AppLinkInfo)`)` Optional information about the partner web link. |\n| `displayText` | `object (`[LocalizedString](/wallet/reference/rest/v1/LocalizedString)`)` Optional display text for the app link button. Character limit is 30. |\n\nAppLinkInfo\n-----------\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"appLogoImage\": { object (/wallet/reference/rest/v1/Image) }, \"title\": { object (/wallet/reference/rest/v1/LocalizedString) }, \"description\": { object (/wallet/reference/rest/v1/LocalizedString) }, \"appTarget\": { object (/wallet/reference/rest/v1/AppLinkData#AppTarget) } } ``` |\n\n| Fields ||\n|---------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `appLogoImage` **(deprecated)** | `object (`[Image](/wallet/reference/rest/v1/Image)`)` | This item is deprecated! Deprecated. Image isn't supported in the app link module. |\n| `title` **(deprecated)** | `object (`[LocalizedString](/wallet/reference/rest/v1/LocalizedString)`)` | This item is deprecated! Deprecated. Title isn't supported in the app link module. |\n| `description` **(deprecated)** | `object (`[LocalizedString](/wallet/reference/rest/v1/LocalizedString)`)` | This item is deprecated! Deprecated. Description isn't supported in the app link module. |\n| `appTarget` | `object (`[AppTarget](/wallet/reference/rest/v1/AppLinkData#AppTarget)`)` Target to follow when opening the app link on clients. It will be used by partners to open their app or webpage. |\n\nAppTarget\n---------\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `target` can be only one of the following: \"targetUri\": { object (/wallet/reference/rest/v1/Uri) }, \"packageName\": string // End of list of possible types for union field `target`. } ``` |\n\n| Fields ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `target`. `target` can be only one of the following: ||\n| `targetUri` | `object (`[Uri](/wallet/reference/rest/v1/Uri)`)` URI for AppTarget. The description on the URI must be set. Prefer setting package field instead, if this target is defined for your application. |\n| `packageName` | `string` Package name for AppTarget. For example: com.google.android.gm |"]]