示例#1
0
        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));
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }