@@ -29,7 +29,7 @@ AdjustEvent event = new AdjustEvent("{viewListingEventToken}");
2929
3030List<String > productIds = Arrays . asList(" productId1" , " productId2" , " productId3" );
3131
32- AdjustCriteo . injectViewListingIntoEvent(event, productIds, " customerId1 " );
32+ AdjustCriteo . injectViewListingIntoEvent(event, productIds);
3333
3434Adjust . trackEvent(event);
3535```
@@ -41,7 +41,7 @@ import com.adjust.sdk.plugin.AdjustCriteo;
4141
4242AdjustEvent event = new AdjustEvent (" {viewProductEventToken}" );
4343
44- AdjustCriteo . injectViewProductIntoEvent(event, " productId1" , " customerId1 " );
44+ AdjustCriteo . injectViewProductIntoEvent(event, " productId1" );
4545
4646Adjust . trackEvent(event);
4747```
@@ -59,7 +59,7 @@ CriteoProduct product3 = new CriteoProduct(50, 2, "productId3");
5959
6060List<CriteoProduct > products = Arrays . asList(product1, product2, product3);
6161
62- AdjustCriteo . injectCartIntoEvent(event, products, " customerId1 " );
62+ AdjustCriteo . injectCartIntoEvent(event, products);
6363
6464Adjust . trackEvent(event);
6565```
@@ -77,7 +77,7 @@ CriteoProduct product3 = new CriteoProduct(50, 2, "productId3");
7777
7878List<CriteoProduct > products = Arrays . asList(product1, product2, product3);
7979
80- AdjustCriteo . injectTransactionConfirmedIntoEvent(event, products, " transactionId" , " customerId1 " );
80+ AdjustCriteo . injectTransactionConfirmedIntoEvent(event, products, " transactionId" , " newCustomerId " );
8181
8282Adjust . trackEvent(event);
8383```
@@ -89,7 +89,7 @@ import com.adjust.sdk.plugin.AdjustCriteo;
8989
9090AdjustEvent event = new AdjustEvent (" {userLevelEventToken}" );
9191
92- AdjustCriteo . injectUserLevelIntoEvent(event, 1 , " customerId1 " );
92+ AdjustCriteo . injectUserLevelIntoEvent(event, 1 );
9393
9494Adjust . trackEvent(event);
9595```
@@ -101,7 +101,7 @@ import com.adjust.sdk.plugin.AdjustCriteo;
101101
102102AdjustEvent event = new AdjustEvent (" {userStatusEventToken}" );
103103
104- AdjustCriteo . injectUserStatusIntoEvent(event, " uiStatusValue" , " customerId1 " );
104+ AdjustCriteo . injectUserStatusIntoEvent(event, " uiStatusValue" );
105105
106106Adjust . trackEvent(event);
107107```
@@ -113,7 +113,7 @@ import com.adjust.sdk.plugin.AdjustCriteo;
113113
114114AdjustEvent event = new AdjustEvent (" {achievementUnlockedEventToken}" );
115115
116- AdjustCriteo . injectAchievementUnlockedIntoEvent(event, " AchievementUnlocked" , " customerId1 " );
116+ AdjustCriteo . injectAchievementUnlockedIntoEvent(event, " AchievementUnlocked" );
117117
118118Adjust . trackEvent(event);
119119```
@@ -125,7 +125,7 @@ import com.adjust.sdk.plugin.AdjustCriteo;
125125
126126AdjustEvent event = new AdjustEvent (" {customEventEventToken}" );
127127
128- AdjustCriteo . injectCustomEventIntoEvent(event, " uiDataValue" , " customerId1 " );
128+ AdjustCriteo . injectCustomEventIntoEvent(event, " uiDataValue" );
129129
130130Adjust . trackEvent(event);
131131```
@@ -137,7 +137,7 @@ import com.adjust.sdk.plugin.AdjustCriteo;
137137
138138AdjustEvent event = new AdjustEvent (" {customEvent2EventToken}" );
139139
140- AdjustCriteo . injectCustomEvent2IntoEvent(event, " uiData2Value" , 3 , " customerId1 " );
140+ AdjustCriteo . injectCustomEvent2IntoEvent(event, " uiData2Value" , 3 );
141141
142142Adjust . trackEvent(event);
143143```
@@ -200,3 +200,27 @@ protected void onCreate(Bundle savedInstanceState) {
200200 // ...
201201}
202202```
203+
204+ #### Customer Id
205+
206+ It's possible to attach the customer id to every Criteo event with the ` injectCustomerIdIntoCriteoEvents ` method. The customer id will be sent with every Criteo event for the duration of the application lifecycle, so it must be set again when the app is re-lauched.
207+
208+ The customer id can be removed by setting the ` injectCustomerIdIntoCriteoEvents ` value with ` null ` .
209+
210+ ``` java
211+ import com.adjust.sdk.plugin.AdjustCriteo ;
212+
213+ AdjustCriteo . injectCustomerIdIntoCriteoEvents(" {CriteoCustomerId}" );
214+ ```
215+
216+ #### User Segment
217+
218+ It's possible to attach the user segment to every Criteo event with the ` injectUserSegmentIntoCriteoEvents ` method. The user segment will be sent with every Criteo event for the duration of the application lifecycle, so it must be set again when the app is re-lauched.
219+
220+ The customer id can be removed by setting the ` injectUserSegmentIntoCriteoEvents ` value with ` null ` .
221+
222+ ``` java
223+ import com.adjust.sdk.plugin.AdjustCriteo ;
224+
225+ AdjustCriteo . injectUserSegmentIntoCriteoEvents(" {CriteoUserSegment}" );
226+ ```
0 commit comments