Re: Increase in ConcurrentModification Exceptions?

2011-04-11 Thread Eric Koleda
Hi Margaret,

We recently published a blog post that covers how concurrency management 
works in the API:

  
http://adwordsapi.blogspot.com/2011/03/concurrency-management-in-adwords-api.html

In general large batch sizes are better, but it depends on what's in those 
batches.  One of our best practices revolves around grouping your operations 
together by parent ID, with more information available here:

  
http://code.google.com/apis/adwords/docs/bestpractices.html#group_operations

Best,
- Eric Koleda, AdWords API Team

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Re: Increase in ConcurrentModification Exceptions?

2011-04-05 Thread mm
Fyi, we also regularly run cpc updates in batch sizes of 10 and are
seeing ConcurrentMod exceptions within that process pretty
consistently also.

On Apr 5, 12:49 pm, mm  wrote:
> Latest update... I was running through a large number of keyword url
> updates (16k), uploading the changes in batches of 1000. When running
> the updates this way, I was seeing a significant number of
> ConcurrentModification exceptions, and no partial failures. I decided
> to try a smaller batch size of 200. With the smaller batch size I
> started seeing partial failures and then could identify the error - in
> this particular case the error that was being masked was a
> DistinctError.
>
> So it is interesting that the batch size changes the error that I
> receive, and it has me wondering what is the optimal batch size to use
> for updates? for creates?
>
> On Apr 4, 3:53 pm, mm  wrote:
>
> > Hi Anash -
>
> > I just received this error for a couple of requests:
> > [04 Apr 2011 15:31:19,219 - DEBUG] email=
> > effectiveUser= service=AdGroupCriterionService method=mutate
> > operators={SET: 1000} responseTime=78581 operations=0 units=1
> > requestId=aa60417709fd3ec5cef99fc937494cc7 server=https://
> > adwords.google.com isFault=true
> > faultMessage=DatabaseError.CONCURRENT_MODIFICATION @
> > [Ljava.lang.StackTraceElement;@e56488
>
> > [04 Apr 2011 15:32:09,221 - DEBUG] email=
> > effectiveUser= service=AdGroupCriterionService method=mutate
> > operators={SET: 1000} responseTime=46696 operations=0 units=1
> > requestId=3183186e64d32915f556cce3f12dcb69 server=https://
> > adwords.google.com isFault=true
> > faultMessage=DatabaseError.CONCURRENT_MODIFICATION @
> > [Ljava.lang.StackTraceElement;@19fa97b
>
> > Let me know if I can help further -
> > Thanks!mm
>
> > On Mar 15, 8:25 am, AdWords API Advisor 
> > wrote:
>
> > > Hi Margaret,
>
> > > If you can share the response ids for such requests online, then that 
> > > would
> > > be most helpful.
>
> > > Cheers,
> > > Anash P. Oommen,
> > > AdWords API Advisor.
>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Re: Increase in ConcurrentModification Exceptions?

2011-04-05 Thread mm
Latest update... I was running through a large number of keyword url
updates (16k), uploading the changes in batches of 1000. When running
the updates this way, I was seeing a significant number of
ConcurrentModification exceptions, and no partial failures. I decided
to try a smaller batch size of 200. With the smaller batch size I
started seeing partial failures and then could identify the error - in
this particular case the error that was being masked was a
DistinctError.

So it is interesting that the batch size changes the error that I
receive, and it has me wondering what is the optimal batch size to use
for updates? for creates?

On Apr 4, 3:53 pm, mm  wrote:
> Hi Anash -
>
> I just received this error for a couple of requests:
> [04 Apr 2011 15:31:19,219 - DEBUG] email=
> effectiveUser= service=AdGroupCriterionService method=mutate
> operators={SET: 1000} responseTime=78581 operations=0 units=1
> requestId=aa60417709fd3ec5cef99fc937494cc7 server=https://
> adwords.google.com isFault=true
> faultMessage=DatabaseError.CONCURRENT_MODIFICATION @
> [Ljava.lang.StackTraceElement;@e56488
>
> [04 Apr 2011 15:32:09,221 - DEBUG] email=
> effectiveUser= service=AdGroupCriterionService method=mutate
> operators={SET: 1000} responseTime=46696 operations=0 units=1
> requestId=3183186e64d32915f556cce3f12dcb69 server=https://
> adwords.google.com isFault=true
> faultMessage=DatabaseError.CONCURRENT_MODIFICATION @
> [Ljava.lang.StackTraceElement;@19fa97b
>
> Let me know if I can help further -
> Thanks!mm
>
> On Mar 15, 8:25 am, AdWords API Advisor 
> wrote:
>
> > Hi Margaret,
>
> > If you can share the response ids for such requests online, then that would
> > be most helpful.
>
> > Cheers,
> > Anash P. Oommen,
> > AdWords API Advisor.
>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Re: Increase in ConcurrentModification Exceptions?

2011-04-04 Thread mm
Hi Anash -

I just received this error for a couple of requests:
[04 Apr 2011 15:31:19,219 - DEBUG] email=
effectiveUser= service=AdGroupCriterionService method=mutate
operators={SET: 1000} responseTime=78581 operations=0 units=1
requestId=aa60417709fd3ec5cef99fc937494cc7 server=https://
adwords.google.com isFault=true
faultMessage=DatabaseError.CONCURRENT_MODIFICATION @
[Ljava.lang.StackTraceElement;@e56488

[04 Apr 2011 15:32:09,221 - DEBUG] email=
effectiveUser= service=AdGroupCriterionService method=mutate
operators={SET: 1000} responseTime=46696 operations=0 units=1
requestId=3183186e64d32915f556cce3f12dcb69 server=https://
adwords.google.com isFault=true
faultMessage=DatabaseError.CONCURRENT_MODIFICATION @
[Ljava.lang.StackTraceElement;@19fa97b

Let me know if I can help further -
Thanks!
mm

On Mar 15, 8:25 am, AdWords API Advisor 
wrote:
> Hi Margaret,
>
> If you can share the response ids for such requests online, then that would
> be most helpful.
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Re: Increase in ConcurrentModification Exceptions?

2011-03-15 Thread AdWords API Advisor
Hi Margaret,

If you can share the response ids for such requests online, then that would 
be most helpful.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Increase in ConcurrentModification Exceptions?

2011-03-11 Thread mm
Hey guys -
The past week or so (seems to be since the latest release, but can't
say that definitively) we have seen a significant increase in the
number of ConcurrentModification exceptions thrown while updating
Keywords (in particular, when updating their destinationURLs). I've
already got a retry loop around my api invocation that will retry 3
times before giving up - and we're hitting the "giving up" stage way
more frequently now. Is this a known issue? Is there more info I can
give you to dig into it further?

Thanks -
Margaret

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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