示例#1
0
 def process_mappings_to_row_values(self, row_values,
                                    exclude_readonly_data):
     self._validate_property_not_null(self._ad_group, 'AdGroup')
     self.convert_to_values(row_values, BulkAdGroup._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)
示例#2
0
 def process_mappings_from_row_values(self, row_values):
     self._campaign = _CAMPAIGN_OBJECT_FACTORY.create('Campaign')
     row_values.convert_to_entity(self, BulkCampaign._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)
    def process_mappings_from_row_values(self, row_values):
        self.ad_group = _CAMPAIGN_OBJECT_FACTORY.create('AdGroup')
        self.ad_group.AdDistribution = ''

        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)
 def process_mappings_from_row_values(self, row_values):
     row_values.convert_to_entity(self, _BulkAd._MAPPINGS)
     self._performance_data = PerformanceData.read_from_row_values_or_null(row_values)
 def process_mappings_to_row_values(self, row_values, exclude_readonly_data):
     self.convert_to_values(row_values, _BulkAd._MAPPINGS)
     if not exclude_readonly_data:
         PerformanceData.write_to_row_values_if_not_null(self.performance_data, row_values)
示例#6
0
 def write_to_row_values(self, row_values, exclude_readonly_data):
     self.convert_to_values(row_values, BulkKeywordBidSuggestion._MAPPINGS)
     if not exclude_readonly_data:
         PerformanceData.write_to_row_values_if_not_null(self.performance_data, row_values)
示例#7
0
 def read_from_row_values(self, row_values):
     row_values.convert_to_entity(self, BulkKeywordBidSuggestion._MAPPINGS)
     self._performance_data = PerformanceData.read_from_row_values(row_values)
 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)
 def process_mappings_from_row_values(self, row_values):
     self._campaign = _CAMPAIGN_OBJECT_FACTORY.create('Campaign')
     row_values.convert_to_entity(self, BulkCampaign._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)
示例#10
0
 def process_mappings_from_row_values(self, row_values):
     row_values.convert_to_entity(self, _BulkAd._MAPPINGS)
     self._performance_data = PerformanceData.read_from_row_values_or_null(
         row_values)
示例#11
0
 def process_mappings_to_row_values(self, row_values,
                                    exclude_readonly_data):
     self.convert_to_values(row_values, _BulkAd._MAPPINGS)
     if not exclude_readonly_data:
         PerformanceData.write_to_row_values_if_not_null(
             self.performance_data, row_values)