public static ManagementResource.ExperimentsResource.InsertRequest Insert(this ManagementResource.ExperimentsResource experiments, GoogleExperiment experiment) { var accountId = WebConfigurationManager.AppSettings[Constants.AppSettings.GoogleAccountId]; var webPropertyId = WebConfigurationManager.AppSettings[Constants.AppSettings.GoogleWebPropertyId]; var profileId = WebConfigurationManager.AppSettings[Constants.AppSettings.GoogleProfileId]; return(experiments.Insert(experiment, accountId, webPropertyId, profileId)); }
public static ManagementResource.ExperimentsResource.InsertRequest Insert(this ManagementResource.ExperimentsResource experiments, AnalyticsAccount config, GoogleExperiment experiment) { var accountId = config.GoogleAccountId; var webPropertyId = config.GoogleWebPropertyId; var profileId = config.GoogleProfileId; return(experiments.Insert(experiment, accountId, webPropertyId, profileId)); }