Ejemplo n.º 1
0
 def process_mappings_to_row_values(self, row_values,
                                    exclude_readonly_data):
     self._validate_property_not_null(self.campaign, 'campaign')
     self.convert_to_values(row_values, BulkCampaign._MAPPINGS)
     if not exclude_readonly_data:
         QualityScoreData.write_to_row_values_if_not_null(
             self.quality_score_data, row_values)
         PerformanceData.write_to_row_values_if_not_null(
             self.performance_data, row_values)
Ejemplo n.º 2
0
    def process_mappings_from_row_values(self, row_values):
        self.ad_group = _CAMPAIGN_OBJECT_FACTORY_V12.create('AdGroup')

        row_values.convert_to_entity(self, BulkAdGroup._MAPPINGS)

        self._quality_score_data = QualityScoreData.read_from_row_values_or_null(row_values)
        self._performance_data = PerformanceData.read_from_row_values_or_null(row_values)