Hi gpsdev,

Are you getting this error for every service you call or just the 
CampaignService?

This error is usually served when an authentication token expires. Can you 
try refreshing your Auth Token and entering it into your auth.ini file?

Finally, which Oauth Handler are you using?

Cheers,

- Paul, AdWords API Team.

On Tuesday, 8 January 2013 10:09:11 UTC, gpsdev wrote:
>
> I'm getting error AuthenticationError:GOOGLE_ACCOUNT_COOKIE_INVALID. I 
> think access tokens are fresh and proper.  I'm using php library v201209. 
> It is my first try to use test account.
>
> Also i must use method SetAuthToken to set auth token request header. 
> Using SetOAuth2Info seems not to work as it should. it's strange but It was 
> working good on sandbox environment. When i not use SetAuthToken then 
> request header not contain auth token. Using clientCustomerId not change 
> anything.
>
>
>
> this is my soap req/response:
>
>
>
>> [Jan 08 2013 11:00:21.000000 - ERROR] POST 
>> /api/adwords/cm/v201209/CampaignService?access_token=ya29.AHES6ZSToOsSgL1GS89eWmT9dXMexdGZTPDafBgaUZhGZDY
>>  
>> HTTP/1.1
>> Host: adwords.google.com
>> Connection: Keep-Alive
>> User-Agent: PHP-SOAP/5.4.7, gzip
>> Accept-Encoding: gzip, deflate
>> Content-Encoding: gzip
>> Content-Type: text/xml; charset=utf-8
>> SOAPAction: ""
>> Content-Length: 431
>>
>> <?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/v201209";>
>>   <SOAP-ENV:Header>
>>     <ns1:RequestHeader>
>>       <ns1:authToken>*****</ns1:authToken>
>>       <ns1:developerToken>[my dev token]</ns1:developerToken>
>>       <ns1:userAgent>INSERT_COMPANY_NAME_HERE (AwApi/3.1.1, 
>> php/5.4.7)</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>500</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: Tue, 08 Jan 2013 10:00:22 GMT
>> Expires: Tue, 08 Jan 2013 10:00:22 GMT
>> Cache-Control: private, max-age=0
>> X-Content-Type-Options: nosniff
>> X-Frame-Options: SAMEORIGIN
>> X-XSS-Protection: 1; mode=block
>> Content-Length: 523
>> 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/v201209";>
>>       <requestId>0004d2c4038ef4b00ae557cd00003e9e</requestId>
>>       <serviceName>CampaignService</serviceName>
>>       <methodName>get</methodName>
>>       <operations>0</operations>
>>       <responseTime>41</responseTime>
>>       <units>0</units>
>>     </ResponseHeader>
>>   </soap:Header>
>>   <soap:Body>
>>     <soap:Fault>
>>       <faultcode>soap:Server</faultcode>
>>       <faultstring>[AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID @ ; 
>> trigger:'&lt;null&gt;']</faultstring>
>>       <detail>
>>         <ApiExceptionFault xmlns="
>> https://adwords.google.com/api/adwords/cm/v201209";>
>>           <message>[AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID @ ; 
>> trigger:'&lt;null&gt;']</message>
>>           
>> <ApplicationException.Type>ApiException</ApplicationException.Type>
>>           <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>> xsi:type="AuthenticationError">
>>             <fieldPath/>
>>             <trigger>&lt;null&gt;</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>
>>
>
> sorry for my english
>  
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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



Reply via email to