Re: Constant CONCURRENT_MODIFICATION error when creating

2017-03-06 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Luis,

The CONCURRENT_MODIFICATION error usually appears for one of the following 
reasons:

   - More than one thread is operating on the entity in a multi-threaded 
   environment
   - A user in the AdWords web interface is updating the entity at the same 
   time.
   - An internal process on the AdWords API servers is updating an entity 
   at the same time.

It is recommended that you try not to process operations against the same 
ad group or campaign in quick succession. Grouping operations that modify 
the same ad group or campaign in a single request decreases the chance of 
such a conflict. Could you provide the SOAP request and response logs where 
you encounter these errors? Please use *Reply privately to author* when 
responding.

Thanks,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3d54c9e3-91a6-4d67-b8ff-d90da873f992%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Constant CONCURRENT_MODIFICATION error when creating

2017-03-06 Thread Luis C. Cruz
I have a program written in C# that creates AdWords campaigns starting from 
the creation of an Account and then adding campaigns, adgroups, ads, 
keywords, configurations and more. It can be seen as a pipeline of 
processes, one after the other, and it stops if a previous process fails. 

At random points of the pipeline I'm constantly facing a 
CONCURRENT_MODIFICATION error, and the description doesn't help much. It 
not always fails but it occurs in more than 50% of the launches. This is 
the description of the exception:

AdWordsApiException: One or more AdWords API errors have occurred. A 
concurrency problem occurred as two threads were attempting to modify same 
object.. (Error: DatabaseError.CONCURRENT_MODIFICATION, FieldPath: , 
Trigger: )

I haven't been able to determine the cause of the problem because (1) It 
happens at different levels of the pipeline and (2) it is not a 
multithreaded system, so there aren't other threads modifying the same 
object.

How can I avoid this error? Thanks



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/737f7d77-43b6-4a13-b0d0-755373b5c47d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.