>If your SOAP response does not have a *requestId*, then the request may not have even made it to our servers.
I am surprised to learn this. In ten years (!) I have never seen AdWords servers return a RequestId with a HTTP 5xx response. Anyway, those errors started to pop up here too. When an error appears we also log the headers. Example 1 - Request headers: Content-Type application/x-www-form-urlencoded Authorization Bearer ya29.h...uX7W1b clientCustomerId 8077325588 developerToken kNkfox...m9qg_g skipReportHeader True skipReportSummary True User-Agent Adwords API by Maxlead Host adwords.google.com Content-Length 1865 Accept-Encoding gzip, deflate Request (a report): <?xml version="1.0"?> <reportDefinition> <selector xmlns="https://adwords.google.com/api/adwords/cm/v201409"> <fields>CampaignId</fields> <fields>Month</fields> <fields>AdNetworkType1</fields> <fields>AveragePosition</fields> <fields>Clicks</fields> <fields>Cost</fields> <fields>Impressions</fields> <fields>ContentBudgetLostImpressionShare</fields> <fields>ContentImpressionShare</fields> <fields>ContentRankLostImpressionShare</fields> <fields>SearchBudgetLostImpressionShare</fields> <fields>SearchExactMatchImpressionShare</fields> <fields>SearchImpressionShare</fields> <fields>SearchRankLostImpressionShare</fields> <fields>RelativeCtr</fields> <predicates> <field>Status</field> <operator>IN</operator> <values>ENABLED</values> <values>PAUSED</values> <values>REMOVED</values> </predicates> <dateRange> <min>20150401</min> <max>20150603</max> </dateRange> </selector> <reportName xmlns="https://adwords.google.com/api/adwords/cm/v201409">CampaignImpressionShare_20150401_20150603</reportName> <reportType xmlns="https://adwords.google.com/api/adwords/cm/v201409">CAMPAIGN_PERFORMANCE_REPORT</reportType> <dateRangeType xmlns="https://adwords.google.com/api/adwords/cm/v201409">CUSTOM_DATE</dateRangeType> <downloadFormat xmlns="https://adwords.google.com/api/adwords/cm/v201409">GZIPPED_XML</downloadFormat> <includeZeroImpressions xmlns="https://adwords.google.com/api/adwords/cm/v201409">false</includeZeroImpressions> </reportDefinition> Response headers: Content-Type text/html; charset=UTF-8 Content-Length 1477 Date Wed, 03 Jun 2015 16:16:06 GMT Server GFE/2.0 Unfortunately we don't log the content of the error response. Also note that we don't have proxies or anything like that, and having seen many AdWords API responses, those headers look like something that was generated by Google. Example 2 - request headers Content-Type application/x-www-form-urlencoded Authorization Bearer ya29.h...uX7W1b clientCustomerId 9121915867 developerToken kNkfox...m9qg_g skipReportHeader True skipReportSummary True User-Agent Adwords API by Maxlead Host adwords.google.com Content-Length 1494 Accept-Encoding gzip, deflate Request (a different report): <?xml version="1.0"?> <reportDefinition> <selector xmlns="https://adwords.google.com/api/adwords/cm/v201409"> <fields>CampaignId</fields> <fields>AdGroupId</fields> <fields>AdGroupName</fields> <fields>AdGroupStatus</fields> <fields>CpcBid</fields> <fields>CpmBid</fields> <predicates> <field>CampaignStatus</field> <operator>IN</operator> <values>ENABLED</values> <values>PAUSED</values> <values>REMOVED</values> </predicates> <predicates> <field>Status</field> <operator>IN</operator> <values>ENABLED</values> <values>PAUSED</values> <values>REMOVED</values> </predicates> </selector> <reportName xmlns="https://adwords.google.com/api/adwords/cm/v201409">GroupInfo_All_Time</reportName> <reportType xmlns="https://adwords.google.com/api/adwords/cm/v201409">ADGROUP_PERFORMANCE_REPORT</reportType> <dateRangeType xmlns="https://adwords.google.com/api/adwords/cm/v201409">ALL_TIME</dateRangeType> <downloadFormat xmlns="https://adwords.google.com/api/adwords/cm/v201409">GZIPPED_XML</downloadFormat> <includeZeroImpressions xmlns="https://adwords.google.com/api/adwords/cm/v201409">true</includeZeroImpressions> </reportDefinition> Response headers: Content-Type text/html; charset=UTF-8 Content-Length 1477 Date Wed, 03 Jun 2015 16:30:43 GMT Server GFE/2.0 Note: in case of HTTP 502 we always retry the request three times before giving up. In other words, we experienced at least 8 errors. Unfortunately we don't log the older requests and responses. At the same time (approx 16.30h GMT) we also experienced a timeout, which could be related. Headers: Content-Type application/x-www-form-urlencoded Authorization Bearer ya29.h...uX7W1b clientCustomerId 9861198322 developerToken kNkfox...m9qg_g skipReportHeader True skipReportSummary True User-Agent Adwords API by Maxlead Host adwords.google.com Content-Length 1106 Accept-Encoding gzip, deflate Request: <?xml version="1.0"?> <reportDefinition> <selector xmlns="https://adwords.google.com/api/adwords/cm/v201409"> <fields>AccountDescriptiveName</fields> <fields>AccountCurrencyCode</fields> <fields>AccountTimeZoneId</fields> <fields>Impressions</fields> <fields>ExternalCustomerId</fields> </selector> <reportName xmlns="https://adwords.google.com/api/adwords/cm/v201409">AdwordsReportAccountInfo_All_Time</reportName> <reportType xmlns="https://adwords.google.com/api/adwords/cm/v201409">ACCOUNT_PERFORMANCE_REPORT</reportType> <dateRangeType xmlns="https://adwords.google.com/api/adwords/cm/v201409">ALL_TIME</dateRangeType> <downloadFormat xmlns="https://adwords.google.com/api/adwords/cm/v201409">GZIPPED_XML</downloadFormat> <includeZeroImpressions xmlns="https://adwords.google.com/api/adwords/cm/v201409">true</includeZeroImpressions> </reportDefinition> Again, a timeout will only stop our processes when it appears four times in a row. I hope this data helps! On Wednesday, June 3, 2015 at 7:06:40 PM UTC+2, Nadine Sundquist (AdWords API Team) wrote: > > Hello Ashley, > > I took a look at the errors on our servers. I'm not seeing anything > unusual that could cause gateway issues. If your SOAP response does not > have a *requestId*, then the request may not have even made it to our > servers. I would recommend checking with your network administrator to see > if you can trace the route of the request. > > Best, > Nadine, AdWords API Team > > On Tuesday, June 2, 2015 at 5:26:00 PM UTC-4, Ashley Xu wrote: >> >> Could someone please help to investigate? >> >> On Monday, June 1, 2015 at 5:41:56 PM UTC-7, Ashley Xu wrote: >>> >>> Hi, >>> >>> We have seen a lot of 502 bad gateway errors recently. Please find below >>> the stack trace and the number of failures per day. Could you please help >>> take a look? >>> >>> Thanks >>> Ashley >>> >>> Sync error: WebExceptionProtocolError ---> System.Net.WebException: The >>> request failed with HTTP status 502: Bad Gateway. >>> 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) >>> at Google.Api.Ads.AdWords.v201409.ManagedCustomerService.get(Selector >>> serviceSelector) >>> >>> *LogDate* >>> *NumFailures*5/1/201525/2/201515/3/201515/4/201535/4/201565/4/201516 >>> 5/12/201545/12/201595/12/2015235/13/201515/13/2015105/14/201545/18/20151 >>> 5/18/201525/19/201515/19/201535/19/201535/20/201515/20/201535/21/20152 >>> 5/26/201515/26/201515/27/201515/27/201545/28/201565/28/201575/29/201535 >>> 5/29/2015385/30/201565/30/20155 >>> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/5240eb95-ee1a-4f53-a9da-90bcdd13a14c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
