Hi, It looks like you placed your OAuth access token in the *developerToken* SOAP header, but that is supposed to contain your developer token from your MCC. The OAuth access token goes in the *Authorization* *HTTP* header.
Please refer to the SOAP Primer <https://developers.google.com/adwords/api/docs/guides/soap#request-headers> for more details on the required SOAP and HTTP headers. Thanks, Josh, AdWords API Team On Monday, February 23, 2015 at 2:45:43 PM UTC-5, Salman Hoseini wrote: > > Hello, > > I have my soap request like this and I'm using SOAP UI tool. I have both > oauth access token and refresh token. I am putting the access token in the > soap request > > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ > " xmlns:v20="https://adwords.google.com/api/adwords/cm/v201409"> > <soapenv:Header> > <v20:RequestHeader> > <v20:clientCustomerId>123-123-1234</v20:clientCustomerId> > <v20:developerToken> > ya29.IassdaWWKzdP_RfJKpjdZdsfbsbfsDSFSDFdzsfweHJR-76BCXvxgdr-4wmmC_sgXU > </v20:developerToken> > <v20:userAgent>gender.test.v1</v20:userAgent> > <v20:validateOnly>true</v20:validateOnly> > <v20:partialFailure>true</v20:partialFailure> > </v20:RequestHeader> > </soapenv:Header> > <soapenv:Body> > <v20:getReportFields> > <!--Optional:--> > <v20:reportType>AD_PERFORMANCE_REPORT</v20:reportType> > </v20:getReportFields> > </soapenv:Body> > </soapenv:Envelope> > > I'm trying to connect to Report services but I keep getting error in the > response which looks like message bellow: > > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > <soap:Header> > <ResponseHeader xmlns=" > https://adwords.google.com/api/adwords/cm/v201409"> > <requestId>00050fc6810dd5700abfa08a0700663e</requestId> > <serviceName>ReportDefinitionService</serviceName> > <methodName>getReportFields</methodName> > <operations>0</operations> > <responseTime>54</responseTime> > </ResponseHeader> > </soap:Header> > <soap:Body> > <soap:Fault> > <faultcode>soap:Server</faultcode> > <faultstring>[AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; > trigger:'<null>']</faultstring> > <detail> > <ApiExceptionFault xmlns=" > https://adwords.google.com/api/adwords/cm/v201409"> > <message>[AuthenticationError.LOGIN_COOKIE_REQUIRED @ ; > trigger:'<null>']</message> > <ApplicationException.Type>ApiException > </ApplicationException.Type> > <errors xsi:type="AuthenticationError" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance"> > <fieldPath/> > <trigger><null></trigger> > <errorString>AuthenticationError.LOGIN_COOKIE_REQUIRED > </errorString> > <ApiError.Type>AuthenticationError</ApiError.Type> > <reason>LOGIN_COOKIE_REQUIRED</reason> > </errors> > </ApiExceptionFault> > </detail> > </soap:Fault> > </soap:Body> > </soap:Envelope> > > I am positive that my access token is valid (not the one I pasted here > since this is mocked) and I have correct client id. what am I missing? > > Thanks a lot > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/ab7c07cd-9f2c-4f85-a35d-50239d46aaab%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
