public static ManagementResource.ExperimentsResource.DeleteRequest Delete(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.Delete(accountId, webPropertyId, profileId, experimentId)); }
public static ManagementResource.ExperimentsResource.DeleteRequest Delete(this ManagementResource.ExperimentsResource experiments, AnalyticsAccount config, string experimentId) { var accountId = config.GoogleAccountId; var webPropertyId = config.GoogleWebPropertyId; var profileId = config.GoogleProfileId; return(experiments.Delete(accountId, webPropertyId, profileId, experimentId)); }