关于开发者权限问题 AuthorizationError.SERVICE_ACCESS_DENIED

49 views
Skip to first unread message

香港軒進

unread,
Jun 11, 2019, 6:54:06 AM6/11/19
to AdWords API and Google Ads API Forum
您好,我在测试访问adwords api时提示开发者权限问题,这个应该怎么去解决呢。
这是输出的消息内容:
[10 六月 2019 11:00:43,279-requestInfoLogger:WARN:main] Request made: Service: CampaignService Method: get clientCustomerId: 535-962-2005 URL: https://adwords.google.com/api/adwords/cm/v201809/CampaignService Request ID: 00058af6178142130a37a152570b9f73 ResponseTime(ms): 130 OperationsCount: 1 IsFault: true FaultMessage: ApiException{applicationExceptionType=ApiException, errors=[AuthorizationError{apiErrorType=AuthorizationError, errorString=AuthorizationError.SERVICE_ACCESS_DENIED, fieldPath=, reason=SERVICE_ACCESS_DENIED, trigger=}]}
[10 六月 2019 11:00:43,309-soapXmlLogger:INFO:main] SOAP request:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809" soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>535-962-2005</ns1:clientCustomerId>
            <ns1:developerToken>REDACTED</ns1:developerToken>
            <ns1:userAgent>unknown (AwApi-Java, AdWords-Axis/4.2.0, Common-Java/4.2.0, Axis/1.4, Java/1.8.0_181, jars, SelectorBuilder, SelectorField)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
            <serviceSelector>
                <fields>Id</fields>
                <fields>Name</fields>
                <ordering>
                    <field>Name</field>
                    <sortOrder>ASCENDING</sortOrder>
                </ordering>
                <paging>
                    <startIndex>0</startIndex>
                    <numberResults>100</numberResults>
                </paging>
            </serviceSelector>
        </get>
    </soapenv:Body>
</soapenv:Envelope>

[10 六月 2019 11:00:43,309-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/v201809">
            <requestId>00058af6178142130a37a152570b9f73</requestId>
            <serviceName>CampaignService</serviceName>
            <methodName>get</methodName>
            <operations>1</operations>
            <responseTime>130</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Client</faultcode>
            <faultstring>[AuthorizationError.SERVICE_ACCESS_DENIED @ ]</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809">
                    <message>[AuthorizationError.SERVICE_ACCESS_DENIED @ ]</message>
                    <ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AuthorizationError">
                        <fieldPath/>
                        <trigger/>
                        <errorString>AuthorizationError.SERVICE_ACCESS_DENIED</errorString>
                        <ApiError.Type>AuthorizationError</ApiError.Type>
                        <reason>SERVICE_ACCESS_DENIED</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Request failed due to ApiException. Underlying ApiErrors:
  Error 0: AuthorizationError{apiErrorType=AuthorizationError, errorString=AuthorizationError.SERVICE_ACCESS_DENIED, fieldPath=, reason=SERVICE_ACCESS_DENIED, trigger=}

Google Ads API Forum Advisor Prod

unread,
Jun 11, 2019, 5:43:17 PM6/11/19
to hkxchang...@gmail.com, adwor...@googlegroups.com

Hi Hong Kong Xuan Jin,

Thank you for contacting support. The AuthorizationError.SERVICE_ACCESS_DENIED occurs when a developer token which is approved for non-AdWords API service and is used to make AdWords API calls. To troubleshoot further, could you please share the MCC account Id that holds the developer token being used to make the API call along with the email ID that is authenticating the call? You could use reply privately to author option while sharing.

Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001UBmf87:ref
Reply all
Reply to author
Forward
0 new messages