/// <summary> /// Adds the specified sequence of dimensions. /// </summary> /// <param name="dimensions">The dimensions to add.</param> public AnalyticsDataOptions AddDimensions(params AnalyticsDimension[] dimensions) { if (Dimensions == null) { Dimensions = new AnalyticsDimensionCollection(); } Dimensions.AddRange(dimensions); return(this); }
/// <summary> /// Adds the specified dimension. /// </summary> /// <param name="dimension">The dimension to add.</param> public AnalyticsDataOptions AddDimension(AnalyticsDimension dimension) { if (Dimensions == null) { Dimensions = new AnalyticsDimensionCollection(); } Dimensions.Add(dimension); return(this); }
/// <summary> /// Gets the realtime data from the specified profile and metrics. /// </summary> /// <param name="profileId">The ID of the Analytics profile.</param> /// <param name="metrics">The metrics collection of what data to return.</param> /// <param name="dimensions">The dimensions collection of what data to return.</param> public AnalyticsRealtimeDataResponse GetRealtimeData(string profileId, AnalyticsMetricCollection metrics, AnalyticsDimensionCollection dimensions) { return GetRealtimeData(profileId, new AnalyticsRealtimeDataOptions { Metrics = metrics, Dimensions = dimensions }); }
/// <summary> /// Gets the realtime data from the specified profile, metrics and dimensions. /// </summary> /// <param name="profile">The Analytics profile to gather realtime data from.</param> /// <param name="metrics">The metrics collection of what data to return.</param> /// <param name="dimensions">The dimensions collection of what data to return.</param> public AnalyticsRealtimeDataResponse GetRealtimeData(AnalyticsProfile profile, AnalyticsMetricCollection metrics, AnalyticsDimensionCollection dimensions) { return GetRealtimeData(profile.Id, metrics, dimensions); }
public AnalyticsDataResponse GetData(string profileId, DateTime startDate, DateTime endDate, AnalyticsMetricCollection metrics, AnalyticsDimensionCollection dimensions) { return AnalyticsDataResponse.ParseJson(Raw.GetData(profileId, startDate, endDate, metrics, dimensions)); }
public string GetData(string profileId, DateTime startDate, DateTime endDate, AnalyticsMetricCollection metrics, AnalyticsDimensionCollection dimensions) { return GetData(profileId, new AnalyticsDataOptions { StartDate = startDate, EndDate = endDate, Metrics = metrics, Dimensions = dimensions }); }
public string GetData(AnalyticsProfile profile, DateTime startDate, DateTime endDate, AnalyticsMetricCollection metrics, AnalyticsDimensionCollection dimensions) { return GetData(profile.Id, startDate, endDate, metrics, dimensions); }
/// <summary> /// Adds the specified sequence of dimensions. /// </summary> /// <param name="dimensions">The dimensions to add.</param> public AnalyticsRealtimeDataOptions AddDimensions(params AnalyticsDimension[] dimensions) { if (Dimensions == null) Dimensions = new AnalyticsDimensionCollection(); Dimensions.AddRange(dimensions); return this; }
/// <summary> /// Adds the specified dimension. /// </summary> /// <param name="dimension">The dimension to add.</param> public AnalyticsRealtimeDataOptions AddDimension(AnalyticsDimension dimension) { if (Dimensions == null) Dimensions = new AnalyticsDimensionCollection(); Dimensions.Add(dimension); return this; }