I want to use AdWords Python APIs for reporting purposes.
TransportError: HTTPSConnectionPool(host='
accounts.google.com', port=443): Max retries exceeded with url: /o/oauth2/token (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')])")))
I would appreciate to receive a list of checks to be performed against the other working machine to isolate the problem, if possible
client = adwords.AdWordsClient.LoadFromStorage(path=os.getcwd()+'\\credentials\\googleads.yml')
report_downloader = client.GetReportDownloader(version='v201809')
# Create report definition.
report = {
'reportName': 'Last 30 days CRITERIA_PERFORMANCE_REPORT',
'dateRangeType': 'LAST_30_DAYS',
'reportType': 'CRITERIA_PERFORMANCE_REPORT',
'downloadFormat': 'CSV',
'selector': {
'fields': ['CampaignId', 'AdGroupId', 'Id', 'CriteriaType',
'Criteria', 'FinalUrls', 'Impressions', 'Clicks', 'Cost']
}
}
# Print out the report as a string
print(report_downloader.DownloadReportAsString(
report, skip_report_header=False, skip_column_header=False,
skip_report_summary=False, include_zero_impressions=True))