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. DEBUG:suds.transport.http:opening (https://adwords.google.com/api/adwords/cm/v201708/CampaignService?wsdl) INFO:oauth2client.client:Refreshing access_token INFO:googleads.common:Request summary - {'methodName': get} DEBUG:suds.transport.http:sending: URL: https://adwords.google.com/api/adwords/cm/v201708/CampaignService HEADERS: {'Soapaction': '""', 'Content-Type': 'text/xml; charset=utf-8', 'Content-type': 'text/xml; charset=utf-8', 'Authorization': 'REDACTED', 'SOAPAction': '""'} MESSAGE: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201708" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://adwords.google.com/api/adwords/cm/v201708" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><tns:RequestHeader><tns:developerToken>REDACTED</tns:developerToken><tns:userAgent>unknown (AwApi-Python, googleads/8.0.0, Python/2.7.14)</tns:userAgent><tns:validateOnly>false</tns:validateOnly><tns:partialFailure>false</tns:partialFailure></tns:RequestHeader></SOAP-ENV:Header><ns0:Body><ns1:get><ns1:serviceSelector><ns1:fields>Id</ns1:fields><ns1:fields>Name</ns1:fields><ns1:fields>Status</ns1:fields><ns1:paging><ns1:startIndex>0</ns1:startIndex><ns1:numberResults>100</ns1:numberResults></ns1:paging></ns1:serviceSelector></ns1:get></ns0:Body></SOAP-ENV:Envelope> 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:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201708"> <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> <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201708"> <message>[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED @ ; trigger:'<null>']</message> <ApplicationException.Type>ApiException</ApplicationException.Type> <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AuthenticationError"> <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 -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. 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/17da61f7-89b1-4221-a3af-c3e01b62ebf0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
