Skip to content

Commit f04dca4

Browse files
authored
Merge pull request #262 from adjust/docs_update
Docs update
2 parents 0603f7c + 496fbdd commit f04dca4

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

doc/english/adobe.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
## Integrate Adjust with the Adobe SDK
2+
3+
To integrate Adjust with all Adobe SDK tracked events, you must send your Adjust attribution data to the Adobe SDK after receiving the attribution response from our backend. Follow the steps in the [attribution callback][attribution-callback] chapter of our Android SDK guide to implement this. To use the Adobe SDK API, the callback method can be set as the following:
4+
5+
```java
6+
public class YourApplicationClass extends Application {
7+
@Override
8+
public void onCreate() {
9+
super.onCreate();
10+
11+
// Initialize Adobe SDK
12+
Config.setContext(this.getApplicationContext());
13+
Config.setDebugLogging(true);
14+
15+
// Configure Adjust
16+
String appToken = "{YourAppToken}";
17+
String environment = AdjustConfig.ENVIRONMENT_SANDBOX;
18+
AdjustConfig config = new AdjustConfig(this, appToken, environment);
19+
20+
config.setOnAttributionChangedListener(new OnAttributionChangedListener() {
21+
@Override
22+
public void onAttributionChanged(Attribution attribution) {
23+
Map<String,Object> dataAdjust = new HashMap<String,Object>();
24+
25+
// Do not change the key "Adjust Network". This key is being used in the Data Connector Processing Rule
26+
dataAdjust.put("Adjust Network", adjustAttribution.network);
27+
// Do not change the key "Adjust Campaign". This key is being used in the Data Connector Processing Rule
28+
dataAdjust.put("Adjust Campaign", adjustAttribution.campaign);
29+
// Do not change the key "Adjust Adgroup". This key is being used in the Data Connector Processing Rule
30+
dataAdjust.put("Adjust Adgroup", adjustAttribution.adgroup);
31+
// Do not change the key "Adjust Creative". This key is being used in the Data Connector Processing Rule
32+
dataAdjust.put("Adjust Creative", adjustAttribution.creative);
33+
34+
// Send Data to Adobe using Track Action
35+
Analytics.trackAction("Adjust Campaign Data Received", dataAdjust);
36+
}
37+
});
38+
39+
Adjust.onCreate(config);
40+
}
41+
}
42+
```
43+
44+
Before you implement this interface, please take care to consider the [possible conditions for usage of some of your data][attribution-data].
45+
46+
[attribution-data]: https://github.com/adjust/sdks/blob/master/doc/attribution-data.md
47+
[attribution-callback]: https://github.com/adjust/android_sdk#attribution-callback

0 commit comments

Comments
 (0)