Trademob 본 기능을 사용하려면 우선 플랫폼에 대한 Adjust SDK를 다운로드하고 설정해야 합니다. 환경 설정 Maven Maven을 사용하는 경우, build.gradle 파일에 다음의 디펜던시를 추가하시기 바랍니다. build.gradledependencies { implementation 'com.adjust.sdk:adjust-android:4.38.5' implementation 'com.adjust.sdk:adjust-android-trademob:4.38.5'} JAR로 추가 배포 페이지에서 플러그인을 JAR 파일로 추가하는 것도 가능합니다. Trademob 이벤트 목록 보기 Java 1import com.adjust.sdk.plugin.AdjustTrademob;2 3AdjustEvent event = new AdjustEvent("{viewListingEventToken}");4List<string> items = Arrays.asList("itemId1", "itemId2", "itemId3");5Map<String, String> metadata = new HashMap<>();6metadata.put("info1", "value1");7metadata.put("info2", "value2");8 9AdjustTrademob.injectViewListingIntoEvent(event, items, metadata);10Adjust.trackEvent(event); View Item(아이템 보기) Java 1import com.adjust.sdk.plugin.AdjustTrademob;2 3AdjustEvent event = new AdjustEvent("{viewItemEventToken}");4Map<String, String> metadata = new HashMap<>();5metadata.put("info1", "value1");6metadata.put("info2", "value2");7 8AdjustTrademob.injectViewItemIntoEvent(event, "itemId1", metadata);9Adjust.trackEvent(event); 장바구니에 추가 Java 1import com.adjust.sdk.plugin.AdjustTrademob;2import com.adjust.sdk.plugin.TrademobItem;3 4AdjustEvent event = new AdjustEvent("{basketEventToken}");5TrademobItem itemId1 = new TrademobItem("itemId1", 2, 54f);6TrademobItem itemId2 = new TrademobItem("itemId2", 1, 3f);7TrademobItem itemId3 = new TrademobItem("itemId3", 4, 25f);8List<trademobitem> items = Arrays.asList(itemId1, itemId2, itemId3);9 10AdjustTrademob.injectAddToBasketIntoEvent(event, items, null);11Adjust.trackEvent(event); Checkout Java 1import com.adjust.sdk.plugin.AdjustTrademob;2import com.adjust.sdk.plugin.TrademobItem;3 4AdjustEvent event = new AdjustEvent("{checkoutEventToken}");5TrademobItem itemId1 = new TrademobItem("itemId1", 2, 54f);6TrademobItem itemId2 = new TrademobItem("itemId2", 1, 3f);7TrademobItem itemId3 = new TrademobItem("itemId3", 4, 25f);8List<trademobitem> items = Arrays.asList(itemId1, itemId2, itemId3);9 10Map<String, String> metadata = new HashMap<>();11metadata.put("info1", "value1");12metadata.put("info2", "value2");13 14AdjustTrademob.injectCheckoutIntoEvent(event, items, metadata);15Adjust.trackEvent(event);