Exemplo n.º 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));
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
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));
        }
Exemplo n.º 5
0
        public static ManagementResource.ExperimentsResource.InsertRequest Insert(this ManagementResource.ExperimentsResource experiments, AccountConfig config, GoogleExperiment experiment)
        {
            var accountId     = config.GoogleAccountId;
            var webPropertyId = config.GoogleWebPropertyId;
            var profileId     = config.GoogleProfileId;

            return(experiments.Insert(experiment, accountId, webPropertyId, profileId));
        }
Exemplo n.º 6
0
        public static ManagementResource.ExperimentsResource.GetRequest Get(this ManagementResource.ExperimentsResource experiments, AccountConfig config, string experimentId)
        {
            var accountId     = config.GoogleAccountId;
            var webPropertyId = config.GoogleWebPropertyId;
            var profileId     = config.GoogleProfileId;

            return(experiments.Get(accountId, webPropertyId, profileId, experimentId));
        }
Exemplo n.º 7
0
        public static ManagementResource.ExperimentsResource.ListRequest List(
            this ManagementResource.ExperimentsResource experiments, AnalyticsAccount config)
        {
            var accountId     = config.GoogleAccountId;
            var webPropertyId = config.GoogleWebPropertyId;
            var profileId     = config.GoogleProfileId;

            return(experiments.List(accountId, webPropertyId, profileId));
        }