예제 #1
0
 internal static void WriteToRowValuesIfNotNull(QualityScoreData qualityScoreData, RowValues values)
 {
     if (qualityScoreData != null)
     {
         qualityScoreData.WriteToRowValues(values);
     }
 }
예제 #2
0
        internal static QualityScoreData ReadFromRowValuesOrNull(RowValues values)
        {
            var qualityScoreData = new QualityScoreData();

            qualityScoreData.ReadFromRowValues(values);

            return(qualityScoreData.HasAnyValues ? qualityScoreData : null);
        }
예제 #3
0
        internal override void ProcessMappingsFromRowValues(RowValues values)
        {
            Campaign = new Campaign();

            values.ConvertToEntity(this, Mappings);

            QualityScoreData = QualityScoreData.ReadFromRowValuesOrNull(values);

            PerformanceData = PerformanceData.ReadFromRowValuesOrNull(values);
        }
예제 #4
0
        internal override void ProcessMappingsFromRowValues(RowValues values)
        {
            AdGroup = new AdGroup {
                AdDistribution = 0
            };

            values.ConvertToEntity(this, Mappings);

            QualityScoreData = QualityScoreData.ReadFromRowValuesOrNull(values);

            PerformanceData = PerformanceData.ReadFromRowValuesOrNull(values);
        }
예제 #5
0
        internal override void ProcessMappingsToRowValues(RowValues values, bool excludeReadonlyData)
        {
            ValidatePropertyNotNull(Campaign, "Campaign");

            this.ConvertToValues(values, Mappings);

            if (!excludeReadonlyData)
            {
                QualityScoreData.WriteToRowValuesIfNotNull(QualityScoreData, values);

                PerformanceData.WriteToRowValuesIfNotNull(PerformanceData, values);
            }
        }
예제 #6
0
 internal static void WriteToRowValuesIfNotNull(QualityScoreData qualityScoreData, RowValues values)
 {
     if (qualityScoreData != null)
     {
         qualityScoreData.WriteToRowValues(values);
     }
 }
예제 #7
0
        internal static QualityScoreData ReadFromRowValuesOrNull(RowValues values)
        {
            var qualityScoreData = new QualityScoreData();

            qualityScoreData.ReadFromRowValues(values);

            return qualityScoreData.HasAnyValues ? qualityScoreData : null;
        }
예제 #8
0
 /// <summary>
 /// Outputs the PerformanceData
 /// </summary>
 private void OutputBulkQualityScoreData(QualityScoreData qualityScoreData)
 {
     if (qualityScoreData != null)
     {
         OutputStatusMessage("QualityScoreData: ");
         OutputStatusMessage(string.Format("KeywordRelevance: {0}", qualityScoreData.KeywordRelevance));
         OutputStatusMessage(string.Format("LandingPageRelevance: {0}", qualityScoreData.LandingPageRelevance));
         OutputStatusMessage(string.Format("LandingPageUserExperience: {0}", qualityScoreData.LandingPageUserExperience));
         OutputStatusMessage(string.Format("QualityScore: {0}", qualityScoreData.QualityScore));
     }
 }