Two Issues here I think.
1) WARNING:googleads.common:Your default encoding, cp1252, is not UTF-8. Please run this script with UTF-8 encoding to avoid errors
How can I fix this? I'm using python 2.7.14 if that is helpful?
2)[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED @ ; trigger:'<null>']'
I have the client customer ID included in my google.yaml file so I'm not sure why I can't authenticate.
C:\Python27\python.exe C:/Users/clarissa.diaz/PythonProjects/googleads-python-lib-master/googleads-python-lib-master/examples/adwords/v201708/basic_operations/get_campaigns.py
WARNING:googleads.common:Your default encoding, cp1252, is not UTF-8. Please run this script with UTF-8 encoding to avoid errors.
INFO:oauth2client.client:Refreshing access_token
INFO:googleads.common:Request summary - {'methodName': get}
DEBUG:suds.transport.http:sending:
HEADERS: {'Soapaction': '""', 'Content-Type': 'text/xml; charset=utf-8', 'Content-type': 'text/xml; charset=utf-8', 'Authorization': 'REDACTED', 'SOAPAction': '""'}
MESSAGE:
INFO:googleads.common:Response summary - {'operations': 1, 'methodName': get, 'faultMessage': u"[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED @ ; trigger:'<null>']", 'isFault': True, 'requestId': 00055aa73fdd72c80a01648ef40e5b91, 'responseTime': 53, 'serviceName': CampaignService}
ERROR:suds.client:<suds.sax.document.Document instance at 0x03FD70A8>
WARNING:googleads.common:Response summary - {'operations': 1, 'methodName': get, 'faultMessage': u"[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED @ ; trigger:'<null>']", 'isFault': True, 'requestId': 00055aa73fdd72c80a01648ef40e5b91, 'responseTime': 53, 'serviceName': CampaignService}
INFO:googleads.common:SOAP response:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Header>
<requestId>00055aa73fdd72c80a01648ef40e5b91</requestId>
<serviceName>CampaignService</serviceName>
<methodName>get</methodName>
<operations>1</operations>
<responseTime>53</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED @ ; trigger:'<null>']</faultstring>
<detail>
<message>[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED @ ; trigger:'<null>']</message>
<ApplicationException.Type>ApiException</ApplicationException.Type>
<fieldPath/>
<trigger><null></trigger>
<errorString>AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED</errorString>
<ApiError.Type>AuthenticationError</ApiError.Type>
<reason>CLIENT_CUSTOMER_ID_IS_REQUIRED</reason>
</errors>
</ApiExceptionFault>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Traceback (most recent call last):
File "C:/Users/clarissa.diaz/PythonProjects/googleads-python-lib-master/googleads-python-lib-master/examples/adwords/v201708/basic_operations/get_campaigns.py", line 74, in <module>
main(adwords_client)
File "C:/Users/clarissa.diaz/PythonProjects/googleads-python-lib-master/googleads-python-lib-master/examples/adwords/v201708/basic_operations/get_campaigns.py", line 56, in main
page = campaign_service.get(selector)
File "build\bdist.win32\egg\googleads\common.py", line 753, in MakeSoapRequest
File "build\bdist.win32\egg\suds\client.py", line 521, in __call__
File "build\bdist.win32\egg\suds\client.py", line 581, in invoke
File "build\bdist.win32\egg\suds\client.py", line 619, in send
File "build\bdist.win32\egg\suds\client.py", line 670, in process_reply
suds.WebFault: Server raised fault: '[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED @ ; trigger:'<null>']'
Process finished with exit code 1