How to store python dict in google spreadsheet and append

Viewed 41

The script is generating a dictionary name result

 # Display headers.
  for header in result['headers']:
    print('%25s' % header['name'], end=''),
  print()

  # Display results.
  if 'rows' in result:
    for row in result['rows']:
     for cell in row['cells']:
      print('%25s' % cell['value'], end='')
  print()

How can I store the header on the top row and store the results without overwriting & duplicate in google sheets. I've already connected CGP and everthing

script: https://github.com/googleads/googleads-adsense-examples/blob/9f1b24bbfdecf418ee48ce18bc3422aef835a138/v2/python/generate_report.py

0 Answers
Related