Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

How to retrieve a.referrer.campaign.trackingcode in an app

_Lukasz_
Level 3
Level 3

We will soon start using the Mobile Services acquisition links and I understand it sets multiple properties in the app e.g. a.referrer.campaign.trackingcode (https://marketing.adobe.com/resources/help/en_US/mobile/android/metrics.html)

 

What is the best way for a native app to retrieve the value so it can be manipulated, passed to our database, to webview (we have a hybrid app) etc.?

1 Accepted Solution
shalehaha
Correct answer by
Employee
Employee

Hey Lukasz,

We are going to release a new version of SDK in about two weeks, in this version you can register a callback for acquisition and SDK will pass back the acquisition data once it receives the data.  Thanks.

Jiabin Geng

Mobile Engineer

View solution in original post

5 Replies
shalehaha
Correct answer by
Employee
Employee

Hey Lukasz,

We are going to release a new version of SDK in about two weeks, in this version you can register a callback for acquisition and SDK will pass back the acquisition data once it receives the data.  Thanks.

Jiabin Geng

Mobile Engineer

View solution in original post

_Lukasz_
Level 3
Level 3

Hi Jiabin,

Thank you for a quick reply.

Best regards,

Lukasz Urban

_Lukasz_
Level 3
Level 3

Hi Jiabin,

Is the functionality you mentioned in place? Could you please point me to the right direction on how I could retrieve the a.referrer.campaign.trackingcode or a.referrer.campaign.name?

Best regards,

Lukasz Urban

shalehaha
Employee
Employee

Hi Lukasz,

You can get our latest SDK on https://github.com/Adobe-Marketing-Cloud/mobile-services/releases.  From 4.9.0 version, we provided a new method  - Config.registerAdobeDataCallback(final AdobeDataCallback callback). You can register you own callback  and listen for the MobileDataEvent.MOBILE_EVENT_ACQUISITION_INSTALL event. 

For example:

Config.registerAdobeDataCallback(new AdobeDataCallback() { @Override public void call(MobileDataEvent event, Map<String, Object> contextData) { if(event == MobileDataEvent.MOBILE_EVENT_ACQUISITION_INSTALL){ //contextData contains the acquisition data } } });

 

Thanks,

Jiabin Geng