I have been attempting to connect using the recommended authentication method: oAuth2, and have been getting errors similar to the issue found here: https://groups.google.com/forum/#!topic/adwords-api/nwGKquvise8
I have been able to get an access token and refresh token, but whenever I *immediately* attempt to retrieve the user's campaigns I get the GOOGLE_ACCOUNT_COOKIE_INVALID error. I also had to manually set the access token in the header otherwise it won't send. I am using the PHP adwords api client library, and I'm using a local domain (for the callback) for testing. Ideas? Here's a req/resp: [Apr 26 2013 11:24:41.000000 - ERROR] POST //api/adwords/cm/v201302/CampaignService?access_token=ya29.AHES6ZS1wXList-8XAHBhuA_1pk_D-PNdziZNNDqq8-8L7U HTTP/1.1 Host: adwords.google.com Connection: Keep-Alive User-Agent: PHP-SOAP/5.3.15, gzip Accept-Encoding: gzip, deflate Content-Encoding: gzip Content-Type: text/xml; charset=utf-8 SOAPAction: "" Content-Length: 433 <?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/cm/v201302"> <SOAP-ENV:Header> <ns1:RequestHeader> <ns1:authToken>*****</ns1:authToken> <ns1:developerToken>lhH_e4Zx4OZzHoSDJ4CZeQ</ns1:developerToken> <ns1:userAgent>sharpspringApplication (AwApi-PHP/5.0.0, Common-PHP/5.0.0, PHP/5.3.15)</ns1:userAgent> </ns1:RequestHeader> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:get> <ns1:serviceSelector> <ns1:fields>Id</ns1:fields> <ns1:paging> <ns1:startIndex>0</ns1:startIndex> <ns1:numberResults>0</ns1:numberResults> </ns1:paging> </ns1:serviceSelector> </ns1:get> </SOAP-ENV:Body> </SOAP-ENV:Envelope> HTTP/1.1 500 Internal Server Error Content-Type: text/xml; charset=UTF-8 Content-Encoding: gzip Date: Fri, 26 Apr 2013 15:24:41 GMT Expires: Fri, 26 Apr 2013 15:24:41 GMT Cache-Control: private, max-age=0 X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Content-Length: 522 Server: GSE <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201302 "> <requestId>0004db45224aa4100ae7e3c3000014ef</requestId> <serviceName>CampaignService</serviceName> <methodName>get</methodName> <operations>0</operations> <responseTime>50</responseTime> <units>0</units> </ResponseHeader> </soap:Header> <soap:Body> <soap:Fault> <faultcode>soap:Server</faultcode> <faultstring>[AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID @ ; trigger:'<null>']</faultstring> <detail> <ApiExceptionFault xmlns=" https://adwords.google.com/api/adwords/cm/v201302"> <message>[AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID @ ; trigger:'<null>']</message> <ApplicationException.Type>ApiException</ApplicationException.Type> <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AuthenticationError"> <fieldPath/> <trigger><null></trigger> <errorString>AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID</errorString> <ApiError.Type>AuthenticationError</ApiError.Type> <reason>GOOGLE_ACCOUNT_COOKIE_INVALID</reason> </errors> </ApiExceptionFault> </detail> </soap:Fault> </soap:Body> </soap:Envelope> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/groups/opt_out.