• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.shortLinks.html">shortLinks</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 short Dynamic Link given either a valid long Dynamic Link or</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 short Dynamic Link given either a valid long Dynamic Link or
84details such as Dynamic Link domain, Android and iOS app information.
85The created short Dynamic Link will not expire.
86
87Repeated calls with the same long Dynamic Link or Dynamic Link information
88will produce the same short Dynamic Link.
89
90The Dynamic Link domain in the request must be owned by requester's
91Firebase project.
92
93Args:
94  body: object, The request body. (required)
95    The object takes the form of:
96
97{ # Request to create a short Dynamic Link.
98    "dynamicLinkInfo": { # Information about a Dynamic Link. # Information about the Dynamic Link to be shortened.
99        # [Learn
100        # more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener).
101      "navigationInfo": { # Information of navigation behavior. # Information of navigation behavior of a Firebase Dynamic Links.
102        "enableForcedRedirect": True or False, # If this option is on, FDL click will be forced to redirect rather than
103            # show an interstitial page.
104      },
105      "analyticsInfo": { # Tracking parameters supported by Dynamic Link. # Parameters used for tracking. See all tracking parameters in the
106          # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually).
107        "googlePlayAnalytics": { # Parameters for Google Play Campaign Measurements. # Google Play Campaign Measurements.
108            # [Learn
109            # more](https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#campaign-params)
110          "utmMedium": "A String", # Campaign medium; used to identify a medium such as email or cost-per-click.
111          "utmSource": "A String", # Campaign source; used to identify a search engine, newsletter, or other
112              # source.
113          "gclid": "A String", # [AdWords autotagging
114              # parameter](https://support.google.com/analytics/answer/1033981?hl=en); used
115              # to measure Google AdWords ads. This value is generated dynamically and
116              # should never be modified.
117          "utmTerm": "A String", # Campaign term; used with paid search to supply the keywords for ads.
118          "utmContent": "A String", # Campaign content; used for A/B testing and content-targeted ads to
119              # differentiate ads or links that point to the same URL.
120          "utmCampaign": "A String", # Campaign name; used for keyword analysis to identify a specific product
121              # promotion or strategic campaign.
122        },
123        "itunesConnectAnalytics": { # Parameters for iTunes Connect App Analytics. # iTunes Connect App Analytics.
124          "mt": "A String", # iTune media types, including music, podcasts, audiobooks and so on.
125          "at": "A String", # Affiliate token used to create affiliate-coded links.
126          "pt": "A String", # Provider token that enables analytics for Dynamic Links from within iTunes
127              # Connect.
128          "ct": "A String", # Campaign text that developers can optionally add to any link in order to
129              # track sales from a specific marketing campaign.
130        },
131      },
132      "iosInfo": { # iOS related attributes to the Dynamic Link.. # iOS related information. See iOS related parameters in the
133          # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually).
134        "iosCustomScheme": "A String", # Custom (destination) scheme to use for iOS. By default, we’ll use the
135            # bundle ID as the custom scheme. Developer can override this behavior using
136            # this param.
137        "iosFallbackLink": "A String", # Link to open on iOS if the app is not installed.
138        "iosBundleId": "A String", # iOS bundle ID of the app.
139        "iosMinimumVersion": "A String", # iOS minimum version.
140        "iosIpadBundleId": "A String", # iPad bundle ID of the app.
141        "iosAppStoreId": "A String", # iOS App Store ID.
142        "iosIpadFallbackLink": "A String", # If specified, this overrides the ios_fallback_link value on iPads.
143      },
144      "androidInfo": { # Android related attributes to the Dynamic Link. # Android related information. See Android related parameters in the
145          # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually).
146        "androidPackageName": "A String", # Android package name of the app.
147        "androidFallbackLink": "A String", # Link to open on Android if the app is not installed.
148        "androidLink": "A String", # If specified, this overrides the ‘link’ parameter on Android.
149        "androidMinPackageVersionCode": "A String", # Minimum version code for the Android app. If the installed app’s version
150            # code is lower, then the user is taken to the Play Store.
151      },
152      "socialMetaTagInfo": { # Parameters for social meta tag params. # Parameters for social meta tag params.
153          # Used to set meta tag data for link previews on social sites.
154          # Used to set meta tag data for link previews on social sites.
155        "socialTitle": "A String", # Title to be displayed. Optional.
156        "socialDescription": "A String", # A short description of the link. Optional.
157        "socialImageLink": "A String", # An image url string. Optional.
158      },
159      "domainUriPrefix": "A String", # E.g. https://maps.app.goo.gl, https://maps.page.link, https://g.co/maps
160          # More examples can be found in description of getNormalizedUriPrefix in
161          # j/c/g/firebase/dynamiclinks/uri/DdlDomain.java
162          #
163          # Will fallback to dynamic_link_domain is this field is missing
164      "link": "A String", # The link your app will open, You can specify any URL your app can handle.
165          # This link must be a well-formatted URL, be properly URL-encoded, and use
166          # the HTTP or HTTPS scheme. See 'link' parameters in the
167          # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually).
168          #
169          # Required.
170      "desktopInfo": { # Desktop related attributes to the Dynamic Link. # Desktop related information. See desktop related parameters in the
171          # [documentation](https://firebase.google.com/docs/dynamic-links/create-manually).
172        "desktopFallbackLink": "A String", # Link to open on desktop.
173      },
174      "dynamicLinkDomain": "A String", # Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl
175          # [Learn
176          # more](https://firebase.google.com/docs/dynamic-links/android/receive) on
177          # how to set up Dynamic Link domain associated with your Firebase project.
178          #
179          # Required if missing domain_uri_prefix.
180    },
181    "sdkVersion": "A String", # Google SDK version. Version takes the form "$major.$minor.$patch"
182    "longDynamicLink": "A String", # Full long Dynamic Link URL with desired query parameters specified.
183        # For example,
184        # "https://sample.app.goo.gl/?link=http://www.google.com&apn=com.sample",
185        # [Learn
186        # more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener).
187    "suffix": { # Short Dynamic Link suffix. # Short Dynamic Link suffix. Optional.
188      "option": "A String", # Suffix option.
189      "customSuffix": "A String", # Only applies to Option.CUSTOM.
190    },
191  }
192
193  x__xgafv: string, V1 error format.
194    Allowed values
195      1 - v1 error format
196      2 - v2 error format
197
198Returns:
199  An object of the form:
200
201    { # Response to create a short Dynamic Link.
202    "shortLink": "A String", # Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz
203    "warning": [ # Information about potential warnings on link creation.
204      { # Dynamic Links warning messages.
205        "warningDocumentLink": "A String", # The document describing the warning, and helps resolve.
206        "warningCode": "A String", # The warning code.
207        "warningMessage": "A String", # The warning message to help developers improve their requests.
208      },
209    ],
210    "previewLink": "A String", # Preview link to show the link flow chart. (debug info.)
211  }</pre>
212</div>
213
214</body></html>