コード例 #1
0
        public List<GoogleAnalyticsNonPaidSearchTrafficDataRow> GetData()
        {
            List<GoogleAnalyticsNonPaidSearchTrafficDataRow> GoogleAnalyticsDataRowList = new List<GoogleAnalyticsNonPaidSearchTrafficDataRow>();

            foreach (DataEntry entry in this.feed.Entries)
            {
                GoogleAnalyticsNonPaidSearchTrafficDataRow new_GoogleAnalyticsDataRow = new GoogleAnalyticsNonPaidSearchTrafficDataRow();
                new_GoogleAnalyticsDataRow.eventLabel = entry.Dimensions[0].Value;
                new_GoogleAnalyticsDataRow.keyword = entry.Dimensions[1].Value;
                new_GoogleAnalyticsDataRow.sourcesite = entry.Dimensions[2].Value;
               // new_GoogleAnalyticsDataRow.timeOnSite = entry.Metrics[0].Value;
               // new_GoogleAnalyticsDataRow.newVisits = entry.Metrics[1].Value;
                GoogleAnalyticsDataRowList.Add(new_GoogleAnalyticsDataRow);
            }

            return GoogleAnalyticsDataRowList;
        }