1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="firebasedynamiclinks_v1.html">Firebase Dynamic Links API</a> . <a href="firebasedynamiclinks_v1.managedShortLinks.html">managedShortLinks</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#create">create(body, x__xgafv=None)</a></code></p> 79<p class="firstline">Creates a managed short Dynamic Link given either a valid long Dynamic Link</p> 80<h3>Method Details</h3> 81<div class="method"> 82 <code class="details" id="create">create(body, x__xgafv=None)</code> 83 <pre>Creates a managed short Dynamic Link given either a valid long Dynamic Link 84or details such as Dynamic Link domain, Android and iOS app information. 85The created short Dynamic Link will not expire. 86 87This differs from CreateShortDynamicLink in the following ways: 88 - The request will also contain a name for the link (non unique name 89 for the front end). 90 - The response must be authenticated with an auth token (generated with 91 the admin service account). 92 - The link will appear in the FDL list of links in the console front end. 93 94The Dynamic Link domain in the request must be owned by requester's 95Firebase project. 96 97Args: 98 body: object, The request body. (required) 99 The object takes the form of: 100 101{ # Request to create a managed Short Dynamic Link. 102 "dynamicLinkInfo": { # Information about a Dynamic Link. # Information about the Dynamic Link to be shortened. 103 # [Learn 104 # more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener). 105 "navigationInfo": { # Information of navigation behavior. # Information of navigation behavior of a Firebase Dynamic Links. 106 "enableForcedRedirect": True or False, # If this option is on, FDL click will be forced to redirect rather than 107 # show an interstitial page. 108 }, 109 "analyticsInfo": { # Tracking parameters supported by Dynamic Link. # Parameters used for tracking. See all tracking parameters in the 110 # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). 111 "googlePlayAnalytics": { # Parameters for Google Play Campaign Measurements. # Google Play Campaign Measurements. 112 # [Learn 113 # more](https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#campaign-params) 114 "utmMedium": "A String", # Campaign medium; used to identify a medium such as email or cost-per-click. 115 "utmSource": "A String", # Campaign source; used to identify a search engine, newsletter, or other 116 # source. 117 "gclid": "A String", # [AdWords autotagging 118 # parameter](https://support.google.com/analytics/answer/1033981?hl=en); used 119 # to measure Google AdWords ads. This value is generated dynamically and 120 # should never be modified. 121 "utmTerm": "A String", # Campaign term; used with paid search to supply the keywords for ads. 122 "utmContent": "A String", # Campaign content; used for A/B testing and content-targeted ads to 123 # differentiate ads or links that point to the same URL. 124 "utmCampaign": "A String", # Campaign name; used for keyword analysis to identify a specific product 125 # promotion or strategic campaign. 126 }, 127 "itunesConnectAnalytics": { # Parameters for iTunes Connect App Analytics. # iTunes Connect App Analytics. 128 "mt": "A String", # iTune media types, including music, podcasts, audiobooks and so on. 129 "at": "A String", # Affiliate token used to create affiliate-coded links. 130 "pt": "A String", # Provider token that enables analytics for Dynamic Links from within iTunes 131 # Connect. 132 "ct": "A String", # Campaign text that developers can optionally add to any link in order to 133 # track sales from a specific marketing campaign. 134 }, 135 }, 136 "iosInfo": { # iOS related attributes to the Dynamic Link.. # iOS related information. See iOS related parameters in the 137 # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). 138 "iosCustomScheme": "A String", # Custom (destination) scheme to use for iOS. By default, we’ll use the 139 # bundle ID as the custom scheme. Developer can override this behavior using 140 # this param. 141 "iosFallbackLink": "A String", # Link to open on iOS if the app is not installed. 142 "iosBundleId": "A String", # iOS bundle ID of the app. 143 "iosMinimumVersion": "A String", # iOS minimum version. 144 "iosIpadBundleId": "A String", # iPad bundle ID of the app. 145 "iosAppStoreId": "A String", # iOS App Store ID. 146 "iosIpadFallbackLink": "A String", # If specified, this overrides the ios_fallback_link value on iPads. 147 }, 148 "androidInfo": { # Android related attributes to the Dynamic Link. # Android related information. See Android related parameters in the 149 # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). 150 "androidPackageName": "A String", # Android package name of the app. 151 "androidFallbackLink": "A String", # Link to open on Android if the app is not installed. 152 "androidLink": "A String", # If specified, this overrides the ‘link’ parameter on Android. 153 "androidMinPackageVersionCode": "A String", # Minimum version code for the Android app. If the installed app’s version 154 # code is lower, then the user is taken to the Play Store. 155 }, 156 "socialMetaTagInfo": { # Parameters for social meta tag params. # Parameters for social meta tag params. 157 # Used to set meta tag data for link previews on social sites. 158 # Used to set meta tag data for link previews on social sites. 159 "socialTitle": "A String", # Title to be displayed. Optional. 160 "socialDescription": "A String", # A short description of the link. Optional. 161 "socialImageLink": "A String", # An image url string. Optional. 162 }, 163 "domainUriPrefix": "A String", # E.g. https://maps.app.goo.gl, https://maps.page.link, https://g.co/maps 164 # More examples can be found in description of getNormalizedUriPrefix in 165 # j/c/g/firebase/dynamiclinks/uri/DdlDomain.java 166 # 167 # Will fallback to dynamic_link_domain is this field is missing 168 "link": "A String", # The link your app will open, You can specify any URL your app can handle. 169 # This link must be a well-formatted URL, be properly URL-encoded, and use 170 # the HTTP or HTTPS scheme. See 'link' parameters in the 171 # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). 172 # 173 # Required. 174 "desktopInfo": { # Desktop related attributes to the Dynamic Link. # Desktop related information. See desktop related parameters in the 175 # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). 176 "desktopFallbackLink": "A String", # Link to open on desktop. 177 }, 178 "dynamicLinkDomain": "A String", # Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl 179 # [Learn 180 # more](https://firebase.google.com/docs/dynamic-links/android/receive) on 181 # how to set up Dynamic Link domain associated with your Firebase project. 182 # 183 # Required if missing domain_uri_prefix. 184 }, 185 "longDynamicLink": "A String", # Full long Dynamic Link URL with desired query parameters specified. 186 # For example, 187 # "https://sample.app.goo.gl/?link=http://www.google.com&apn=com.sample", 188 # [Learn 189 # more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener). 190 "sdkVersion": "A String", # Google SDK version. Version takes the form "$major.$minor.$patch" 191 "name": "A String", # Link name to associate with the link. It's used for marketer to identify 192 # manually-created links in the Firebase console 193 # (https://console.firebase.google.com/). 194 # Links must be named to be tracked. 195 "suffix": { # Short Dynamic Link suffix. # Short Dynamic Link suffix. Optional. 196 "option": "A String", # Suffix option. 197 "customSuffix": "A String", # Only applies to Option.CUSTOM. 198 }, 199 } 200 201 x__xgafv: string, V1 error format. 202 Allowed values 203 1 - v1 error format 204 2 - v2 error format 205 206Returns: 207 An object of the form: 208 209 { # Response to create a short Dynamic Link. 210 "managedShortLink": { # Managed Short Link. # Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz 211 "info": { # Information about a Dynamic Link. # Full Dyamic Link info 212 "navigationInfo": { # Information of navigation behavior. # Information of navigation behavior of a Firebase Dynamic Links. 213 "enableForcedRedirect": True or False, # If this option is on, FDL click will be forced to redirect rather than 214 # show an interstitial page. 215 }, 216 "analyticsInfo": { # Tracking parameters supported by Dynamic Link. # Parameters used for tracking. See all tracking parameters in the 217 # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). 218 "googlePlayAnalytics": { # Parameters for Google Play Campaign Measurements. # Google Play Campaign Measurements. 219 # [Learn 220 # more](https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#campaign-params) 221 "utmMedium": "A String", # Campaign medium; used to identify a medium such as email or cost-per-click. 222 "utmSource": "A String", # Campaign source; used to identify a search engine, newsletter, or other 223 # source. 224 "gclid": "A String", # [AdWords autotagging 225 # parameter](https://support.google.com/analytics/answer/1033981?hl=en); used 226 # to measure Google AdWords ads. This value is generated dynamically and 227 # should never be modified. 228 "utmTerm": "A String", # Campaign term; used with paid search to supply the keywords for ads. 229 "utmContent": "A String", # Campaign content; used for A/B testing and content-targeted ads to 230 # differentiate ads or links that point to the same URL. 231 "utmCampaign": "A String", # Campaign name; used for keyword analysis to identify a specific product 232 # promotion or strategic campaign. 233 }, 234 "itunesConnectAnalytics": { # Parameters for iTunes Connect App Analytics. # iTunes Connect App Analytics. 235 "mt": "A String", # iTune media types, including music, podcasts, audiobooks and so on. 236 "at": "A String", # Affiliate token used to create affiliate-coded links. 237 "pt": "A String", # Provider token that enables analytics for Dynamic Links from within iTunes 238 # Connect. 239 "ct": "A String", # Campaign text that developers can optionally add to any link in order to 240 # track sales from a specific marketing campaign. 241 }, 242 }, 243 "iosInfo": { # iOS related attributes to the Dynamic Link.. # iOS related information. See iOS related parameters in the 244 # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). 245 "iosCustomScheme": "A String", # Custom (destination) scheme to use for iOS. By default, we’ll use the 246 # bundle ID as the custom scheme. Developer can override this behavior using 247 # this param. 248 "iosFallbackLink": "A String", # Link to open on iOS if the app is not installed. 249 "iosBundleId": "A String", # iOS bundle ID of the app. 250 "iosMinimumVersion": "A String", # iOS minimum version. 251 "iosIpadBundleId": "A String", # iPad bundle ID of the app. 252 "iosAppStoreId": "A String", # iOS App Store ID. 253 "iosIpadFallbackLink": "A String", # If specified, this overrides the ios_fallback_link value on iPads. 254 }, 255 "androidInfo": { # Android related attributes to the Dynamic Link. # Android related information. See Android related parameters in the 256 # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). 257 "androidPackageName": "A String", # Android package name of the app. 258 "androidFallbackLink": "A String", # Link to open on Android if the app is not installed. 259 "androidLink": "A String", # If specified, this overrides the ‘link’ parameter on Android. 260 "androidMinPackageVersionCode": "A String", # Minimum version code for the Android app. If the installed app’s version 261 # code is lower, then the user is taken to the Play Store. 262 }, 263 "socialMetaTagInfo": { # Parameters for social meta tag params. # Parameters for social meta tag params. 264 # Used to set meta tag data for link previews on social sites. 265 # Used to set meta tag data for link previews on social sites. 266 "socialTitle": "A String", # Title to be displayed. Optional. 267 "socialDescription": "A String", # A short description of the link. Optional. 268 "socialImageLink": "A String", # An image url string. Optional. 269 }, 270 "domainUriPrefix": "A String", # E.g. https://maps.app.goo.gl, https://maps.page.link, https://g.co/maps 271 # More examples can be found in description of getNormalizedUriPrefix in 272 # j/c/g/firebase/dynamiclinks/uri/DdlDomain.java 273 # 274 # Will fallback to dynamic_link_domain is this field is missing 275 "link": "A String", # The link your app will open, You can specify any URL your app can handle. 276 # This link must be a well-formatted URL, be properly URL-encoded, and use 277 # the HTTP or HTTPS scheme. See 'link' parameters in the 278 # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). 279 # 280 # Required. 281 "desktopInfo": { # Desktop related attributes to the Dynamic Link. # Desktop related information. See desktop related parameters in the 282 # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). 283 "desktopFallbackLink": "A String", # Link to open on desktop. 284 }, 285 "dynamicLinkDomain": "A String", # Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl 286 # [Learn 287 # more](https://firebase.google.com/docs/dynamic-links/android/receive) on 288 # how to set up Dynamic Link domain associated with your Firebase project. 289 # 290 # Required if missing domain_uri_prefix. 291 }, 292 "creationTime": "A String", # Creation timestamp of the short link. 293 "flaggedAttribute": [ # Attributes that have been flagged about this short url. 294 "A String", 295 ], 296 "link": "A String", # Short durable link url, for example, "https://sample.app.goo.gl/xyz123". 297 # 298 # Required. 299 "visibility": "A String", # Visibility status of link. 300 "linkName": "A String", # Link name defined by the creator. 301 # 302 # Required. 303 }, 304 "warning": [ # Information about potential warnings on link creation. 305 { # Dynamic Links warning messages. 306 "warningDocumentLink": "A String", # The document describing the warning, and helps resolve. 307 "warningCode": "A String", # The warning code. 308 "warningMessage": "A String", # The warning message to help developers improve their requests. 309 }, 310 ], 311 "previewLink": "A String", # Preview link to show the link flow chart. (debug info.) 312 }</pre> 313</div> 314 315</body></html>