adjust-icon

Additional deep link features

Method signature
public static void getLastDeeplink(final Context context, final OnLastDeeplinkReadListener onLastDeeplinkReadListener)

You can return the last deep link URL passed to the Adjust.processDeeplink() or Adjust.processAndResolveDeepLink() method by calling the Adjust.getLastDeeplink() method. This method returns the last deep link as URL.

Method signature
public static void resolveLink(final String url,
final String[] resolveUrlSuffixArray,
final AdjustLinkResolutionCallback adjustLinkResolutionCallback)

Some Email Service Providers (ESPs) use their own custom domains for marketing campaigns. If you need to measure clicks through a custom domain, you need to set the SDK up to resolve the link. To do this, call the resolveLink method of the AdjustLinkResolution class. The Adjust SDK will then follow the custom link and resolve it when opening the deep link. This ensures that you record the interaction with your email measurement campaign.

The resolveLinkWithUrl method takes the following arguments:

  • url (String): the deep link that opened the application.
  • resolveUrlSuffixArray (String[]): the custom domains of the configured campaigns that need to be resolved.
  • adjustLinkResolutionCallback (AdjustLinkResolutionCallback): the callback that returns the final URL.

The method checks the deep link against the domains in the resolveUrlSuffixArray. If it doesn’t find any matches, it forwards the deep link URL as is. If it does find a match, it attempts to resolve the link and return the resulting deep link. It then stores this in the callback parameter.

You can use the returned deep link to reattribute your user. To do this, pass the deep link to the Adjust.processDeeplink method.

An optional referrer URL used to track source of the deeplink or app open for better attribution or reattribution and deep linking. For example, channels like SEO / Organic Search, Adjust links are not directly used. If the client’s root domain has Android App Links implemented and triggers an app opening, For such channels, we may have to rely on signals coming from the referrer URL to attribute or reattribute users.

Set up a Referrer URL