public Profile(AnalyticsProfile profile) { Id = profile.Id; AccountId = profile.AccountId; WebPropertyId = profile.WebPropertyId; InternalWebPropertyId = profile.InternalWebPropertyId; Name = profile.Name; Currency = profile.Currency; Timezone = profile.Timezone; WebsiteUrl = profile.WebsiteUrl; Type = profile.Type; Created = profile.Created; Updated = profile.Updated; }
public Profile(AnalyticsProfile profile) { this.Id = profile.Id; this.AccountId = profile.AccountId; this.WebPropertyId = profile.WebPropertyId; this.InternalWebPropertyId = profile.InternalWebPropertyId; this.Name = profile.Name; this.Currency = profile.Currency; this.Timezone = profile.Timezone; this.WebsiteUrl = profile.WebsiteUrl; this.Type = profile.Type; this.Created = profile.Created; this.Updated = profile.Updated; }
/// <summary> /// Gets realtime data for the specified profile and options. /// </summary> /// <param name="profile">The Analytics profile to gather realtime data from.</param> /// <param name="options">The options specifying the query.</param> public AnalyticsRealtimeDataResponse GetRealtimeData(AnalyticsProfile profile, AnalyticsRealtimeDataOptions options) { return AnalyticsRealtimeDataResponse.ParseJson(Raw.GetRealtimeData(profile.Id, options)); }
/// <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(AnalyticsProfile profile, DateTime startDate, DateTime endDate, AnalyticsMetricCollection metrics, AnalyticsDimensionCollection dimensions) { return AnalyticsDataResponse.ParseJson(Raw.GetData(profile, startDate, endDate, metrics, dimensions)); }
public AnalyticsDataResponse GetData(AnalyticsProfile profile, DateTime startDate, DateTime endDate, string[] metrics, string[] dimensions) { return AnalyticsDataResponse.ParseJson(Raw.GetData(profile, startDate, endDate, metrics, dimensions)); }
public static AnalyticsDataResponse GetData(this AnalyticsEndpoint endpoint, AnalyticsProfile profile, DateTime startDate, DateTime endDate, string[] metrics, string[] dimensions, string[] filters, string[] sort) { return AnalyticsDataResponse.ParseJson(endpoint.Service.Client.Analytics.GetData(profile, startDate, endDate, metrics, dimensions, filters, sort)); }
public static string GetData(this AnalyticsRawEndpoint endpoint, AnalyticsProfile profile, DateTime startDate, DateTime endDate, string[] metrics, string[] dimensions, string[] filters, string[] sort) { return GetData(endpoint, profile.Id, startDate, endDate, metrics, dimensions, filters, sort); }
public string GetRealtimeData(AnalyticsProfile profile, AnalyticsRealtimeDataOptions options) { return GetRealtimeData(profile.Id, options); }
public string GetRealtimeData(AnalyticsProfile profile, AnalyticsMetricCollection metrics) { return GetRealtimeData(profile.Id, metrics); }
public string GetData(AnalyticsProfile profile, DateTime startDate, DateTime endDate, AnalyticsMetricCollection metrics, AnalyticsDimensionCollection dimensions) { return GetData(profile.Id, startDate, endDate, metrics, dimensions); }
public string GetData(AnalyticsProfile profile, DateTime startDate, DateTime endDate, string[] metrics, string[] dimensions) { return GetData(profile.Id, startDate, endDate, metrics, dimensions); }
/// <summary> /// Initializes a new instance with default options and based on the specified <code>profile</code>. /// </summary> /// <param name="profile">The profile.</param> public AnalyticsRealtimeDataOptions(AnalyticsProfile profile) : this() { if (profile == null) throw new ArgumentNullException("profile"); ProfileId = profile.Id; }