public static ManagementResource.ExperimentsResource.PatchRequest Patch(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.Patch(experiment, accountId, webPropertyId, profileId, experiment.Id)); }
public static ManagementResource.ExperimentsResource.PatchRequest Patch(this ManagementResource.ExperimentsResource experiments, AnalyticsAccount config, GoogleExperiment experiment) { var accountId = config.GoogleAccountId; var webPropertyId = config.GoogleWebPropertyId; var profileId = config.GoogleProfileId; return(experiments.Patch(experiment, accountId, webPropertyId, profileId, experiment.Id)); }