[07 May 2018 15:22:05,574-requestInfoLogger:WARN:main] Request made: Service
: CampaignService Method: get clientCustomerId: 352-394-2633 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>352-394-2633</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=1/JZk-jcsMVUygjBPx_HwdE9ay54mtD4lMu-vnKJezqK0
# 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=658906113846-blqpe27jsb7ekdltqh36pklhu5oq62fi.apps.googleusercontent.com
api.adwords.clientSecret=bLPcQ98DV_JK9I1ceOtZ2M4b 
# 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=352-394-2633
# Optional. Set a friendly application name identifier.
# api.adwords.userAgent=INSERT_USERAGENT_HERE
api.adwords.developerToken=Cu6jcnRTGPx2atVJFhR8mw

api.adwords.isPartialFailure=false




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/649c61c6-27e3-4dcc-9e22-e11b641cbb6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • DEVELOPER_TOKEN_NOT... Quân Lê Minh

Reply via email to