SERVICE_ACCESS_DENIED when trying to call API

38 views
Skip to first unread message

Rita Ding

unread,
Apr 29, 2020, 7:15:13 AM4/29/20
to AdWords API and Google Ads API Forum

Hello!


We are facing the following error = SERVICE_ACCESS_DENIED when trying to call the following API


API = https://adwords.google.com/api/adwords/mcm/v201809/ManagedCustomerService


but we can call the google Ads API Beta and the access to Google Ads API was approved.


RESPONSE = <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

    <soap:Header>
            <ns2:requestId>0005a46ad3d84f860abcdd02780a3fad</ns2:requestId>
            <ns2:serviceName>ManagedCustomerService</ns2:serviceName>
            <ns2:methodName>get</ns2:methodName>
            <ns2:operations>1</ns2:operations>
            <ns2:responseTime>395</ns2:responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>[AuthorizationError.SERVICE_ACCESS_DENIED @ ]</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/mcm/v201809" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809">
                    <ns2:message>[AuthorizationError.SERVICE_ACCESS_DENIED @ ]</ns2:message>
                    <ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type>
                    <ns2:errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:AuthorizationError">
                        <ns2:fieldPath></ns2:fieldPath>
                        <ns2:trigger></ns2:trigger>
                        <ns2:errorString>AuthorizationError.SERVICE_ACCESS_DENIED</ns2:errorString>
                        <ns2:ApiError.Type>AuthorizationError</ns2:ApiError.Type>
                        <ns2:reason>SERVICE_ACCESS_DENIED</ns2:reason>
                    </ns2:errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Google Ads API Forum Advisor Prod

unread,
Apr 29, 2020, 2:32:41 PM4/29/20
to ritad...@gmail.com, adwor...@googlegroups.com
Hi Rita,

Thanks for reaching The SERVICE_ACCESS_DENIED error indicates that user authorizing the API call doesn't have access to the specific service. Have you reached out to your account Admin to ensure that you have the adequate access level for the request you are making to the API? Additionally, can you let me know the CID that you are using in the API request?

Thanks,
Danica Calusin, Google Ads API Team 

ref:_00D1U1174p._5001UaSmR8:ref

Google Ads API Forum Advisor Prod

unread,
Apr 29, 2020, 2:37:34 PM4/29/20
to ritad...@gmail.com, adwor...@googlegroups.com
Hi Rita,

Thanks for reaching out. The SERVICE_ACCESS_DENIED error indicates that user authorizing the API call doesn't have access to the specific service. Have you reached out to your account Admin to ensure that you have the adequate access level for the request you are making to the API? Additionally, can you let me know the CID that you are using in the API request?
Reply all
Reply to author
Forward
0 new messages