Developer token not approved error when running getcampaigns

836 views
Skip to first unread message

sz...@mymail.mines.edu

unread,
Jun 6, 2018, 2:15:52 PM6/6/18
to AdWords API and Google Ads API Forum
Hello, while attempting to call getCampaigns, I am running into the following error:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201802"><requestId>00056dfd10df89c10a018d10be02f220</requestId><serviceName>CampaignService</serviceName><methodName>get</methodName><operations>1</operations><responseTime>66</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'&lt;null&gt;']</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201802"><message>[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'&lt;null&gt;']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="QuotaCheckError"><fieldPath></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>

  


Fatal error: Uncaught exception 'Google\AdsApi\AdWords\v201802\cm\ApiException' with message '[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'<null>']' in /Users/SeanZusi/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:43

Stack trace:

#0 /Users/SeanZusi/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(43): ReflectionClass->newInstanceArgs(Array)

#1 /Users/SeanZusi/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(203): Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', '[QuotaCheckErro...')

#2 /Users/SeanZusi/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(164): Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))

#3 /Users/SeanZusi/googleads-php-lib/src/Google/AdsApi/AdWords/v201802/cm/CampaignService.php(163): Google\AdsApi\Common\AdsSoapClient->__soapCall('get', Array)

#4 /Users/SeanZusi/googleads-php-lib/examples/AdWords/v201802/BasicOperations/GetCampaigns.php(55): Google\AdsApi\AdWords\v201802\c in /Users/SeanZusi/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php on line 43


Am I somehow trying to make a call to a production account instead of the test account? 

Thanks

Sean Z.


Milind Sankeshware (AdWords API Team)

unread,
Jun 6, 2018, 3:09:29 PM6/6/18
to AdWords API and Google Ads API Forum
Hi Sean,

The DEVELOPER_TOKEN_NOT_APPROVED error means that you were making a call to production AdWords account using test access developer token. An unapproved developer token can only make calls against test AdWords accounts. Also, please check if you have filled out the second part of the application form. If not, please fill it out. Once you submit that form, the AdWords API Compliance team will respond with an answer within a business day. Let me know if you have further questions.

Thanks,
Milind, AdWords API Team.

Nenad Radoja

unread,
Oct 22, 2018, 2:39:03 AM10/22/18
to AdWords API and Google Ads API Forum
Hi there.

I am pretty sure I am truing to connect test account, not production.

I have Developer token in my MCC with Access level Test Account.

I am getting exact same error when I try to GetCampaigns from test account.

Do you have an idea what am I doing wrong?

Thanks.

Milind Sankeshware (AdWords API Team)

unread,
Oct 22, 2018, 1:36:47 PM10/22/18
to AdWords API and Google Ads API Forum
Hi,

There is an ongoing issue regarding this error, I will let you know once I have more information on this issue.

Thanks,
Milind, AdWords API Team

Milind Sankeshware (AdWords API Team)

unread,
Nov 16, 2018, 5:00:57 PM11/16/18
to AdWords API and Google Ads API Forum
Hi,

The issue related to DEVELOPER_TOKEN_NOT_APPROVED is resolved. Could you please retry and confirm if this is working for you?

ravne...@gmail.com

unread,
Dec 20, 2018, 6:57:47 PM12/20/18
to AdWords API and Google Ads API Forum
Hi,

I am still facing the issue, I created a production account from where I got the developer token. I am using the developer token against my test manager account. But the error still occurs.

Your default encoding, cp1252, is not UTF-8. Please run this script with UTF-8 encoding to avoid errors.
Error summary: {'faultMessage': "[QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED @ ; trigger:'<null>']", 'requestId': '00057d7a2ed3c9780abf9b05d8003d77', 'serviceName': 'ManagedCustomerService', 'methodName': 'get', 'operations'
: '1', 'responseTime': '93'}
Traceback (most recent call last):
  File "C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googleads\common.py", line 1382, in MakeSoapRequest
    *packed_args, _soapheaders=soap_headers)['body']['rval']
  File "C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\zeep\proxy.py", line 42, in __call__
    self._op_name, args, kwargs)
  File "C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\zeep\wsdl\bindings\soap.py", line 132, in send
    return self.process_reply(client, operation_obj, response)
  File "C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\zeep\wsdl\bindings\soap.py", line 194, in process_reply
    return self.process_error(doc, operation)
  File "C:\Users\ravneeka\AppData\Local\Programs\Python\Python37-32\lib\site-packages\zeep\wsdl\bindings\soap.py", line 299, 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:

Thanks

Milind Sankeshware (AdWords API Team)

unread,
Dec 21, 2018, 4:52:05 PM12/21/18
to AdWords API and Google Ads API Forum
Hi,

Looks like you have posted your questions on the AdWords API forum. Could you please continue the discussion on that thread to avoid duplicates?
Reply all
Reply to author
Forward
0 new messages