Hi Ray, Thanks for your reply. My authorization token has the scope https://adwords.google.com/api/adwords/. I am not specifying a scope when requesting the access token. Does that sound right to you?
On Monday, August 11, 2014 8:31:15 AM UTC-7, Ray Tsang (AdWords API Team) wrote: > > Phillip, > > Please make sure that the access token has the appropriate scope, and that > it's for the user that has access to the MCC or the AW account. > It's recommended that you perform such a test by using the client library > <https://developers.google.com/adwords/api/docs/clientlibraries>. > > Thanks, > > Ray > > On Sunday, August 10, 2014 10:13:47 PM UTC-4, Philipp Comans wrote: >> >> Hey, I am trying to get the Customer ID of an AdWords Account that I just >> authenticated with using OAuth2. >> For now, I am using a Chrome extension ( >> https://chrome.google.com/webstore/detail/wizdler/oebpmncolmhiapingjaagmapififiakb?hl=en) >> >> to make a SOAP request to CustomerService ( >> https://developers.google.com/adwords/api/docs/reference/v201406/CustomerService >> ) >> >> The URL is: >> https://adwords.google.com/api/adwords/mcm/v201406/CustomerService >> >> My Request looks like this: >> <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"> >> <Header> >> <RequestHeader xmlns=" >> https://adwords.google.com/api/adwords/mcm/v201406"> >> <developerToken xmlns=" >> https://adwords.google.com/api/adwords/cm/v201406">XXXXX</developerToken> >> <userAgent xmlns="https://adwords.google.com/api/adwords/cm/v201406 >> ">XXXXX</userAgent> >> <validateOnly xmlns=" >> https://adwords.google.com/api/adwords/cm/v201406">false</validateOnly> >> <partialFailure xmlns=" >> https://adwords.google.com/api/adwords/cm/v201406">false</partialFailure> >> </RequestHeader> >> </Header> >> <Body> >> <get xmlns="https://adwords.google.com/api/adwords/mcm/v201406"/> >> </Body> >> </Envelope> >> >> My header looks like this: >> Content-Type: text/xml; charset="utf-8" >> Authorization: Bearer XXXXX >> >> The response I get is: >> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> >> <soap:Header> >> <ResponseHeader xmlns:ns2=" >> https://adwords.google.com/api/adwords/cm/v201406" xmlns=" >> https://adwords.google.com/api/adwords/mcm/v201406"> >> <ns2:requestId>XXXXX</ns2:requestId> >> <ns2:serviceName>CustomerService</ns2:serviceName> >> <ns2:methodName>get</ns2:methodName> >> <ns2:operations>0</ns2:operations> >> <ns2:responseTime>375</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/v201406" xmlns:ns2=" >> https://adwords.google.com/api/adwords/cm/v201406"> >> >> <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: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> >> >> What am I doing wrong? >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.