Hello! I'm trying to get the AdWords API work on my service's integration. I'm trying to use the CustomerService to get the list of customers associated of the oauth-authenticated account.
What I've done so far: 1. I've went to the Google API dashboard and enabled the Google Ads API from the library 2. I've created an API key (unrestricted for now) from the credentials page 3. I've created an OAuth 2.0 clients ID Then I configured an API session with the following information: 1. the (unexpired (tested)) access token 2. the refresh token 3. the client id (see previous point 3) 4. the client secret (see previous point 3) 5. the developer key (see previous point 2) Now trying to call the getCustomers SOAP call, it throws an exception (QuotaCheckError.INVALID_TOKEN_HEADER) triggered by the API key. My call (stripped out sensible information): <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/mcm/v201806" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201806"><SOAP-ENV:Header><ns1:RequestHeader><ns2:developerToken>MY_API_KEY_HERE</ns2:developerToken><ns2:userAgent>unknown (AwApi-PHP, googleads-php-lib/35.2.0, PHP/7.1.9)</ns2:userAgent><ns2:validateOnly>false</ns2:validateOnly><ns2:partialFailure>false</ns2:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:getCustomers/></SOAP-ENV:Body></SOAP-ENV:Envelope> The response (stripped out sensible information): <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201806" xmlns="https://adwords.google.com/api/adwords/mcm/v201806"><ns2:requestId>00056f9f586d04410a1b344ea10b1915</ns2:requestId><ns2:serviceName>CustomerService</ns2:serviceName><ns2:methodName>getCustomers</ns2:methodName><ns2:operations>0</ns2:operations><ns2:responseTime>138</ns2:responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'MY_API_KEY_HERE']</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/mcm/v201806" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201806"><ns2:message>[QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'MY_API_KEY_HERE']</ns2:message><ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type><ns2:errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:QuotaCheckError"><ns2:fieldPath></ns2:fieldPath><ns2:trigger>MY_API_KEY_HERE</ns2:trigger><ns2:errorString>QuotaCheckError.INVALID_TOKEN_HEADER</ns2:errorString><ns2:ApiError.Type>QuotaCheckError</ns2:ApiError.Type><ns2:reason>INVALID_TOKEN_HEADER</ns2:reason></ns2:errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope> According to https://developers.google.com/adwords/api/docs/common-errors this error is associated, amongst the others, to a wrong namespace which should be https://adwords.google.com/api/adwords/cm/{version} <-- note as the last part in the call is not "cm" but "mcm" What can I do to fix this? Thanks! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/228970e1-869d-447e-ba22-2be366b2c015%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.