Hi Guys,
I have been trying to download a criteria performance report with the below report configuration
report = {
'reportName': 'Header - Last 7 days CRITERIA_PERFORMANCE_COST_REPORT for '+vAccName,
'dateRangeType': 'LAST_7_DAYS',
'reportType': 'CRITERIA_PERFORMANCE_REPORT',
'downloadFormat': 'CSV',
'selector': {
'fields': ['Date', 'AdGroupId', 'CampaignName', 'AdGroupName', 'Impressions', 'Clicks', 'Cost'],
'predicates': [{'field': 'Cost','operator': 'GREATER_THAN_EQUALS','values': ['0']}]
}
}
I am using a file object to write the report data to a csv file . However i am getting the below error
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 16383: unexpected end of data
The above code sample works perfectly when the predicate is given as {'field': 'Cost','operator': 'NOT_IN','values': ['0']}
Can someone please provide guidance here?
Thanks in advance