Hello! I just created all the credentials again, and reconfigured all the 
API files again, to avoid any inconvenience.
I just came across another problem, which tells me that the developer token 
was not approved.
However, it is a test account, and I read that the developer token does not 
need to be validated in a DEMO account.
What can be the way to test my API without having to wait for the 
application to be approved?
Thank you.

C:\Users\Lucia\AppData\Local\Programs\Python\Python36-32\python.exe 
C:/Users/Lucia/adwords_python3_examples_10.0.0/v201710/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/v201710/CampaignService?wsdl)
INFO:oauth2client.client:Refreshing access_token
INFO:googleads.common:Request summary - {'methodName': get, 
'clientCustomerId': 737-186-2754}
DEBUG:suds.transport.http:sending:
URL: https://adwords.google.com/api/adwords/cm/v201710/CampaignService
HEADERS: {'Content-Type': 'text/xml; charset=utf-8', 'SOAPAction': b'""', 
'Authorization': 'REDACTED', 'Content-type': 'text/xml; charset=utf-8', 
'Soapaction': b'""'}
MESSAGE:
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:tns="https://adwords.google.com/api/adwords/cm/v201710"; 
xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201710";><SOAP-ENV:Header><tns:RequestHeader><tns:clientCustomerId>737-186-2754</tns:clientCustomerId><tns:developerToken>REDACTED</tns:developerToken><tns:userAgent>unknown
 
(AwApi-Python, googleads/9.0.0, 
Python/3.6.2)</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 - {'requestId': 
0005658febd10ca10a37ab13ce01ab0c, 'responseTime': 167, 'serviceName': 
CampaignService, 'methodName': get, 'operations': 1, 'isFault': True, 
'faultMessage': "[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; 
trigger:'<null>']"}
ERROR:suds.client:<suds.sax.document.Document object at 0x063F5890>
WARNING:googleads.common:Response summary - {'requestId': 
0005658febd10ca10a37ab13ce01ab0c, 'responseTime': 167, 'serviceName': 
CampaignService, 'methodName': get, 'operations': 1, 'isFault': True, 
'faultMessage': "[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; 
trigger:'<null>']"}
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/v201710";>
         <requestId>0005658febd10ca10a37ab13ce01ab0c</requestId>
         <serviceName>CampaignService</serviceName>
         <methodName>get</methodName>
         <operations>1</operations>
         <responseTime>167</responseTime>
      </ResponseHeader>
   </soap:Header>
   <soap:Body>
      <soap:Fault>
         <faultcode>soap:Client</faultcode>
         <faultstring>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; 
trigger:&apos;&lt;null&gt;&apos;]</faultstring>
         <detail>
            <ApiExceptionFault 
xmlns="https://adwords.google.com/api/adwords/cm/v201710";>
               <message>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; 
trigger:&apos;&lt;null&gt;&apos;]</message>
              
 <ApplicationException.Type>ApiException</ApplicationException.Type>
               <errors 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="QuotaCheckError">
                  <fieldPath/>
                  <trigger>&lt;null&gt;</trigger>
                  
<errorString>QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED</errorString>
                  <ApiError.Type>QuotaCheckError</ApiError.Type>
                  <reason>DEVELOPER_TOKEN_NOT_APPROVED</reason>
               </errors>
            </ApiExceptionFault>
         </detail>
      </soap:Fault>
   </soap:Body>
</soap:Envelope>
Traceback (most recent call last):
  File 
"C:\Users\Lucia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\googleads\util.py",
 
line 123, in PatchedHttpTransportSend
    fp = self.u2open(u2request)
  File 
"C:\Users\Lucia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\suds\transport\http.py",
 
line 132, in u2open
    return url.open(u2request, timeout=tm)
  File 
"C:\Users\Lucia\AppData\Local\Programs\Python\Python36-32\lib\urllib\request.py",
 
line 532, in open
    response = meth(req, response)
  File 
"C:\Users\Lucia\AppData\Local\Programs\Python\Python36-32\lib\urllib\request.py",
 
line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File 
"C:\Users\Lucia\AppData\Local\Programs\Python\Python36-32\lib\urllib\request.py",
 
line 570, in error
    return self._call_chain(*args)
  File 
"C:\Users\Lucia\AppData\Local\Programs\Python\Python36-32\lib\urllib\request.py",
 
line 504, in _call_chain
    result = func(*args)
  File 
"C:\Users\Lucia\AppData\Local\Programs\Python\Python36-32\lib\urllib\request.py",
 
line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
"C:\Users\Lucia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\suds\client.py",
 
line 613, in send
    reply = self.options.transport.send(request)
  File 
"C:\Users\Lucia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\googleads\util.py",
 
line 134, in PatchedHttpTransportSend
    raise suds.transport.TransportError(e.msg, e.code, e.fp)
suds.transport.TransportError: Internal Server Error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File 
"C:/Users/Lucia/adwords_python3_examples_10.0.0/v201710/basic_operations/get_campaigns.py",
 
line 72, in <module>
    main(adwords_client)
  File 
"C:/Users/Lucia/adwords_python3_examples_10.0.0/v201710/basic_operations/get_campaigns.py",
 
line 55, in main
    page = campaign_service.get(selector)
  File 
"C:\Users\Lucia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\googleads\common.py",
 
line 767, in MakeSoapRequest
    self._packer) for arg in args])
  File 
"C:\Users\Lucia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\suds\client.py",
 
line 521, in __call__
    return client.invoke(args, kwargs)
  File 
"C:\Users\Lucia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\suds\client.py",
 
line 581, in invoke
    result = self.send(soapenv)
  File 
"C:\Users\Lucia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\suds\client.py",
 
line 619, in send
    description=tostr(e), original_soapenv=original_soapenv)
  File 
"C:\Users\Lucia\AppData\Local\Programs\Python\Python36-32\lib\site-packages\suds\client.py",
 
line 670, in process_reply
    raise WebFault(fault, replyroot)
suds.WebFault: Server raised fault: 
'[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'<null>']'

Process finished with exit code 1



El viernes, 16 de febrero de 2018, 19:15:23 (UTC-3), Dhanya Sundararaju 
(AdWords API Team) escribió:
>
> Hi,
>
> Could you confirm that the client_id field in your googleads.yaml is the 
> same as the one in your project within Google API Console Credentials page 
> <https://console.developers.google.com/apis/credentials>? Please refer 
> this 
> <https://github.com/googleads/googleads-python-lib/wiki/API-access-using-own-credentials-(installed-application-flow)>
>  guide 
> for better clarity and let me know if you have further questions.
>
> Regards,
> Dhanya, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
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/90372f72-4db8-42f9-afbb-b3433a9b347a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Error API Fi... santiagoruffino
    • Re: Err... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
      • Re:... santiagoruffino
        • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
          • ... santiagoruffino
            • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
              • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
                • ... santiagoruffino
                • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
                • ... santiagoruffino
                • ... santiagoruffino
                • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
                • ... santiagoruffino
                • ... olek . test . mcc
                • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
                • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum

Reply via email to