Hello Sanchita,

Please make sure to re-use the existing access token, it looks like you may 
be re-requesting a new one for each request.

As per the first error, it's a network connectivity issue. Check if your 
network accessibility was affected during the time you get the error.


-Danial, AdWords API Team.


On Tuesday, January 28, 2014 12:23:29 AM UTC+4, [email protected] 
wrote:
>
> Hi API Team,
>
>
> We are getting a lot of socket exceptions in *AdParamService.mutate and 
> AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T]*
>
>
> Is there something wrong?
>
>
> System.Net.WebException: Unable to connect to the remote server ---> 
> System.Net.Sockets.SocketException: A connection attempt failed because the 
> connected party did not properly respond after a period of time, or 
> established connection failed because connected host has failed to respond 
> 74.125.22.84:443
>    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, 
> SocketAddress socketAddress)
>    at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, 
> Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState 
> state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
>    --- End of inner exception stack trace ---
>    at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
>    at System.Net.HttpWebRequest.GetRequestStream()
>    at Google.Api.Ads.Common.Lib.OAuth2ProviderBase.CallTokenEndpoint(String 
> body)
>    at 
> Google.Api.Ads.Common.Lib.OAuth2ProviderForApplications.RefreshAccessTokenInOfflineMode()
>    at 
> Google.Api.Ads.Common.Lib.OAuth2ProviderForApplications.RefreshAccessToken()
>    at 
> Google.Api.Ads.Common.Lib.OAuth2ProviderBase.RefreshAccessTokenIfExpiring()
>    at Google.Api.Ads.Common.Lib.OAuth2ProviderBase.GetAuthHeader()
>    at Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.BuildRequest(String 
> downloadUrl, Boolean returnMoneyInMicros, String postBody)
>    at 
> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToStream(String
>  downloadUrl, Boolean returnMoneyInMicros, String postBody, Stream 
> outputStream)
>    at 
> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReportInternal(String
>  downloadUrl, String postBody, Boolean returnMoneyInMicros, String path)
>    at 
> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T 
> reportDefinition, Boolean returnMoneyInMicros, String path)
>    at 
> Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport[T](T 
> reportDefinition, String path)
>
>
>
> And 
>
> System.Net.WebException: Unable to connect to the remote server ---> 
> System.Net.Sockets.SocketException: A connection attempt failed because the 
> connected party did not properly respond after a period of time, or 
> established connection failed because connected host has failed to respond 
> 74.125.22.84:443
>    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, 
> SocketAddress socketAddress)
>    at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, 
> Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState 
> state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
>    --- End of inner exception stack trace ---
>    at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
>    at System.Net.HttpWebRequest.GetRequestStream()
>    at Google.Api.Ads.Common.Lib.OAuth2ProviderBase.CallTokenEndpoint(String 
> body)
>    at 
> Google.Api.Ads.Common.Lib.OAuth2ProviderForApplications.RefreshAccessTokenInOfflineMode()
>    at 
> Google.Api.Ads.Common.Lib.OAuth2ProviderForApplications.RefreshAccessToken()
>    at 
> Google.Api.Ads.Common.Lib.OAuth2ProviderBase.RefreshAccessTokenIfExpiring()
>    at Google.Api.Ads.Common.Lib.OAuth2ProviderBase.GetAuthHeader()
>    at Google.Api.Ads.AdWords.Lib.AdWordsSoapClient.InitForCall(String 
> methodName, Object[] parameters)
>    at Google.Api.Ads.Common.Lib.AdsSoapClient.MakeApiCall(String methodName, 
> Object[] parameters)
>    at Google.Api.Ads.Common.Lib.AdsSoapClient.Invoke(String methodName, 
> Object[] parameters)
>    at Google.Api.Ads.AdWords.v201306.AdParamService.mutate(AdParamOperation[] 
> operations)
>
>
>
> Thanks
>
> Sanchita
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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 [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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to