I re-post this question again after months of waiting for a solution: I use a Windows service to hourly update the targets for a list of about 15 accounts consist of hundreds of campaigns.
I always get this error after 2 weeks of running the service, which was written by C# and .NET using the .NET client API v201109: The only way that I can do is to restart the Windows service every 2 weeks. Google.Api.Ads.AdWords.Lib.AdWordsApiException: An API exception has occurred. See ApiException and InnerException fields for more details. ---> System.Web.Services.Protocols.SoapException: * AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID* @ Service[CampaignService.mutate] at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Google.Api.Ads.Common.Lib.AdsSoapClient.MakeApiCall(String methodName, Object[] parameters) --- End of inner exception stack trace --- at Google.Api.Ads.Common.Lib.AdsSoapClient.MakeApiCall(String methodName, Object[] parameters) at Google.Api.Ads.AdWords.Lib.AdWordsSoapClient.MakeApiCall(String methodName, Object[] parameters) at Google.Api.Ads.Common.Lib.AdsSoapClient.Invoke(String methodName, Object[] parameters) at Google.Api.Ads.AdWords.v201109.CampaignService.mutate(CampaignOperation[] operations) at SemUpdateBiz.SEMManagerUpdateGeoTargets(string campaign_email, string campaign_password, googleNameAndID googleCampaign, string make, bool isSeriesCampaign, int MaxCampaigns, int AccountID) I did ask Anash (API Team member), and then he asked me to turn on the log file setting in App.config and send him the log. After that I receive an advice: add this line to my code: user.Config.RetryCount = 3. *However, it never works.* private void UpdateGeoTargets(string campaign_email, string campaign_password, googleNameAndID googleCampaign, string make, bool isSeriesCampaign, int MaxCampaigns, int AccountID) { Dictionary<string, string> headers = new Dictionary<string, string>(); headers.Add("email", campaign_email); headers.Add("password", campaign_password); headers.Add("useragent", ConfigurationManager.AppSettings["useragent"]); headers.Add("developerToken", ConfigurationManager.AppSettings["developerToken"]); AdWordsUser user = new AdWordsUser(headers); user.Config.RetryCount = 3; try { ... ... ... App.config: <AdWordsApi> <add key="LogPath" value="D:\log" /> <add key="LogToConsole" value="false" /> <add key="LogToFile" value="true" /> <add key="MaskCredentials" value="true" /> <add key="LogErrorsOnly" value="false" /> <!-- Set the service timeout in milliseconds. --> <add key="Timeout" value="100000" /> <add key="ProxyServer" value="" /> <add key="ProxyUser" value="" /> <add key="ProxyPassword" value="" /> <add key="ProxyDomain" value="" /> <add key="EnableGzipCompression" value="true" /> <add key="UserAgent" value="xxxxxxxxxxx" /> <add key="DeveloperToken" value="xxxxxxxxxxxx" /> <add key="AuthorizationMethod" value="ClientLogin" /> <add key="ApplicationToken" value="xxxxxxxxxxxxx" /> </AdWordsApi> Does anyone have the same issue and know how to fix it? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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