public static ManagementResource.ExperimentsResource.GetRequest Get(this ManagementResource.ExperimentsResource experiments, string experimentId) { var accountId = WebConfigurationManager.AppSettings[Constants.AppSettings.GoogleAccountId]; var webPropertyId = WebConfigurationManager.AppSettings[Constants.AppSettings.GoogleWebPropertyId]; var profileId = WebConfigurationManager.AppSettings[Constants.AppSettings.GoogleProfileId]; return(experiments.Get(accountId, webPropertyId, profileId, experimentId)); }
public static ManagementResource.ExperimentsResource.GetRequest Get(this ManagementResource.ExperimentsResource experiments, AnalyticsAccount config, string experimentId) { var accountId = config.GoogleAccountId; var webPropertyId = config.GoogleWebPropertyId; var profileId = config.GoogleProfileId; return(experiments.Get(accountId, webPropertyId, profileId, experimentId)); }