public static void TrackThirdPartySharing(AdjustThirdPartySharing thirdPartySharing) { int enabled = AdjustUtils.ConvertBool(thirdPartySharing.isEnabled); List <string> jsonGranularOptions = new List <string>(); foreach (KeyValuePair <string, List <string> > entry in thirdPartySharing.granularOptions) { jsonGranularOptions.Add(entry.Key); jsonGranularOptions.Add(AdjustUtils.ConvertListToJson(entry.Value)); } _AdjustTrackThirdPartySharing(enabled, AdjustUtils.ConvertListToJson(jsonGranularOptions)); }
public static void TrackEvent(AdjustEvent adjustEvent) { int isReceiptSet = AdjustUtils.ConvertBool(adjustEvent.isReceiptSet); double revenue = AdjustUtils.ConvertDouble(adjustEvent.revenue); string eventToken = adjustEvent.eventToken; string currency = adjustEvent.currency; string receipt = adjustEvent.receipt; string transactionId = adjustEvent.transactionId; string stringJsonCallBackParameters = AdjustUtils.ConvertListToJson(adjustEvent.callbackList); string stringJsonPartnerParameters = AdjustUtils.ConvertListToJson(adjustEvent.partnerList); _AdjustTrackEvent(eventToken, revenue, currency, receipt, transactionId, isReceiptSet, stringJsonCallBackParameters, stringJsonPartnerParameters); }
public static void TrackAppStoreSubscription(AdjustAppStoreSubscription subscription) { string price = subscription.price; string currency = subscription.currency; string transactionId = subscription.transactionId; string receipt = subscription.receipt; string billingStore = subscription.billingStore; string transactionDate = subscription.transactionDate; string salesRegion = subscription.salesRegion; string stringJsonCallbackParameters = AdjustUtils.ConvertListToJson(subscription.callbackList); string stringJsonPartnerParameters = AdjustUtils.ConvertListToJson(subscription.partnerList); _AdjustTrackAppStoreSubscription( price, currency, transactionId, receipt, billingStore, transactionDate, salesRegion, stringJsonCallbackParameters, stringJsonPartnerParameters); }
public static void TrackAdRevenue(AdjustAdRevenue adRevenue) { string source = adRevenue.source; double revenue = AdjustUtils.ConvertDouble(adRevenue.revenue); string currency = adRevenue.currency; int adImpressionsCount = AdjustUtils.ConvertInt(adRevenue.adImpressionsCount); string adRevenueNetwork = adRevenue.adRevenueNetwork; string adRevenueUnit = adRevenue.adRevenueUnit; string adRevenuePlacement = adRevenue.adRevenuePlacement; string stringJsonCallbackParameters = AdjustUtils.ConvertListToJson(adRevenue.callbackList); string stringJsonPartnerParameters = AdjustUtils.ConvertListToJson(adRevenue.partnerList); _AdjustTrackAdRevenueNew( source, revenue, currency, adImpressionsCount, adRevenueNetwork, adRevenueUnit, adRevenuePlacement, stringJsonCallbackParameters, stringJsonPartnerParameters); }