The Adjust Extension for Adobe Experience SDK has been updated to v3 to support Adjust Android SDK v5. Follow this guide to migrate from v2 to v3.
To install v3 of the Adjust Android Extension for Adobe Experience, update the dependency declarations in your build.gradle
as follows:
com.adjust.adobeextension:adobeextension
MUST be updated to 3.0.0 or later.com.adjust.sdk:adjust-android
MUST be updated to 5.0.0 or later.
For a complete guide to setting up the Adjust Android Extension for Adobe Experience, see the integration guide.
New APIs
The following APIs have been added in v3.
Resolve short branded links
v3 of the Adjust Extension for Adobe Experience SDK adds support for resolving short branded links. To resolve shortened links, call the Adjust.processAndResolveDeeplink
method with the following arguments:
adjustDeeplink
:AdjustDeeplink
The deep link that opened the app.
context
:Context
The app context. Call
getApplicationContext()
to fill this value.callback
:OnDeeplinkResolvedListener
A callback function that receives the resolved short link as an argument.
Global callback parameters
v3 of the Adjust Extension for Adobe Experience SDK adds support for the global callback parameters API from Android SDK v5. To add global callbacks to your sessions, call the Adjust.addGlobalCallbackParameter
method with the following arguments:
key
:String
The key of your parameter.
value
:String
The value of your parameter.
Learn how to set up global callback.
Global partner parameters
v3 of the Adjust Extension for Adobe Experience SDK adds support for the global partner parameters API from Android SDK v5. To add global partner parameters, call the Adjust.addGlobalPartnerParameter
method with the following arguments:
key
:String
The key of your parameter.
value
:String
The value of your parameter.
Learn how to set up global partner parameters.
Set external device ID
v3 of the Adjust Extension for Adobe Experience SDK adds support for setting external device identifiers. To set an external device ID, call the setExternalDeviceId
method of your AdjustAdobeExtensionConfig
instance with the following argument:
externalDeviceId
:String
Your external device identifier.
Learn how to configure external device IDs.
Set default link token for preinstalled apps
v3 of the Adjust Extension for Adobe Experience SDK adds support for setting a default link token for recording preinstalled app installs to a default campaign. To set a default link token, call the setDefaultTracker
method of your AdjustAdobeExtensionConfig
instance with the following argument:
defaultTracker
:String
The alphanumeric link token of your preinstall campaign.
Learn how to send preinstalled app activity.
Changed APIs
The following APIs have changed in v3.
Retrieve device ADID
In SDK v2, the AdjustAttribution
class has a property called adid
. This property has been removed. You can retrieve the device's ADID asynchronously, by calling Adjust.getAdid
.
Direct deep linking
In SDK v2, you can open deep links for attribution by calling the AdjustAdobeExtension.openUrl
method with the deep link data as an argument.
SDK v3 has been updated to use the Adjust Android SDK's processDeeplink
method. To open direct deep links:
- Create a new
AdjustDeeplink
instance with the deep link URL. - Pass your
AdjustDeeplink
instance to theAdjust.processDeeplink
method.
Learn how to reattribute users with direct deep links.
Deferred deep linking callback
In SDK v2, you can configure the SDK to launch a callback function when a deferred deep link is opened by passing a function to the setOnDeeplinkResponseListener
method of your AdjustAdobeExtensionConfig
instance.
In SDK v3, the setOnDeeplinkResponseListener
method has been renamed to setOnDeferredDeeplinkResponseListener
.
Learn how to work with deferred deep link callbacks.