internal static void WriteToRowValuesIfNotNull(QualityScoreData qualityScoreData, RowValues values) { if (qualityScoreData != null) { qualityScoreData.WriteToRowValues(values); } }
internal static QualityScoreData ReadFromRowValuesOrNull(RowValues values) { var qualityScoreData = new QualityScoreData(); qualityScoreData.ReadFromRowValues(values); return(qualityScoreData.HasAnyValues ? qualityScoreData : null); }
internal override void ProcessMappingsFromRowValues(RowValues values) { Campaign = new Campaign(); values.ConvertToEntity(this, Mappings); QualityScoreData = QualityScoreData.ReadFromRowValuesOrNull(values); PerformanceData = PerformanceData.ReadFromRowValuesOrNull(values); }
internal override void ProcessMappingsFromRowValues(RowValues values) { AdGroup = new AdGroup { AdDistribution = 0 }; values.ConvertToEntity(this, Mappings); QualityScoreData = QualityScoreData.ReadFromRowValuesOrNull(values); PerformanceData = PerformanceData.ReadFromRowValuesOrNull(values); }
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); } }
internal static QualityScoreData ReadFromRowValuesOrNull(RowValues values) { var qualityScoreData = new QualityScoreData(); qualityScoreData.ReadFromRowValues(values); return qualityScoreData.HasAnyValues ? qualityScoreData : null; }
/// <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)); } }