OpenUrlAction
Stay organized with collections
Save and categorize content based on your preferences.
AndroidApp
Specification of the Android App for fulfillment restrictions
VersionFilter
VersionFilter should be included if specific version/s of the App are required.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003e\u003ccode\u003eOpenUrlAction\u003c/code\u003e allows opening a webpage or a mobile app specified by a URL.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOpenUrlAction\u003c/code\u003e supports specifying Android apps via package name for fulfillment.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOpenUrlAction\u003c/code\u003e allows filtering app fulfillment by version using \u003ccode\u003eVersionFilter\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVersionFilter\u003c/code\u003e supports minimum and maximum version codes to control the app version range.\u003c/p\u003e\n"]]],[],null,["# OpenUrlAction\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [AndroidApp](#AndroidApp)\n - [JSON representation](#AndroidApp.SCHEMA_REPRESENTATION)\n- [VersionFilter](#VersionFilter)\n - [JSON representation](#VersionFilter.SCHEMA_REPRESENTATION)\n\nOpens the given url.\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"url\": string, \"androidApp\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/OpenUrlAction#AndroidApp) }, \"urlTypeHint\": enum (/assistant/df-asdk/reference/webhook/rest/Shared.Types/UrlTypeHint) } ``` |\n\n| Fields ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `url` | `string` The url field which could be any of: - http/https urls for opening an App-linked App or a webpage |\n| `androidApp` | `object (`[AndroidApp](/assistant/df-asdk/reference/webhook/rest/Shared.Types/OpenUrlAction#AndroidApp)`)` Information about the Android App if the URL is expected to be fulfilled by an Android App. |\n| `urlTypeHint` | `enum (`[UrlTypeHint](/assistant/df-asdk/reference/webhook/rest/Shared.Types/UrlTypeHint)`)` Indicates a hint for the url type. |\n\nAndroidApp\n----------\n\nSpecification of the Android App for fulfillment restrictions\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"packageName\": string, \"versions\": [ { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/OpenUrlAction#VersionFilter) } ] } ``` |\n\n| Fields ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `packageName` | `string` Package name Package name must be specified when specifing Android Fulfillment. |\n| `versions[]` | `object (`[VersionFilter](/assistant/df-asdk/reference/webhook/rest/Shared.Types/OpenUrlAction#VersionFilter)`)` When multiple filters are specified, any filter match will trigger the app. |\n\nVersionFilter\n-------------\n\nVersionFilter should be included if specific version/s of the App are required.\n\n| JSON representation ||\n|----------------------------------------------------------|---|\n| ``` { \"minVersion\": integer, \"maxVersion\": integer } ``` |\n\n| Fields ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `minVersion` | `integer` Min version code or 0, inclusive. |\n| `maxVersion` | `integer` Max version code, inclusive. The range considered is \\[minVersion:maxVersion\\]. A null range implies any version. Examples: To specify a single version use: \\[target_version:target_version\\]. To specify any version leave minVersion and maxVersion unspecified. To specify all versions until maxVersion, leave minVersion unspecified. To specify all versions from minVersion, leave maxVersion unspecified. |"]]