def get_report(yta, channel, startdate, enddate, metrics, dimensions, *filter):
    """performs the request to get analytics data according to dims and metrics"""
    request = {'ids': channel, 'startDate': startdate, 'endDate': enddate,
        'maxResults': '200', 'dimensions': dimensions, 'metrics': metrics}
    if len(filter) > 0:
        request[filter[0][0]] = filter[0][1]
    return yta.analytics.reports().query(**request).execute()
