Mobile Services API reference

Track Deep link

You can use this API to track a deep link or a marketing link, as long as the link contains a key a.deeplink.id and a corresponding non-null and user generated value. The link can be created in the Adobe Mobile Services UI or be generated by another vendor.

Android
iOS

Syntax

public static void trackAdobeDeepLink(final Uri uri)

Example

Uri testUri = new Uri.Builder()
.scheme("adobelinktest")
.appendQueryParameter("a.deeplink.id", "test_deeplinkId")
.appendQueryParameter("a.launch.campaign.trackingcode", "code")
.appendQueryParameter("test_key", "test_value")
.build();
MobileServices.trackAdobeDeepLink(testUri);

Syntax

+ (void) trackAdobeDeepLink: (NSURL*) url;

Example

Objective-C

NSURL* url = [NSURL URLWithString:@"adobelinktest://x?a.deeplink.id=test_deeplinkId&a.launch.campaign.trackingcode=code&test_key=test_value"];
[ACPMobileServices trackAdobeDeepLink:url];

Swift

let url = URL(string: "adobelinktest://x?a.deeplink.id=test_deeplinkId&a.launch.campaign.trackingcode=code&test_key=test_value")!
ACPMobileServices.trackAdobeDeepLink(url)

Process Referrer Intent

You can use this API to process the referrer intent that was received from Android.

Tip: This API is available only in Android.

processReferrer

Syntax

public static void processReferrer(final Context context, final Intent intent)

Example

public void onReceive(Context context, Intent intent) {
MobileServices.processReferrer(context, intent);
}