예제 #1
0
        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));
        }
예제 #2
0
        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));
        }