You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/facebook/ads/sdk/serverside/AttributionData.java
+113-3Lines changed: 113 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,15 @@ public class AttributionData {
47
47
48
48
@SerializedName("attribution_value")
49
49
privateFloatattributionValue = null;
50
+
51
+
@SerializedName("attribution_source")
52
+
privateStringattributionSource = null;
53
+
54
+
@SerializedName("touchpoint_type")
55
+
privateStringtouchpointType = null;
56
+
57
+
@SerializedName("touchpoint_ts")
58
+
privateIntegertouchpointTs = null;
50
59
51
60
/**
52
61
* Default constructor
@@ -64,10 +73,15 @@ public AttributionData() {
64
73
* @param campaignId Meta-provided campaign id from URL/deeplink
65
74
* @param attributionShare [0-1] weight of credit assigned to the visit
66
75
* @param attributionModel Attribution model used to attribute the event
76
+
* @param attributionWindow Attribution window in days
67
77
* @param attributionValue The share of value generated by this click-conversion pair that is attributed to Meta.
78
+
* @param attributionSource The attribution source to differentiate the source of the data, e.g. whether this is from AMM or Custom Attribution or any other sources.
79
+
* @param touchpointType The engagement type that caused the original credited conversion.
80
+
* @param touchpointTs The time when the touchpoint event occurred with the ad that the install was credited to.
@@ -77,6 +91,9 @@ public AttributionData(String scope, Long visitTime, String adId, String adsetId
77
91
this.attributionModel = attributionModel;
78
92
this.attributionWindow = attributionWindow;
79
93
this.attributionValue = attributionValue;
94
+
this.attributionSource = attributionSource;
95
+
this.touchpointType = touchpointType;
96
+
this.touchpointTs = touchpointTs;
80
97
}
81
98
82
99
/**
@@ -340,6 +357,93 @@ public void setAttributionValue(Float attributionValue) {
340
357
this.attributionValue = attributionValue;
341
358
}
342
359
360
+
/**
361
+
* Set attributionSource
362
+
*
363
+
* @param attributionSource The attribution source to differentiate the source of the data, e.g. whether this is from AMM or Custom Attribution or any other sources.
* @param attributionSource The attribution source to differentiate the source of the data, e.g. whether this is from AMM or Custom Attribution or any other sources.
0 commit comments