Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 360fcfb

Browse files
alvaroseparovichbusunkim96
authored andcommitted
Fix TypeError: search_analytics_api_sample.py googleapis#732 (googleapis#742)
Solution given by thedataboi
1 parent a302802 commit 360fcfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/searchconsole/search_analytics_api_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def print_table(response, title):
190190
keys = ''
191191
# Keys are returned only if one or more dimensions are requested.
192192
if 'keys' in row:
193-
keys = u','.join(row['keys']).encode('utf-8')
193+
keys = u','.join(row['keys']).encode('utf-8').decode()
194194
print(row_format.format(
195195
keys, row['clicks'], row['impressions'], row['ctr'], row['position']))
196196

0 commit comments

Comments
 (0)