Пример #1
0
def get_conversion_clicks(start, stop, campaign):

    """
    Gets all donation data within the time range start:stop
    Groups data by banner, campaign and number of impressions seen
    """

    fields = ['payment_method', 'donation', 'country', 'name']
    return get_clicks(start, stop, campaign_reg = campaign, aggregation = 'hour', fields = fields):
Пример #2
0
    def get_clicks(self,):

        fields = ['payment_method']

        return get_clicks(self.params['start'], \
                          self.params['stop'],  \
                          banner_reg = self.params['banner'], \
                          aggregation = 'none', \
                          fields = fields, \
                          )