Hi Biniam, Please see my response to your question on your other post <https://groups.google.com/d/msg/adwords-api/t_zdfGj7UyM/KR3hIErsjO4J>. If you have additional questions, let's continue the discussion there to avoid duplicating information.
Thanks, Josh, AdWords API Team On Wednesday, May 13, 2015 at 7:25:12 AM UTC-4, Biniam Asnake wrote: > > Thanks for a great tip! > > I tried to modify multiple ad groups in the same campaign in one account > at the same time and I got the following error. > > My goal is to modify the CPC bid for multiple adgroups in parallel (1 CPC > change per adgroup). > > I know AdwordsSession is not thread-safe. Every thread has its own > AdwordsSession object but two AdwordsSessions might have the same > clientCustomerId. > > *How do I achieve parallisation with AdwordsSession?* > > <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap=" >> http://schemas.xmlsoap.org/soap/envelope/"> >> <soap:Body> >> <soap:Fault> >> <faultcode>soap:Server</faultcode> >> <faultstring>More than one SoapHeader while invoking public >> abstract >> com.google.ads.api.services.job.mutate.v201502.jaxbgen.SimpleMutateJob >> com.google.ads.api.services.job.mutate.v201502.jaxbgen.MutateJobServiceInterface.mutate(java.util.List,com.google.ads.api.services.job.mutate.v201502.jaxbgen.BulkMutateJobPolicy) >> >> throws >> com.google.ads.api.services.job.mutate.v201502.jaxbgen.ApiException_Exception >> >> with params </faultstring> >> </soap:Fault> >> </soap:Body> >> </soap:Envelope> >> >> > On Tuesday, August 30, 2005 at 9:36:36 AM UTC+2, tomasvdb wrote: >> >> yes it works quite well, you just need to make sure that the treads >> aren't operating on the same adgroup. (That's apparently the level on >> which google 'locks' the data when it is being modified.) >> >> You'll also be amazed at how much more you can get done when running a >> few threads simultaneously, and at how fast you consume quota units :) >> >> >> Richard Jones wrote: >> > We're looking into how to speed up certain tasks, and one way to do >> > this might be to have several threads accessing the API in parallel. >> > For example, it seems like it might be faster to add keywords from >> > several threads running at once. >> > >> > I wonder if anyone has tried this approach, and did it work, or did >> > you find problems? Did it actually make things faster? >> > >> > Rich. >> > >> > -- >> > Richard Jones, CTO Merjis Ltd. >> > Merjis - web marketing and technology - http://merjis.com >> > Team Notepad - intranets and extranets for business - >> http://team-notepad.com >> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/8fd3bd71-dab6-4357-94b9-96e238187464%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.