I deleted your post as it contains your confidential information such as clientCustomerId. In the future, please do not include any confidential information in a public post. You may refer to this
guide before posting. Re-posting this with masked information:
I tried to use googleads-java-lib(https://github.com/googleads/googleads-java-lib) to access adwords data,but got the ERROR AuthorizationError.SERVICE_ACCESS_DENIED.I am very confused about this problem,cause I am the admin user on my MCC account and I have got correct Credentials in google concole account with admin permission. Also I got refresh_token with auth_code.Our developerToken on MCC account is the basic access level.
Here is some urls and scope which I have used:
Best regards.
This is the soap request and response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Header>
<ns1:clientCustomerId>XXX-XXX-XXXX</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.7.0_65, 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>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap:Header>
<requestId>0005698c139ffbd90a620f1b130b7439</requestId>
<serviceName>CampaignService</serviceName>
<methodName>get</methodName>
<operations>1</operations>
<responseTime>166</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>[AuthorizationError.SERVICE_ACCESS_DENIED @ ]</faultstring>
<detail>
<message>[AuthorizationError.SERVICE_ACCESS_DENIED @ ]</message>
<ApplicationException.Type>ApiException</ApplicationException.Type>
<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>