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 이벤트 목록 보기 import com.adjust.sdk.plugin.AdjustTrademob; AdjustEvent event = new AdjustEvent("{viewListingEventToken}");List<string> items = Arrays.asList("itemId1", "itemId2", "itemId3");Map<String, String> metadata = new HashMap<>();metadata.put("info1", "value1");metadata.put("info2", "value2"); AdjustTrademob.injectViewListingIntoEvent(event, items, metadata);Adjust.trackEvent(event); View Item(아이템 보기) import com.adjust.sdk.plugin.AdjustTrademob; AdjustEvent event = new AdjustEvent("{viewItemEventToken}");Map<String, String> metadata = new HashMap<>();metadata.put("info1", "value1");metadata.put("info2", "value2"); AdjustTrademob.injectViewItemIntoEvent(event, "itemId1", metadata);Adjust.trackEvent(event); 장바구니에 추가 import com.adjust.sdk.plugin.AdjustTrademob;import com.adjust.sdk.plugin.TrademobItem; AdjustEvent event = new AdjustEvent("{basketEventToken}");TrademobItem itemId1 = new TrademobItem("itemId1", 2, 54f);TrademobItem itemId2 = new TrademobItem("itemId2", 1, 3f);TrademobItem itemId3 = new TrademobItem("itemId3", 4, 25f);List<trademobitem> items = Arrays.asList(itemId1, itemId2, itemId3); AdjustTrademob.injectAddToBasketIntoEvent(event, items, null);Adjust.trackEvent(event); Checkout import com.adjust.sdk.plugin.AdjustTrademob;import com.adjust.sdk.plugin.TrademobItem; AdjustEvent event = new AdjustEvent("{checkoutEventToken}");TrademobItem itemId1 = new TrademobItem("itemId1", 2, 54f);TrademobItem itemId2 = new TrademobItem("itemId2", 1, 3f);TrademobItem itemId3 = new TrademobItem("itemId3", 4, 25f);List<trademobitem> items = Arrays.asList(itemId1, itemId2, itemId3); Map<String, String> metadata = new HashMap<>();metadata.put("info1", "value1");metadata.put("info2", "value2"); AdjustTrademob.injectCheckoutIntoEvent(event, items, metadata);Adjust.trackEvent(event);