Пример #1
0
 def process_mappings_to_row_values(self, row_values, exclude_readonly_data):
     self._validate_property_not_null(
         self._ad_extension_id_to_entity_id_association,
         'ad_extension_id_to_entity_id_association'
     )
     self.convert_to_values(row_values, _BulkAdExtensionAssociation._MAPPINGS)
     if not exclude_readonly_data:
         PerformanceData.write_to_row_values_if_not_null(self.performance_data, row_values)
    def process_mappings_to_row_values(self, row_values,
                                       exclude_readonly_data):
        self._validate_property_not_null(self.biddable_ad_group_criterion,
                                         'biddable_ad_group_criterion')
        self.convert_to_values(row_values,
                               BulkAdGroupDynamicSearchAdTarget._MAPPINGS)

        PerformanceData.write_to_row_values_if_not_null(
            self._performance_data, row_values)
Пример #3
0
    def process_mappings_to_row_values(self, row_values,
                                       exclude_readonly_data):
        self._validate_property_not_null(self.ad_group_criterion,
                                         'ad_group_criterion')
        self.convert_to_values(row_values,
                               BulkAdGroupProductPartition._MAPPINGS)

        if not exclude_readonly_data:
            PerformanceData.write_to_row_values_if_not_null(
                self._performance_data, row_values)
Пример #4
0
 def process_mappings_from_row_values(self, row_values):
     self._ad_extension_id_to_entity_id_association = _CAMPAIGN_OBJECT_FACTORY_V12.create(
         'AdExtensionIdToEntityIdAssociation')
     row_values.convert_to_entity(self,
                                  _BulkAdExtensionAssociation._MAPPINGS)
     self._performance_data = PerformanceData.read_from_row_values_or_null(
         row_values)
    def process_mappings_from_row_values(self, row_values):
        self._biddable_ad_group_criterion = _CAMPAIGN_OBJECT_FACTORY_V12.create(
            'BiddableAdGroupCriterion')
        self._biddable_ad_group_criterion.Type = 'BiddableAdGroupCriterion'
        self._biddable_ad_group_criterion.Criterion = _CAMPAIGN_OBJECT_FACTORY_V12.create(
            'Webpage')
        self._biddable_ad_group_criterion.Criterion.Type = 'Webpage'
        self._biddable_ad_group_criterion.CriterionBid = _CAMPAIGN_OBJECT_FACTORY_V12.create(
            'FixedBid')
        self._biddable_ad_group_criterion.CriterionBid.Type = 'FixedBid'

        row_values.convert_to_entity(
            self, BulkAdGroupDynamicSearchAdTarget._MAPPINGS)

        self._performance_data = PerformanceData.read_from_row_values_or_null(
            row_values)
Пример #6
0
    def process_mappings_from_row_values(self, row_values):
        row_values.convert_to_entity(self, BulkAdGroupProductPartition._MAPPINGS)

        self._performance_data = PerformanceData.read_from_row_values_or_null(row_values)