Firebase Dynamic Links API . v1

Instance Methods

close()

Close httplib2 connections.

getLinkStats(dynamicLink, durationDays=None, sdkVersion=None, x__xgafv=None)

Fetches analytics stats of a short Dynamic Link for a given duration. Metrics include number of clicks, redirects, installs, app first opens, and app reopens.

installAttribution(body=None, x__xgafv=None)

Get iOS strong/weak-match info for post-install attribution.

reopenAttribution(body=None, x__xgafv=None)

Get iOS reopen attribution for app universal link open deeplinking.

Method Details

close()
Close httplib2 connections.
getLinkStats(dynamicLink, durationDays=None, sdkVersion=None, x__xgafv=None)
Fetches analytics stats of a short Dynamic Link for a given duration. Metrics include number of clicks, redirects, installs, app first opens, and app reopens.

Args:
  dynamicLink: string, Dynamic Link URL. e.g. https://abcd.app.goo.gl/wxyz (required)
  durationDays: string, The span of time requested in days.
  sdkVersion: string, Google SDK version. Version takes the form "$major.$minor.$patch"
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Analytics stats of a Dynamic Link for a given timeframe.
  "linkEventStats": [ # Dynamic Link event stats.
    { # Dynamic Link event stat.
      "count": "A String", # The number of times this event occurred.
      "event": "A String", # Link event.
      "platform": "A String", # Requested platform.
    },
  ],
}
installAttribution(body=None, x__xgafv=None)
Get iOS strong/weak-match info for post-install attribution.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request for iSDK to execute strong match flow for post-install attribution. This is meant for iOS requests only. Requests from other platforms will not be honored.
  "appInstallationTime": "A String", # App installation epoch time (https://en.wikipedia.org/wiki/Unix_time). This is a client signal for a more accurate weak match.
  "bundleId": "A String", # APP bundle ID.
  "device": { # Signals associated with the device making the request. # Device information.
    "deviceModelName": "A String", # Device model name.
    "languageCode": "A String", # Device language code setting.
    "languageCodeFromWebview": "A String", # Device language code setting obtained by executing JavaScript code in WebView.
    "languageCodeRaw": "A String", # Device language code raw setting. iOS does returns language code in different format than iOS WebView. For example WebView returns en_US, but iOS returns en-US. Field below will return raw value returned by iOS.
    "screenResolutionHeight": "A String", # Device display resolution height.
    "screenResolutionWidth": "A String", # Device display resolution width.
    "timezone": "A String", # Device timezone setting.
  },
  "iosVersion": "A String", # iOS version, ie: 9.3.5. Consider adding "build".
  "retrievalMethod": "A String", # App post install attribution retrieval information. Disambiguates mechanism (iSDK or developer invoked) to retrieve payload from clicked link.
  "sdkVersion": "A String", # Google SDK version. Version takes the form "$major.$minor.$patch"
  "uniqueMatchLinkToCheck": "A String", # Possible unique matched link that server need to check before performing device heuristics match. If passed link is short server need to expand the link. If link is long server need to vslidate the link.
  "visualStyle": "A String", # Strong match page information. Disambiguates between default UI and custom page to present when strong match succeeds/fails to find cookie.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for iSDK to execute strong match flow for post-install attribution. Information of the resolved FDL link.
  "appMinimumVersion": "A String", # The minimum version for app, specified by dev through ?imv= parameter. Return to iSDK to allow app to evaluate if current version meets this.
  "attributionConfidence": "A String", # The confidence of the returned attribution.
  "deepLink": "A String", # The deep-link attributed post-install via one of several techniques (device heuristics, copy unique).
  "externalBrowserDestinationLink": "A String", # User-agent specific custom-scheme URIs for iSDK to open. This will be set according to the user-agent tha the click was originally made in. There is no Safari-equivalent custom-scheme open URLs. ie: googlechrome://www.example.com ie: firefox://open-url?url=http://www.example.com ie: opera-http://example.com
  "fallbackLink": "A String", # The link to navigate to update the app if min version is not met. This is either (in order): 1) fallback link (from ?ifl= parameter, if specified by developer) or 2) AppStore URL (from ?isi= parameter, if specified), or 3) the payload link (from required link= parameter).
  "invitationId": "A String", # Invitation ID attributed post-install via one of several techniques (device heuristics, copy unique).
  "isStrongMatchExecutable": True or False, # Instruction for iSDK to attemmpt to perform strong match. For instance, if browser does not support/allow cookie or outside of support browsers, this will be false.
  "matchMessage": "A String", # Describes why match failed, ie: "discarded due to low confidence". This message will be publicly visible.
  "requestIpVersion": "A String", # Which IP version the request was made from.
  "requestedLink": "A String", # Entire FDL (short or long) attributed post-install via one of several techniques (device heuristics, copy unique).
  "resolvedLink": "A String", # The entire FDL, expanded from a short link. It is the same as the requested_link, if it is long. Parameters from this should not be used directly (ie: server can default utm_[campaign|medium|source] to a value when requested_link lack them, server determine the best fallback_link when requested_link specifies >1 fallback links).
  "utmCampaign": "A String", # Scion campaign value to be propagated by iSDK to Scion at post-install.
  "utmContent": "A String", # Scion content value to be propagated by iSDK to Scion at app-reopen.
  "utmMedium": "A String", # Scion medium value to be propagated by iSDK to Scion at post-install.
  "utmSource": "A String", # Scion source value to be propagated by iSDK to Scion at post-install.
  "utmTerm": "A String", # Scion term value to be propagated by iSDK to Scion at app-reopen.
}
reopenAttribution(body=None, x__xgafv=None)
Get iOS reopen attribution for app universal link open deeplinking.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request for iSDK to get reopen attribution for app universal link open deeplinking. This endpoint is meant for only iOS requests.
  "bundleId": "A String", # APP bundle ID.
  "requestedLink": "A String", # FDL link to be verified from an app universal link open. The FDL link can be one of: 1) short FDL. e.g. .page.link/, or 2) long FDL. e.g. .page.link/?{query params}, or 3) Invite FDL. e.g. .page.link/i/
  "sdkVersion": "A String", # Google SDK version. Version takes the form "$major.$minor.$patch"
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for iSDK to get reopen attribution for app universal link open deeplinking. This endpoint is meant for only iOS requests.
  "deepLink": "A String", # The deep-link attributed the app universal link open. For both regular FDL links and invite FDL links.
  "invitationId": "A String", # Optional invitation ID, for only invite typed requested FDL links.
  "iosMinAppVersion": "A String", # FDL input value of the "&imv=" parameter, minimum app version to be returned to Google Firebase SDK running on iOS-9.
  "resolvedLink": "A String", # The entire FDL, expanded from a short link. It is the same as the requested_link, if it is long.
  "utmCampaign": "A String", # Scion campaign value to be propagated by iSDK to Scion at app-reopen.
  "utmContent": "A String", # Scion content value to be propagated by iSDK to Scion at app-reopen.
  "utmMedium": "A String", # Scion medium value to be propagated by iSDK to Scion at app-reopen.
  "utmSource": "A String", # Scion source value to be propagated by iSDK to Scion at app-reopen.
  "utmTerm": "A String", # Scion term value to be propagated by iSDK to Scion at app-reopen.
}