Error summary: {'faultMessage': "[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'<null>']", 'requestId': '0005b93910e5acd50aa799deeb0b59aa', 'serviceName': 'CampaignService', 'methodName': 'get', 'operations': '1', 'responseTime': '123'}
|
||||||
python3 app.py
[2021-01-19 21:02:23,886 - googleads.soap - INFO] Request made: Service: "CampaignService" Method: "get" URL: "https://adwords.google.com/api/adwords/cm/v201809/CampaignService"
[2021-01-19 21:02:23,886 - googleads.soap - DEBUG] Outgoing request: {'SOAPAction': '""', 'Content-Type': 'text/xml; charset=utf-8', 'authorization': 'REDACTED'}
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
<ns0:RequestHeader xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201809">
<ns0:developerToken>REDACTED</ns0:developerToken>
<ns0:userAgent>unknown (AwApi-Python, googleads/26.0.0, Python/3.7.2, zeep)</ns0:userAgent>
<ns0:validateOnly>false</ns0:validateOnly>
<ns0:partialFailure>false</ns0:partialFailure>
</ns0:RequestHeader>
</soap-env:Header>
<soap-env:Body>
<ns0:get xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201809">
<ns0:serviceSelector>
<ns0:fields>Id</ns0:fields>
<ns0:fields>Name</ns0:fields>
<ns0:fields>Status</ns0:fields>
<ns0:paging>
<ns0:startIndex>0</ns0:startIndex>
<ns0:numberResults>100</ns0:numberResults>
</ns0:paging>
</ns0:serviceSelector>
</ns0:get>
</soap-env:Body>
</soap-env:Envelope>
[2021-01-19 21:02:24,290 - googleads.soap - DEBUG] Incoming response:
b'<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">\n <soap:Header>\n <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809">\n <requestId>0005b9407320ea780a621715660469b5</requestId>\n <serviceName>CampaignService</serviceName>\n <methodName>get</methodName>\n <operations>1</operations>\n <responseTime>123</responseTime>\n </ResponseHeader>\n </soap:Header>\n <soap:Body>\n <soap:Fault>\n <faultcode>soap:Client</faultcode>\n <faultstring>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:\'<null>\']</faultstring>\n <detail>\n <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809">\n <message>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:\'<null>\']</message>\n <ApplicationException.Type>ApiException</ApplicationException.Type>\n <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="QuotaCheckError">\n <fieldPath/>\n <trigger><null></trigger>\n <errorString>QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED</errorString>\n <ApiError.Type>QuotaCheckError</ApiError.Type>\n <reason>DEVELOPER_TOKEN_NOT_APPROVED</reason>\n </errors>\n </ApiExceptionFault>\n </detail>\n </soap:Fault>\n </soap:Body>\n</soap:Envelope>\n'
[2021-01-19 21:02:24,290 - googleads.soap - WARNING] Error summary: {'faultMessage': "[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'<null>']", 'requestId': '0005b9407320ea780a621715660469b5', 'serviceName': 'CampaignService', 'methodName': 'get', 'operations': '1', 'responseTime': '123'}
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/googleads/common.py", line 992, in MakeSoapRequest
*packed_args, _soapheaders=soap_headers)['body']['rval']
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zeep/proxy.py", line 51, in __call__
kwargs,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 135, in send
return self.process_reply(client, operation_obj, response)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 229, in process_reply
return self.process_error(doc, operation)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 333, in process_error
detail=fault_node.find("detail"),
zeep.exceptions.Fault: [QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'<null>']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "app.py", line 26, in <module>
page = campaign_service.get(selector)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/googleads/common.py", line 1004, in MakeSoapRequest
e.detail, errors=error_list, message=e.message)
googleads.errors.GoogleAdsServerFault: [QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'<null>']
~/Documents/new-workspace/etf-project/etfGoogle$ python3 app.py
[2021-01-19 21:09:58,023 - googleads.soap - INFO] Request made: Service: "CampaignService" Method: "get" URL: "https://adwords.google.com/api/adwords/cm/v201809/CampaignService"
[2021-01-19 21:09:58,023 - googleads.soap - DEBUG] Outgoing request: {'SOAPAction': '""', 'Content-Type': 'text/xml; charset=utf-8', 'authorization': 'REDACTED'}
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
<ns0:RequestHeader xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201809">
<ns0:developerToken>REDACTED</ns0:developerToken>
<ns0:userAgent>unknown (AwApi-Python, googleads/26.0.0, Python/3.7.2, zeep)</ns0:userAgent>
<ns0:validateOnly>false</ns0:validateOnly>
<ns0:partialFailure>false</ns0:partialFailure>
</ns0:RequestHeader>
</soap-env:Header>
<soap-env:Body>
<ns0:get xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201809">
<ns0:serviceSelector>
<ns0:fields>Id</ns0:fields>
<ns0:fields>Name</ns0:fields>
<ns0:fields>Status</ns0:fields>
<ns0:paging>
<ns0:startIndex>0</ns0:startIndex>
<ns0:numberResults>100</ns0:numberResults>
</ns0:paging>
</ns0:serviceSelector>
</ns0:get>
</soap-env:Body>
</soap-env:Envelope>
[2021-01-19 21:09:58,742 - googleads.soap - DEBUG] Incoming response:
b'<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">\n <soap:Header>\n <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809">\n <requestId>0005b9408e37e7810a622aca680be4c1</requestId>\n <serviceName>CampaignService</serviceName>\n <methodName>get</methodName>\n <operations>1</operations>\n <responseTime>182</responseTime>\n </ResponseHeader>\n </soap:Header>\n <soap:Body>\n <soap:Fault>\n <faultcode>soap:Client</faultcode>\n <faultstring>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:\'<null>\']</faultstring>\n <detail>\n <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809">\n <message>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:\'<null>\']</message>\n <ApplicationException.Type>ApiException</ApplicationException.Type>\n <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="QuotaCheckError">\n <fieldPath/>\n <trigger><null></trigger>\n <errorString>QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED</errorString>\n <ApiError.Type>QuotaCheckError</ApiError.Type>\n <reason>DEVELOPER_TOKEN_NOT_APPROVED</reason>\n </errors>\n </ApiExceptionFault>\n </detail>\n </soap:Fault>\n </soap:Body>\n</soap:Envelope>\n'
[2021-01-19 21:09:58,743 - googleads.soap - WARNING] Error summary: {'faultMessage': "[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'<null>']", 'requestId': '0005b9408e37e7810a622aca680be4c1', 'serviceName': 'CampaignService', 'methodName': 'get', 'operations': '1', 'responseTime': '182'}
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/googleads/common.py", line 992, in MakeSoapRequest
*packed_args, _soapheaders=soap_headers)['body']['rval']
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zeep/proxy.py", line 51, in __call__
kwargs,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 135, in send
return self.process_reply(client, operation_obj, response)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 229, in process_reply
return self.process_error(doc, operation)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 333, in process_error
detail=fault_node.find("detail"),
zeep.exceptions.Fault: [QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'<null>']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "app.py", line 26, in <module>
page = campaign_service.get(selector)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/googleads/common.py", line 1004, in MakeSoapRequest
e.detail, errors=error_list, message=e.message)
googleads.errors.GoogleAdsServerFault: [QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'<null>']
Hi,
Thank you for reaching out. You encountered the DEVELOPER_TOKEN_NOT_APPROVED error as your developer token is with the Test access, however, you were trying to make API calls to the production account. Please note that non-approved developer tokens can only be used with test accounts. The solution is to either upgrade your access level to Basic access via this form or make API calls against test accounts.
Thanks and regards,
Xiaoming, Google Ads API Team
|
||||||