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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3baf30d9-e584-4958-8233-088712005648%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Report ... Praveen Jose
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to