Re: DEVELOPER_TOKEN_NOT_APPROVED with Test mcc account

546 views
Skip to first unread message
Message has been deleted

Teja Makani

unread,
May 7, 2018, 1:42:16 PM5/7/18
to AdWords API and Google Ads API Forum
Hello Quan,

Re-posting after removing the sensitive information (client credentials and OAuth tokens) in your ads.properties screen shot. In the future, please redact any sensitive information before posting in the public forum. You could check the guidelines here


[07 May 2018 15:22:05,574-requestInfoLogger:WARN:main] Request made: Service: CampaignService Method: get clientCustomerId: **** URL: https://adwords.google.com/api/adwords/cm/v201802/CampaignService Request ID: 00056b995d667b980a62ac056c0fe4cc ResponseTime(ms): 69 OperationsCount: 1 IsFault: true FaultMessage: ApiException{applicationExceptionType=ApiException, errors=[QuotaCheckError{apiErrorType=QuotaCheckError, errorString=QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED, fieldPath=, reason=DEVELOPER_TOKEN_NOT_APPROVED, trigger=<null>}]}
[07 May 2018 15:22:05,593-soapXmlLogger:INFO:main] SOAP request:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   
<soapenv:Header>
       
<ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201802" soapenv:mustUnderstand="0">
           
<ns1:clientCustomerId>*****</ns1:clientCustomerId>
            <ns1:developerToken>REDACTED</
ns1:developerToken>
           
<ns1:userAgent>unknown (AwApi-Java, AdWords-Axis/3.13.0, Common-Java/3.13.0, Axis/1.4, Java/1.8.0_172, maven, SelectorBuilder, SelectorField)</ns1:userAgent>
           
<ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</
ns1:partialFailure>
       
</ns1:RequestHeader>
    </
soapenv:Header>
   
<soapenv:Body>
       
<get xmlns="https://adwords.google.com/api/adwords/cm/v201802">
           
<serviceSelector>
               
<fields>Id</fields>
            </
serviceSelector>
       
</get>
    </
soapenv:Body>
</soapenv:Envelope>

[07 May 2018 15:22:05,593-soapXmlLogger:INFO:main] SOAP response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap:Envelope xmlns:soap="http:/
/schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns="
https://adwords.google.com/api/adwords/cm/v201802">
           
<requestId>00056b995d667b980a62ac056c0fe4cc</requestId>
            <serviceName>CampaignService</
serviceName>
           
<methodName>get</methodName>
            <operations>1</
operations>
           
<responseTime>69</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/>
                        <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>

Request failed due to ApiException. Underlying ApiErrors:
  Error 0: QuotaCheckError{apiErrorType=QuotaCheckError, errorString=QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED, fieldPath=, reason=DEVELOPER_TOKEN_NOT_APPROVED, trigger=<null>}

This is my terminal when run GetCampaign.class

this is my ads.properties
# OfflineCredentials authentication properties.
# A refresh token can be acquired using the GetRefreshToken example.
api.adwords.refreshToken=****
# If you do not have a client ID or secret, please create a project in the
# Developers console. See the following link for more information:
# https://github.com/googleads/googleads-java-lib/wiki/Using-OAuth2.0
api.adwords.clientId=****
api.adwords.clientSecret=****
# If you are using a service account, specify the path to the JSON
# key file instead of using the above authentication properties.
# api.adwords.jsonKeyFilePath=INSERT_PATH_TO_JSON_KEY_FILE_HERE
# If you are using a service account, specify the email address of
# the user account to impersonate. See
# https://developers.google.com/adwords/api/docs/guides/authentication#granting_impersonation_abilities
# for details.
# api.adwords.serviceAccountUser=INSERT_SERVICE_ACCOUNT_USER_EMAIL_ADDRESS_HERE

api.adwords.clientCustomerId=****
# Optional. Set a friendly application name identifier.
# api.adwords.userAgent=INSERT_USERAGENT_HERE
api.adwords.developerToken=****

api.adwords.isPartialFailure=false




Regards,
Sai Teja, AdWords API Team 

Teja Makani

unread,
May 7, 2018, 2:08:18 PM5/7/18
to AdWords API and Google Ads API Forum
Hello Quan,

It looks like the developer token being used to make the API call against a production account only has test access at the moment. Please note that you can only make API calls against production accounts using an approved developer token (either basic or standard access level). You can apply for basic access for the developer token using this form. Once you submit the form, the API compliance team will get back to the email address provided as API contact email in the AdWords API center within a business day. You can use an unapproved developer token to make API calls against a test account. Let me know if you have any further questions.

Regards,
Sai Teja, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages