Re: (502)Bad Gateway
Hi Danial, I have shared my ip address over mail . if you get any solution to fix this issue , kindly please share with us . waiting for your response. Thank you, Jai On Wed, Dec 3, 2014 at 6:19 AM, Danial Klimkin adwordsapiadvisor+dan...@google.com wrote: Hello JAI, Please let us know the source IP address (external IPs of your servers) *over email* (reply to author on the right). -Danial, AdWords API Team. On Tuesday, December 2, 2014 3:25:59 PM UTC+3, jai wrote: Hi Danial, Just now migrated to api to V201409, but getting same issues frequently , please check full stake-trace. could you guys hep me to avoid these type of issues faultCode: {http://xml.apache.org/axis/}HTTP faultSubcode: faultString: (502)Bad Gateway faultActor: faultNode: faultDetail: {}:return code: 502 lt;!DOCTYPE htmlgt; lt;html lang=engt; lt;meta charset=utf-8gt; lt;meta name=viewport content=quot;initial-scale=1, minimum-scale=1, width=device-widthquot;gt; lt;titlegt;Error 502 (Server Error)!!1lt;/titlegt; lt;stylegt; *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{ background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* gt; body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{ color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0; max-width:none;padding-right:0}}#logo{background:url(//www. google.com/images/errors/logo_sm_2.png) no-repeat}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google. com/images/errors/logo_sm_2_hr.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/errors/ logo_sm_2_hr.png) 0}}@media only screen and (-webkit-min-device-pixel- ratio:2){#logo{background:url(//www.google.com/images/ errors/logo_sm_2_hr.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:55px;width:150px} lt;/stylegt; lt;a href=//www.google.com/gt;lt;span id=logo aria-label=Googlegt;lt;/spangt;lt;/agt; lt;pgt;lt;bgt;502.lt;/bgt; lt;insgt;That’s an error.lt;/insgt; lt;pgt;The server encountered a temporary error and could not complete your request.lt;pgt;Please try again in 30 seconds. lt;insgt;That’s all we know.lt;/insgt; {http://xml.apache.org/axis/}HttpErrorCode:502 (502)Bad Gateway at org.apache.axis.transport.http.HTTPSender. readFromSocket(HTTPSender.java:744) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.google.api.ads.adwords.axis.v201409.cm. AdGroupCriterionServiceSoapBindingStub.mutate( AdGroupCriterionServiceSoapBindingStub.java:1679) at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at com.google.api.ads.common.lib.soap.SoapClientHandler.invoke(SoapClientHandler.java:109) at com.google.api.ads.common.lib.soap.axis.AxisHandler. invokeSoapCall(AxisHandler.java:213) at com.google.api.ads.common.lib.soap.SoapServiceClient. callSoapClient(SoapServiceClient.java:64) at com.google.api.ads.common.lib.soap.SoapServiceClient.invoke(SoapServiceClient.java:93) at com.sun.proxy.$Proxy20.mutate(Unknown Source) at com.adwords.service.UserService.adgroupKeyWordCreation(UserService.java:1331) at com.adwords.service.UserService.createAdgroup(UserService.java:2294) at com.adwords.service.UserService.createCampaign(UserService.java:988) at com.adwords.actions.CreateCampaignAction.createCampaign(CreateCampaignAction.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274) at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194) at
Re: (502)Bad Gateway
(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:701) Thanks, JAI On Mon, Dec 1, 2014 at 11:55 PM, Jai pur teadwds...@gmail.com wrote: HI Danial, I have checked my network connectivity , its looks good but still facing same issue. Right now I am using adwords api v201406 , is this causing issue. please confirm Thank you for support, Naveen On Fri, Nov 28, 2014 at 5:36 PM, Danial Klimkin adwordsapiadvisor+dan...@google.com wrote: Hello Jai, We don't see any other reports of similar issues. Please check your network connectivity / confirm with your ISP if there were any network issues. -Danial, AdWords API Team. On Thursday, November 27, 2014 6:39:23 PM UTC+3, jai wrote: Hi From last two days iam getting (502)Bad Gateway error while creating adds .please find the below exception stack-trace . could you please help me to resolve this error. (502)Bad Gateway at org.apache.axis.transport.http.HTTPSender. readFromSocket(HTTPSender.java:744) at org.apache.axis.transport.http.HTTPSender.invoke( HTTPSender.java:144) at org.apache.axis.strategies.InvocationStrategy.visit( InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.google.api.ads.adwords.axis.v201406.cm. AdGroupAdServiceSoapBindingStub.mutate(AdGroupAdServiceSoapBindingStu b.java:1301) at sun.reflect.GeneratedMethodAccessor251.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at com.google.api.ads.common.lib.soap.SoapClientHandler.invoke( SoapClientHandler.java:109) at com.google.api.ads.common.lib.soap.axis.AxisHandler. invokeSoapCall(AxisHandler.java:213) at com.google.api.ads.common.lib.soap.SoapServiceClient. callSoapClient(SoapServiceClient.java:64) at com.google.api.ads.common.lib.soap.SoapServiceClient.invoke( SoapServiceClient.java:93) at com.sun.proxy.$Proxy18.mutate(Unknown Source) at com.adwords.service.UserService.createadds(UserService.java:1947) at com.adwords.service.UserService.createAdgroup( UserService.java:2273) at com.adwords.service.UserService.createCampaign( UserService.java:1019) at com.adwords.actions.CreateCampaignAction.createCampaign( CreateCampaignAction.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at org.apache.struts.actions.DispatchAction.dispatchMethod( DispatchAction.java:274) at org.apache.struts.actions.DispatchAction.execute( DispatchAction.java:194) at org.apache.struts.action.RequestProcessor.processActionPerform( RequestProcessor.java:419) at org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:224) at org.apache.struts.action.ActionServlet.process( ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost( ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:643
Re: (502)Bad Gateway
HI Danial, I have checked my network connectivity , its looks good but still facing same issue. Right now I am using adwords api v201406 , is this causing issue. please confirm Thank you for support, Naveen On Fri, Nov 28, 2014 at 5:36 PM, Danial Klimkin adwordsapiadvisor+dan...@google.com wrote: Hello Jai, We don't see any other reports of similar issues. Please check your network connectivity / confirm with your ISP if there were any network issues. -Danial, AdWords API Team. On Thursday, November 27, 2014 6:39:23 PM UTC+3, jai wrote: Hi From last two days iam getting (502)Bad Gateway error while creating adds .please find the below exception stack-trace . could you please help me to resolve this error. (502)Bad Gateway at org.apache.axis.transport.http.HTTPSender. readFromSocket(HTTPSender.java:744) at org.apache.axis.transport.http.HTTPSender.invoke( HTTPSender.java:144) at org.apache.axis.strategies.InvocationStrategy.visit( InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.google.api.ads.adwords.axis.v201406.cm. AdGroupAdServiceSoapBindingStub.mutate(AdGroupAdServiceSoapBindingStu b.java:1301) at sun.reflect.GeneratedMethodAccessor251.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at com.google.api.ads.common.lib.soap.SoapClientHandler.invoke( SoapClientHandler.java:109) at com.google.api.ads.common.lib.soap.axis.AxisHandler. invokeSoapCall(AxisHandler.java:213) at com.google.api.ads.common.lib.soap.SoapServiceClient. callSoapClient(SoapServiceClient.java:64) at com.google.api.ads.common.lib.soap.SoapServiceClient.invoke( SoapServiceClient.java:93) at com.sun.proxy.$Proxy18.mutate(Unknown Source) at com.adwords.service.UserService.createadds(UserService.java:1947) at com.adwords.service.UserService.createAdgroup( UserService.java:2273) at com.adwords.service.UserService.createCampaign( UserService.java:1019) at com.adwords.actions.CreateCampaignAction.createCampaign( CreateCampaignAction.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at org.apache.struts.actions.DispatchAction.dispatchMethod( DispatchAction.java:274) at org.apache.struts.actions.DispatchAction.execute( DispatchAction.java:194) at org.apache.struts.action.RequestProcessor.processActionPerform( RequestProcessor.java:419) at org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:224) at org.apache.struts.action.ActionServlet.process( ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost( ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:643) at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process( Http11Processor.java:861) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler. process(Http11Protocol.java:606) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:701) Thanks, Jai -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this
Re: how to decrease the response time to creation of campaign and adgroups
Thank You so Much josh On Wed, Aug 27, 2014 at 7:50 PM, Josh Radcliff (AdWords API Team) adwordsapiadvisor+j...@google.com wrote: Hi Krish, You can definitely submit concurrent requests to the API, although you'll want to watch out for a few things. 1. You may start encountering rate limits. Please see the Rate Limits guide https://developers.google.com/adwords/api/docs/guides/rate-limits for tips on handling rate limit errors. 2. You'll want to follow our Best Practices https://developers.google.com/adwords/api/docs/guides/bestpractices, particularly with regards to sharing OAuth credentials and grouping operations. 3. If you try to update the same object in multiple concurrent requests you will encounter CONCURRENT_MODIFICATION errors https://developers.google.com/adwords/api/docs/common-errors#DatabaseError . 4. Read the documentation for the client library https://developers.google.com/adwords/api/docs/clientlibraries you are using. Each client library should have information on which objects are thread-safe and which are not within the library. Keep in mind that concurrency will only help if the objects you are trying to ADD are not dependent on each other. For example, if you need to create a campaign, its ad group, and its keywords, then concurrency won't help because you need to create the campaign first, then the ad group, and then the keywords. Finally, you could also implement an approach that uses Batch Processing https://developers.google.com/adwords/api/docs/guides/batch-processing via the MutateJobService https://developers.google.com/adwords/api/docs/reference/v201406/MutateJobService. However, that doesn't sound like a great fit for your use case because it seems that you need to execute your requests synchronously and wait for each reply, while the *MutateJobService* is meant for asynchronous processing, and may even make requests run a bit longer due to scheduling and job overhead. Hope that helps! Cheers, Josh, AdWords API Team On Tuesday, August 26, 2014 2:22:36 PM UTC-4, krish wrote: Hi In my project i need to create bulk number of the campaigns, adgroups,adds, keywords and negative keywords at campaign level and adgroup level one by one in single click from my web page . now i am able to do this task by adwords api . but the response time is getting very high . can i implement multi threading concept for this or anybody have idea to decrease the response time .could please share the example codes. Appreciate your help Thanks, krish -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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 a topic in the Google Groups AdWords API Forum group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/kdCIoNoxf3s/unsubscribe. To unsubscribe from this group and all its topics, send an email to adwords-api+unsubscr...@googlegroups.com. 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/66d2e26e-b4b6-47ee-9752-8d3a68fe7029%40googlegroups.com https://groups.google.com/d/msgid/adwords-api/66d2e26e-b4b6-47ee-9752-8d3a68fe7029%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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. 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/CAHEe0UnFho1XJXD4k%2B1zzxbRR6qj6gKW3uJWqN%2BS3wcWJ77EjA%40mail.gmail.com.
Re: No campaigns were found
Even I have the same problem No Campaigns were found Hi Guys, Firstly, I am new to Adwords. I have created one Test Mcc Account(Test mcc account) and under this Test mcc account i have created one client account(Dummy client account), and under this Dummy client account i have created on Campaign(new bike campaign in india) and also provided adgroups,adds and keywords. And now my problem is when i run GetCampaigns.java from google Adwords Api program i have successfully connected with correct authentication info but i am getting this message *No Campaigns were found* even i have created campaign (new bike campaign in india) under this client account (Dummy client account). Please once look below details for my authentication setup provided in the ads.properties file. api.adwords.clientId : api.adwords.clientSecret : (for both above clientId and clientSecret info i have given by creating a project from this link https://console.developers.google.com by providing with an authorized url). api.adwords.clientCustomerId : provided Test mcc account client id (Dummy client account). api.adwords.developerToken : from my original mcc account (product mcc account). api.adwords.refreshToken : which is generated after running GetRefreshToken.java from google Adwords Api. By providing above authentication credentials connected to the mcc account successfully but unable to get campaign details from created Dummy client account with a message No Campaigns were found. Please help me on this and make me to move forward. Thanks in Advance. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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/d/optout.